enable login utils
[framework/base/util-linux-ng.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for util-linux 2.20.1.
4 #
5 # Report bugs to <kzak@redhat.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and kzak@redhat.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='util-linux'
572 PACKAGE_TARNAME='util-linux'
573 PACKAGE_VERSION='2.20.1'
574 PACKAGE_STRING='util-linux 2.20.1'
575 PACKAGE_BUGREPORT='kzak@redhat.com'
576 PACKAGE_URL=''
577
578 ac_unique_file="mount/mount.c"
579 ac_default_prefix=/usr
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 SUID_LDFLAGS
621 SUID_CFLAGS
622 MAKEINSTALL_DO_SETUID_FALSE
623 MAKEINSTALL_DO_SETUID_TRUE
624 MAKEINSTALL_DO_CHOWN_FALSE
625 MAKEINSTALL_DO_CHOWN_TRUE
626 USE_TTY_GROUP_FALSE
627 USE_TTY_GROUP_TRUE
628 BUILD_WRITE_FALSE
629 BUILD_WRITE_TRUE
630 BUILD_WALL_FALSE
631 BUILD_WALL_TRUE
632 BUILD_SCHEDUTILS_FALSE
633 BUILD_SCHEDUTILS_TRUE
634 HAVE_AUDIT_FALSE
635 HAVE_AUDIT_TRUE
636 SELINUX_LIBS_STATIC
637 SELINUX_LIBS
638 HAVE_SELINUX_FALSE
639 HAVE_SELINUX_TRUE
640 HAVE_PAM_FALSE
641 HAVE_PAM_TRUE
642 BUILD_LOGIN_UTILS_FALSE
643 BUILD_LOGIN_UTILS_TRUE
644 BUILD_RESET_FALSE
645 BUILD_RESET_TRUE
646 BUILD_RENAME_FALSE
647 BUILD_RENAME_TRUE
648 BUILD_RAW_FALSE
649 BUILD_RAW_TRUE
650 BUILD_MESG_FALSE
651 BUILD_MESG_TRUE
652 BUILD_LINE_FALSE
653 BUILD_LINE_TRUE
654 BUILD_LAST_FALSE
655 BUILD_LAST_TRUE
656 BUILD_KILL_FALSE
657 BUILD_KILL_TRUE
658 BUILD_ELVTUNE_FALSE
659 BUILD_ELVTUNE_TRUE
660 BUILD_UNSHARE_FALSE
661 BUILD_UNSHARE_TRUE
662 BUILD_FALLOCATE_FALSE
663 BUILD_FALLOCATE_TRUE
664 BUILD_PIVOT_ROOT_FALSE
665 BUILD_PIVOT_ROOT_TRUE
666 BUILD_SWITCH_ROOT_FALSE
667 BUILD_SWITCH_ROOT_TRUE
668 BUILD_LSBLK_FALSE
669 BUILD_LSBLK_TRUE
670 BUILD_CRAMFS_FALSE
671 BUILD_CRAMFS_TRUE
672 BUILD_AGETTY_FALSE
673 BUILD_AGETTY_TRUE
674 BUILD_DDATE_FALSE
675 BUILD_DDATE_TRUE
676 BUILD_ARCH_FALSE
677 BUILD_ARCH_TRUE
678 ARCH_HPPA_FALSE
679 ARCH_HPPA_TRUE
680 ARCH_MIPS_FALSE
681 ARCH_MIPS_TRUE
682 ARCH_M68K_FALSE
683 ARCH_M68K_TRUE
684 ARCH_PPC_FALSE
685 ARCH_PPC_TRUE
686 ARCH_SPARC_FALSE
687 ARCH_SPARC_TRUE
688 ARCH_S390_FALSE
689 ARCH_S390_TRUE
690 ARCH_IA64_FALSE
691 ARCH_IA64_TRUE
692 ARCH_86_64_FALSE
693 ARCH_86_64_TRUE
694 ARCH_I86_FALSE
695 ARCH_I86_TRUE
696 HAVE_CPU_SET_T_FALSE
697 HAVE_CPU_SET_T_TRUE
698 HAVE_UNSHARE_FALSE
699 HAVE_UNSHARE_TRUE
700 HAVE_FALLOCATE_FALSE
701 HAVE_FALLOCATE_TRUE
702 HAVE_IOPRIO_GET_FALSE
703 HAVE_IOPRIO_GET_TRUE
704 HAVE_IOPRIO_SET_FALSE
705 HAVE_IOPRIO_SET_TRUE
706 HAVE_SCHED_GETAFFINITY_FALSE
707 HAVE_SCHED_GETAFFINITY_TRUE
708 HAVE_PIVOT_ROOT_FALSE
709 HAVE_PIVOT_ROOT_TRUE
710 NEED_LIBCRYPT_FALSE
711 NEED_LIBCRYPT_TRUE
712 HAVE_UTEMPTER_FALSE
713 HAVE_UTEMPTER_TRUE
714 USE_SLANG_FALSE
715 USE_SLANG_TRUE
716 HAVE_TINFO_FALSE
717 HAVE_TINFO_TRUE
718 NCURSES_LIBS
719 HAVE_NCURSES_FALSE
720 HAVE_NCURSES_TRUE
721 POSUB
722 LTLIBINTL
723 LIBINTL
724 INTLLIBS
725 LTLIBICONV
726 LIBICONV
727 MSGMERGE
728 XGETTEXT
729 GMSGFMT
730 MSGFMT
731 USE_NLS
732 MKINSTALLDIRS
733 HAVE_TERMCAP_FALSE
734 HAVE_TERMCAP_TRUE
735 HAVE_UTIL_FALSE
736 HAVE_UTIL_TRUE
737 BUILD_MOUNTPOINT_FALSE
738 BUILD_MOUNTPOINT_TRUE
739 BUILD_LIBMOUNT_MOUNT_FALSE
740 BUILD_LIBMOUNT_MOUNT_TRUE
741 BUILD_LIBMOUNT_FALSE
742 BUILD_LIBMOUNT_TRUE
743 LIBMOUNT_VERSION_INFO
744 LIBMOUNT_VERSION
745 BUILD_LIBBLKID_FALSE
746 BUILD_LIBBLKID_TRUE
747 LIBBLKID_VERSION_INFO
748 LIBBLKID_VERSION
749 LIBBLKID_DATE
750 BUILD_UUIDD_FALSE
751 BUILD_UUIDD_TRUE
752 BUILD_LIBUUID_FALSE
753 BUILD_LIBUUID_TRUE
754 LIBUUID_VERSION_INFO
755 LIBUUID_VERSION
756 BUILD_PARTX_FALSE
757 BUILD_PARTX_TRUE
758 BUILD_FSCK_FALSE
759 BUILD_FSCK_TRUE
760 BUILD_MOUNT_FALSE
761 BUILD_MOUNT_TRUE
762 HAVE_STATIC_BLKID_FALSE
763 HAVE_STATIC_BLKID_TRUE
764 HAVE_STATIC_SFDISK_FALSE
765 HAVE_STATIC_SFDISK_TRUE
766 HAVE_STATIC_FDISK_FALSE
767 HAVE_STATIC_FDISK_TRUE
768 HAVE_STATIC_UMOUNT_FALSE
769 HAVE_STATIC_UMOUNT_TRUE
770 HAVE_STATIC_MOUNT_FALSE
771 HAVE_STATIC_MOUNT_TRUE
772 HAVE_STATIC_LOSETUP_FALSE
773 HAVE_STATIC_LOSETUP_TRUE
774 SOCKET_LIBS
775 BUILD_HWCLOCK_FALSE
776 BUILD_HWCLOCK_TRUE
777 HAVE_LANGINFO_FALSE
778 HAVE_LANGINFO_TRUE
779 HAVE_RAW_FALSE
780 HAVE_RAW_TRUE
781 PERL
782 LINUX_FALSE
783 LINUX_TRUE
784 XSLTPROC
785 GTK_DOC_USE_LIBTOOL_FALSE
786 GTK_DOC_USE_LIBTOOL_TRUE
787 ENABLE_GTK_DOC_FALSE
788 ENABLE_GTK_DOC_TRUE
789 GTKDOC_CHECK
790 HTML_DIR
791 PKG_CONFIG_LIBDIR
792 PKG_CONFIG_PATH
793 PKG_CONFIG
794 OTOOL64
795 OTOOL
796 LIPO
797 NMEDIT
798 DSYMUTIL
799 MANIFEST_TOOL
800 RANLIB
801 ac_ct_AR
802 AR
803 DLLTOOL
804 OBJDUMP
805 LN_S
806 NM
807 ac_ct_DUMPBIN
808 DUMPBIN
809 LD
810 FGREP
811 SED
812 LIBTOOL
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 EGREP
822 GREP
823 CPP
824 am__fastdepCC_FALSE
825 am__fastdepCC_TRUE
826 CCDEPMODE
827 AMDEPBACKSLASH
828 AMDEP_FALSE
829 AMDEP_TRUE
830 am__quote
831 am__include
832 DEPDIR
833 OBJEXT
834 EXEEXT
835 ac_ct_CC
836 CPPFLAGS
837 LDFLAGS
838 CFLAGS
839 CC
840 usrlib_execdir
841 usrsbin_execdir
842 usrbin_execdir
843 libdirname
844 AM_BACKSLASH
845 AM_DEFAULT_VERBOSITY
846 am__untar
847 am__tar
848 AMTAR
849 am__leading_dot
850 SET_MAKE
851 AWK
852 mkdir_p
853 MKDIR_P
854 INSTALL_STRIP_PROGRAM
855 STRIP
856 install_sh
857 MAKEINFO
858 AUTOHEADER
859 AUTOMAKE
860 AUTOCONF
861 ACLOCAL
862 VERSION
863 PACKAGE
864 CYGPATH_W
865 am__isrc
866 INSTALL_DATA
867 INSTALL_SCRIPT
868 INSTALL_PROGRAM
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_URL
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
910 enable_silent_rules
911 enable_dependency_tracking
912 enable_shared
913 enable_static
914 with_pic
915 enable_fast_install
916 with_gnu_ld
917 with_sysroot
918 enable_libtool_lock
919 with_html_dir
920 enable_gtk_doc
921 enable_largefile
922 enable_static_programs
923 enable_tls
924 enable_mount
925 enable_fsck
926 enable_partx
927 enable_libuuid
928 enable_uuidd
929 enable_libblkid
930 enable_libmount
931 enable_libmount_mount
932 enable_mountpoint
933 enable_nls
934 enable_rpath
935 with_libiconv_prefix
936 with_libintl_prefix
937 with_ncurses
938 with_slang
939 with_utempter
940 enable_arch
941 enable_ddate
942 enable_agetty
943 enable_cramfs
944 enable_switch_root
945 enable_pivot_root
946 enable_fallocate
947 enable_unshare
948 enable_elvtune
949 enable_kill
950 enable_last
951 enable_line
952 enable_mesg
953 enable_raw
954 enable_rename
955 enable_reset
956 enable_login_utils
957 with_pam
958 with_selinux
959 with_audit
960 enable_schedutils
961 enable_wall
962 enable_write
963 enable_chsh_only_listed
964 enable_login_chown_vcs
965 enable_login_stat_mail
966 enable_pg_bell
967 enable_require_password
968 enable_fs_paths_default
969 enable_fs_paths_extra
970 enable_use_tty_group
971 enable_makeinstall_chown
972 enable_makeinstall_setuid
973 '
974       ac_precious_vars='build_alias
975 host_alias
976 target_alias
977 CC
978 CFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
982 CPP
983 PKG_CONFIG
984 PKG_CONFIG_PATH
985 PKG_CONFIG_LIBDIR
986 SUID_CFLAGS
987 SUID_LDFLAGS'
988
989
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 ac_unrecognized_opts=
994 ac_unrecognized_sep=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1011
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029 infodir='${datarootdir}/info'
1030 htmldir='${docdir}'
1031 dvidir='${docdir}'
1032 pdfdir='${docdir}'
1033 psdir='${docdir}'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1037
1038 ac_prev=
1039 ac_dashdash=
1040 for ac_option
1041 do
1042   # If the previous option needs an argument, assign it.
1043   if test -n "$ac_prev"; then
1044     eval $ac_prev=\$ac_option
1045     ac_prev=
1046     continue
1047   fi
1048
1049   case $ac_option in
1050   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051   *=)   ac_optarg= ;;
1052   *)    ac_optarg=yes ;;
1053   esac
1054
1055   # Accept the important Cygnus configure options, so we can diagnose typos.
1056
1057   case $ac_dashdash$ac_option in
1058   --)
1059     ac_dashdash=yes ;;
1060
1061   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1062     ac_prev=bindir ;;
1063   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1064     bindir=$ac_optarg ;;
1065
1066   -build | --build | --buil | --bui | --bu)
1067     ac_prev=build_alias ;;
1068   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1069     build_alias=$ac_optarg ;;
1070
1071   -cache-file | --cache-file | --cache-fil | --cache-fi \
1072   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1073     ac_prev=cache_file ;;
1074   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1075   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1076     cache_file=$ac_optarg ;;
1077
1078   --config-cache | -C)
1079     cache_file=config.cache ;;
1080
1081   -datadir | --datadir | --datadi | --datad)
1082     ac_prev=datadir ;;
1083   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1084     datadir=$ac_optarg ;;
1085
1086   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1087   | --dataroo | --dataro | --datar)
1088     ac_prev=datarootdir ;;
1089   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1090   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1091     datarootdir=$ac_optarg ;;
1092
1093   -disable-* | --disable-*)
1094     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097       as_fn_error $? "invalid feature name: $ac_useropt"
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "enable_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval enable_$ac_useropt=no ;;
1108
1109   -docdir | --docdir | --docdi | --doc | --do)
1110     ac_prev=docdir ;;
1111   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1112     docdir=$ac_optarg ;;
1113
1114   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1115     ac_prev=dvidir ;;
1116   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1117     dvidir=$ac_optarg ;;
1118
1119   -enable-* | --enable-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error $? "invalid feature name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "enable_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval enable_$ac_useropt=\$ac_optarg ;;
1134
1135   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1136   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1137   | --exec | --exe | --ex)
1138     ac_prev=exec_prefix ;;
1139   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1140   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1141   | --exec=* | --exe=* | --ex=*)
1142     exec_prefix=$ac_optarg ;;
1143
1144   -gas | --gas | --ga | --g)
1145     # Obsolete; use --with-gas.
1146     with_gas=yes ;;
1147
1148   -help | --help | --hel | --he | -h)
1149     ac_init_help=long ;;
1150   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1151     ac_init_help=recursive ;;
1152   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1153     ac_init_help=short ;;
1154
1155   -host | --host | --hos | --ho)
1156     ac_prev=host_alias ;;
1157   -host=* | --host=* | --hos=* | --ho=*)
1158     host_alias=$ac_optarg ;;
1159
1160   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1161     ac_prev=htmldir ;;
1162   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1163   | --ht=*)
1164     htmldir=$ac_optarg ;;
1165
1166   -includedir | --includedir | --includedi | --included | --include \
1167   | --includ | --inclu | --incl | --inc)
1168     ac_prev=includedir ;;
1169   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1170   | --includ=* | --inclu=* | --incl=* | --inc=*)
1171     includedir=$ac_optarg ;;
1172
1173   -infodir | --infodir | --infodi | --infod | --info | --inf)
1174     ac_prev=infodir ;;
1175   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1176     infodir=$ac_optarg ;;
1177
1178   -libdir | --libdir | --libdi | --libd)
1179     ac_prev=libdir ;;
1180   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1181     libdir=$ac_optarg ;;
1182
1183   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1184   | --libexe | --libex | --libe)
1185     ac_prev=libexecdir ;;
1186   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1187   | --libexe=* | --libex=* | --libe=*)
1188     libexecdir=$ac_optarg ;;
1189
1190   -localedir | --localedir | --localedi | --localed | --locale)
1191     ac_prev=localedir ;;
1192   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1193     localedir=$ac_optarg ;;
1194
1195   -localstatedir | --localstatedir | --localstatedi | --localstated \
1196   | --localstate | --localstat | --localsta | --localst | --locals)
1197     ac_prev=localstatedir ;;
1198   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1199   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1200     localstatedir=$ac_optarg ;;
1201
1202   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1203     ac_prev=mandir ;;
1204   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1205     mandir=$ac_optarg ;;
1206
1207   -nfp | --nfp | --nf)
1208     # Obsolete; use --without-fp.
1209     with_fp=no ;;
1210
1211   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1212   | --no-cr | --no-c | -n)
1213     no_create=yes ;;
1214
1215   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1216   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1217     no_recursion=yes ;;
1218
1219   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1220   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1221   | --oldin | --oldi | --old | --ol | --o)
1222     ac_prev=oldincludedir ;;
1223   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1224   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1225   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1226     oldincludedir=$ac_optarg ;;
1227
1228   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1229     ac_prev=prefix ;;
1230   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1231     prefix=$ac_optarg ;;
1232
1233   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1234   | --program-pre | --program-pr | --program-p)
1235     ac_prev=program_prefix ;;
1236   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1237   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1238     program_prefix=$ac_optarg ;;
1239
1240   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1241   | --program-suf | --program-su | --program-s)
1242     ac_prev=program_suffix ;;
1243   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1244   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1245     program_suffix=$ac_optarg ;;
1246
1247   -program-transform-name | --program-transform-name \
1248   | --program-transform-nam | --program-transform-na \
1249   | --program-transform-n | --program-transform- \
1250   | --program-transform | --program-transfor \
1251   | --program-transfo | --program-transf \
1252   | --program-trans | --program-tran \
1253   | --progr-tra | --program-tr | --program-t)
1254     ac_prev=program_transform_name ;;
1255   -program-transform-name=* | --program-transform-name=* \
1256   | --program-transform-nam=* | --program-transform-na=* \
1257   | --program-transform-n=* | --program-transform-=* \
1258   | --program-transform=* | --program-transfor=* \
1259   | --program-transfo=* | --program-transf=* \
1260   | --program-trans=* | --program-tran=* \
1261   | --progr-tra=* | --program-tr=* | --program-t=*)
1262     program_transform_name=$ac_optarg ;;
1263
1264   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1265     ac_prev=pdfdir ;;
1266   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1267     pdfdir=$ac_optarg ;;
1268
1269   -psdir | --psdir | --psdi | --psd | --ps)
1270     ac_prev=psdir ;;
1271   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1272     psdir=$ac_optarg ;;
1273
1274   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275   | -silent | --silent | --silen | --sile | --sil)
1276     silent=yes ;;
1277
1278   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1279     ac_prev=sbindir ;;
1280   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1281   | --sbi=* | --sb=*)
1282     sbindir=$ac_optarg ;;
1283
1284   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1285   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1286   | --sharedst | --shareds | --shared | --share | --shar \
1287   | --sha | --sh)
1288     ac_prev=sharedstatedir ;;
1289   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1290   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1291   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1292   | --sha=* | --sh=*)
1293     sharedstatedir=$ac_optarg ;;
1294
1295   -site | --site | --sit)
1296     ac_prev=site ;;
1297   -site=* | --site=* | --sit=*)
1298     site=$ac_optarg ;;
1299
1300   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1301     ac_prev=srcdir ;;
1302   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1303     srcdir=$ac_optarg ;;
1304
1305   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1306   | --syscon | --sysco | --sysc | --sys | --sy)
1307     ac_prev=sysconfdir ;;
1308   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1309   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1310     sysconfdir=$ac_optarg ;;
1311
1312   -target | --target | --targe | --targ | --tar | --ta | --t)
1313     ac_prev=target_alias ;;
1314   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1315     target_alias=$ac_optarg ;;
1316
1317   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1318     verbose=yes ;;
1319
1320   -version | --version | --versio | --versi | --vers | -V)
1321     ac_init_version=: ;;
1322
1323   -with-* | --with-*)
1324     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1325     # Reject names that are not valid shell variable names.
1326     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327       as_fn_error $? "invalid package name: $ac_useropt"
1328     ac_useropt_orig=$ac_useropt
1329     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330     case $ac_user_opts in
1331       *"
1332 "with_$ac_useropt"
1333 "*) ;;
1334       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335          ac_unrecognized_sep=', ';;
1336     esac
1337     eval with_$ac_useropt=\$ac_optarg ;;
1338
1339   -without-* | --without-*)
1340     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341     # Reject names that are not valid shell variable names.
1342     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343       as_fn_error $? "invalid package name: $ac_useropt"
1344     ac_useropt_orig=$ac_useropt
1345     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346     case $ac_user_opts in
1347       *"
1348 "with_$ac_useropt"
1349 "*) ;;
1350       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1351          ac_unrecognized_sep=', ';;
1352     esac
1353     eval with_$ac_useropt=no ;;
1354
1355   --x)
1356     # Obsolete; use --with-x.
1357     with_x=yes ;;
1358
1359   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1360   | --x-incl | --x-inc | --x-in | --x-i)
1361     ac_prev=x_includes ;;
1362   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1363   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1364     x_includes=$ac_optarg ;;
1365
1366   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1367   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1368     ac_prev=x_libraries ;;
1369   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1370   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1371     x_libraries=$ac_optarg ;;
1372
1373   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1374 Try \`$0 --help' for more information"
1375     ;;
1376
1377   *=*)
1378     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1379     # Reject names that are not valid shell variable names.
1380     case $ac_envvar in #(
1381       '' | [0-9]* | *[!_$as_cr_alnum]* )
1382       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1383     esac
1384     eval $ac_envvar=\$ac_optarg
1385     export $ac_envvar ;;
1386
1387   *)
1388     # FIXME: should be removed in autoconf 3.0.
1389     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1390     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1392     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1393     ;;
1394
1395   esac
1396 done
1397
1398 if test -n "$ac_prev"; then
1399   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1400   as_fn_error $? "missing argument to $ac_option"
1401 fi
1402
1403 if test -n "$ac_unrecognized_opts"; then
1404   case $enable_option_checking in
1405     no) ;;
1406     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1407     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1408   esac
1409 fi
1410
1411 # Check all directory arguments for consistency.
1412 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1413                 datadir sysconfdir sharedstatedir localstatedir includedir \
1414                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1415                 libdir localedir mandir
1416 do
1417   eval ac_val=\$$ac_var
1418   # Remove trailing slashes.
1419   case $ac_val in
1420     */ )
1421       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1422       eval $ac_var=\$ac_val;;
1423   esac
1424   # Be sure to have absolute directory names.
1425   case $ac_val in
1426     [\\/$]* | ?:[\\/]* )  continue;;
1427     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1428   esac
1429   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1430 done
1431
1432 # There might be people who depend on the old broken behavior: `$host'
1433 # used to hold the argument of --host etc.
1434 # FIXME: To remove some day.
1435 build=$build_alias
1436 host=$host_alias
1437 target=$target_alias
1438
1439 # FIXME: To remove some day.
1440 if test "x$host_alias" != x; then
1441   if test "x$build_alias" = x; then
1442     cross_compiling=maybe
1443     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1444     If a cross compiler is detected then cross compile mode will be used" >&2
1445   elif test "x$build_alias" != "x$host_alias"; then
1446     cross_compiling=yes
1447   fi
1448 fi
1449
1450 ac_tool_prefix=
1451 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452
1453 test "$silent" = yes && exec 6>/dev/null
1454
1455
1456 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457 ac_ls_di=`ls -di .` &&
1458 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459   as_fn_error $? "working directory cannot be determined"
1460 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1461   as_fn_error $? "pwd does not report name of working directory"
1462
1463
1464 # Find the source files, if location was not specified.
1465 if test -z "$srcdir"; then
1466   ac_srcdir_defaulted=yes
1467   # Try the directory containing this script, then the parent directory.
1468   ac_confdir=`$as_dirname -- "$as_myself" ||
1469 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470          X"$as_myself" : 'X\(//\)[^/]' \| \
1471          X"$as_myself" : 'X\(//\)$' \| \
1472          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473 $as_echo X"$as_myself" |
1474     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475             s//\1/
1476             q
1477           }
1478           /^X\(\/\/\)[^/].*/{
1479             s//\1/
1480             q
1481           }
1482           /^X\(\/\/\)$/{
1483             s//\1/
1484             q
1485           }
1486           /^X\(\/\).*/{
1487             s//\1/
1488             q
1489           }
1490           s/.*/./; q'`
1491   srcdir=$ac_confdir
1492   if test ! -r "$srcdir/$ac_unique_file"; then
1493     srcdir=..
1494   fi
1495 else
1496   ac_srcdir_defaulted=no
1497 fi
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1501 fi
1502 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503 ac_abs_confdir=`(
1504         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1505         pwd)`
1506 # When building in place, set srcdir=.
1507 if test "$ac_abs_confdir" = "$ac_pwd"; then
1508   srcdir=.
1509 fi
1510 # Remove unnecessary trailing slashes from srcdir.
1511 # Double slashes in file names in object file debugging info
1512 # mess up M-x gdb in Emacs.
1513 case $srcdir in
1514 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515 esac
1516 for ac_var in $ac_precious_vars; do
1517   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518   eval ac_env_${ac_var}_value=\$${ac_var}
1519   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1521 done
1522
1523 #
1524 # Report the --help message.
1525 #
1526 if test "$ac_init_help" = "long"; then
1527   # Omit some internal or obsolete options to make the list less imposing.
1528   # This message is too long to be a string in the A/UX 3.1 sh.
1529   cat <<_ACEOF
1530 \`configure' configures util-linux 2.20.1 to adapt to many kinds of systems.
1531
1532 Usage: $0 [OPTION]... [VAR=VALUE]...
1533
1534 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535 VAR=VALUE.  See below for descriptions of some of the useful variables.
1536
1537 Defaults for the options are specified in brackets.
1538
1539 Configuration:
1540   -h, --help              display this help and exit
1541       --help=short        display options specific to this package
1542       --help=recursive    display the short help of all the included packages
1543   -V, --version           display version information and exit
1544   -q, --quiet, --silent   do not print \`checking ...' messages
1545       --cache-file=FILE   cache test results in FILE [disabled]
1546   -C, --config-cache      alias for \`--cache-file=config.cache'
1547   -n, --no-create         do not create output files
1548       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1549
1550 Installation directories:
1551   --prefix=PREFIX         install architecture-independent files in PREFIX
1552                           [$ac_default_prefix]
1553   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1554                           [PREFIX]
1555
1556 By default, \`make install' will install all the files in
1557 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1558 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559 for instance \`--prefix=\$HOME'.
1560
1561 For better control, use the options below.
1562
1563 Fine tuning of the installation directories:
1564   --bindir=DIR            user executables [EPREFIX/bin]
1565   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1566   --libexecdir=DIR        program executables [EPREFIX/libexec]
1567   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1568   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1569   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1570   --libdir=DIR            object code libraries [EPREFIX/lib]
1571   --includedir=DIR        C header files [PREFIX/include]
1572   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1573   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1574   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1575   --infodir=DIR           info documentation [DATAROOTDIR/info]
1576   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1577   --mandir=DIR            man documentation [DATAROOTDIR/man]
1578   --docdir=DIR            documentation root [DATAROOTDIR/doc/util-linux]
1579   --htmldir=DIR           html documentation [DOCDIR]
1580   --dvidir=DIR            dvi documentation [DOCDIR]
1581   --pdfdir=DIR            pdf documentation [DOCDIR]
1582   --psdir=DIR             ps documentation [DOCDIR]
1583 _ACEOF
1584
1585   cat <<\_ACEOF
1586
1587 Program names:
1588   --program-prefix=PREFIX            prepend PREFIX to installed program names
1589   --program-suffix=SUFFIX            append SUFFIX to installed program names
1590   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1591
1592 System types:
1593   --build=BUILD     configure for building on BUILD [guessed]
1594   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1595 _ACEOF
1596 fi
1597
1598 if test -n "$ac_init_help"; then
1599   case $ac_init_help in
1600      short | recursive ) echo "Configuration of util-linux 2.20.1:";;
1601    esac
1602   cat <<\_ACEOF
1603
1604 Optional Features:
1605   --disable-option-checking  ignore unrecognized --enable/--with options
1606   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1607   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1608   --enable-silent-rules          less verbose build output (undo: `make V=1')
1609   --disable-silent-rules         verbose build output (undo: `make V=0')
1610   --disable-dependency-tracking  speeds up one-time build
1611   --enable-dependency-tracking   do not reject slow dependency extractors
1612   --enable-shared[=PKGS]  build shared libraries [default=yes]
1613   --enable-static[=PKGS]  build static libraries [default=yes]
1614   --enable-fast-install[=PKGS]
1615                           optimize for fast installation [default=yes]
1616   --disable-libtool-lock  avoid locking (might break parallel builds)
1617   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1618   --disable-largefile     omit support for large files
1619   --enable-static-programs=LIST
1620                           link static the programs in LIST (comma-separated,
1621                           supported for losetup, mount, umount, fdisk, sfdisk,
1622                           blkid)
1623   --disable-tls           disable use of thread local support
1624   --disable-mount         do not build mount utilities
1625   --disable-fsck          do not build fsck
1626   --disable-partx         do not build addpart, delpart, partx
1627   --disable-libuuid       do not build libuuid and uuid utilities
1628   --disable-uuidd         do not build the uuid daemon
1629   --disable-libblkid      do not build libblkid and blkid utilities
1630   --disable-libmount      do not build libmount
1631   --enable-libmount-mount link mount(8) with libmount (EXPERIMENTAL)
1632   --disable-mountpoint    do not build mountpoint
1633   --disable-nls           do not use Native Language Support
1634   --disable-rpath         do not hardcode runtime library paths
1635   --enable-arch           do build arch
1636   --enable-ddate          do build ddate
1637   --disable-agetty        do not build agetty
1638   --disable-cramfs        do not build fsck.cramfs, mkfs.cramfs
1639   --disable-switch_root   do not build switch_root
1640   --disable-pivot_root    do not build pivot_root
1641   --disable-fallocate     do not build fallocate
1642   --disable-unshare       do not build unshare
1643   --enable-elvtune        build elvtune (only works with 2.2 and 2.4 kernels)
1644   --enable-kill           build kill
1645   --enable-last           build last
1646   --enable-line           build line
1647   --enable-mesg           build mesg
1648   --enable-raw            build raw
1649   --disable-rename        do not build rename
1650   --enable-reset          build reset
1651   --enable-login-utils    build chfn, chsh, login, newgrp, vipw
1652   --disable-schedutils    do not build chrt, ionice, teskset
1653   --disable-wall          do not build wall
1654   --enable-write          build write
1655   --disable-chsh-only-listed
1656                           chsh: allow shells not in /etc/shells
1657   --enable-login-chown-vcs
1658                           let login chown /dev/vcsN
1659   --enable-login-stat-mail
1660                           let login stat() the mailbox
1661   --disable-pg-bell       let pg not ring the bell on invalid keys
1662   --disable-require-password
1663                           do not require the user to enter the password in
1664                           chfn and chsh
1665   --enable-fs-paths-default=paths
1666                           default search path for fs helpers
1667                           [/sbin:/sbin/fs.d:/sbin/fs]
1668   --enable-fs-paths-extra=paths
1669                           additional search paths for fs helpers
1670   --disable-use-tty-group do not install wall and write setgid tty
1671   --disable-makeinstall-chown
1672                           do not do chown-like operations during "make
1673                           install"
1674   --disable-makeinstall-setuid
1675                           do not do setuid chmod operations during "make
1676                           install"
1677
1678 Optional Packages:
1679   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1681   --with-pic              try to use only PIC/non-PIC objects [default=use
1682                           both]
1683   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1684   --with-sysroot=DIR Search for dependent libraries within DIR
1685                         (or the compiler's sysroot if not specified).
1686   --with-html-dir=PATH    path to installed docs
1687   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1688   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1689   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1690   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1691   --without-libintl-prefix     don't search for libintl in includedir and libdir
1692   --with-ncurses          build with non-wide ncurses, default is wide version
1693                           (--without-ncurses disables all ncurses(w) support)
1694   --with-slang            compile cfdisk with slang
1695   --with-utempter         compile script(1) with libutempter
1696   --without-pam           compile login-utils without PAM support
1697   --with-selinux          compile with SELinux support
1698   --with-audit            compile with audit support
1699
1700 Some influential environment variables:
1701   CC          C compiler command
1702   CFLAGS      C compiler flags
1703   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1704               nonstandard directory <lib dir>
1705   LIBS        libraries to pass to the linker, e.g. -l<library>
1706   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1707               you have headers in a nonstandard directory <include dir>
1708   CPP         C preprocessor
1709   PKG_CONFIG  path to pkg-config utility
1710   PKG_CONFIG_PATH
1711               directories to add to pkg-config's search path
1712   PKG_CONFIG_LIBDIR
1713               path overriding pkg-config's built-in search path
1714   SUID_CFLAGS CFLAGS used for binaries which are usually with the suid bit
1715   SUID_LDFLAGS
1716               LDFLAGS used for binaries which are usually with the suid bit
1717
1718 Use these variables to override the choices made by `configure' or to help
1719 it to find libraries and programs with nonstandard names/locations.
1720
1721 Report bugs to <kzak@redhat.com>.
1722 _ACEOF
1723 ac_status=$?
1724 fi
1725
1726 if test "$ac_init_help" = "recursive"; then
1727   # If there are subdirs, report their specific --help.
1728   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729     test -d "$ac_dir" ||
1730       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731       continue
1732     ac_builddir=.
1733
1734 case "$ac_dir" in
1735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736 *)
1737   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738   # A ".." for each directory in $ac_dir_suffix.
1739   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740   case $ac_top_builddir_sub in
1741   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743   esac ;;
1744 esac
1745 ac_abs_top_builddir=$ac_pwd
1746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir=$ac_top_build_prefix
1749
1750 case $srcdir in
1751   .)  # We are building in place.
1752     ac_srcdir=.
1753     ac_top_srcdir=$ac_top_builddir_sub
1754     ac_abs_top_srcdir=$ac_pwd ;;
1755   [\\/]* | ?:[\\/]* )  # Absolute name.
1756     ac_srcdir=$srcdir$ac_dir_suffix;
1757     ac_top_srcdir=$srcdir
1758     ac_abs_top_srcdir=$srcdir ;;
1759   *) # Relative name.
1760     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761     ac_top_srcdir=$ac_top_build_prefix$srcdir
1762     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763 esac
1764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765
1766     cd "$ac_dir" || { ac_status=$?; continue; }
1767     # Check for guested configure.
1768     if test -f "$ac_srcdir/configure.gnu"; then
1769       echo &&
1770       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771     elif test -f "$ac_srcdir/configure"; then
1772       echo &&
1773       $SHELL "$ac_srcdir/configure" --help=recursive
1774     else
1775       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776     fi || ac_status=$?
1777     cd "$ac_pwd" || { ac_status=$?; break; }
1778   done
1779 fi
1780
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1783   cat <<\_ACEOF
1784 util-linux configure 2.20.1
1785 generated by GNU Autoconf 2.68
1786
1787 Copyright (C) 2010 Free Software Foundation, Inc.
1788 This configure script is free software; the Free Software Foundation
1789 gives unlimited permission to copy, distribute and modify it.
1790 _ACEOF
1791   exit
1792 fi
1793
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1797
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   rm -f conftest.$ac_objext
1805   if { { ac_try="$ac_compile"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_compile") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && {
1821          test -z "$ac_c_werror_flag" ||
1822          test ! -s conftest.err
1823        } && test -s conftest.$ac_objext; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829         ac_retval=1
1830 fi
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832   as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_compile
1835
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_cpp ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 case "(($ac_try" in
1844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845   *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850   ac_status=$?
1851   if test -s conftest.err; then
1852     grep -v '^ *+' conftest.err >conftest.er1
1853     cat conftest.er1 >&5
1854     mv -f conftest.er1 conftest.err
1855   fi
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; } > conftest.i && {
1858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859          test ! -s conftest.err
1860        }; then :
1861   ac_retval=0
1862 else
1863   $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866     ac_retval=1
1867 fi
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869   as_fn_set_status $ac_retval
1870
1871 } # ac_fn_c_try_cpp
1872
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1877 # accordingly.
1878 ac_fn_c_check_header_mongrel ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   if eval \${$3+:} false; then :
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885   $as_echo_n "(cached) " >&6
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 else
1891   # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 $4
1897 #include <$2>
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900   ac_header_compiler=yes
1901 else
1902   ac_header_compiler=no
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1907
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_cpp "$LINENO"; then :
1916   ac_header_preproc=yes
1917 else
1918   ac_header_preproc=no
1919 fi
1920 rm -f conftest.err conftest.i conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1923
1924 # So?  What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926   yes:no: )
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931     ;;
1932   no:yes:* )
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ( $as_echo "## ------------------------------ ##
1944 ## Report this to kzak@redhat.com ##
1945 ## ------------------------------ ##"
1946      ) | sed "s/^/$as_me: WARNING:     /" >&2
1947     ;;
1948 esac
1949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952   $as_echo_n "(cached) " >&6
1953 else
1954   eval "$3=\$ac_header_compiler"
1955 fi
1956 eval ac_res=\$$3
1957                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 fi
1960   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_check_header_mongrel
1963
1964 # ac_fn_c_try_run LINENO
1965 # ----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1967 # that executables *can* be run.
1968 ac_fn_c_try_run ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   if { { ac_try="$ac_link"
1972 case "(($ac_try" in
1973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974   *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978   (eval "$ac_link") 2>&5
1979   ac_status=$?
1980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1982   { { case "(($ac_try" in
1983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984   *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988   (eval "$ac_try") 2>&5
1989   ac_status=$?
1990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991   test $ac_status = 0; }; }; then :
1992   ac_retval=0
1993 else
1994   $as_echo "$as_me: program exited with status $ac_status" >&5
1995        $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998        ac_retval=$ac_status
1999 fi
2000   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002   as_fn_set_status $ac_retval
2003
2004 } # ac_fn_c_try_run
2005
2006 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists and can be compiled using the include files in
2009 # INCLUDES, setting the cache variable VAR accordingly.
2010 ac_fn_c_check_header_compile ()
2011 {
2012   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016   $as_echo_n "(cached) " >&6
2017 else
2018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $4
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   eval "$3=yes"
2025 else
2026   eval "$3=no"
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034
2035 } # ac_fn_c_check_header_compile
2036
2037 # ac_fn_c_try_link LINENO
2038 # -----------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded.
2040 ac_fn_c_try_link ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   rm -f conftest.$ac_objext conftest$ac_exeext
2044   if { { ac_try="$ac_link"
2045 case "(($ac_try" in
2046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047   *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051   (eval "$ac_link") 2>conftest.err
2052   ac_status=$?
2053   if test -s conftest.err; then
2054     grep -v '^ *+' conftest.err >conftest.er1
2055     cat conftest.er1 >&5
2056     mv -f conftest.er1 conftest.err
2057   fi
2058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059   test $ac_status = 0; } && {
2060          test -z "$ac_c_werror_flag" ||
2061          test ! -s conftest.err
2062        } && test -s conftest$ac_exeext && {
2063          test "$cross_compiling" = yes ||
2064          $as_test_x conftest$ac_exeext
2065        }; then :
2066   ac_retval=0
2067 else
2068   $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071         ac_retval=1
2072 fi
2073   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2074   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2075   # interfere with the next link command; also delete a directory that is
2076   # left behind by Apple's compiler.  We do this before executing the actions.
2077   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079   as_fn_set_status $ac_retval
2080
2081 } # ac_fn_c_try_link
2082
2083 # ac_fn_c_check_func LINENO FUNC VAR
2084 # ----------------------------------
2085 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2086 ac_fn_c_check_func ()
2087 {
2088   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092   $as_echo_n "(cached) " >&6
2093 else
2094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2098 #define $2 innocuous_$2
2099
2100 /* System header to define __stub macros and hopefully few prototypes,
2101     which can conflict with char $2 (); below.
2102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2103     <limits.h> exists even on freestanding compilers.  */
2104
2105 #ifdef __STDC__
2106 # include <limits.h>
2107 #else
2108 # include <assert.h>
2109 #endif
2110
2111 #undef $2
2112
2113 /* Override any GCC internal prototype to avoid an error.
2114    Use char because int might match the return type of a GCC
2115    builtin and then its argument prototype would still apply.  */
2116 #ifdef __cplusplus
2117 extern "C"
2118 #endif
2119 char $2 ();
2120 /* The GNU C library defines this for functions which it implements
2121     to always fail with ENOSYS.  Some functions are actually named
2122     something starting with __ and the normal name is an alias.  */
2123 #if defined __stub_$2 || defined __stub___$2
2124 choke me
2125 #endif
2126
2127 int
2128 main ()
2129 {
2130 return $2 ();
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_link "$LINENO"; then :
2136   eval "$3=yes"
2137 else
2138   eval "$3=no"
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext \
2141     conftest$ac_exeext conftest.$ac_ext
2142 fi
2143 eval ac_res=\$$3
2144                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147
2148 } # ac_fn_c_check_func
2149
2150 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2151 # ---------------------------------------------
2152 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2153 # accordingly.
2154 ac_fn_c_check_decl ()
2155 {
2156   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157   as_decl_name=`echo $2|sed 's/ *(.*//'`
2158   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2160 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2161 if eval \${$3+:} false; then :
2162   $as_echo_n "(cached) " >&6
2163 else
2164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h.  */
2166 $4
2167 int
2168 main ()
2169 {
2170 #ifndef $as_decl_name
2171 #ifdef __cplusplus
2172   (void) $as_decl_use;
2173 #else
2174   (void) $as_decl_name;
2175 #endif
2176 #endif
2177
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183   eval "$3=yes"
2184 else
2185   eval "$3=no"
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 fi
2189 eval ac_res=\$$3
2190                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193
2194 } # ac_fn_c_check_decl
2195
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2201 {
2202   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if eval \${$4+:} false; then :
2206   $as_echo_n "(cached) " >&6
2207 else
2208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 $5
2211 int
2212 main ()
2213 {
2214 static $2 ac_aggr;
2215 if (ac_aggr.$3)
2216 return 0;
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222   eval "$4=yes"
2223 else
2224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $5
2227 int
2228 main ()
2229 {
2230 static $2 ac_aggr;
2231 if (sizeof ac_aggr.$3)
2232 return 0;
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   eval "$4=yes"
2239 else
2240   eval "$4=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$4
2247                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251 } # ac_fn_c_check_member
2252
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2258 {
2259   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   eval "$3=no"
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof ($2))
2273          return 0;
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 if (sizeof (($2)))
2286             return 0;
2287   ;
2288   return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292
2293 else
2294   eval "$3=yes"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304
2305 } # ac_fn_c_check_type
2306 cat >config.log <<_ACEOF
2307 This file contains any messages produced by compilers while
2308 running configure, to aid debugging if configure makes a mistake.
2309
2310 It was created by util-linux $as_me 2.20.1, which was
2311 generated by GNU Autoconf 2.68.  Invocation command line was
2312
2313   $ $0 $@
2314
2315 _ACEOF
2316 exec 5>>config.log
2317 {
2318 cat <<_ASUNAME
2319 ## --------- ##
2320 ## Platform. ##
2321 ## --------- ##
2322
2323 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2324 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2325 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2326 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2327 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2328
2329 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2330 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2331
2332 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2333 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2334 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2335 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2336 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2337 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2338 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2339
2340 _ASUNAME
2341
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347     $as_echo "PATH: $as_dir"
2348   done
2349 IFS=$as_save_IFS
2350
2351 } >&5
2352
2353 cat >&5 <<_ACEOF
2354
2355
2356 ## ----------- ##
2357 ## Core tests. ##
2358 ## ----------- ##
2359
2360 _ACEOF
2361
2362
2363 # Keep a trace of the command line.
2364 # Strip out --no-create and --no-recursion so they do not pile up.
2365 # Strip out --silent because we don't want to record it for future runs.
2366 # Also quote any args containing shell meta-characters.
2367 # Make two passes to allow for proper duplicate-argument suppression.
2368 ac_configure_args=
2369 ac_configure_args0=
2370 ac_configure_args1=
2371 ac_must_keep_next=false
2372 for ac_pass in 1 2
2373 do
2374   for ac_arg
2375   do
2376     case $ac_arg in
2377     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2378     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2379     | -silent | --silent | --silen | --sile | --sil)
2380       continue ;;
2381     *\'*)
2382       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2383     esac
2384     case $ac_pass in
2385     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2386     2)
2387       as_fn_append ac_configure_args1 " '$ac_arg'"
2388       if test $ac_must_keep_next = true; then
2389         ac_must_keep_next=false # Got value, back to normal.
2390       else
2391         case $ac_arg in
2392           *=* | --config-cache | -C | -disable-* | --disable-* \
2393           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2394           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2395           | -with-* | --with-* | -without-* | --without-* | --x)
2396             case "$ac_configure_args0 " in
2397               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2398             esac
2399             ;;
2400           -* ) ac_must_keep_next=true ;;
2401         esac
2402       fi
2403       as_fn_append ac_configure_args " '$ac_arg'"
2404       ;;
2405     esac
2406   done
2407 done
2408 { ac_configure_args0=; unset ac_configure_args0;}
2409 { ac_configure_args1=; unset ac_configure_args1;}
2410
2411 # When interrupted or exit'd, cleanup temporary files, and complete
2412 # config.log.  We remove comments because anyway the quotes in there
2413 # would cause problems or look ugly.
2414 # WARNING: Use '\'' to represent an apostrophe within the trap.
2415 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2416 trap 'exit_status=$?
2417   # Save into config.log some information that might help in debugging.
2418   {
2419     echo
2420
2421     $as_echo "## ---------------- ##
2422 ## Cache variables. ##
2423 ## ---------------- ##"
2424     echo
2425     # The following way of writing the cache mishandles newlines in values,
2426 (
2427   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2428     eval ac_val=\$$ac_var
2429     case $ac_val in #(
2430     *${as_nl}*)
2431       case $ac_var in #(
2432       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2433 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2434       esac
2435       case $ac_var in #(
2436       _ | IFS | as_nl) ;; #(
2437       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2438       *) { eval $ac_var=; unset $ac_var;} ;;
2439       esac ;;
2440     esac
2441   done
2442   (set) 2>&1 |
2443     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2444     *${as_nl}ac_space=\ *)
2445       sed -n \
2446         "s/'\''/'\''\\\\'\'''\''/g;
2447           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2448       ;; #(
2449     *)
2450       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2451       ;;
2452     esac |
2453     sort
2454 )
2455     echo
2456
2457     $as_echo "## ----------------- ##
2458 ## Output variables. ##
2459 ## ----------------- ##"
2460     echo
2461     for ac_var in $ac_subst_vars
2462     do
2463       eval ac_val=\$$ac_var
2464       case $ac_val in
2465       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466       esac
2467       $as_echo "$ac_var='\''$ac_val'\''"
2468     done | sort
2469     echo
2470
2471     if test -n "$ac_subst_files"; then
2472       $as_echo "## ------------------- ##
2473 ## File substitutions. ##
2474 ## ------------------- ##"
2475       echo
2476       for ac_var in $ac_subst_files
2477       do
2478         eval ac_val=\$$ac_var
2479         case $ac_val in
2480         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481         esac
2482         $as_echo "$ac_var='\''$ac_val'\''"
2483       done | sort
2484       echo
2485     fi
2486
2487     if test -s confdefs.h; then
2488       $as_echo "## ----------- ##
2489 ## confdefs.h. ##
2490 ## ----------- ##"
2491       echo
2492       cat confdefs.h
2493       echo
2494     fi
2495     test "$ac_signal" != 0 &&
2496       $as_echo "$as_me: caught signal $ac_signal"
2497     $as_echo "$as_me: exit $exit_status"
2498   } >&5
2499   rm -f core *.core core.conftest.* &&
2500     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2501     exit $exit_status
2502 ' 0
2503 for ac_signal in 1 2 13 15; do
2504   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2505 done
2506 ac_signal=0
2507
2508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2509 rm -f -r conftest* confdefs.h
2510
2511 $as_echo "/* confdefs.h */" > confdefs.h
2512
2513 # Predefined preprocessor variables.
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_NAME "$PACKAGE_NAME"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_STRING "$PACKAGE_STRING"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_URL "$PACKAGE_URL"
2537 _ACEOF
2538
2539
2540 # Let the site file select an alternate cache file if it wants to.
2541 # Prefer an explicitly selected file to automatically selected ones.
2542 ac_site_file1=NONE
2543 ac_site_file2=NONE
2544 if test -n "$CONFIG_SITE"; then
2545   # We do not want a PATH search for config.site.
2546   case $CONFIG_SITE in #((
2547     -*)  ac_site_file1=./$CONFIG_SITE;;
2548     */*) ac_site_file1=$CONFIG_SITE;;
2549     *)   ac_site_file1=./$CONFIG_SITE;;
2550   esac
2551 elif test "x$prefix" != xNONE; then
2552   ac_site_file1=$prefix/share/config.site
2553   ac_site_file2=$prefix/etc/config.site
2554 else
2555   ac_site_file1=$ac_default_prefix/share/config.site
2556   ac_site_file2=$ac_default_prefix/etc/config.site
2557 fi
2558 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2559 do
2560   test "x$ac_site_file" = xNONE && continue
2561   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2562     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2563 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2564     sed 's/^/| /' "$ac_site_file" >&5
2565     . "$ac_site_file" \
2566       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 as_fn_error $? "failed to load site script $ac_site_file
2569 See \`config.log' for more details" "$LINENO" 5; }
2570   fi
2571 done
2572
2573 if test -r "$cache_file"; then
2574   # Some versions of bash will fail to source /dev/null (special files
2575   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2576   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2577     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2578 $as_echo "$as_me: loading cache $cache_file" >&6;}
2579     case $cache_file in
2580       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2581       *)                      . "./$cache_file";;
2582     esac
2583   fi
2584 else
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2586 $as_echo "$as_me: creating cache $cache_file" >&6;}
2587   >$cache_file
2588 fi
2589
2590 # Check that the precious variables saved in the cache have kept the same
2591 # value.
2592 ac_cache_corrupted=false
2593 for ac_var in $ac_precious_vars; do
2594   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595   eval ac_new_set=\$ac_env_${ac_var}_set
2596   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597   eval ac_new_val=\$ac_env_${ac_var}_value
2598   case $ac_old_set,$ac_new_set in
2599     set,)
2600       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602       ac_cache_corrupted=: ;;
2603     ,set)
2604       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606       ac_cache_corrupted=: ;;
2607     ,);;
2608     *)
2609       if test "x$ac_old_val" != "x$ac_new_val"; then
2610         # differences in whitespace do not lead to failure.
2611         ac_old_val_w=`echo x $ac_old_val`
2612         ac_new_val_w=`echo x $ac_new_val`
2613         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616           ac_cache_corrupted=:
2617         else
2618           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620           eval $ac_var=\$ac_old_val
2621         fi
2622         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2623 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2624         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2625 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2626       fi;;
2627   esac
2628   # Pass precious variables to config.status.
2629   if test "$ac_new_set" = set; then
2630     case $ac_new_val in
2631     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632     *) ac_arg=$ac_var=$ac_new_val ;;
2633     esac
2634     case " $ac_configure_args " in
2635       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2636       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637     esac
2638   fi
2639 done
2640 if $ac_cache_corrupted; then
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2646 fi
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657
2658
2659
2660
2661 ac_aux_dir=
2662 for ac_dir in config "$srcdir"/config; do
2663   if test -f "$ac_dir/install-sh"; then
2664     ac_aux_dir=$ac_dir
2665     ac_install_sh="$ac_aux_dir/install-sh -c"
2666     break
2667   elif test -f "$ac_dir/install.sh"; then
2668     ac_aux_dir=$ac_dir
2669     ac_install_sh="$ac_aux_dir/install.sh -c"
2670     break
2671   elif test -f "$ac_dir/shtool"; then
2672     ac_aux_dir=$ac_dir
2673     ac_install_sh="$ac_aux_dir/shtool install -c"
2674     break
2675   fi
2676 done
2677 if test -z "$ac_aux_dir"; then
2678   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2679 fi
2680
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2686 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2687 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2688
2689
2690
2691
2692 am__api_version='1.11'
2693
2694 # Find a good install program.  We prefer a C program (faster),
2695 # so one script is as good as another.  But avoid the broken or
2696 # incompatible versions:
2697 # SysV /etc/install, /usr/sbin/install
2698 # SunOS /usr/etc/install
2699 # IRIX /sbin/install
2700 # AIX /bin/install
2701 # AmigaOS /C/install, which installs bootblocks on floppy discs
2702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2705 # OS/2's system install, which has a completely different semantic
2706 # ./install, which can be erroneously created by make from ./install.sh.
2707 # Reject install programs that cannot install multiple files.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2709 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2710 if test -z "$INSTALL"; then
2711 if ${ac_cv_path_install+:} false; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     # Account for people who put trailing slashes in PATH elements.
2720 case $as_dir/ in #((
2721   ./ | .// | /[cC]/* | \
2722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2723   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2724   /usr/ucb/* ) ;;
2725   *)
2726     # OSF1 and SCO ODT 3.0 have their own names for install.
2727     # Don't use installbsd from OSF since it installs stuff as root
2728     # by default.
2729     for ac_prog in ginstall scoinst install; do
2730       for ac_exec_ext in '' $ac_executable_extensions; do
2731         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2732           if test $ac_prog = install &&
2733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734             # AIX install.  It has an incompatible calling convention.
2735             :
2736           elif test $ac_prog = install &&
2737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738             # program-specific install script used by HP pwplus--don't use.
2739             :
2740           else
2741             rm -rf conftest.one conftest.two conftest.dir
2742             echo one > conftest.one
2743             echo two > conftest.two
2744             mkdir conftest.dir
2745             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2746               test -s conftest.one && test -s conftest.two &&
2747               test -s conftest.dir/conftest.one &&
2748               test -s conftest.dir/conftest.two
2749             then
2750               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2751               break 3
2752             fi
2753           fi
2754         fi
2755       done
2756     done
2757     ;;
2758 esac
2759
2760   done
2761 IFS=$as_save_IFS
2762
2763 rm -rf conftest.one conftest.two conftest.dir
2764
2765 fi
2766   if test "${ac_cv_path_install+set}" = set; then
2767     INSTALL=$ac_cv_path_install
2768   else
2769     # As a last resort, use the slow shell script.  Don't cache a
2770     # value for INSTALL within a source directory, because that will
2771     # break other packages using the cache if that directory is
2772     # removed, or if the value is a relative name.
2773     INSTALL=$ac_install_sh
2774   fi
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777 $as_echo "$INSTALL" >&6; }
2778
2779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780 # It thinks the first close brace ends the variable substitution.
2781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782
2783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784
2785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2788 $as_echo_n "checking whether build environment is sane... " >&6; }
2789 # Just in case
2790 sleep 1
2791 echo timestamp > conftest.file
2792 # Reject unsafe characters in $srcdir or the absolute working directory
2793 # name.  Accept space and tab only in the latter.
2794 am_lf='
2795 '
2796 case `pwd` in
2797   *[\\\"\#\$\&\'\`$am_lf]*)
2798     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2799 esac
2800 case $srcdir in
2801   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2802     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2803 esac
2804
2805 # Do `set' in a subshell so we don't clobber the current shell's
2806 # arguments.  Must try -L first in case configure is actually a
2807 # symlink; some systems play weird games with the mod time of symlinks
2808 # (eg FreeBSD returns the mod time of the symlink's containing
2809 # directory).
2810 if (
2811    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2812    if test "$*" = "X"; then
2813       # -L didn't work.
2814       set X `ls -t "$srcdir/configure" conftest.file`
2815    fi
2816    rm -f conftest.file
2817    if test "$*" != "X $srcdir/configure conftest.file" \
2818       && test "$*" != "X conftest.file $srcdir/configure"; then
2819
2820       # If neither matched, then we have a broken ls.  This can happen
2821       # if, for instance, CONFIG_SHELL is bash and it inherits a
2822       # broken ls alias from the environment.  This has actually
2823       # happened.  Such a system could not be considered "sane".
2824       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2825 alias in your environment" "$LINENO" 5
2826    fi
2827
2828    test "$2" = conftest.file
2829    )
2830 then
2831    # Ok.
2832    :
2833 else
2834    as_fn_error $? "newly created file is older than distributed files!
2835 Check your system clock" "$LINENO" 5
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 test "$program_prefix" != NONE &&
2840   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2841 # Use a double $ so make ignores it.
2842 test "$program_suffix" != NONE &&
2843   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2844 # Double any \ or $.
2845 # By default was `s,x,x', remove it if useless.
2846 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2847 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2848
2849 # expand $ac_aux_dir to an absolute path
2850 am_aux_dir=`cd $ac_aux_dir && pwd`
2851
2852 if test x"${MISSING+set}" != xset; then
2853   case $am_aux_dir in
2854   *\ * | *\     *)
2855     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2856   *)
2857     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2858   esac
2859 fi
2860 # Use eval to expand $SHELL
2861 if eval "$MISSING --run true"; then
2862   am_missing_run="$MISSING --run "
2863 else
2864   am_missing_run=
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2866 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2867 fi
2868
2869 if test x"${install_sh}" != xset; then
2870   case $am_aux_dir in
2871   *\ * | *\     *)
2872     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2873   *)
2874     install_sh="\${SHELL} $am_aux_dir/install-sh"
2875   esac
2876 fi
2877
2878 # Installed binaries are usually stripped using `strip' when the user
2879 # run `make install-strip'.  However `strip' might not be the right
2880 # tool to use in cross-compilation environments, therefore Automake
2881 # will honor the `STRIP' environment variable to overrule this program.
2882 if test "$cross_compiling" != no; then
2883   if test -n "$ac_tool_prefix"; then
2884   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}strip; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_STRIP+:} false; then :
2889   $as_echo_n "(cached) " >&6
2890 else
2891   if test -n "$STRIP"; then
2892   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899     for ac_exec_ext in '' $ac_executable_extensions; do
2900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906   done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 STRIP=$ac_cv_prog_STRIP
2912 if test -n "$STRIP"; then
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2914 $as_echo "$STRIP" >&6; }
2915 else
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 fi
2922 if test -z "$ac_cv_prog_STRIP"; then
2923   ac_ct_STRIP=$STRIP
2924   # Extract the first word of "strip", so it can be a program name with args.
2925 set dummy strip; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test -n "$ac_ct_STRIP"; then
2932   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939     for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_STRIP="strip"
2942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946   done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2952 if test -n "$ac_ct_STRIP"; then
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2954 $as_echo "$ac_ct_STRIP" >&6; }
2955 else
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960   if test "x$ac_ct_STRIP" = x; then
2961     STRIP=":"
2962   else
2963     case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969     STRIP=$ac_ct_STRIP
2970   fi
2971 else
2972   STRIP="$ac_cv_prog_STRIP"
2973 fi
2974
2975 fi
2976 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2980 if test -z "$MKDIR_P"; then
2981   if ${ac_cv_path_mkdir+:} false; then :
2982   $as_echo_n "(cached) " >&6
2983 else
2984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989     for ac_prog in mkdir gmkdir; do
2990          for ac_exec_ext in '' $ac_executable_extensions; do
2991            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2992            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2993              'mkdir (GNU coreutils) '* | \
2994              'mkdir (coreutils) '* | \
2995              'mkdir (fileutils) '4.1*)
2996                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2997                break 3;;
2998            esac
2999          done
3000        done
3001   done
3002 IFS=$as_save_IFS
3003
3004 fi
3005
3006   test -d ./--version && rmdir ./--version
3007   if test "${ac_cv_path_mkdir+set}" = set; then
3008     MKDIR_P="$ac_cv_path_mkdir -p"
3009   else
3010     # As a last resort, use the slow shell script.  Don't cache a
3011     # value for MKDIR_P within a source directory, because that will
3012     # break other packages using the cache if that directory is
3013     # removed, or if the value is a relative name.
3014     MKDIR_P="$ac_install_sh -d"
3015   fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3018 $as_echo "$MKDIR_P" >&6; }
3019
3020 mkdir_p="$MKDIR_P"
3021 case $mkdir_p in
3022   [\\/$]* | ?:[\\/]*) ;;
3023   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3024 esac
3025
3026 for ac_prog in gawk mawk nawk awk
3027 do
3028   # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_AWK+:} false; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   if test -n "$AWK"; then
3036   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043     for ac_exec_ext in '' $ac_executable_extensions; do
3044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045     ac_cv_prog_AWK="$ac_prog"
3046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050   done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 AWK=$ac_cv_prog_AWK
3056 if test -n "$AWK"; then
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3058 $as_echo "$AWK" >&6; }
3059 else
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065   test -n "$AWK" && break
3066 done
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3069 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3070 set x ${MAKE-make}
3071 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3072 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3073   $as_echo_n "(cached) " >&6
3074 else
3075   cat >conftest.make <<\_ACEOF
3076 SHELL = /bin/sh
3077 all:
3078         @echo '@@@%%%=$(MAKE)=@@@%%%'
3079 _ACEOF
3080 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3081 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3082   *@@@%%%=?*=@@@%%%*)
3083     eval ac_cv_prog_make_${ac_make}_set=yes;;
3084   *)
3085     eval ac_cv_prog_make_${ac_make}_set=no;;
3086 esac
3087 rm -f conftest.make
3088 fi
3089 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092   SET_MAKE=
3093 else
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096   SET_MAKE="MAKE=${MAKE-make}"
3097 fi
3098
3099 rm -rf .tst 2>/dev/null
3100 mkdir .tst 2>/dev/null
3101 if test -d .tst; then
3102   am__leading_dot=.
3103 else
3104   am__leading_dot=_
3105 fi
3106 rmdir .tst 2>/dev/null
3107
3108 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3109   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3110   # is not polluted with repeated "-I."
3111   am__isrc=' -I$(srcdir)'
3112   # test to see if srcdir already configured
3113   if test -f $srcdir/config.status; then
3114     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3115   fi
3116 fi
3117
3118 # test whether we have cygpath
3119 if test -z "$CYGPATH_W"; then
3120   if (cygpath --version) >/dev/null 2>/dev/null; then
3121     CYGPATH_W='cygpath -w'
3122   else
3123     CYGPATH_W=echo
3124   fi
3125 fi
3126
3127
3128 # Define the identity of the package.
3129  PACKAGE='util-linux'
3130  VERSION='2.20.1'
3131
3132
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE "$PACKAGE"
3135 _ACEOF
3136
3137
3138 cat >>confdefs.h <<_ACEOF
3139 #define VERSION "$VERSION"
3140 _ACEOF
3141
3142 # Some tools Automake needs.
3143
3144 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3145
3146
3147 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3148
3149
3150 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3151
3152
3153 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3154
3155
3156 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3157
3158 # We need awk for the "check" target.  The system "awk" is bad on
3159 # some platforms.
3160 # Always define AMTAR for backward compatibility.
3161
3162 AMTAR=${AMTAR-"${am_missing_run}tar"}
3163
3164 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3165
3166
3167
3168
3169
3170
3171 # Check whether --enable-silent-rules was given.
3172 if test "${enable_silent_rules+set}" = set; then :
3173   enableval=$enable_silent_rules;
3174 fi
3175
3176 case $enable_silent_rules in
3177 yes) AM_DEFAULT_VERBOSITY=0;;
3178 no)  AM_DEFAULT_VERBOSITY=1;;
3179 *)   AM_DEFAULT_VERBOSITY=0;;
3180 esac
3181 AM_BACKSLASH='\'
3182
3183
3184
3185
3186
3187
3188 PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
3189 PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
3190                                               | awk -F- '{print $1}')
3191 PACKAGE_VERSION_RELEASE=0
3192
3193 LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
3194 LIBBLKID_DATE="19-Oct-2011"
3195 LIBBLKID_LT_MAJOR=1
3196 LIBBLKID_LT_MINOR=1
3197 LIBBLKID_LT_MICRO=0
3198 LIBBLKID_VERSION_INFO=`expr $LIBBLKID_LT_MAJOR + $LIBBLKID_LT_MINOR`:$LIBBLKID_LT_MICRO:$LIBBLKID_LT_MINOR
3199
3200 LIBUUID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
3201 LIBUUID_LT_MAJOR=1
3202 LIBUUID_LT_MINOR=3
3203 LIBUUID_LT_MICRO=0
3204 LIBUUID_VERSION_INFO=`expr $LIBUUID_LT_MAJOR + $LIBUUID_LT_MINOR`:$LIBUUID_LT_MICRO:$LIBUUID_LT_MINOR
3205
3206 LIBMOUNT_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
3207 LIBMOUNT_LT_MAJOR=1
3208 LIBMOUNT_LT_MINOR=1
3209 LIBMOUNT_LT_MICRO=0
3210 LIBMOUNT_VERSION_INFO=`expr $LIBMOUNT_LT_MAJOR + $LIBMOUNT_LT_MINOR`:$LIBMOUNT_LT_MICRO:$LIBMOUNT_LT_MINOR
3211
3212 # Check whether exec_prefix=/usr:
3213 case $exec_prefix:$prefix in
3214 NONE:NONE | NONE:/usr | /usr:*)
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: Default --exec-prefix detected." >&5
3216 $as_echo "$as_me: Default --exec-prefix detected." >&6;}
3217   case $bindir in
3218   '${exec_prefix}/bin') bindir=/bin
3219     { $as_echo "$as_me:${as_lineno-$LINENO}:   --bindir defaults to /bin" >&5
3220 $as_echo "$as_me:   --bindir defaults to /bin" >&6;} ;;
3221   esac
3222   case $sbindir in
3223   '${exec_prefix}/sbin') sbindir=/sbin
3224     { $as_echo "$as_me:${as_lineno-$LINENO}:   --sbindir defaults to /sbin" >&5
3225 $as_echo "$as_me:   --sbindir defaults to /sbin" >&6;} ;;
3226   esac
3227   case $libdir in
3228   '${exec_prefix}/lib') libdir=/lib
3229     { $as_echo "$as_me:${as_lineno-$LINENO}:   --libdir defaults to /lib" >&5
3230 $as_echo "$as_me:   --libdir defaults to /lib" >&6;} ;;
3231   esac ;;
3232 esac
3233
3234 libdirname=`basename "$libdir"`
3235
3236
3237 # The original default values of {bin,sbin,lib}dir
3238 usrbin_execdir='${exec_prefix}/bin'
3239
3240
3241 usrsbin_execdir='${exec_prefix}/sbin'
3242
3243
3244 usrlib_execdir='${exec_prefix}/'$libdirname
3245
3246
3247 DEPDIR="${am__leading_dot}deps"
3248
3249 ac_config_commands="$ac_config_commands depfiles"
3250
3251
3252 am_make=${MAKE-make}
3253 cat > confinc << 'END'
3254 am__doit:
3255         @echo this is the am__doit target
3256 .PHONY: am__doit
3257 END
3258 # If we don't find an include directive, just comment out the code.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3260 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3261 am__include="#"
3262 am__quote=
3263 _am_result=none
3264 # First try GNU make style include.
3265 echo "include confinc" > confmf
3266 # Ignore all kinds of additional output from `make'.
3267 case `$am_make -s -f confmf 2> /dev/null` in #(
3268 *the\ am__doit\ target*)
3269   am__include=include
3270   am__quote=
3271   _am_result=GNU
3272   ;;
3273 esac
3274 # Now try BSD make style include.
3275 if test "$am__include" = "#"; then
3276    echo '.include "confinc"' > confmf
3277    case `$am_make -s -f confmf 2> /dev/null` in #(
3278    *the\ am__doit\ target*)
3279      am__include=.include
3280      am__quote="\""
3281      _am_result=BSD
3282      ;;
3283    esac
3284 fi
3285
3286
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3288 $as_echo "$_am_result" >&6; }
3289 rm -f confinc confmf
3290
3291 # Check whether --enable-dependency-tracking was given.
3292 if test "${enable_dependency_tracking+set}" = set; then :
3293   enableval=$enable_dependency_tracking;
3294 fi
3295
3296 if test "x$enable_dependency_tracking" != xno; then
3297   am_depcomp="$ac_aux_dir/depcomp"
3298   AMDEPBACKSLASH='\'
3299 fi
3300  if test "x$enable_dependency_tracking" != xno; then
3301   AMDEP_TRUE=
3302   AMDEP_FALSE='#'
3303 else
3304   AMDEP_TRUE='#'
3305   AMDEP_FALSE=
3306 fi
3307
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320   $as_echo_n "(cached) " >&6
3321 else
3322   if test -n "$CC"; then
3323   ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337   done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352 fi
3353 if test -z "$ac_cv_prog_CC"; then
3354   ac_ct_CC=$CC
3355   # Extract the first word of "gcc", so it can be a program name with args.
3356 set dummy gcc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   if test -n "$ac_ct_CC"; then
3363   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368   IFS=$as_save_IFS
3369   test -z "$as_dir" && as_dir=.
3370     for ac_exec_ext in '' $ac_executable_extensions; do
3371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372     ac_cv_prog_ac_ct_CC="gcc"
3373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374     break 2
3375   fi
3376 done
3377   done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3386 else
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391   if test "x$ac_ct_CC" = x; then
3392     CC=""
3393   else
3394     case $cross_compiling:$ac_tool_warned in
3395 yes:)
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3399 esac
3400     CC=$ac_ct_CC
3401   fi
3402 else
3403   CC="$ac_cv_prog_CC"
3404 fi
3405
3406 if test -z "$CC"; then
3407           if test -n "$ac_tool_prefix"; then
3408     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}cc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$CC"; then
3416   ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425     ac_cv_prog_CC="${ac_tool_prefix}cc"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445   fi
3446 fi
3447 if test -z "$CC"; then
3448   # Extract the first word of "cc", so it can be a program name with args.
3449 set dummy cc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if test -n "$CC"; then
3456   ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458   ac_prog_rejected=no
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464     for ac_exec_ext in '' $ac_executable_extensions; do
3465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467        ac_prog_rejected=yes
3468        continue
3469      fi
3470     ac_cv_prog_CC="cc"
3471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472     break 2
3473   fi
3474 done
3475   done
3476 IFS=$as_save_IFS
3477
3478 if test $ac_prog_rejected = yes; then
3479   # We found a bogon in the path, so make sure we never use it.
3480   set dummy $ac_cv_prog_CC
3481   shift
3482   if test $# != 0; then
3483     # We chose a different compiler from the bogus one.
3484     # However, it has the same basename, so the bogon will be chosen
3485     # first if we set CC to just the basename; use the full file name.
3486     shift
3487     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3488   fi
3489 fi
3490 fi
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3496 else
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3499 fi
3500
3501
3502 fi
3503 if test -z "$CC"; then
3504   if test -n "$ac_tool_prefix"; then
3505   for ac_prog in cl.exe
3506   do
3507     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_CC+:} false; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   if test -n "$CC"; then
3515   ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522     for ac_exec_ext in '' $ac_executable_extensions; do
3523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529   done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544     test -n "$CC" && break
3545   done
3546 fi
3547 if test -z "$CC"; then
3548   ac_ct_CC=$CC
3549   for ac_prog in cl.exe
3550 do
3551   # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy $ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$ac_ct_CC"; then
3559   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568     ac_cv_prog_ac_ct_CC="$ac_prog"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588   test -n "$ac_ct_CC" && break
3589 done
3590
3591   if test "x$ac_ct_CC" = x; then
3592     CC=""
3593   else
3594     case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600     CC=$ac_ct_CC
3601   fi
3602 fi
3603
3604 fi
3605
3606
3607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "no acceptable C compiler found in \$PATH
3610 See \`config.log' for more details" "$LINENO" 5; }
3611
3612 # Provide some information about the compiler.
3613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3614 set X $ac_compile
3615 ac_compiler=$2
3616 for ac_option in --version -v -V -qversion; do
3617   { { ac_try="$ac_compiler $ac_option >&5"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3625   ac_status=$?
3626   if test -s conftest.err; then
3627     sed '10a\
3628 ... rest of stderr output deleted ...
3629          10q' conftest.err >conftest.er1
3630     cat conftest.er1 >&5
3631   fi
3632   rm -f conftest.er1 conftest.err
3633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634   test $ac_status = 0; }
3635 done
3636
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h.  */
3639
3640 int
3641 main ()
3642 {
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 ac_clean_files_save=$ac_clean_files
3649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3650 # Try to create an executable without -o first, disregard a.out.
3651 # It will help us diagnose broken compilers, and finding out an intuition
3652 # of exeext.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3654 $as_echo_n "checking whether the C compiler works... " >&6; }
3655 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3656
3657 # The possible output files:
3658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3659
3660 ac_rmfiles=
3661 for ac_file in $ac_files
3662 do
3663   case $ac_file in
3664     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3665     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3666   esac
3667 done
3668 rm -f $ac_rmfiles
3669
3670 if { { ac_try="$ac_link_default"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677   (eval "$ac_link_default") 2>&5
3678   ac_status=$?
3679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680   test $ac_status = 0; }; then :
3681   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3683 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3684 # so that the user can short-circuit this test for compilers unknown to
3685 # Autoconf.
3686 for ac_file in $ac_files ''
3687 do
3688   test -f "$ac_file" || continue
3689   case $ac_file in
3690     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3691         ;;
3692     [ab].out )
3693         # We found the default executable, but exeext='' is most
3694         # certainly right.
3695         break;;
3696     *.* )
3697         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3698         then :; else
3699            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3700         fi
3701         # We set ac_cv_exeext here because the later test for it is not
3702         # safe: cross compilers may not add the suffix if given an `-o'
3703         # argument, so we may need to know it at that point already.
3704         # Even if this section looks crufty: it has the advantage of
3705         # actually working.
3706         break;;
3707     * )
3708         break;;
3709   esac
3710 done
3711 test "$ac_cv_exeext" = no && ac_cv_exeext=
3712
3713 else
3714   ac_file=''
3715 fi
3716 if test -z "$ac_file"; then :
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error 77 "C compiler cannot create executables
3725 See \`config.log' for more details" "$LINENO" 5; }
3726 else
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3728 $as_echo "yes" >&6; }
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3731 $as_echo_n "checking for C compiler default output file name... " >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3733 $as_echo "$ac_file" >&6; }
3734 ac_exeext=$ac_cv_exeext
3735
3736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3737 ac_clean_files=$ac_clean_files_save
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3739 $as_echo_n "checking for suffix of executables... " >&6; }
3740 if { { ac_try="$ac_link"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747   (eval "$ac_link") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }; then :
3751   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3752 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3753 # work properly (i.e., refer to `conftest.exe'), while it won't with
3754 # `rm'.
3755 for ac_file in conftest.exe conftest conftest.*; do
3756   test -f "$ac_file" || continue
3757   case $ac_file in
3758     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3759     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760           break;;
3761     * ) break;;
3762   esac
3763 done
3764 else
3765   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3768 See \`config.log' for more details" "$LINENO" 5; }
3769 fi
3770 rm -f conftest conftest$ac_cv_exeext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3772 $as_echo "$ac_cv_exeext" >&6; }
3773
3774 rm -f conftest.$ac_ext
3775 EXEEXT=$ac_cv_exeext
3776 ac_exeext=$EXEEXT
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779 #include <stdio.h>
3780 int
3781 main ()
3782 {
3783 FILE *f = fopen ("conftest.out", "w");
3784  return ferror (f) || fclose (f) != 0;
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 ac_clean_files="$ac_clean_files conftest.out"
3791 # Check that the compiler produces executables we can run.  If not, either
3792 # the compiler is broken, or we cross compile.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3794 $as_echo_n "checking whether we are cross compiling... " >&6; }
3795 if test "$cross_compiling" != yes; then
3796   { { ac_try="$ac_link"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_link") 2>&5
3804   ac_status=$?
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }
3807   if { ac_try='./conftest$ac_cv_exeext'
3808   { { case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814   (eval "$ac_try") 2>&5
3815   ac_status=$?
3816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817   test $ac_status = 0; }; }; then
3818     cross_compiling=no
3819   else
3820     if test "$cross_compiling" = maybe; then
3821         cross_compiling=yes
3822     else
3823         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error $? "cannot run C compiled programs.
3826 If you meant to cross compile, use \`--host'.
3827 See \`config.log' for more details" "$LINENO" 5; }
3828     fi
3829   fi
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3832 $as_echo "$cross_compiling" >&6; }
3833
3834 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3835 ac_clean_files=$ac_clean_files_save
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3837 $as_echo_n "checking for suffix of object files... " >&6; }
3838 if ${ac_cv_objext+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h.  */
3843
3844 int
3845 main ()
3846 {
3847
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.o conftest.obj
3853 if { { ac_try="$ac_compile"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860   (eval "$ac_compile") 2>&5
3861   ac_status=$?
3862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863   test $ac_status = 0; }; then :
3864   for ac_file in conftest.o conftest.obj conftest.*; do
3865   test -f "$ac_file" || continue;
3866   case $ac_file in
3867     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3868     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3869        break;;
3870   esac
3871 done
3872 else
3873   $as_echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot compute suffix of object files: cannot compile
3879 See \`config.log' for more details" "$LINENO" 5; }
3880 fi
3881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3884 $as_echo "$ac_cv_objext" >&6; }
3885 OBJEXT=$ac_cv_objext
3886 ac_objext=$OBJEXT
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3888 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3889 if ${ac_cv_c_compiler_gnu+:} false; then :
3890   $as_echo_n "(cached) " >&6
3891 else
3892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898 #ifndef __GNUC__
3899        choke me
3900 #endif
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907   ac_compiler_gnu=yes
3908 else
3909   ac_compiler_gnu=no
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3913
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3916 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3917 if test $ac_compiler_gnu = yes; then
3918   GCC=yes
3919 else
3920   GCC=
3921 fi
3922 ac_test_CFLAGS=${CFLAGS+set}
3923 ac_save_CFLAGS=$CFLAGS
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3925 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3926 if ${ac_cv_prog_cc_g+:} false; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   ac_save_c_werror_flag=$ac_c_werror_flag
3930    ac_c_werror_flag=yes
3931    ac_cv_prog_cc_g=no
3932    CFLAGS="-g"
3933    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h.  */
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945   ac_cv_prog_cc_g=yes
3946 else
3947   CFLAGS=""
3948       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960
3961 else
3962   ac_c_werror_flag=$ac_save_c_werror_flag
3963          CFLAGS="-g"
3964          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976   ac_cv_prog_cc_g=yes
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983    ac_c_werror_flag=$ac_save_c_werror_flag
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3986 $as_echo "$ac_cv_prog_cc_g" >&6; }
3987 if test "$ac_test_CFLAGS" = set; then
3988   CFLAGS=$ac_save_CFLAGS
3989 elif test $ac_cv_prog_cc_g = yes; then
3990   if test "$GCC" = yes; then
3991     CFLAGS="-g -O2"
3992   else
3993     CFLAGS="-g"
3994   fi
3995 else
3996   if test "$GCC" = yes; then
3997     CFLAGS="-O2"
3998   else
3999     CFLAGS=
4000   fi
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4004 if ${ac_cv_prog_cc_c89+:} false; then :
4005   $as_echo_n "(cached) " >&6
4006 else
4007   ac_cv_prog_cc_c89=no
4008 ac_save_CC=$CC
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h.  */
4011 #include <stdarg.h>
4012 #include <stdio.h>
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4016 struct buf { int x; };
4017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4018 static char *e (p, i)
4019      char **p;
4020      int i;
4021 {
4022   return p[i];
4023 }
4024 static char *f (char * (*g) (char **, int), char **p, ...)
4025 {
4026   char *s;
4027   va_list v;
4028   va_start (v,p);
4029   s = g (p, va_arg (v,int));
4030   va_end (v);
4031   return s;
4032 }
4033
4034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4035    function prototypes and stuff, but not '\xHH' hex character constants.
4036    These don't provoke an error unfortunately, instead are silently treated
4037    as 'x'.  The following induces an error, until -std is added to get
4038    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4039    array size at least.  It's necessary to write '\x00'==0 to get something
4040    that's true only with -std.  */
4041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4042
4043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4044    inside strings and character constants.  */
4045 #define FOO(x) 'x'
4046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4047
4048 int test (int i, double x);
4049 struct s1 {int (*f) (int a);};
4050 struct s2 {int (*f) (double a);};
4051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4052 int argc;
4053 char **argv;
4054 int
4055 main ()
4056 {
4057 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4063         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4064 do
4065   CC="$ac_save_CC $ac_arg"
4066   if ac_fn_c_try_compile "$LINENO"; then :
4067   ac_cv_prog_cc_c89=$ac_arg
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext
4070   test "x$ac_cv_prog_cc_c89" != "xno" && break
4071 done
4072 rm -f conftest.$ac_ext
4073 CC=$ac_save_CC
4074
4075 fi
4076 # AC_CACHE_VAL
4077 case "x$ac_cv_prog_cc_c89" in
4078   x)
4079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4080 $as_echo "none needed" >&6; } ;;
4081   xno)
4082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4083 $as_echo "unsupported" >&6; } ;;
4084   *)
4085     CC="$CC $ac_cv_prog_cc_c89"
4086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4087 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4088 esac
4089 if test "x$ac_cv_prog_cc_c89" != xno; then :
4090
4091 fi
4092
4093 ac_ext=c
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099 depcc="$CC"   am_compiler_list=
4100
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4102 $as_echo_n "checking dependency style of $depcc... " >&6; }
4103 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107   # We make a subdir and do the tests there.  Otherwise we can end up
4108   # making bogus files that we don't know about and never remove.  For
4109   # instance it was reported that on HP-UX the gcc test will end up
4110   # making a dummy file named `D' -- because `-MD' means `put the output
4111   # in D'.
4112   mkdir conftest.dir
4113   # Copy depcomp to subdir because otherwise we won't find it if we're
4114   # using a relative directory.
4115   cp "$am_depcomp" conftest.dir
4116   cd conftest.dir
4117   # We will build objects and dependencies in a subdirectory because
4118   # it helps to detect inapplicable dependency modes.  For instance
4119   # both Tru64's cc and ICC support -MD to output dependencies as a
4120   # side effect of compilation, but ICC will put the dependencies in
4121   # the current directory while Tru64 will put them in the object
4122   # directory.
4123   mkdir sub
4124
4125   am_cv_CC_dependencies_compiler_type=none
4126   if test "$am_compiler_list" = ""; then
4127      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4128   fi
4129   am__universal=false
4130   case " $depcc " in #(
4131      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4132      esac
4133
4134   for depmode in $am_compiler_list; do
4135     # Setup a source with many dependencies, because some compilers
4136     # like to wrap large dependency lists on column 80 (with \), and
4137     # we should not choose a depcomp mode which is confused by this.
4138     #
4139     # We need to recreate these files for each test, as the compiler may
4140     # overwrite some of them when testing with obscure command lines.
4141     # This happens at least with the AIX C compiler.
4142     : > sub/conftest.c
4143     for i in 1 2 3 4 5 6; do
4144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4146       # Solaris 8's {/usr,}/bin/sh.
4147       touch sub/conftst$i.h
4148     done
4149     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4150
4151     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4152     # mode.  It turns out that the SunPro C++ compiler does not properly
4153     # handle `-M -o', and we need to detect this.  Also, some Intel
4154     # versions had trouble with output in subdirs
4155     am__obj=sub/conftest.${OBJEXT-o}
4156     am__minus_obj="-o $am__obj"
4157     case $depmode in
4158     gcc)
4159       # This depmode causes a compiler race in universal mode.
4160       test "$am__universal" = false || continue
4161       ;;
4162     nosideeffect)
4163       # after this tag, mechanisms are not by side-effect, so they'll
4164       # only be used when explicitly requested
4165       if test "x$enable_dependency_tracking" = xyes; then
4166         continue
4167       else
4168         break
4169       fi
4170       ;;
4171     msvisualcpp | msvcmsys)
4172       # This compiler won't grok `-c -o', but also, the minuso test has
4173       # not run yet.  These depmodes are late enough in the game, and
4174       # so weak that their functioning should not be impacted.
4175       am__obj=conftest.${OBJEXT-o}
4176       am__minus_obj=
4177       ;;
4178     none) break ;;
4179     esac
4180     if depmode=$depmode \
4181        source=sub/conftest.c object=$am__obj \
4182        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4183        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4184          >/dev/null 2>conftest.err &&
4185        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4186        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4187        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4188        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4189       # icc doesn't choke on unknown options, it will just issue warnings
4190       # or remarks (even with -Werror).  So we grep stderr for any message
4191       # that says an option was ignored or not supported.
4192       # When given -MP, icc 7.0 and 7.1 complain thusly:
4193       #   icc: Command line warning: ignoring option '-M'; no argument required
4194       # The diagnosis changed in icc 8.0:
4195       #   icc: Command line remark: option '-MP' not supported
4196       if (grep 'ignoring option' conftest.err ||
4197           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4198         am_cv_CC_dependencies_compiler_type=$depmode
4199         break
4200       fi
4201     fi
4202   done
4203
4204   cd ..
4205   rm -rf conftest.dir
4206 else
4207   am_cv_CC_dependencies_compiler_type=none
4208 fi
4209
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4214
4215  if
4216   test "x$enable_dependency_tracking" != xno \
4217   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4218   am__fastdepCC_TRUE=
4219   am__fastdepCC_FALSE='#'
4220 else
4221   am__fastdepCC_TRUE='#'
4222   am__fastdepCC_FALSE=
4223 fi
4224
4225
4226 if test "x$CC" != xcc; then
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4228 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4229 else
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4231 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4232 fi
4233 set dummy $CC; ac_cc=`$as_echo "$2" |
4234                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4235 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 # Make sure it works both with $CC and with simple cc.
4250 # We do the test twice because some compilers refuse to overwrite an
4251 # existing .o file with -o, though they will create one.
4252 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4253 rm -f conftest2.*
4254 if { { case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260   (eval "$ac_try") 2>&5
4261   ac_status=$?
4262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263   test $ac_status = 0; } &&
4264    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 $as_echo "$ac_try_echo"; } >&5
4270   (eval "$ac_try") 2>&5
4271   ac_status=$?
4272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273   test $ac_status = 0; };
4274 then
4275   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4276   if test "x$CC" != xcc; then
4277     # Test first that cc exists at all.
4278     if { ac_try='cc -c conftest.$ac_ext >&5'
4279   { { case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285   (eval "$ac_try") 2>&5
4286   ac_status=$?
4287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288   test $ac_status = 0; }; }; then
4289       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4290       rm -f conftest2.*
4291       if { { 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 $as_echo "$ac_try_echo"; } >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300   test $ac_status = 0; } &&
4301          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307   (eval "$ac_try") 2>&5
4308   ac_status=$?
4309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310   test $ac_status = 0; };
4311       then
4312         # cc works too.
4313         :
4314       else
4315         # cc exists but doesn't like -o.
4316         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4317       fi
4318     fi
4319   fi
4320 else
4321   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4322 fi
4323 rm -f core conftest*
4324
4325 fi
4326 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328 $as_echo "yes" >&6; }
4329 else
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4332
4333 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4334
4335 fi
4336
4337 # FIXME: we rely on the cache variable name because
4338 # there is no other way.
4339 set dummy $CC
4340 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4341 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4342 if test "$am_t" != yes; then
4343    # Losing compiler, so override with the script.
4344    # FIXME: It is wrong to rewrite CC.
4345    # But if we don't then we get into trouble of one sort or another.
4346    # A longer-term fix would be to have automake use am__CC in this case,
4347    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4348    CC="$am_aux_dir/compile $CC"
4349 fi
4350
4351
4352    case $ac_cv_prog_cc_stdc in #(
4353   no) :
4354     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4355   *) :
4356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4357 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4358 if ${ac_cv_prog_cc_c99+:} false; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   ac_cv_prog_cc_c99=no
4362 ac_save_CC=$CC
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h.  */
4365 #include <stdarg.h>
4366 #include <stdbool.h>
4367 #include <stdlib.h>
4368 #include <wchar.h>
4369 #include <stdio.h>
4370
4371 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4372 #define debug(...) fprintf (stderr, __VA_ARGS__)
4373 #define showlist(...) puts (#__VA_ARGS__)
4374 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4375 static void
4376 test_varargs_macros (void)
4377 {
4378   int x = 1234;
4379   int y = 5678;
4380   debug ("Flag");
4381   debug ("X = %d\n", x);
4382   showlist (The first, second, and third items.);
4383   report (x>y, "x is %d but y is %d", x, y);
4384 }
4385
4386 // Check long long types.
4387 #define BIG64 18446744073709551615ull
4388 #define BIG32 4294967295ul
4389 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4390 #if !BIG_OK
4391   your preprocessor is broken;
4392 #endif
4393 #if BIG_OK
4394 #else
4395   your preprocessor is broken;
4396 #endif
4397 static long long int bignum = -9223372036854775807LL;
4398 static unsigned long long int ubignum = BIG64;
4399
4400 struct incomplete_array
4401 {
4402   int datasize;
4403   double data[];
4404 };
4405
4406 struct named_init {
4407   int number;
4408   const wchar_t *name;
4409   double average;
4410 };
4411
4412 typedef const char *ccp;
4413
4414 static inline int
4415 test_restrict (ccp restrict text)
4416 {
4417   // See if C++-style comments work.
4418   // Iterate through items via the restricted pointer.
4419   // Also check for declarations in for loops.
4420   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4421     continue;
4422   return 0;
4423 }
4424
4425 // Check varargs and va_copy.
4426 static void
4427 test_varargs (const char *format, ...)
4428 {
4429   va_list args;
4430   va_start (args, format);
4431   va_list args_copy;
4432   va_copy (args_copy, args);
4433
4434   const char *str;
4435   int number;
4436   float fnumber;
4437
4438   while (*format)
4439     {
4440       switch (*format++)
4441         {
4442         case 's': // string
4443           str = va_arg (args_copy, const char *);
4444           break;
4445         case 'd': // int
4446           number = va_arg (args_copy, int);
4447           break;
4448         case 'f': // float
4449           fnumber = va_arg (args_copy, double);
4450           break;
4451         default:
4452           break;
4453         }
4454     }
4455   va_end (args_copy);
4456   va_end (args);
4457 }
4458
4459 int
4460 main ()
4461 {
4462
4463   // Check bool.
4464   _Bool success = false;
4465
4466   // Check restrict.
4467   if (test_restrict ("String literal") == 0)
4468     success = true;
4469   char *restrict newvar = "Another string";
4470
4471   // Check varargs.
4472   test_varargs ("s, d' f .", "string", 65, 34.234);
4473   test_varargs_macros ();
4474
4475   // Check flexible array members.
4476   struct incomplete_array *ia =
4477     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4478   ia->datasize = 10;
4479   for (int i = 0; i < ia->datasize; ++i)
4480     ia->data[i] = i * 1.234;
4481
4482   // Check named initializers.
4483   struct named_init ni = {
4484     .number = 34,
4485     .name = L"Test wide string",
4486     .average = 543.34343,
4487   };
4488
4489   ni.number = 58;
4490
4491   int dynamic_array[ni.number];
4492   dynamic_array[ni.number - 1] = 543;
4493
4494   // work around unused variable warnings
4495   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4496           || dynamic_array[ni.number - 1] != 543);
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4503 do
4504   CC="$ac_save_CC $ac_arg"
4505   if ac_fn_c_try_compile "$LINENO"; then :
4506   ac_cv_prog_cc_c99=$ac_arg
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext
4509   test "x$ac_cv_prog_cc_c99" != "xno" && break
4510 done
4511 rm -f conftest.$ac_ext
4512 CC=$ac_save_CC
4513
4514 fi
4515 # AC_CACHE_VAL
4516 case "x$ac_cv_prog_cc_c99" in
4517   x)
4518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519 $as_echo "none needed" >&6; } ;;
4520   xno)
4521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4522 $as_echo "unsupported" >&6; } ;;
4523   *)
4524     CC="$CC $ac_cv_prog_cc_c99"
4525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4526 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4527 esac
4528 if test "x$ac_cv_prog_cc_c99" != xno; then :
4529   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4530 else
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4532 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4533 if ${ac_cv_prog_cc_c89+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   ac_cv_prog_cc_c89=no
4537 ac_save_CC=$CC
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540 #include <stdarg.h>
4541 #include <stdio.h>
4542 #include <sys/types.h>
4543 #include <sys/stat.h>
4544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4545 struct buf { int x; };
4546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4547 static char *e (p, i)
4548      char **p;
4549      int i;
4550 {
4551   return p[i];
4552 }
4553 static char *f (char * (*g) (char **, int), char **p, ...)
4554 {
4555   char *s;
4556   va_list v;
4557   va_start (v,p);
4558   s = g (p, va_arg (v,int));
4559   va_end (v);
4560   return s;
4561 }
4562
4563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4564    function prototypes and stuff, but not '\xHH' hex character constants.
4565    These don't provoke an error unfortunately, instead are silently treated
4566    as 'x'.  The following induces an error, until -std is added to get
4567    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4568    array size at least.  It's necessary to write '\x00'==0 to get something
4569    that's true only with -std.  */
4570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4571
4572 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4573    inside strings and character constants.  */
4574 #define FOO(x) 'x'
4575 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4576
4577 int test (int i, double x);
4578 struct s1 {int (*f) (int a);};
4579 struct s2 {int (*f) (double a);};
4580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4581 int argc;
4582 char **argv;
4583 int
4584 main ()
4585 {
4586 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4592         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4593 do
4594   CC="$ac_save_CC $ac_arg"
4595   if ac_fn_c_try_compile "$LINENO"; then :
4596   ac_cv_prog_cc_c89=$ac_arg
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext
4599   test "x$ac_cv_prog_cc_c89" != "xno" && break
4600 done
4601 rm -f conftest.$ac_ext
4602 CC=$ac_save_CC
4603
4604 fi
4605 # AC_CACHE_VAL
4606 case "x$ac_cv_prog_cc_c89" in
4607   x)
4608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4609 $as_echo "none needed" >&6; } ;;
4610   xno)
4611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4612 $as_echo "unsupported" >&6; } ;;
4613   *)
4614     CC="$CC $ac_cv_prog_cc_c89"
4615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4616 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4617 esac
4618 if test "x$ac_cv_prog_cc_c89" != xno; then :
4619   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4620 else
4621   ac_cv_prog_cc_stdc=no
4622 fi
4623
4624 fi
4625  ;;
4626 esac
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4628 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4629   if ${ac_cv_prog_cc_stdc+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 fi
4632
4633   case $ac_cv_prog_cc_stdc in #(
4634   no) :
4635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4636 $as_echo "unsupported" >&6; } ;; #(
4637   '') :
4638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4639 $as_echo "none needed" >&6; } ;; #(
4640   *) :
4641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4642 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4643 esac
4644
4645
4646 ac_ext=c
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4652 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4653 # On Suns, sometimes $CPP names a directory.
4654 if test -n "$CPP" && test -d "$CPP"; then
4655   CPP=
4656 fi
4657 if test -z "$CPP"; then
4658   if ${ac_cv_prog_CPP+:} false; then :
4659   $as_echo_n "(cached) " >&6
4660 else
4661       # Double quotes because CPP needs to be expanded
4662     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4663     do
4664       ac_preproc_ok=false
4665 for ac_c_preproc_warn_flag in '' yes
4666 do
4667   # Use a header file that comes with gcc, so configuring glibc
4668   # with a fresh cross-compiler works.
4669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670   # <limits.h> exists even on freestanding compilers.
4671   # On the NeXT, cc -E runs the code through the compiler's parser,
4672   # not just through cpp. "Syntax error" is here to catch this case.
4673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h.  */
4675 #ifdef __STDC__
4676 # include <limits.h>
4677 #else
4678 # include <assert.h>
4679 #endif
4680                      Syntax error
4681 _ACEOF
4682 if ac_fn_c_try_cpp "$LINENO"; then :
4683
4684 else
4685   # Broken: fails on valid input.
4686 continue
4687 fi
4688 rm -f conftest.err conftest.i conftest.$ac_ext
4689
4690   # OK, works on sane cases.  Now check whether nonexistent headers
4691   # can be detected and how.
4692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h.  */
4694 #include <ac_nonexistent.h>
4695 _ACEOF
4696 if ac_fn_c_try_cpp "$LINENO"; then :
4697   # Broken: success on invalid input.
4698 continue
4699 else
4700   # Passes both tests.
4701 ac_preproc_ok=:
4702 break
4703 fi
4704 rm -f conftest.err conftest.i conftest.$ac_ext
4705
4706 done
4707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4708 rm -f conftest.i conftest.err conftest.$ac_ext
4709 if $ac_preproc_ok; then :
4710   break
4711 fi
4712
4713     done
4714     ac_cv_prog_CPP=$CPP
4715
4716 fi
4717   CPP=$ac_cv_prog_CPP
4718 else
4719   ac_cv_prog_CPP=$CPP
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4722 $as_echo "$CPP" >&6; }
4723 ac_preproc_ok=false
4724 for ac_c_preproc_warn_flag in '' yes
4725 do
4726   # Use a header file that comes with gcc, so configuring glibc
4727   # with a fresh cross-compiler works.
4728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729   # <limits.h> exists even on freestanding compilers.
4730   # On the NeXT, cc -E runs the code through the compiler's parser,
4731   # not just through cpp. "Syntax error" is here to catch this case.
4732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h.  */
4734 #ifdef __STDC__
4735 # include <limits.h>
4736 #else
4737 # include <assert.h>
4738 #endif
4739                      Syntax error
4740 _ACEOF
4741 if ac_fn_c_try_cpp "$LINENO"; then :
4742
4743 else
4744   # Broken: fails on valid input.
4745 continue
4746 fi
4747 rm -f conftest.err conftest.i conftest.$ac_ext
4748
4749   # OK, works on sane cases.  Now check whether nonexistent headers
4750   # can be detected and how.
4751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h.  */
4753 #include <ac_nonexistent.h>
4754 _ACEOF
4755 if ac_fn_c_try_cpp "$LINENO"; then :
4756   # Broken: success on invalid input.
4757 continue
4758 else
4759   # Passes both tests.
4760 ac_preproc_ok=:
4761 break
4762 fi
4763 rm -f conftest.err conftest.i conftest.$ac_ext
4764
4765 done
4766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4767 rm -f conftest.i conftest.err conftest.$ac_ext
4768 if $ac_preproc_ok; then :
4769
4770 else
4771   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4773 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4774 See \`config.log' for more details" "$LINENO" 5; }
4775 fi
4776
4777 ac_ext=c
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4785 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4786 if ${ac_cv_path_GREP+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if test -z "$GREP"; then
4790   ac_path_GREP_found=false
4791   # Loop through the user's path and test for each of PROGNAME-LIST
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_prog in grep ggrep; do
4798     for ac_exec_ext in '' $ac_executable_extensions; do
4799       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4800       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4801 # Check for GNU ac_path_GREP and select it if it is found.
4802   # Check for GNU $ac_path_GREP
4803 case `"$ac_path_GREP" --version 2>&1` in
4804 *GNU*)
4805   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4806 *)
4807   ac_count=0
4808   $as_echo_n 0123456789 >"conftest.in"
4809   while :
4810   do
4811     cat "conftest.in" "conftest.in" >"conftest.tmp"
4812     mv "conftest.tmp" "conftest.in"
4813     cp "conftest.in" "conftest.nl"
4814     $as_echo 'GREP' >> "conftest.nl"
4815     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4816     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4817     as_fn_arith $ac_count + 1 && ac_count=$as_val
4818     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4819       # Best one so far, save it but keep looking for a better one
4820       ac_cv_path_GREP="$ac_path_GREP"
4821       ac_path_GREP_max=$ac_count
4822     fi
4823     # 10*(2^10) chars as input seems more than enough
4824     test $ac_count -gt 10 && break
4825   done
4826   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4827 esac
4828
4829       $ac_path_GREP_found && break 3
4830     done
4831   done
4832   done
4833 IFS=$as_save_IFS
4834   if test -z "$ac_cv_path_GREP"; then
4835     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4836   fi
4837 else
4838   ac_cv_path_GREP=$GREP
4839 fi
4840
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4843 $as_echo "$ac_cv_path_GREP" >&6; }
4844  GREP="$ac_cv_path_GREP"
4845
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4848 $as_echo_n "checking for egrep... " >&6; }
4849 if ${ac_cv_path_EGREP+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4853    then ac_cv_path_EGREP="$GREP -E"
4854    else
4855      if test -z "$EGREP"; then
4856   ac_path_EGREP_found=false
4857   # Loop through the user's path and test for each of PROGNAME-LIST
4858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863     for ac_prog in egrep; do
4864     for ac_exec_ext in '' $ac_executable_extensions; do
4865       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4866       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4867 # Check for GNU ac_path_EGREP and select it if it is found.
4868   # Check for GNU $ac_path_EGREP
4869 case `"$ac_path_EGREP" --version 2>&1` in
4870 *GNU*)
4871   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4872 *)
4873   ac_count=0
4874   $as_echo_n 0123456789 >"conftest.in"
4875   while :
4876   do
4877     cat "conftest.in" "conftest.in" >"conftest.tmp"
4878     mv "conftest.tmp" "conftest.in"
4879     cp "conftest.in" "conftest.nl"
4880     $as_echo 'EGREP' >> "conftest.nl"
4881     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883     as_fn_arith $ac_count + 1 && ac_count=$as_val
4884     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4885       # Best one so far, save it but keep looking for a better one
4886       ac_cv_path_EGREP="$ac_path_EGREP"
4887       ac_path_EGREP_max=$ac_count
4888     fi
4889     # 10*(2^10) chars as input seems more than enough
4890     test $ac_count -gt 10 && break
4891   done
4892   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 esac
4894
4895       $ac_path_EGREP_found && break 3
4896     done
4897   done
4898   done
4899 IFS=$as_save_IFS
4900   if test -z "$ac_cv_path_EGREP"; then
4901     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4902   fi
4903 else
4904   ac_cv_path_EGREP=$EGREP
4905 fi
4906
4907    fi
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4910 $as_echo "$ac_cv_path_EGREP" >&6; }
4911  EGREP="$ac_cv_path_EGREP"
4912
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4915 $as_echo_n "checking for ANSI C header files... " >&6; }
4916 if ${ac_cv_header_stdc+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h.  */
4921 #include <stdlib.h>
4922 #include <stdarg.h>
4923 #include <string.h>
4924 #include <float.h>
4925
4926 int
4927 main ()
4928 {
4929
4930   ;
4931   return 0;
4932 }
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935   ac_cv_header_stdc=yes
4936 else
4937   ac_cv_header_stdc=no
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940
4941 if test $ac_cv_header_stdc = yes; then
4942   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h.  */
4945 #include <string.h>
4946
4947 _ACEOF
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949   $EGREP "memchr" >/dev/null 2>&1; then :
4950
4951 else
4952   ac_cv_header_stdc=no
4953 fi
4954 rm -f conftest*
4955
4956 fi
4957
4958 if test $ac_cv_header_stdc = yes; then
4959   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h.  */
4962 #include <stdlib.h>
4963
4964 _ACEOF
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966   $EGREP "free" >/dev/null 2>&1; then :
4967
4968 else
4969   ac_cv_header_stdc=no
4970 fi
4971 rm -f conftest*
4972
4973 fi
4974
4975 if test $ac_cv_header_stdc = yes; then
4976   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4977   if test "$cross_compiling" = yes; then :
4978   :
4979 else
4980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h.  */
4982 #include <ctype.h>
4983 #include <stdlib.h>
4984 #if ((' ' & 0x0FF) == 0x020)
4985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4987 #else
4988 # define ISLOWER(c) \
4989                    (('a' <= (c) && (c) <= 'i') \
4990                      || ('j' <= (c) && (c) <= 'r') \
4991                      || ('s' <= (c) && (c) <= 'z'))
4992 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4993 #endif
4994
4995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4996 int
4997 main ()
4998 {
4999   int i;
5000   for (i = 0; i < 256; i++)
5001     if (XOR (islower (i), ISLOWER (i))
5002         || toupper (i) != TOUPPER (i))
5003       return 2;
5004   return 0;
5005 }
5006 _ACEOF
5007 if ac_fn_c_try_run "$LINENO"; then :
5008
5009 else
5010   ac_cv_header_stdc=no
5011 fi
5012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5013   conftest.$ac_objext conftest.beam conftest.$ac_ext
5014 fi
5015
5016 fi
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5019 $as_echo "$ac_cv_header_stdc" >&6; }
5020 if test $ac_cv_header_stdc = yes; then
5021
5022 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5023
5024 fi
5025
5026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5027 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5028                   inttypes.h stdint.h unistd.h
5029 do :
5030   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5032 "
5033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5034   cat >>confdefs.h <<_ACEOF
5035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036 _ACEOF
5037
5038 fi
5039
5040 done
5041
5042
5043
5044   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5045 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5046   MINIX=yes
5047 else
5048   MINIX=
5049 fi
5050
5051
5052   if test "$MINIX" = yes; then
5053
5054 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5055
5056
5057 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5058
5059
5060 $as_echo "#define _MINIX 1" >>confdefs.h
5061
5062   fi
5063
5064
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5066 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5067 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h.  */
5072
5073 #         define __EXTENSIONS__ 1
5074           $ac_includes_default
5075 int
5076 main ()
5077 {
5078
5079   ;
5080   return 0;
5081 }
5082 _ACEOF
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084   ac_cv_safe_to_define___extensions__=yes
5085 else
5086   ac_cv_safe_to_define___extensions__=no
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5091 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5092   test $ac_cv_safe_to_define___extensions__ = yes &&
5093     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5094
5095   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5096
5097   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5098
5099   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5100
5101   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5102
5103
5104
5105 # Make sure we can run config.sub.
5106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5107   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5110 $as_echo_n "checking build system type... " >&6; }
5111 if ${ac_cv_build+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   ac_build_alias=$build_alias
5115 test "x$ac_build_alias" = x &&
5116   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5117 test "x$ac_build_alias" = x &&
5118   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5119 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5120   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5121
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5124 $as_echo "$ac_cv_build" >&6; }
5125 case $ac_cv_build in
5126 *-*-*) ;;
5127 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5128 esac
5129 build=$ac_cv_build
5130 ac_save_IFS=$IFS; IFS='-'
5131 set x $ac_cv_build
5132 shift
5133 build_cpu=$1
5134 build_vendor=$2
5135 shift; shift
5136 # Remember, the first character of IFS is used to create $*,
5137 # except with old shells:
5138 build_os=$*
5139 IFS=$ac_save_IFS
5140 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5141
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5144 $as_echo_n "checking host system type... " >&6; }
5145 if ${ac_cv_host+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   if test "x$host_alias" = x; then
5149   ac_cv_host=$ac_cv_build
5150 else
5151   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5152     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5153 fi
5154
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5157 $as_echo "$ac_cv_host" >&6; }
5158 case $ac_cv_host in
5159 *-*-*) ;;
5160 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5161 esac
5162 host=$ac_cv_host
5163 ac_save_IFS=$IFS; IFS='-'
5164 set x $ac_cv_host
5165 shift
5166 host_cpu=$1
5167 host_vendor=$2
5168 shift; shift
5169 # Remember, the first character of IFS is used to create $*,
5170 # except with old shells:
5171 host_os=$*
5172 IFS=$ac_save_IFS
5173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5174
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5177 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5178 if ${ac_cv_c_const+:} false; then :
5179   $as_echo_n "(cached) " >&6
5180 else
5181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h.  */
5183
5184 int
5185 main ()
5186 {
5187 /* FIXME: Include the comments suggested by Paul. */
5188 #ifndef __cplusplus
5189   /* Ultrix mips cc rejects this.  */
5190   typedef int charset[2];
5191   const charset cs;
5192   /* SunOS 4.1.1 cc rejects this.  */
5193   char const *const *pcpcc;
5194   char **ppc;
5195   /* NEC SVR4.0.2 mips cc rejects this.  */
5196   struct point {int x, y;};
5197   static struct point const zero = {0,0};
5198   /* AIX XL C 1.02.0.0 rejects this.
5199      It does not let you subtract one const X* pointer from another in
5200      an arm of an if-expression whose if-part is not a constant
5201      expression */
5202   const char *g = "string";
5203   pcpcc = &g + (g ? g-g : 0);
5204   /* HPUX 7.0 cc rejects these. */
5205   ++pcpcc;
5206   ppc = (char**) pcpcc;
5207   pcpcc = (char const *const *) ppc;
5208   { /* SCO 3.2v4 cc rejects this.  */
5209     char *t;
5210     char const *s = 0 ? (char *) 0 : (char const *) 0;
5211
5212     *t++ = 0;
5213     if (s) return 0;
5214   }
5215   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5216     int x[] = {25, 17};
5217     const int *foo = &x[0];
5218     ++foo;
5219   }
5220   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5221     typedef const int *iptr;
5222     iptr p = 0;
5223     ++p;
5224   }
5225   { /* AIX XL C 1.02.0.0 rejects this saying
5226        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5227     struct s { int j; const int *ap[3]; };
5228     struct s *b; b->j = 5;
5229   }
5230   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5231     const int foo = 10;
5232     if (!foo) return 0;
5233   }
5234   return !cs[0] && !zero.x;
5235 #endif
5236
5237   ;
5238   return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242   ac_cv_c_const=yes
5243 else
5244   ac_cv_c_const=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5249 $as_echo "$ac_cv_c_const" >&6; }
5250 if test $ac_cv_c_const = no; then
5251
5252 $as_echo "#define const /**/" >>confdefs.h
5253
5254 fi
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5257 $as_echo_n "checking for working volatile... " >&6; }
5258 if ${ac_cv_c_volatile+:} false; then :
5259   $as_echo_n "(cached) " >&6
5260 else
5261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h.  */
5263
5264 int
5265 main ()
5266 {
5267
5268 volatile int x;
5269 int * volatile y = (int *) 0;
5270 return !x && !y;
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276   ac_cv_c_volatile=yes
5277 else
5278   ac_cv_c_volatile=no
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5283 $as_echo "$ac_cv_c_volatile" >&6; }
5284 if test $ac_cv_c_volatile = no; then
5285
5286 $as_echo "#define volatile /**/" >>confdefs.h
5287
5288 fi
5289
5290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5291 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5292 if ${ac_cv_c_bigendian+:} false; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   ac_cv_c_bigendian=unknown
5296     # See if we're dealing with a universal compiler.
5297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h.  */
5299 #ifndef __APPLE_CC__
5300                not a universal capable compiler
5301              #endif
5302              typedef int dummy;
5303
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306
5307         # Check for potential -arch flags.  It is not universal unless
5308         # there are at least two -arch flags with different values.
5309         ac_arch=
5310         ac_prev=
5311         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5312          if test -n "$ac_prev"; then
5313            case $ac_word in
5314              i?86 | x86_64 | ppc | ppc64)
5315                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5316                  ac_arch=$ac_word
5317                else
5318                  ac_cv_c_bigendian=universal
5319                  break
5320                fi
5321                ;;
5322            esac
5323            ac_prev=
5324          elif test "x$ac_word" = "x-arch"; then
5325            ac_prev=arch
5326          fi
5327        done
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330     if test $ac_cv_c_bigendian = unknown; then
5331       # See if sys/param.h defines the BYTE_ORDER macro.
5332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 #include <sys/types.h>
5335              #include <sys/param.h>
5336
5337 int
5338 main ()
5339 {
5340 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5341                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5342                      && LITTLE_ENDIAN)
5343               bogus endian macros
5344              #endif
5345
5346   ;
5347   return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351   # It does; now see whether it defined to BIG_ENDIAN or not.
5352          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h.  */
5354 #include <sys/types.h>
5355                 #include <sys/param.h>
5356
5357 int
5358 main ()
5359 {
5360 #if BYTE_ORDER != BIG_ENDIAN
5361                  not big endian
5362                 #endif
5363
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369   ac_cv_c_bigendian=yes
5370 else
5371   ac_cv_c_bigendian=no
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376     fi
5377     if test $ac_cv_c_bigendian = unknown; then
5378       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5379       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381 #include <limits.h>
5382
5383 int
5384 main ()
5385 {
5386 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5387               bogus endian macros
5388              #endif
5389
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395   # It does; now see whether it defined to _BIG_ENDIAN or not.
5396          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h.  */
5398 #include <limits.h>
5399
5400 int
5401 main ()
5402 {
5403 #ifndef _BIG_ENDIAN
5404                  not big endian
5405                 #endif
5406
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412   ac_cv_c_bigendian=yes
5413 else
5414   ac_cv_c_bigendian=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419     fi
5420     if test $ac_cv_c_bigendian = unknown; then
5421       # Compile a test program.
5422       if test "$cross_compiling" = yes; then :
5423   # Try to guess by grepping values from an object file.
5424          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h.  */
5426 short int ascii_mm[] =
5427                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5428                 short int ascii_ii[] =
5429                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5430                 int use_ascii (int i) {
5431                   return ascii_mm[i] + ascii_ii[i];
5432                 }
5433                 short int ebcdic_ii[] =
5434                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5435                 short int ebcdic_mm[] =
5436                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5437                 int use_ebcdic (int i) {
5438                   return ebcdic_mm[i] + ebcdic_ii[i];
5439                 }
5440                 extern int foo;
5441
5442 int
5443 main ()
5444 {
5445 return use_ascii (foo) == use_ebcdic (foo);
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5452               ac_cv_c_bigendian=yes
5453             fi
5454             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5455               if test "$ac_cv_c_bigendian" = unknown; then
5456                 ac_cv_c_bigendian=no
5457               else
5458                 # finding both strings is unlikely to happen, but who knows?
5459                 ac_cv_c_bigendian=unknown
5460               fi
5461             fi
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 else
5465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h.  */
5467 $ac_includes_default
5468 int
5469 main ()
5470 {
5471
5472              /* Are we little or big endian?  From Harbison&Steele.  */
5473              union
5474              {
5475                long int l;
5476                char c[sizeof (long int)];
5477              } u;
5478              u.l = 1;
5479              return u.c[sizeof (long int) - 1] == 1;
5480
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 if ac_fn_c_try_run "$LINENO"; then :
5486   ac_cv_c_bigendian=no
5487 else
5488   ac_cv_c_bigendian=yes
5489 fi
5490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5491   conftest.$ac_objext conftest.beam conftest.$ac_ext
5492 fi
5493
5494     fi
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5497 $as_echo "$ac_cv_c_bigendian" >&6; }
5498  case $ac_cv_c_bigendian in #(
5499    yes)
5500      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5501 ;; #(
5502    no)
5503       ;; #(
5504    universal)
5505
5506 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5507
5508      ;; #(
5509    *)
5510      as_fn_error $? "unknown endianness
5511  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5512  esac
5513
5514
5515 case `pwd` in
5516   *\ * | *\     *)
5517     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5518 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5519 esac
5520
5521
5522
5523 macro_version='2.4'
5524 macro_revision='1.3293'
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538 ltmain="$ac_aux_dir/ltmain.sh"
5539
5540 # Backslashify metacharacters that are still active within
5541 # double-quoted strings.
5542 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5543
5544 # Same as above, but do not quote variable references.
5545 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5546
5547 # Sed substitution to delay expansion of an escaped shell variable in a
5548 # double_quote_subst'ed string.
5549 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5550
5551 # Sed substitution to delay expansion of an escaped single quote.
5552 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5553
5554 # Sed substitution to avoid accidental globbing in evaled expressions
5555 no_glob_subst='s/\*/\\\*/g'
5556
5557 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5558 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5559 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5562 $as_echo_n "checking how to print strings... " >&6; }
5563 # Test print first, because it will be a builtin if present.
5564 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5565    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5566   ECHO='print -r --'
5567 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5568   ECHO='printf %s\n'
5569 else
5570   # Use this function as a fallback that always works.
5571   func_fallback_echo ()
5572   {
5573     eval 'cat <<_LTECHO_EOF
5574 $1
5575 _LTECHO_EOF'
5576   }
5577   ECHO='func_fallback_echo'
5578 fi
5579
5580 # func_echo_all arg...
5581 # Invoke $ECHO with all args, space-separated.
5582 func_echo_all ()
5583 {
5584     $ECHO ""
5585 }
5586
5587 case "$ECHO" in
5588   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5589 $as_echo "printf" >&6; } ;;
5590   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5591 $as_echo "print -r" >&6; } ;;
5592   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5593 $as_echo "cat" >&6; } ;;
5594 esac
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5610 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5611 if ${ac_cv_path_SED+:} false; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5615      for ac_i in 1 2 3 4 5 6 7; do
5616        ac_script="$ac_script$as_nl$ac_script"
5617      done
5618      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5619      { ac_script=; unset ac_script;}
5620      if test -z "$SED"; then
5621   ac_path_SED_found=false
5622   # Loop through the user's path and test for each of PROGNAME-LIST
5623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628     for ac_prog in sed gsed; do
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5631       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5632 # Check for GNU ac_path_SED and select it if it is found.
5633   # Check for GNU $ac_path_SED
5634 case `"$ac_path_SED" --version 2>&1` in
5635 *GNU*)
5636   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5637 *)
5638   ac_count=0
5639   $as_echo_n 0123456789 >"conftest.in"
5640   while :
5641   do
5642     cat "conftest.in" "conftest.in" >"conftest.tmp"
5643     mv "conftest.tmp" "conftest.in"
5644     cp "conftest.in" "conftest.nl"
5645     $as_echo '' >> "conftest.nl"
5646     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5648     as_fn_arith $ac_count + 1 && ac_count=$as_val
5649     if test $ac_count -gt ${ac_path_SED_max-0}; then
5650       # Best one so far, save it but keep looking for a better one
5651       ac_cv_path_SED="$ac_path_SED"
5652       ac_path_SED_max=$ac_count
5653     fi
5654     # 10*(2^10) chars as input seems more than enough
5655     test $ac_count -gt 10 && break
5656   done
5657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5658 esac
5659
5660       $ac_path_SED_found && break 3
5661     done
5662   done
5663   done
5664 IFS=$as_save_IFS
5665   if test -z "$ac_cv_path_SED"; then
5666     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5667   fi
5668 else
5669   ac_cv_path_SED=$SED
5670 fi
5671
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5674 $as_echo "$ac_cv_path_SED" >&6; }
5675  SED="$ac_cv_path_SED"
5676   rm -f conftest.sed
5677
5678 test -z "$SED" && SED=sed
5679 Xsed="$SED -e 1s/^X//"
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5692 $as_echo_n "checking for fgrep... " >&6; }
5693 if ${ac_cv_path_FGREP+:} false; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5697    then ac_cv_path_FGREP="$GREP -F"
5698    else
5699      if test -z "$FGREP"; then
5700   ac_path_FGREP_found=false
5701   # Loop through the user's path and test for each of PROGNAME-LIST
5702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707     for ac_prog in fgrep; do
5708     for ac_exec_ext in '' $ac_executable_extensions; do
5709       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5710       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5711 # Check for GNU ac_path_FGREP and select it if it is found.
5712   # Check for GNU $ac_path_FGREP
5713 case `"$ac_path_FGREP" --version 2>&1` in
5714 *GNU*)
5715   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5716 *)
5717   ac_count=0
5718   $as_echo_n 0123456789 >"conftest.in"
5719   while :
5720   do
5721     cat "conftest.in" "conftest.in" >"conftest.tmp"
5722     mv "conftest.tmp" "conftest.in"
5723     cp "conftest.in" "conftest.nl"
5724     $as_echo 'FGREP' >> "conftest.nl"
5725     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5727     as_fn_arith $ac_count + 1 && ac_count=$as_val
5728     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5729       # Best one so far, save it but keep looking for a better one
5730       ac_cv_path_FGREP="$ac_path_FGREP"
5731       ac_path_FGREP_max=$ac_count
5732     fi
5733     # 10*(2^10) chars as input seems more than enough
5734     test $ac_count -gt 10 && break
5735   done
5736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5737 esac
5738
5739       $ac_path_FGREP_found && break 3
5740     done
5741   done
5742   done
5743 IFS=$as_save_IFS
5744   if test -z "$ac_cv_path_FGREP"; then
5745     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5746   fi
5747 else
5748   ac_cv_path_FGREP=$FGREP
5749 fi
5750
5751    fi
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5754 $as_echo "$ac_cv_path_FGREP" >&6; }
5755  FGREP="$ac_cv_path_FGREP"
5756
5757
5758 test -z "$GREP" && GREP=grep
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 # Check whether --with-gnu-ld was given.
5779 if test "${with_gnu_ld+set}" = set; then :
5780   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5781 else
5782   with_gnu_ld=no
5783 fi
5784
5785 ac_prog=ld
5786 if test "$GCC" = yes; then
5787   # Check if gcc -print-prog-name=ld gives a path.
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5789 $as_echo_n "checking for ld used by $CC... " >&6; }
5790   case $host in
5791   *-*-mingw*)
5792     # gcc leaves a trailing carriage return which upsets mingw
5793     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5794   *)
5795     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5796   esac
5797   case $ac_prog in
5798     # Accept absolute paths.
5799     [\\/]* | ?:[\\/]*)
5800       re_direlt='/[^/][^/]*/\.\./'
5801       # Canonicalize the pathname of ld
5802       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5803       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5804         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5805       done
5806       test -z "$LD" && LD="$ac_prog"
5807       ;;
5808   "")
5809     # If it fails, then pretend we aren't using GCC.
5810     ac_prog=ld
5811     ;;
5812   *)
5813     # If it is relative, then search for the first ld in PATH.
5814     with_gnu_ld=unknown
5815     ;;
5816   esac
5817 elif test "$with_gnu_ld" = yes; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5819 $as_echo_n "checking for GNU ld... " >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5822 $as_echo_n "checking for non-GNU ld... " >&6; }
5823 fi
5824 if ${lt_cv_path_LD+:} false; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   if test -z "$LD"; then
5828   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5829   for ac_dir in $PATH; do
5830     IFS="$lt_save_ifs"
5831     test -z "$ac_dir" && ac_dir=.
5832     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5833       lt_cv_path_LD="$ac_dir/$ac_prog"
5834       # Check to see if the program is GNU ld.  I'd rather use --version,
5835       # but apparently some variants of GNU ld only accept -v.
5836       # Break only if it was the GNU/non-GNU ld that we prefer.
5837       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5838       *GNU* | *'with BFD'*)
5839         test "$with_gnu_ld" != no && break
5840         ;;
5841       *)
5842         test "$with_gnu_ld" != yes && break
5843         ;;
5844       esac
5845     fi
5846   done
5847   IFS="$lt_save_ifs"
5848 else
5849   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5850 fi
5851 fi
5852
5853 LD="$lt_cv_path_LD"
5854 if test -n "$LD"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5856 $as_echo "$LD" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5864 if ${lt_cv_prog_gnu_ld+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5868 case `$LD -v 2>&1 </dev/null` in
5869 *GNU* | *'with BFD'*)
5870   lt_cv_prog_gnu_ld=yes
5871   ;;
5872 *)
5873   lt_cv_prog_gnu_ld=no
5874   ;;
5875 esac
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5879 with_gnu_ld=$lt_cv_prog_gnu_ld
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5891 if ${lt_cv_path_NM+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   if test -n "$NM"; then
5895   # Let the user override the test.
5896   lt_cv_path_NM="$NM"
5897 else
5898   lt_nm_to_check="${ac_tool_prefix}nm"
5899   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5900     lt_nm_to_check="$lt_nm_to_check nm"
5901   fi
5902   for lt_tmp_nm in $lt_nm_to_check; do
5903     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5904     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5905       IFS="$lt_save_ifs"
5906       test -z "$ac_dir" && ac_dir=.
5907       tmp_nm="$ac_dir/$lt_tmp_nm"
5908       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5909         # Check to see if the nm accepts a BSD-compat flag.
5910         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5911         #   nm: unknown option "B" ignored
5912         # Tru64's nm complains that /dev/null is an invalid object file
5913         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5914         */dev/null* | *'Invalid file or object type'*)
5915           lt_cv_path_NM="$tmp_nm -B"
5916           break
5917           ;;
5918         *)
5919           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5920           */dev/null*)
5921             lt_cv_path_NM="$tmp_nm -p"
5922             break
5923             ;;
5924           *)
5925             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5926             continue # so that we can try to find one that supports BSD flags
5927             ;;
5928           esac
5929           ;;
5930         esac
5931       fi
5932     done
5933     IFS="$lt_save_ifs"
5934   done
5935   : ${lt_cv_path_NM=no}
5936 fi
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5939 $as_echo "$lt_cv_path_NM" >&6; }
5940 if test "$lt_cv_path_NM" != "no"; then
5941   NM="$lt_cv_path_NM"
5942 else
5943   # Didn't find any BSD compatible name lister, look for dumpbin.
5944   if test -n "$DUMPBIN"; then :
5945     # Let the user override the test.
5946   else
5947     if test -n "$ac_tool_prefix"; then
5948   for ac_prog in dumpbin "link -dump"
5949   do
5950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_DUMPBIN+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   if test -n "$DUMPBIN"; then
5958   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965     for ac_exec_ext in '' $ac_executable_extensions; do
5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972   done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 DUMPBIN=$ac_cv_prog_DUMPBIN
5978 if test -n "$DUMPBIN"; then
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5980 $as_echo "$DUMPBIN" >&6; }
5981 else
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985
5986
5987     test -n "$DUMPBIN" && break
5988   done
5989 fi
5990 if test -z "$DUMPBIN"; then
5991   ac_ct_DUMPBIN=$DUMPBIN
5992   for ac_prog in dumpbin "link -dump"
5993 do
5994   # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy $ac_prog; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   if test -n "$ac_ct_DUMPBIN"; then
6002   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009     for ac_exec_ext in '' $ac_executable_extensions; do
6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016   done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6022 if test -n "$ac_ct_DUMPBIN"; then
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6024 $as_echo "$ac_ct_DUMPBIN" >&6; }
6025 else
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030
6031   test -n "$ac_ct_DUMPBIN" && break
6032 done
6033
6034   if test "x$ac_ct_DUMPBIN" = x; then
6035     DUMPBIN=":"
6036   else
6037     case $cross_compiling:$ac_tool_warned in
6038 yes:)
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6041 ac_tool_warned=yes ;;
6042 esac
6043     DUMPBIN=$ac_ct_DUMPBIN
6044   fi
6045 fi
6046
6047     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6048     *COFF*)
6049       DUMPBIN="$DUMPBIN -symbols"
6050       ;;
6051     *)
6052       DUMPBIN=:
6053       ;;
6054     esac
6055   fi
6056
6057   if test "$DUMPBIN" != ":"; then
6058     NM="$DUMPBIN"
6059   fi
6060 fi
6061 test -z "$NM" && NM=nm
6062
6063
6064
6065
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6069 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6070 if ${lt_cv_nm_interface+:} false; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073   lt_cv_nm_interface="BSD nm"
6074   echo "int some_variable = 0;" > conftest.$ac_ext
6075   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6076   (eval "$ac_compile" 2>conftest.err)
6077   cat conftest.err >&5
6078   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6079   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6080   cat conftest.err >&5
6081   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6082   cat conftest.out >&5
6083   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6084     lt_cv_nm_interface="MS dumpbin"
6085   fi
6086   rm -f conftest*
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6089 $as_echo "$lt_cv_nm_interface" >&6; }
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6092 $as_echo_n "checking whether ln -s works... " >&6; }
6093 LN_S=$as_ln_s
6094 if test "$LN_S" = "ln -s"; then
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6096 $as_echo "yes" >&6; }
6097 else
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6099 $as_echo "no, using $LN_S" >&6; }
6100 fi
6101
6102 # find the maximum length of command line arguments
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6104 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6105 if ${lt_cv_sys_max_cmd_len+:} false; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108     i=0
6109   teststring="ABCD"
6110
6111   case $build_os in
6112   msdosdjgpp*)
6113     # On DJGPP, this test can blow up pretty badly due to problems in libc
6114     # (any single argument exceeding 2000 bytes causes a buffer overrun
6115     # during glob expansion).  Even if it were fixed, the result of this
6116     # check would be larger than it should be.
6117     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6118     ;;
6119
6120   gnu*)
6121     # Under GNU Hurd, this test is not required because there is
6122     # no limit to the length of command line arguments.
6123     # Libtool will interpret -1 as no limit whatsoever
6124     lt_cv_sys_max_cmd_len=-1;
6125     ;;
6126
6127   cygwin* | mingw* | cegcc*)
6128     # On Win9x/ME, this test blows up -- it succeeds, but takes
6129     # about 5 minutes as the teststring grows exponentially.
6130     # Worse, since 9x/ME are not pre-emptively multitasking,
6131     # you end up with a "frozen" computer, even though with patience
6132     # the test eventually succeeds (with a max line length of 256k).
6133     # Instead, let's just punt: use the minimum linelength reported by
6134     # all of the supported platforms: 8192 (on NT/2K/XP).
6135     lt_cv_sys_max_cmd_len=8192;
6136     ;;
6137
6138   mint*)
6139     # On MiNT this can take a long time and run out of memory.
6140     lt_cv_sys_max_cmd_len=8192;
6141     ;;
6142
6143   amigaos*)
6144     # On AmigaOS with pdksh, this test takes hours, literally.
6145     # So we just punt and use a minimum line length of 8192.
6146     lt_cv_sys_max_cmd_len=8192;
6147     ;;
6148
6149   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6150     # This has been around since 386BSD, at least.  Likely further.
6151     if test -x /sbin/sysctl; then
6152       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6153     elif test -x /usr/sbin/sysctl; then
6154       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6155     else
6156       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6157     fi
6158     # And add a safety zone
6159     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6160     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6161     ;;
6162
6163   interix*)
6164     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6165     lt_cv_sys_max_cmd_len=196608
6166     ;;
6167
6168   osf*)
6169     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6170     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6171     # nice to cause kernel panics so lets avoid the loop below.
6172     # First set a reasonable default.
6173     lt_cv_sys_max_cmd_len=16384
6174     #
6175     if test -x /sbin/sysconfig; then
6176       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6177         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6178       esac
6179     fi
6180     ;;
6181   sco3.2v5*)
6182     lt_cv_sys_max_cmd_len=102400
6183     ;;
6184   sysv5* | sco5v6* | sysv4.2uw2*)
6185     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6186     if test -n "$kargmax"; then
6187       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6188     else
6189       lt_cv_sys_max_cmd_len=32768
6190     fi
6191     ;;
6192   *)
6193     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6194     if test -n "$lt_cv_sys_max_cmd_len"; then
6195       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6196       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6197     else
6198       # Make teststring a little bigger before we do anything with it.
6199       # a 1K string should be a reasonable start.
6200       for i in 1 2 3 4 5 6 7 8 ; do
6201         teststring=$teststring$teststring
6202       done
6203       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6204       # If test is not a shell built-in, we'll probably end up computing a
6205       # maximum length that is only half of the actual maximum length, but
6206       # we can't tell.
6207       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6208                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6209               test $i != 17 # 1/2 MB should be enough
6210       do
6211         i=`expr $i + 1`
6212         teststring=$teststring$teststring
6213       done
6214       # Only check the string length outside the loop.
6215       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6216       teststring=
6217       # Add a significant safety factor because C++ compilers can tack on
6218       # massive amounts of additional arguments before passing them to the
6219       # linker.  It appears as though 1/2 is a usable value.
6220       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6221     fi
6222     ;;
6223   esac
6224
6225 fi
6226
6227 if test -n $lt_cv_sys_max_cmd_len ; then
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6229 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6232 $as_echo "none" >&6; }
6233 fi
6234 max_cmd_len=$lt_cv_sys_max_cmd_len
6235
6236
6237
6238
6239
6240
6241 : ${CP="cp -f"}
6242 : ${MV="mv -f"}
6243 : ${RM="rm -f"}
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6246 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6247 # Try some XSI features
6248 xsi_shell=no
6249 ( _lt_dummy="a/b/c"
6250   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6251       = c,a/b,b/c, \
6252     && eval 'test $(( 1 + 1 )) -eq 2 \
6253     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6254   && xsi_shell=yes
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6256 $as_echo "$xsi_shell" >&6; }
6257
6258
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6260 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6261 lt_shell_append=no
6262 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6263     >/dev/null 2>&1 \
6264   && lt_shell_append=yes
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6266 $as_echo "$lt_shell_append" >&6; }
6267
6268
6269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6270   lt_unset=unset
6271 else
6272   lt_unset=false
6273 fi
6274
6275
6276
6277
6278
6279 # test EBCDIC or ASCII
6280 case `echo X|tr X '\101'` in
6281  A) # ASCII based system
6282     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6283   lt_SP2NL='tr \040 \012'
6284   lt_NL2SP='tr \015\012 \040\040'
6285   ;;
6286  *) # EBCDIC based system
6287   lt_SP2NL='tr \100 \n'
6288   lt_NL2SP='tr \r\n \100\100'
6289   ;;
6290 esac
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6301 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6302 if ${lt_cv_to_host_file_cmd+:} false; then :
6303   $as_echo_n "(cached) " >&6
6304 else
6305   case $host in
6306   *-*-mingw* )
6307     case $build in
6308       *-*-mingw* ) # actually msys
6309         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6310         ;;
6311       *-*-cygwin* )
6312         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6313         ;;
6314       * ) # otherwise, assume *nix
6315         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6316         ;;
6317     esac
6318     ;;
6319   *-*-cygwin* )
6320     case $build in
6321       *-*-mingw* ) # actually msys
6322         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6323         ;;
6324       *-*-cygwin* )
6325         lt_cv_to_host_file_cmd=func_convert_file_noop
6326         ;;
6327       * ) # otherwise, assume *nix
6328         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6329         ;;
6330     esac
6331     ;;
6332   * ) # unhandled hosts (and "normal" native builds)
6333     lt_cv_to_host_file_cmd=func_convert_file_noop
6334     ;;
6335 esac
6336
6337 fi
6338
6339 to_host_file_cmd=$lt_cv_to_host_file_cmd
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6341 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6342
6343
6344
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6348 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6349 if ${lt_cv_to_tool_file_cmd+:} false; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   #assume ordinary cross tools, or native build.
6353 lt_cv_to_tool_file_cmd=func_convert_file_noop
6354 case $host in
6355   *-*-mingw* )
6356     case $build in
6357       *-*-mingw* ) # actually msys
6358         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6359         ;;
6360     esac
6361     ;;
6362 esac
6363
6364 fi
6365
6366 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6368 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6369
6370
6371
6372
6373
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6375 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6376 if ${lt_cv_ld_reload_flag+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   lt_cv_ld_reload_flag='-r'
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6382 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6383 reload_flag=$lt_cv_ld_reload_flag
6384 case $reload_flag in
6385 "" | " "*) ;;
6386 *) reload_flag=" $reload_flag" ;;
6387 esac
6388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6389 case $host_os in
6390   cygwin* | mingw* | pw32* | cegcc*)
6391     if test "$GCC" != yes; then
6392       reload_cmds=false
6393     fi
6394     ;;
6395   darwin*)
6396     if test "$GCC" = yes; then
6397       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6398     else
6399       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6400     fi
6401     ;;
6402 esac
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 if test -n "$ac_tool_prefix"; then
6413   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_OBJDUMP+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$OBJDUMP"; then
6421   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 OBJDUMP=$ac_cv_prog_OBJDUMP
6441 if test -n "$OBJDUMP"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6443 $as_echo "$OBJDUMP" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_OBJDUMP"; then
6452   ac_ct_OBJDUMP=$OBJDUMP
6453   # Extract the first word of "objdump", so it can be a program name with args.
6454 set dummy objdump; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$ac_ct_OBJDUMP"; then
6461   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6481 if test -n "$ac_ct_OBJDUMP"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6483 $as_echo "$ac_ct_OBJDUMP" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489   if test "x$ac_ct_OBJDUMP" = x; then
6490     OBJDUMP="false"
6491   else
6492     case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498     OBJDUMP=$ac_ct_OBJDUMP
6499   fi
6500 else
6501   OBJDUMP="$ac_cv_prog_OBJDUMP"
6502 fi
6503
6504 test -z "$OBJDUMP" && OBJDUMP=objdump
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6515 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6516 if ${lt_cv_deplibs_check_method+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   lt_cv_file_magic_cmd='$MAGIC_CMD'
6520 lt_cv_file_magic_test_file=
6521 lt_cv_deplibs_check_method='unknown'
6522 # Need to set the preceding variable on all platforms that support
6523 # interlibrary dependencies.
6524 # 'none' -- dependencies not supported.
6525 # `unknown' -- same as none, but documents that we really don't know.
6526 # 'pass_all' -- all dependencies passed with no checks.
6527 # 'test_compile' -- check by making test program.
6528 # 'file_magic [[regex]]' -- check by looking for files in library path
6529 # which responds to the $file_magic_cmd with a given extended regex.
6530 # If you have `file' or equivalent on your system and you're not sure
6531 # whether `pass_all' will *always* work, you probably want this one.
6532
6533 case $host_os in
6534 aix[4-9]*)
6535   lt_cv_deplibs_check_method=pass_all
6536   ;;
6537
6538 beos*)
6539   lt_cv_deplibs_check_method=pass_all
6540   ;;
6541
6542 bsdi[45]*)
6543   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6544   lt_cv_file_magic_cmd='/usr/bin/file -L'
6545   lt_cv_file_magic_test_file=/shlib/libc.so
6546   ;;
6547
6548 cygwin*)
6549   # func_win32_libid is a shell function defined in ltmain.sh
6550   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6551   lt_cv_file_magic_cmd='func_win32_libid'
6552   ;;
6553
6554 mingw* | pw32*)
6555   # Base MSYS/MinGW do not provide the 'file' command needed by
6556   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6557   # unless we find 'file', for example because we are cross-compiling.
6558   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6559   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6560     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6561     lt_cv_file_magic_cmd='func_win32_libid'
6562   else
6563     # Keep this pattern in sync with the one in func_win32_libid.
6564     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6565     lt_cv_file_magic_cmd='$OBJDUMP -f'
6566   fi
6567   ;;
6568
6569 cegcc*)
6570   # use the weaker test based on 'objdump'. See mingw*.
6571   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6572   lt_cv_file_magic_cmd='$OBJDUMP -f'
6573   ;;
6574
6575 darwin* | rhapsody*)
6576   lt_cv_deplibs_check_method=pass_all
6577   ;;
6578
6579 freebsd* | dragonfly*)
6580   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6581     case $host_cpu in
6582     i*86 )
6583       # Not sure whether the presence of OpenBSD here was a mistake.
6584       # Let's accept both of them until this is cleared up.
6585       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6586       lt_cv_file_magic_cmd=/usr/bin/file
6587       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6588       ;;
6589     esac
6590   else
6591     lt_cv_deplibs_check_method=pass_all
6592   fi
6593   ;;
6594
6595 gnu*)
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 haiku*)
6600   lt_cv_deplibs_check_method=pass_all
6601   ;;
6602
6603 hpux10.20* | hpux11*)
6604   lt_cv_file_magic_cmd=/usr/bin/file
6605   case $host_cpu in
6606   ia64*)
6607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6608     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6609     ;;
6610   hppa*64*)
6611     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]'
6612     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6613     ;;
6614   *)
6615     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6616     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6617     ;;
6618   esac
6619   ;;
6620
6621 interix[3-9]*)
6622   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6623   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6624   ;;
6625
6626 irix5* | irix6* | nonstopux*)
6627   case $LD in
6628   *-32|*"-32 ") libmagic=32-bit;;
6629   *-n32|*"-n32 ") libmagic=N32;;
6630   *-64|*"-64 ") libmagic=64-bit;;
6631   *) libmagic=never-match;;
6632   esac
6633   lt_cv_deplibs_check_method=pass_all
6634   ;;
6635
6636 # This must be Linux ELF.
6637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6638   lt_cv_deplibs_check_method=pass_all
6639   ;;
6640
6641 netbsd*)
6642   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6644   else
6645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6646   fi
6647   ;;
6648
6649 newos6*)
6650   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6651   lt_cv_file_magic_cmd=/usr/bin/file
6652   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6653   ;;
6654
6655 *nto* | *qnx*)
6656   lt_cv_deplibs_check_method=pass_all
6657   ;;
6658
6659 openbsd*)
6660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6662   else
6663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6664   fi
6665   ;;
6666
6667 osf3* | osf4* | osf5*)
6668   lt_cv_deplibs_check_method=pass_all
6669   ;;
6670
6671 rdos*)
6672   lt_cv_deplibs_check_method=pass_all
6673   ;;
6674
6675 solaris*)
6676   lt_cv_deplibs_check_method=pass_all
6677   ;;
6678
6679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6680   lt_cv_deplibs_check_method=pass_all
6681   ;;
6682
6683 sysv4 | sysv4.3*)
6684   case $host_vendor in
6685   motorola)
6686     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]'
6687     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6688     ;;
6689   ncr)
6690     lt_cv_deplibs_check_method=pass_all
6691     ;;
6692   sequent)
6693     lt_cv_file_magic_cmd='/bin/file'
6694     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6695     ;;
6696   sni)
6697     lt_cv_file_magic_cmd='/bin/file'
6698     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6699     lt_cv_file_magic_test_file=/lib/libc.so
6700     ;;
6701   siemens)
6702     lt_cv_deplibs_check_method=pass_all
6703     ;;
6704   pc)
6705     lt_cv_deplibs_check_method=pass_all
6706     ;;
6707   esac
6708   ;;
6709
6710 tpf*)
6711   lt_cv_deplibs_check_method=pass_all
6712   ;;
6713 esac
6714
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6718
6719 file_magic_glob=
6720 want_nocaseglob=no
6721 if test "$build" = "$host"; then
6722   case $host_os in
6723   mingw* | pw32*)
6724     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6725       want_nocaseglob=yes
6726     else
6727       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6728     fi
6729     ;;
6730   esac
6731 fi
6732
6733 file_magic_cmd=$lt_cv_file_magic_cmd
6734 deplibs_check_method=$lt_cv_deplibs_check_method
6735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758 if test -n "$ac_tool_prefix"; then
6759   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6760 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_prog_DLLTOOL+:} false; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   if test -n "$DLLTOOL"; then
6767   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774     for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781   done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 DLLTOOL=$ac_cv_prog_DLLTOOL
6787 if test -n "$DLLTOOL"; then
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6789 $as_echo "$DLLTOOL" >&6; }
6790 else
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6793 fi
6794
6795
6796 fi
6797 if test -z "$ac_cv_prog_DLLTOOL"; then
6798   ac_ct_DLLTOOL=$DLLTOOL
6799   # Extract the first word of "dlltool", so it can be a program name with args.
6800 set dummy dlltool; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6804   $as_echo_n "(cached) " >&6
6805 else
6806   if test -n "$ac_ct_DLLTOOL"; then
6807   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814     for ac_exec_ext in '' $ac_executable_extensions; do
6815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821   done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6827 if test -n "$ac_ct_DLLTOOL"; then
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6829 $as_echo "$ac_ct_DLLTOOL" >&6; }
6830 else
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6834
6835   if test "x$ac_ct_DLLTOOL" = x; then
6836     DLLTOOL="false"
6837   else
6838     case $cross_compiling:$ac_tool_warned in
6839 yes:)
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842 ac_tool_warned=yes ;;
6843 esac
6844     DLLTOOL=$ac_ct_DLLTOOL
6845   fi
6846 else
6847   DLLTOOL="$ac_cv_prog_DLLTOOL"
6848 fi
6849
6850 test -z "$DLLTOOL" && DLLTOOL=dlltool
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6862 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6863 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   lt_cv_sharedlib_from_linklib_cmd='unknown'
6867
6868 case $host_os in
6869 cygwin* | mingw* | pw32* | cegcc*)
6870   # two different shell functions defined in ltmain.sh
6871   # decide which to use based on capabilities of $DLLTOOL
6872   case `$DLLTOOL --help 2>&1` in
6873   *--identify-strict*)
6874     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6875     ;;
6876   *)
6877     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6878     ;;
6879   esac
6880   ;;
6881 *)
6882   # fallback: assume linklib IS sharedlib
6883   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6884   ;;
6885 esac
6886
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6889 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6890 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6891 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6892
6893
6894
6895
6896
6897
6898
6899 if test -n "$ac_tool_prefix"; then
6900   for ac_prog in ar
6901   do
6902     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_AR+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   if test -n "$AR"; then
6910   ac_cv_prog_AR="$AR" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917     for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924   done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 AR=$ac_cv_prog_AR
6930 if test -n "$AR"; then
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6932 $as_echo "$AR" >&6; }
6933 else
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939     test -n "$AR" && break
6940   done
6941 fi
6942 if test -z "$AR"; then
6943   ac_ct_AR=$AR
6944   for ac_prog in ar
6945 do
6946   # Extract the first word of "$ac_prog", so it can be a program name with args.
6947 set dummy $ac_prog; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6951   $as_echo_n "(cached) " >&6
6952 else
6953   if test -n "$ac_ct_AR"; then
6954   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961     for ac_exec_ext in '' $ac_executable_extensions; do
6962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963     ac_cv_prog_ac_ct_AR="$ac_prog"
6964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968   done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6974 if test -n "$ac_ct_AR"; then
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6976 $as_echo "$ac_ct_AR" >&6; }
6977 else
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981
6982
6983   test -n "$ac_ct_AR" && break
6984 done
6985
6986   if test "x$ac_ct_AR" = x; then
6987     AR="false"
6988   else
6989     case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995     AR=$ac_ct_AR
6996   fi
6997 fi
6998
6999 : ${AR=ar}
7000 : ${AR_FLAGS=cru}
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7013 $as_echo_n "checking for archiver @FILE support... " >&6; }
7014 if ${lt_cv_ar_at_file+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   lt_cv_ar_at_file=no
7018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h.  */
7020
7021 int
7022 main ()
7023 {
7024
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_c_try_compile "$LINENO"; then :
7030   echo conftest.$ac_objext > conftest.lst
7031       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7032       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7033   (eval $lt_ar_try) 2>&5
7034   ac_status=$?
7035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036   test $ac_status = 0; }
7037       if test "$ac_status" -eq 0; then
7038         # Ensure the archiver fails upon bogus file names.
7039         rm -f conftest.$ac_objext libconftest.a
7040         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7041   (eval $lt_ar_try) 2>&5
7042   ac_status=$?
7043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044   test $ac_status = 0; }
7045         if test "$ac_status" -ne 0; then
7046           lt_cv_ar_at_file=@
7047         fi
7048       fi
7049       rm -f conftest.* libconftest.a
7050
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7056 $as_echo "$lt_cv_ar_at_file" >&6; }
7057
7058 if test "x$lt_cv_ar_at_file" = xno; then
7059   archiver_list_spec=
7060 else
7061   archiver_list_spec=$lt_cv_ar_at_file
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070 if test -n "$ac_tool_prefix"; then
7071   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}strip; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_STRIP+:} false; then :
7076   $as_echo_n "(cached) " >&6
7077 else
7078   if test -n "$STRIP"; then
7079   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086     for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093   done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 STRIP=$ac_cv_prog_STRIP
7099 if test -n "$STRIP"; then
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7101 $as_echo "$STRIP" >&6; }
7102 else
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 fi
7106
7107
7108 fi
7109 if test -z "$ac_cv_prog_STRIP"; then
7110   ac_ct_STRIP=$STRIP
7111   # Extract the first word of "strip", so it can be a program name with args.
7112 set dummy strip; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   if test -n "$ac_ct_STRIP"; then
7119   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126     for ac_exec_ext in '' $ac_executable_extensions; do
7127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128     ac_cv_prog_ac_ct_STRIP="strip"
7129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133   done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7139 if test -n "$ac_ct_STRIP"; then
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7141 $as_echo "$ac_ct_STRIP" >&6; }
7142 else
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146
7147   if test "x$ac_ct_STRIP" = x; then
7148     STRIP=":"
7149   else
7150     case $cross_compiling:$ac_tool_warned in
7151 yes:)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7155 esac
7156     STRIP=$ac_ct_STRIP
7157   fi
7158 else
7159   STRIP="$ac_cv_prog_STRIP"
7160 fi
7161
7162 test -z "$STRIP" && STRIP=:
7163
7164
7165
7166
7167
7168
7169 if test -n "$ac_tool_prefix"; then
7170   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_RANLIB+:} false; then :
7175   $as_echo_n "(cached) " >&6
7176 else
7177   if test -n "$RANLIB"; then
7178   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185     for ac_exec_ext in '' $ac_executable_extensions; do
7186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192   done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7200 $as_echo "$RANLIB" >&6; }
7201 else
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205
7206
7207 fi
7208 if test -z "$ac_cv_prog_RANLIB"; then
7209   ac_ct_RANLIB=$RANLIB
7210   # Extract the first word of "ranlib", so it can be a program name with args.
7211 set dummy ranlib; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   if test -n "$ac_ct_RANLIB"; then
7218   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223   IFS=$as_save_IFS
7224   test -z "$as_dir" && as_dir=.
7225     for ac_exec_ext in '' $ac_executable_extensions; do
7226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227     ac_cv_prog_ac_ct_RANLIB="ranlib"
7228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229     break 2
7230   fi
7231 done
7232   done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7238 if test -n "$ac_ct_RANLIB"; then
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7240 $as_echo "$ac_ct_RANLIB" >&6; }
7241 else
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246   if test "x$ac_ct_RANLIB" = x; then
7247     RANLIB=":"
7248   else
7249     case $cross_compiling:$ac_tool_warned in
7250 yes:)
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7254 esac
7255     RANLIB=$ac_ct_RANLIB
7256   fi
7257 else
7258   RANLIB="$ac_cv_prog_RANLIB"
7259 fi
7260
7261 test -z "$RANLIB" && RANLIB=:
7262
7263
7264
7265
7266
7267
7268 # Determine commands to create old-style static archives.
7269 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7270 old_postinstall_cmds='chmod 644 $oldlib'
7271 old_postuninstall_cmds=
7272
7273 if test -n "$RANLIB"; then
7274   case $host_os in
7275   openbsd*)
7276     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7277     ;;
7278   *)
7279     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7280     ;;
7281   esac
7282   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7283 fi
7284
7285 case $host_os in
7286   darwin*)
7287     lock_old_archive_extraction=yes ;;
7288   *)
7289     lock_old_archive_extraction=no ;;
7290 esac
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330 # If no C compiler was specified, use CC.
7331 LTCC=${LTCC-"$CC"}
7332
7333 # If no C compiler flags were specified, use CFLAGS.
7334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7335
7336 # Allow CC to be a program name with arguments.
7337 compiler=$CC
7338
7339
7340 # Check for command to grab the raw symbol name followed by C symbol from nm.
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7342 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7343 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346
7347 # These are sane defaults that work on at least a few old systems.
7348 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7349
7350 # Character class describing NM global symbol codes.
7351 symcode='[BCDEGRST]'
7352
7353 # Regexp to match symbols that can be accessed directly from C.
7354 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7355
7356 # Define system-specific variables.
7357 case $host_os in
7358 aix*)
7359   symcode='[BCDT]'
7360   ;;
7361 cygwin* | mingw* | pw32* | cegcc*)
7362   symcode='[ABCDGISTW]'
7363   ;;
7364 hpux*)
7365   if test "$host_cpu" = ia64; then
7366     symcode='[ABCDEGRST]'
7367   fi
7368   ;;
7369 irix* | nonstopux*)
7370   symcode='[BCDEGRST]'
7371   ;;
7372 osf*)
7373   symcode='[BCDEGQRST]'
7374   ;;
7375 solaris*)
7376   symcode='[BDRT]'
7377   ;;
7378 sco3.2v5*)
7379   symcode='[DT]'
7380   ;;
7381 sysv4.2uw2*)
7382   symcode='[DT]'
7383   ;;
7384 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7385   symcode='[ABDT]'
7386   ;;
7387 sysv4)
7388   symcode='[DFNSTU]'
7389   ;;
7390 esac
7391
7392 # If we're using GNU nm, then use its standard symbol codes.
7393 case `$NM -V 2>&1` in
7394 *GNU* | *'with BFD'*)
7395   symcode='[ABCDGIRSTW]' ;;
7396 esac
7397
7398 # Transform an extracted symbol line into a proper C declaration.
7399 # Some systems (esp. on ia64) link data and code symbols differently,
7400 # so use this general approach.
7401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7402
7403 # Transform an extracted symbol line into symbol name and symbol address
7404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7406
7407 # Handle CRLF in mingw tool chain
7408 opt_cr=
7409 case $build_os in
7410 mingw*)
7411   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7412   ;;
7413 esac
7414
7415 # Try without a prefix underscore, then with it.
7416 for ac_symprfx in "" "_"; do
7417
7418   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7419   symxfrm="\\1 $ac_symprfx\\2 \\2"
7420
7421   # Write the raw and C identifiers.
7422   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7423     # Fake it for dumpbin and say T for any non-static function
7424     # and D for any global variable.
7425     # Also find C++ and __fastcall symbols from MSVC++,
7426     # which start with @ or ?.
7427     lt_cv_sys_global_symbol_pipe="$AWK '"\
7428 "     {last_section=section; section=\$ 3};"\
7429 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7430 "     \$ 0!~/External *\|/{next};"\
7431 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7432 "     {if(hide[section]) next};"\
7433 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7434 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7435 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7436 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7437 "     ' prfx=^$ac_symprfx"
7438   else
7439     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7440   fi
7441   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7442
7443   # Check to see that the pipe works correctly.
7444   pipe_works=no
7445
7446   rm -f conftest*
7447   cat > conftest.$ac_ext <<_LT_EOF
7448 #ifdef __cplusplus
7449 extern "C" {
7450 #endif
7451 char nm_test_var;
7452 void nm_test_func(void);
7453 void nm_test_func(void){}
7454 #ifdef __cplusplus
7455 }
7456 #endif
7457 int main(){nm_test_var='a';nm_test_func();return(0);}
7458 _LT_EOF
7459
7460   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461   (eval $ac_compile) 2>&5
7462   ac_status=$?
7463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464   test $ac_status = 0; }; then
7465     # Now try to grab the symbols.
7466     nlist=conftest.nm
7467     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7468   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7469   ac_status=$?
7470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7471   test $ac_status = 0; } && test -s "$nlist"; then
7472       # Try sorting and uniquifying the output.
7473       if sort "$nlist" | uniq > "$nlist"T; then
7474         mv -f "$nlist"T "$nlist"
7475       else
7476         rm -f "$nlist"T
7477       fi
7478
7479       # Make sure that we snagged all the symbols we need.
7480       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7481         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7482           cat <<_LT_EOF > conftest.$ac_ext
7483 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7484 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7485 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7486    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7487 # define LT_DLSYM_CONST
7488 #elif defined(__osf__)
7489 /* This system does not cope well with relocations in const data.  */
7490 # define LT_DLSYM_CONST
7491 #else
7492 # define LT_DLSYM_CONST const
7493 #endif
7494
7495 #ifdef __cplusplus
7496 extern "C" {
7497 #endif
7498
7499 _LT_EOF
7500           # Now generate the symbol file.
7501           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7502
7503           cat <<_LT_EOF >> conftest.$ac_ext
7504
7505 /* The mapping between symbol names and symbols.  */
7506 LT_DLSYM_CONST struct {
7507   const char *name;
7508   void       *address;
7509 }
7510 lt__PROGRAM__LTX_preloaded_symbols[] =
7511 {
7512   { "@PROGRAM@", (void *) 0 },
7513 _LT_EOF
7514           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7515           cat <<\_LT_EOF >> conftest.$ac_ext
7516   {0, (void *) 0}
7517 };
7518
7519 /* This works around a problem in FreeBSD linker */
7520 #ifdef FREEBSD_WORKAROUND
7521 static const void *lt_preloaded_setup() {
7522   return lt__PROGRAM__LTX_preloaded_symbols;
7523 }
7524 #endif
7525
7526 #ifdef __cplusplus
7527 }
7528 #endif
7529 _LT_EOF
7530           # Now try linking the two files.
7531           mv conftest.$ac_objext conftstm.$ac_objext
7532           lt_globsym_save_LIBS=$LIBS
7533           lt_globsym_save_CFLAGS=$CFLAGS
7534           LIBS="conftstm.$ac_objext"
7535           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7536           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7537   (eval $ac_link) 2>&5
7538   ac_status=$?
7539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7541             pipe_works=yes
7542           fi
7543           LIBS=$lt_globsym_save_LIBS
7544           CFLAGS=$lt_globsym_save_CFLAGS
7545         else
7546           echo "cannot find nm_test_func in $nlist" >&5
7547         fi
7548       else
7549         echo "cannot find nm_test_var in $nlist" >&5
7550       fi
7551     else
7552       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7553     fi
7554   else
7555     echo "$progname: failed program was:" >&5
7556     cat conftest.$ac_ext >&5
7557   fi
7558   rm -rf conftest* conftst*
7559
7560   # Do not use the global_symbol_pipe unless it works.
7561   if test "$pipe_works" = yes; then
7562     break
7563   else
7564     lt_cv_sys_global_symbol_pipe=
7565   fi
7566 done
7567
7568 fi
7569
7570 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7571   lt_cv_sys_global_symbol_to_cdecl=
7572 fi
7573 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7575 $as_echo "failed" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7578 $as_echo "ok" >&6; }
7579 fi
7580
7581 # Response file support.
7582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7583   nm_file_list_spec='@'
7584 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7585   nm_file_list_spec='@'
7586 fi
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7615 $as_echo_n "checking for sysroot... " >&6; }
7616
7617 # Check whether --with-sysroot was given.
7618 if test "${with_sysroot+set}" = set; then :
7619   withval=$with_sysroot;
7620 else
7621   with_sysroot=no
7622 fi
7623
7624
7625 lt_sysroot=
7626 case ${with_sysroot} in #(
7627  yes)
7628    if test "$GCC" = yes; then
7629      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7630    fi
7631    ;; #(
7632  /*)
7633    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7634    ;; #(
7635  no|'')
7636    ;; #(
7637  *)
7638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7639 $as_echo "${with_sysroot}" >&6; }
7640    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7641    ;;
7642 esac
7643
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7645 $as_echo "${lt_sysroot:-no}" >&6; }
7646
7647
7648
7649
7650
7651 # Check whether --enable-libtool-lock was given.
7652 if test "${enable_libtool_lock+set}" = set; then :
7653   enableval=$enable_libtool_lock;
7654 fi
7655
7656 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7657
7658 # Some flags need to be propagated to the compiler or linker for good
7659 # libtool support.
7660 case $host in
7661 ia64-*-hpux*)
7662   # Find out which ABI we are using.
7663   echo 'int i;' > conftest.$ac_ext
7664   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665   (eval $ac_compile) 2>&5
7666   ac_status=$?
7667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668   test $ac_status = 0; }; then
7669     case `/usr/bin/file conftest.$ac_objext` in
7670       *ELF-32*)
7671         HPUX_IA64_MODE="32"
7672         ;;
7673       *ELF-64*)
7674         HPUX_IA64_MODE="64"
7675         ;;
7676     esac
7677   fi
7678   rm -rf conftest*
7679   ;;
7680 *-*-irix6*)
7681   # Find out which ABI we are using.
7682   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7683   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7684   (eval $ac_compile) 2>&5
7685   ac_status=$?
7686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7687   test $ac_status = 0; }; then
7688     if test "$lt_cv_prog_gnu_ld" = yes; then
7689       case `/usr/bin/file conftest.$ac_objext` in
7690         *32-bit*)
7691           LD="${LD-ld} -melf32bsmip"
7692           ;;
7693         *N32*)
7694           LD="${LD-ld} -melf32bmipn32"
7695           ;;
7696         *64-bit*)
7697           LD="${LD-ld} -melf64bmip"
7698         ;;
7699       esac
7700     else
7701       case `/usr/bin/file conftest.$ac_objext` in
7702         *32-bit*)
7703           LD="${LD-ld} -32"
7704           ;;
7705         *N32*)
7706           LD="${LD-ld} -n32"
7707           ;;
7708         *64-bit*)
7709           LD="${LD-ld} -64"
7710           ;;
7711       esac
7712     fi
7713   fi
7714   rm -rf conftest*
7715   ;;
7716
7717 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7718 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7719   # Find out which ABI we are using.
7720   echo 'int i;' > conftest.$ac_ext
7721   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7722   (eval $ac_compile) 2>&5
7723   ac_status=$?
7724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725   test $ac_status = 0; }; then
7726     case `/usr/bin/file conftest.o` in
7727       *32-bit*)
7728         case $host in
7729           x86_64-*kfreebsd*-gnu)
7730             LD="${LD-ld} -m elf_i386_fbsd"
7731             ;;
7732           x86_64-*linux*)
7733             LD="${LD-ld} -m elf_i386"
7734             ;;
7735           ppc64-*linux*|powerpc64-*linux*)
7736             LD="${LD-ld} -m elf32ppclinux"
7737             ;;
7738           s390x-*linux*)
7739             LD="${LD-ld} -m elf_s390"
7740             ;;
7741           sparc64-*linux*)
7742             LD="${LD-ld} -m elf32_sparc"
7743             ;;
7744         esac
7745         ;;
7746       *64-bit*)
7747         case $host in
7748           x86_64-*kfreebsd*-gnu)
7749             LD="${LD-ld} -m elf_x86_64_fbsd"
7750             ;;
7751           x86_64-*linux*)
7752             LD="${LD-ld} -m elf_x86_64"
7753             ;;
7754           ppc*-*linux*|powerpc*-*linux*)
7755             LD="${LD-ld} -m elf64ppc"
7756             ;;
7757           s390*-*linux*|s390*-*tpf*)
7758             LD="${LD-ld} -m elf64_s390"
7759             ;;
7760           sparc*-*linux*)
7761             LD="${LD-ld} -m elf64_sparc"
7762             ;;
7763         esac
7764         ;;
7765     esac
7766   fi
7767   rm -rf conftest*
7768   ;;
7769
7770 *-*-sco3.2v5*)
7771   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7772   SAVE_CFLAGS="$CFLAGS"
7773   CFLAGS="$CFLAGS -belf"
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7775 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7776 if ${lt_cv_cc_needs_belf+:} false; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   ac_ext=c
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h.  */
7787
7788 int
7789 main ()
7790 {
7791
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_link "$LINENO"; then :
7797   lt_cv_cc_needs_belf=yes
7798 else
7799   lt_cv_cc_needs_belf=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext \
7802     conftest$ac_exeext conftest.$ac_ext
7803      ac_ext=c
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7811 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7812   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7813     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7814     CFLAGS="$SAVE_CFLAGS"
7815   fi
7816   ;;
7817 sparc*-*solaris*)
7818   # Find out which ABI we are using.
7819   echo 'int i;' > conftest.$ac_ext
7820   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821   (eval $ac_compile) 2>&5
7822   ac_status=$?
7823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824   test $ac_status = 0; }; then
7825     case `/usr/bin/file conftest.o` in
7826     *64-bit*)
7827       case $lt_cv_prog_gnu_ld in
7828       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7829       *)
7830         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7831           LD="${LD-ld} -64"
7832         fi
7833         ;;
7834       esac
7835       ;;
7836     esac
7837   fi
7838   rm -rf conftest*
7839   ;;
7840 esac
7841
7842 need_locks="$enable_libtool_lock"
7843
7844 if test -n "$ac_tool_prefix"; then
7845   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7846 set dummy ${ac_tool_prefix}mt; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   if test -n "$MANIFEST_TOOL"; then
7853   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860     for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867   done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7873 if test -n "$MANIFEST_TOOL"; then
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7875 $as_echo "$MANIFEST_TOOL" >&6; }
7876 else
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881
7882 fi
7883 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7884   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7885   # Extract the first word of "mt", so it can be a program name with args.
7886 set dummy mt; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   if test -n "$ac_ct_MANIFEST_TOOL"; then
7893   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898   IFS=$as_save_IFS
7899   test -z "$as_dir" && as_dir=.
7900     for ac_exec_ext in '' $ac_executable_extensions; do
7901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904     break 2
7905   fi
7906 done
7907   done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7913 if test -n "$ac_ct_MANIFEST_TOOL"; then
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7915 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7916 else
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7922     MANIFEST_TOOL=":"
7923   else
7924     case $cross_compiling:$ac_tool_warned in
7925 yes:)
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7928 ac_tool_warned=yes ;;
7929 esac
7930     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7931   fi
7932 else
7933   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7934 fi
7935
7936 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7938 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7939 if ${lt_cv_path_mainfest_tool+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   lt_cv_path_mainfest_tool=no
7943   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7944   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7945   cat conftest.err >&5
7946   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7947     lt_cv_path_mainfest_tool=yes
7948   fi
7949   rm -f conftest*
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7952 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7953 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7954   MANIFEST_TOOL=:
7955 fi
7956
7957
7958
7959
7960
7961
7962   case $host_os in
7963     rhapsody* | darwin*)
7964     if test -n "$ac_tool_prefix"; then
7965   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7966 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7970   $as_echo_n "(cached) " >&6
7971 else
7972   if test -n "$DSYMUTIL"; then
7973   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978   IFS=$as_save_IFS
7979   test -z "$as_dir" && as_dir=.
7980     for ac_exec_ext in '' $ac_executable_extensions; do
7981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984     break 2
7985   fi
7986 done
7987   done
7988 IFS=$as_save_IFS
7989
7990 fi
7991 fi
7992 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7993 if test -n "$DSYMUTIL"; then
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7995 $as_echo "$DSYMUTIL" >&6; }
7996 else
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
7999 fi
8000
8001
8002 fi
8003 if test -z "$ac_cv_prog_DSYMUTIL"; then
8004   ac_ct_DSYMUTIL=$DSYMUTIL
8005   # Extract the first word of "dsymutil", so it can be a program name with args.
8006 set dummy dsymutil; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8010   $as_echo_n "(cached) " >&6
8011 else
8012   if test -n "$ac_ct_DSYMUTIL"; then
8013   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8014 else
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8017 do
8018   IFS=$as_save_IFS
8019   test -z "$as_dir" && as_dir=.
8020     for ac_exec_ext in '' $ac_executable_extensions; do
8021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024     break 2
8025   fi
8026 done
8027   done
8028 IFS=$as_save_IFS
8029
8030 fi
8031 fi
8032 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8033 if test -n "$ac_ct_DSYMUTIL"; then
8034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8035 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8036 else
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8039 fi
8040
8041   if test "x$ac_ct_DSYMUTIL" = x; then
8042     DSYMUTIL=":"
8043   else
8044     case $cross_compiling:$ac_tool_warned in
8045 yes:)
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8048 ac_tool_warned=yes ;;
8049 esac
8050     DSYMUTIL=$ac_ct_DSYMUTIL
8051   fi
8052 else
8053   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8054 fi
8055
8056     if test -n "$ac_tool_prefix"; then
8057   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if ${ac_cv_prog_NMEDIT+:} false; then :
8062   $as_echo_n "(cached) " >&6
8063 else
8064   if test -n "$NMEDIT"; then
8065   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070   IFS=$as_save_IFS
8071   test -z "$as_dir" && as_dir=.
8072     for ac_exec_ext in '' $ac_executable_extensions; do
8073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8074     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076     break 2
8077   fi
8078 done
8079   done
8080 IFS=$as_save_IFS
8081
8082 fi
8083 fi
8084 NMEDIT=$ac_cv_prog_NMEDIT
8085 if test -n "$NMEDIT"; then
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8087 $as_echo "$NMEDIT" >&6; }
8088 else
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093
8094 fi
8095 if test -z "$ac_cv_prog_NMEDIT"; then
8096   ac_ct_NMEDIT=$NMEDIT
8097   # Extract the first word of "nmedit", so it can be a program name with args.
8098 set dummy nmedit; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   if test -n "$ac_ct_NMEDIT"; then
8105   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110   IFS=$as_save_IFS
8111   test -z "$as_dir" && as_dir=.
8112     for ac_exec_ext in '' $ac_executable_extensions; do
8113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8114     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116     break 2
8117   fi
8118 done
8119   done
8120 IFS=$as_save_IFS
8121
8122 fi
8123 fi
8124 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8125 if test -n "$ac_ct_NMEDIT"; then
8126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8127 $as_echo "$ac_ct_NMEDIT" >&6; }
8128 else
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8131 fi
8132
8133   if test "x$ac_ct_NMEDIT" = x; then
8134     NMEDIT=":"
8135   else
8136     case $cross_compiling:$ac_tool_warned in
8137 yes:)
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8140 ac_tool_warned=yes ;;
8141 esac
8142     NMEDIT=$ac_ct_NMEDIT
8143   fi
8144 else
8145   NMEDIT="$ac_cv_prog_NMEDIT"
8146 fi
8147
8148     if test -n "$ac_tool_prefix"; then
8149   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_LIPO+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   if test -n "$LIPO"; then
8157   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164     for ac_exec_ext in '' $ac_executable_extensions; do
8165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171   done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 LIPO=$ac_cv_prog_LIPO
8177 if test -n "$LIPO"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8179 $as_echo "$LIPO" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185
8186 fi
8187 if test -z "$ac_cv_prog_LIPO"; then
8188   ac_ct_LIPO=$LIPO
8189   # Extract the first word of "lipo", so it can be a program name with args.
8190 set dummy lipo; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   if test -n "$ac_ct_LIPO"; then
8197   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202   IFS=$as_save_IFS
8203   test -z "$as_dir" && as_dir=.
8204     for ac_exec_ext in '' $ac_executable_extensions; do
8205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8206     ac_cv_prog_ac_ct_LIPO="lipo"
8207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208     break 2
8209   fi
8210 done
8211   done
8212 IFS=$as_save_IFS
8213
8214 fi
8215 fi
8216 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8217 if test -n "$ac_ct_LIPO"; then
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8219 $as_echo "$ac_ct_LIPO" >&6; }
8220 else
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225   if test "x$ac_ct_LIPO" = x; then
8226     LIPO=":"
8227   else
8228     case $cross_compiling:$ac_tool_warned in
8229 yes:)
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232 ac_tool_warned=yes ;;
8233 esac
8234     LIPO=$ac_ct_LIPO
8235   fi
8236 else
8237   LIPO="$ac_cv_prog_LIPO"
8238 fi
8239
8240     if test -n "$ac_tool_prefix"; then
8241   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}otool; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_OTOOL+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   if test -n "$OTOOL"; then
8249   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256     for ac_exec_ext in '' $ac_executable_extensions; do
8257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263   done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 OTOOL=$ac_cv_prog_OTOOL
8269 if test -n "$OTOOL"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8271 $as_echo "$OTOOL" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277
8278 fi
8279 if test -z "$ac_cv_prog_OTOOL"; then
8280   ac_ct_OTOOL=$OTOOL
8281   # Extract the first word of "otool", so it can be a program name with args.
8282 set dummy otool; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   if test -n "$ac_ct_OTOOL"; then
8289   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294   IFS=$as_save_IFS
8295   test -z "$as_dir" && as_dir=.
8296     for ac_exec_ext in '' $ac_executable_extensions; do
8297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298     ac_cv_prog_ac_ct_OTOOL="otool"
8299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300     break 2
8301   fi
8302 done
8303   done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8309 if test -n "$ac_ct_OTOOL"; then
8310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8311 $as_echo "$ac_ct_OTOOL" >&6; }
8312 else
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316
8317   if test "x$ac_ct_OTOOL" = x; then
8318     OTOOL=":"
8319   else
8320     case $cross_compiling:$ac_tool_warned in
8321 yes:)
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8325 esac
8326     OTOOL=$ac_ct_OTOOL
8327   fi
8328 else
8329   OTOOL="$ac_cv_prog_OTOOL"
8330 fi
8331
8332     if test -n "$ac_tool_prefix"; then
8333   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_OTOOL64+:} false; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$OTOOL64"; then
8341   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348     for ac_exec_ext in '' $ac_executable_extensions; do
8349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355   done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 OTOOL64=$ac_cv_prog_OTOOL64
8361 if test -n "$OTOOL64"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8363 $as_echo "$OTOOL64" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370 fi
8371 if test -z "$ac_cv_prog_OTOOL64"; then
8372   ac_ct_OTOOL64=$OTOOL64
8373   # Extract the first word of "otool64", so it can be a program name with args.
8374 set dummy otool64; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   if test -n "$ac_ct_OTOOL64"; then
8381   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386   IFS=$as_save_IFS
8387   test -z "$as_dir" && as_dir=.
8388     for ac_exec_ext in '' $ac_executable_extensions; do
8389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390     ac_cv_prog_ac_ct_OTOOL64="otool64"
8391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392     break 2
8393   fi
8394 done
8395   done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8401 if test -n "$ac_ct_OTOOL64"; then
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8403 $as_echo "$ac_ct_OTOOL64" >&6; }
8404 else
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409   if test "x$ac_ct_OTOOL64" = x; then
8410     OTOOL64=":"
8411   else
8412     case $cross_compiling:$ac_tool_warned in
8413 yes:)
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8417 esac
8418     OTOOL64=$ac_ct_OTOOL64
8419   fi
8420 else
8421   OTOOL64="$ac_cv_prog_OTOOL64"
8422 fi
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8451 $as_echo_n "checking for -single_module linker flag... " >&6; }
8452 if ${lt_cv_apple_cc_single_mod+:} false; then :
8453   $as_echo_n "(cached) " >&6
8454 else
8455   lt_cv_apple_cc_single_mod=no
8456       if test -z "${LT_MULTI_MODULE}"; then
8457         # By default we will add the -single_module flag. You can override
8458         # by either setting the environment variable LT_MULTI_MODULE
8459         # non-empty at configure time, or by adding -multi_module to the
8460         # link flags.
8461         rm -rf libconftest.dylib*
8462         echo "int foo(void){return 1;}" > conftest.c
8463         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8464 -dynamiclib -Wl,-single_module conftest.c" >&5
8465         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8466           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8467         _lt_result=$?
8468         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8469           lt_cv_apple_cc_single_mod=yes
8470         else
8471           cat conftest.err >&5
8472         fi
8473         rm -rf libconftest.dylib*
8474         rm -f conftest.*
8475       fi
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8478 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8480 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8481 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   lt_cv_ld_exported_symbols_list=no
8485       save_LDFLAGS=$LDFLAGS
8486       echo "_main" > conftest.sym
8487       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8488       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h.  */
8490
8491 int
8492 main ()
8493 {
8494
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 if ac_fn_c_try_link "$LINENO"; then :
8500   lt_cv_ld_exported_symbols_list=yes
8501 else
8502   lt_cv_ld_exported_symbols_list=no
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext \
8505     conftest$ac_exeext conftest.$ac_ext
8506         LDFLAGS="$save_LDFLAGS"
8507
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8510 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8512 $as_echo_n "checking for -force_load linker flag... " >&6; }
8513 if ${lt_cv_ld_force_load+:} false; then :
8514   $as_echo_n "(cached) " >&6
8515 else
8516   lt_cv_ld_force_load=no
8517       cat > conftest.c << _LT_EOF
8518 int forced_loaded() { return 2;}
8519 _LT_EOF
8520       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8521       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8522       echo "$AR cru libconftest.a conftest.o" >&5
8523       $AR cru libconftest.a conftest.o 2>&5
8524       echo "$RANLIB libconftest.a" >&5
8525       $RANLIB libconftest.a 2>&5
8526       cat > conftest.c << _LT_EOF
8527 int main() { return 0;}
8528 _LT_EOF
8529       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8530       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8531       _lt_result=$?
8532       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8533         lt_cv_ld_force_load=yes
8534       else
8535         cat conftest.err >&5
8536       fi
8537         rm -f conftest.err libconftest.a conftest conftest.c
8538         rm -rf conftest.dSYM
8539
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8542 $as_echo "$lt_cv_ld_force_load" >&6; }
8543     case $host_os in
8544     rhapsody* | darwin1.[012])
8545       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8546     darwin1.*)
8547       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8548     darwin*) # darwin 5.x on
8549       # if running on 10.5 or later, the deployment target defaults
8550       # to the OS version, if on x86, and 10.4, the deployment
8551       # target defaults to 10.4. Don't you love it?
8552       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8553         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8554           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8555         10.[012]*)
8556           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8557         10.*)
8558           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8559       esac
8560     ;;
8561   esac
8562     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8563       _lt_dar_single_mod='$single_module'
8564     fi
8565     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8566       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8567     else
8568       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8569     fi
8570     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8571       _lt_dsymutil='~$DSYMUTIL $lib || :'
8572     else
8573       _lt_dsymutil=
8574     fi
8575     ;;
8576   esac
8577
8578 for ac_header in dlfcn.h
8579 do :
8580   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8581 "
8582 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8583   cat >>confdefs.h <<_ACEOF
8584 #define HAVE_DLFCN_H 1
8585 _ACEOF
8586
8587 fi
8588
8589 done
8590
8591
8592
8593
8594
8595 # Set options
8596
8597
8598
8599         enable_dlopen=no
8600
8601
8602   enable_win32_dll=no
8603
8604
8605             # Check whether --enable-shared was given.
8606 if test "${enable_shared+set}" = set; then :
8607   enableval=$enable_shared; p=${PACKAGE-default}
8608     case $enableval in
8609     yes) enable_shared=yes ;;
8610     no) enable_shared=no ;;
8611     *)
8612       enable_shared=no
8613       # Look at the argument we got.  We use all the common list separators.
8614       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8615       for pkg in $enableval; do
8616         IFS="$lt_save_ifs"
8617         if test "X$pkg" = "X$p"; then
8618           enable_shared=yes
8619         fi
8620       done
8621       IFS="$lt_save_ifs"
8622       ;;
8623     esac
8624 else
8625   enable_shared=yes
8626 fi
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636   # Check whether --enable-static was given.
8637 if test "${enable_static+set}" = set; then :
8638   enableval=$enable_static; p=${PACKAGE-default}
8639     case $enableval in
8640     yes) enable_static=yes ;;
8641     no) enable_static=no ;;
8642     *)
8643      enable_static=no
8644       # Look at the argument we got.  We use all the common list separators.
8645       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8646       for pkg in $enableval; do
8647         IFS="$lt_save_ifs"
8648         if test "X$pkg" = "X$p"; then
8649           enable_static=yes
8650         fi
8651       done
8652       IFS="$lt_save_ifs"
8653       ;;
8654     esac
8655 else
8656   enable_static=yes
8657 fi
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668 # Check whether --with-pic was given.
8669 if test "${with_pic+set}" = set; then :
8670   withval=$with_pic; pic_mode="$withval"
8671 else
8672   pic_mode=default
8673 fi
8674
8675
8676 test -z "$pic_mode" && pic_mode=default
8677
8678
8679
8680
8681
8682
8683
8684   # Check whether --enable-fast-install was given.
8685 if test "${enable_fast_install+set}" = set; then :
8686   enableval=$enable_fast_install; p=${PACKAGE-default}
8687     case $enableval in
8688     yes) enable_fast_install=yes ;;
8689     no) enable_fast_install=no ;;
8690     *)
8691       enable_fast_install=no
8692       # Look at the argument we got.  We use all the common list separators.
8693       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8694       for pkg in $enableval; do
8695         IFS="$lt_save_ifs"
8696         if test "X$pkg" = "X$p"; then
8697           enable_fast_install=yes
8698         fi
8699       done
8700       IFS="$lt_save_ifs"
8701       ;;
8702     esac
8703 else
8704   enable_fast_install=yes
8705 fi
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 # This can be used to rebuild libtool when needed
8718 LIBTOOL_DEPS="$ltmain"
8719
8720 # Always use our own libtool.
8721 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 test -z "$LN_S" && LN_S="ln -s"
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763 if test -n "${ZSH_VERSION+set}" ; then
8764    setopt NO_GLOB_SUBST
8765 fi
8766
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8768 $as_echo_n "checking for objdir... " >&6; }
8769 if ${lt_cv_objdir+:} false; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   rm -f .libs 2>/dev/null
8773 mkdir .libs 2>/dev/null
8774 if test -d .libs; then
8775   lt_cv_objdir=.libs
8776 else
8777   # MS-DOS does not allow filenames that begin with a dot.
8778   lt_cv_objdir=_libs
8779 fi
8780 rmdir .libs 2>/dev/null
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8783 $as_echo "$lt_cv_objdir" >&6; }
8784 objdir=$lt_cv_objdir
8785
8786
8787
8788
8789
8790 cat >>confdefs.h <<_ACEOF
8791 #define LT_OBJDIR "$lt_cv_objdir/"
8792 _ACEOF
8793
8794
8795
8796
8797 case $host_os in
8798 aix3*)
8799   # AIX sometimes has problems with the GCC collect2 program.  For some
8800   # reason, if we set the COLLECT_NAMES environment variable, the problems
8801   # vanish in a puff of smoke.
8802   if test "X${COLLECT_NAMES+set}" != Xset; then
8803     COLLECT_NAMES=
8804     export COLLECT_NAMES
8805   fi
8806   ;;
8807 esac
8808
8809 # Global variables:
8810 ofile=libtool
8811 can_build_shared=yes
8812
8813 # All known linkers require a `.a' archive for static linking (except MSVC,
8814 # which needs '.lib').
8815 libext=a
8816
8817 with_gnu_ld="$lt_cv_prog_gnu_ld"
8818
8819 old_CC="$CC"
8820 old_CFLAGS="$CFLAGS"
8821
8822 # Set sane defaults for various variables
8823 test -z "$CC" && CC=cc
8824 test -z "$LTCC" && LTCC=$CC
8825 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8826 test -z "$LD" && LD=ld
8827 test -z "$ac_objext" && ac_objext=o
8828
8829 for cc_temp in $compiler""; do
8830   case $cc_temp in
8831     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8832     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8833     \-*) ;;
8834     *) break;;
8835   esac
8836 done
8837 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8838
8839
8840 # Only perform the check for file, if the check method requires it
8841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8842 case $deplibs_check_method in
8843 file_magic*)
8844   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8846 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8847 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8848   $as_echo_n "(cached) " >&6
8849 else
8850   case $MAGIC_CMD in
8851 [\\/*] |  ?:[\\/]*)
8852   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8853   ;;
8854 *)
8855   lt_save_MAGIC_CMD="$MAGIC_CMD"
8856   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8857   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8858   for ac_dir in $ac_dummy; do
8859     IFS="$lt_save_ifs"
8860     test -z "$ac_dir" && ac_dir=.
8861     if test -f $ac_dir/${ac_tool_prefix}file; then
8862       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8863       if test -n "$file_magic_test_file"; then
8864         case $deplibs_check_method in
8865         "file_magic "*)
8866           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8867           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8868           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8869             $EGREP "$file_magic_regex" > /dev/null; then
8870             :
8871           else
8872             cat <<_LT_EOF 1>&2
8873
8874 *** Warning: the command libtool uses to detect shared libraries,
8875 *** $file_magic_cmd, produces output that libtool cannot recognize.
8876 *** The result is that libtool may fail to recognize shared libraries
8877 *** as such.  This will affect the creation of libtool libraries that
8878 *** depend on shared libraries, but programs linked with such libtool
8879 *** libraries will work regardless of this problem.  Nevertheless, you
8880 *** may want to report the problem to your system manager and/or to
8881 *** bug-libtool@gnu.org
8882
8883 _LT_EOF
8884           fi ;;
8885         esac
8886       fi
8887       break
8888     fi
8889   done
8890   IFS="$lt_save_ifs"
8891   MAGIC_CMD="$lt_save_MAGIC_CMD"
8892   ;;
8893 esac
8894 fi
8895
8896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8897 if test -n "$MAGIC_CMD"; then
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8899 $as_echo "$MAGIC_CMD" >&6; }
8900 else
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8903 fi
8904
8905
8906
8907
8908
8909 if test -z "$lt_cv_path_MAGIC_CMD"; then
8910   if test -n "$ac_tool_prefix"; then
8911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8912 $as_echo_n "checking for file... " >&6; }
8913 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8914   $as_echo_n "(cached) " >&6
8915 else
8916   case $MAGIC_CMD in
8917 [\\/*] |  ?:[\\/]*)
8918   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8919   ;;
8920 *)
8921   lt_save_MAGIC_CMD="$MAGIC_CMD"
8922   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8923   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8924   for ac_dir in $ac_dummy; do
8925     IFS="$lt_save_ifs"
8926     test -z "$ac_dir" && ac_dir=.
8927     if test -f $ac_dir/file; then
8928       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8929       if test -n "$file_magic_test_file"; then
8930         case $deplibs_check_method in
8931         "file_magic "*)
8932           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8933           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8934           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8935             $EGREP "$file_magic_regex" > /dev/null; then
8936             :
8937           else
8938             cat <<_LT_EOF 1>&2
8939
8940 *** Warning: the command libtool uses to detect shared libraries,
8941 *** $file_magic_cmd, produces output that libtool cannot recognize.
8942 *** The result is that libtool may fail to recognize shared libraries
8943 *** as such.  This will affect the creation of libtool libraries that
8944 *** depend on shared libraries, but programs linked with such libtool
8945 *** libraries will work regardless of this problem.  Nevertheless, you
8946 *** may want to report the problem to your system manager and/or to
8947 *** bug-libtool@gnu.org
8948
8949 _LT_EOF
8950           fi ;;
8951         esac
8952       fi
8953       break
8954     fi
8955   done
8956   IFS="$lt_save_ifs"
8957   MAGIC_CMD="$lt_save_MAGIC_CMD"
8958   ;;
8959 esac
8960 fi
8961
8962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8963 if test -n "$MAGIC_CMD"; then
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8965 $as_echo "$MAGIC_CMD" >&6; }
8966 else
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970
8971
8972   else
8973     MAGIC_CMD=:
8974   fi
8975 fi
8976
8977   fi
8978   ;;
8979 esac
8980
8981 # Use C for the default configuration in the libtool script
8982
8983 lt_save_CC="$CC"
8984 ac_ext=c
8985 ac_cpp='$CPP $CPPFLAGS'
8986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8989
8990
8991 # Source file extension for C test sources.
8992 ac_ext=c
8993
8994 # Object file extension for compiled C test sources.
8995 objext=o
8996 objext=$objext
8997
8998 # Code to be used in simple compile tests
8999 lt_simple_compile_test_code="int some_variable = 0;"
9000
9001 # Code to be used in simple link tests
9002 lt_simple_link_test_code='int main(){return(0);}'
9003
9004
9005
9006
9007
9008
9009
9010 # If no C compiler was specified, use CC.
9011 LTCC=${LTCC-"$CC"}
9012
9013 # If no C compiler flags were specified, use CFLAGS.
9014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9015
9016 # Allow CC to be a program name with arguments.
9017 compiler=$CC
9018
9019 # Save the default compiler, since it gets overwritten when the other
9020 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9021 compiler_DEFAULT=$CC
9022
9023 # save warnings/boilerplate of simple test code
9024 ac_outfile=conftest.$ac_objext
9025 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9027 _lt_compiler_boilerplate=`cat conftest.err`
9028 $RM conftest*
9029
9030 ac_outfile=conftest.$ac_objext
9031 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9033 _lt_linker_boilerplate=`cat conftest.err`
9034 $RM -r conftest*
9035
9036
9037 ## CAVEAT EMPTOR:
9038 ## There is no encapsulation within the following macros, do not change
9039 ## the running order or otherwise move them around unless you know exactly
9040 ## what you are doing...
9041 if test -n "$compiler"; then
9042
9043 lt_prog_compiler_no_builtin_flag=
9044
9045 if test "$GCC" = yes; then
9046   case $cc_basename in
9047   nvcc*)
9048     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9049   *)
9050     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9051   esac
9052
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9054 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9055 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   lt_cv_prog_compiler_rtti_exceptions=no
9059    ac_outfile=conftest.$ac_objext
9060    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9061    lt_compiler_flag="-fno-rtti -fno-exceptions"
9062    # Insert the option either (1) after the last *FLAGS variable, or
9063    # (2) before a word containing "conftest.", or (3) at the end.
9064    # Note that $ac_compile itself does not contain backslashes and begins
9065    # with a dollar sign (not a hyphen), so the echo should work correctly.
9066    # The option is referenced via a variable to avoid confusing sed.
9067    lt_compile=`echo "$ac_compile" | $SED \
9068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9070    -e 's:$: $lt_compiler_flag:'`
9071    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9072    (eval "$lt_compile" 2>conftest.err)
9073    ac_status=$?
9074    cat conftest.err >&5
9075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076    if (exit $ac_status) && test -s "$ac_outfile"; then
9077      # The compiler can only warn and ignore the option if not recognized
9078      # So say no if there are warnings other than the usual output.
9079      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9080      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9081      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9082        lt_cv_prog_compiler_rtti_exceptions=yes
9083      fi
9084    fi
9085    $RM conftest*
9086
9087 fi
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9089 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9090
9091 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9092     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9093 else
9094     :
9095 fi
9096
9097 fi
9098
9099
9100
9101
9102
9103
9104   lt_prog_compiler_wl=
9105 lt_prog_compiler_pic=
9106 lt_prog_compiler_static=
9107
9108
9109   if test "$GCC" = yes; then
9110     lt_prog_compiler_wl='-Wl,'
9111     lt_prog_compiler_static='-static'
9112
9113     case $host_os in
9114       aix*)
9115       # All AIX code is PIC.
9116       if test "$host_cpu" = ia64; then
9117         # AIX 5 now supports IA64 processor
9118         lt_prog_compiler_static='-Bstatic'
9119       fi
9120       ;;
9121
9122     amigaos*)
9123       case $host_cpu in
9124       powerpc)
9125             # see comment about AmigaOS4 .so support
9126             lt_prog_compiler_pic='-fPIC'
9127         ;;
9128       m68k)
9129             # FIXME: we need at least 68020 code to build shared libraries, but
9130             # adding the `-m68020' flag to GCC prevents building anything better,
9131             # like `-m68040'.
9132             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9133         ;;
9134       esac
9135       ;;
9136
9137     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9138       # PIC is the default for these OSes.
9139       ;;
9140
9141     mingw* | cygwin* | pw32* | os2* | cegcc*)
9142       # This hack is so that the source file can tell whether it is being
9143       # built for inclusion in a dll (and should export symbols for example).
9144       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9145       # (--disable-auto-import) libraries
9146       lt_prog_compiler_pic='-DDLL_EXPORT'
9147       ;;
9148
9149     darwin* | rhapsody*)
9150       # PIC is the default on this platform
9151       # Common symbols not allowed in MH_DYLIB files
9152       lt_prog_compiler_pic='-fno-common'
9153       ;;
9154
9155     haiku*)
9156       # PIC is the default for Haiku.
9157       # The "-static" flag exists, but is broken.
9158       lt_prog_compiler_static=
9159       ;;
9160
9161     hpux*)
9162       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9163       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9164       # sets the default TLS model and affects inlining.
9165       case $host_cpu in
9166       hppa*64*)
9167         # +Z the default
9168         ;;
9169       *)
9170         lt_prog_compiler_pic='-fPIC'
9171         ;;
9172       esac
9173       ;;
9174
9175     interix[3-9]*)
9176       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9177       # Instead, we relocate shared libraries at runtime.
9178       ;;
9179
9180     msdosdjgpp*)
9181       # Just because we use GCC doesn't mean we suddenly get shared libraries
9182       # on systems that don't support them.
9183       lt_prog_compiler_can_build_shared=no
9184       enable_shared=no
9185       ;;
9186
9187     *nto* | *qnx*)
9188       # QNX uses GNU C++, but need to define -shared option too, otherwise
9189       # it will coredump.
9190       lt_prog_compiler_pic='-fPIC -shared'
9191       ;;
9192
9193     sysv4*MP*)
9194       if test -d /usr/nec; then
9195         lt_prog_compiler_pic=-Kconform_pic
9196       fi
9197       ;;
9198
9199     *)
9200       lt_prog_compiler_pic='-fPIC'
9201       ;;
9202     esac
9203
9204     case $cc_basename in
9205     nvcc*) # Cuda Compiler Driver 2.2
9206       lt_prog_compiler_wl='-Xlinker '
9207       lt_prog_compiler_pic='-Xcompiler -fPIC'
9208       ;;
9209     esac
9210   else
9211     # PORTME Check for flag to pass linker flags through the system compiler.
9212     case $host_os in
9213     aix*)
9214       lt_prog_compiler_wl='-Wl,'
9215       if test "$host_cpu" = ia64; then
9216         # AIX 5 now supports IA64 processor
9217         lt_prog_compiler_static='-Bstatic'
9218       else
9219         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9220       fi
9221       ;;
9222
9223     mingw* | cygwin* | pw32* | os2* | cegcc*)
9224       # This hack is so that the source file can tell whether it is being
9225       # built for inclusion in a dll (and should export symbols for example).
9226       lt_prog_compiler_pic='-DDLL_EXPORT'
9227       ;;
9228
9229     hpux9* | hpux10* | hpux11*)
9230       lt_prog_compiler_wl='-Wl,'
9231       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9232       # not for PA HP-UX.
9233       case $host_cpu in
9234       hppa*64*|ia64*)
9235         # +Z the default
9236         ;;
9237       *)
9238         lt_prog_compiler_pic='+Z'
9239         ;;
9240       esac
9241       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9242       lt_prog_compiler_static='${wl}-a ${wl}archive'
9243       ;;
9244
9245     irix5* | irix6* | nonstopux*)
9246       lt_prog_compiler_wl='-Wl,'
9247       # PIC (with -KPIC) is the default.
9248       lt_prog_compiler_static='-non_shared'
9249       ;;
9250
9251     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9252       case $cc_basename in
9253       # old Intel for x86_64 which still supported -KPIC.
9254       ecc*)
9255         lt_prog_compiler_wl='-Wl,'
9256         lt_prog_compiler_pic='-KPIC'
9257         lt_prog_compiler_static='-static'
9258         ;;
9259       # icc used to be incompatible with GCC.
9260       # ICC 10 doesn't accept -KPIC any more.
9261       icc* | ifort*)
9262         lt_prog_compiler_wl='-Wl,'
9263         lt_prog_compiler_pic='-fPIC'
9264         lt_prog_compiler_static='-static'
9265         ;;
9266       # Lahey Fortran 8.1.
9267       lf95*)
9268         lt_prog_compiler_wl='-Wl,'
9269         lt_prog_compiler_pic='--shared'
9270         lt_prog_compiler_static='--static'
9271         ;;
9272       nagfor*)
9273         # NAG Fortran compiler
9274         lt_prog_compiler_wl='-Wl,-Wl,,'
9275         lt_prog_compiler_pic='-PIC'
9276         lt_prog_compiler_static='-Bstatic'
9277         ;;
9278       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9279         # Portland Group compilers (*not* the Pentium gcc compiler,
9280         # which looks to be a dead project)
9281         lt_prog_compiler_wl='-Wl,'
9282         lt_prog_compiler_pic='-fpic'
9283         lt_prog_compiler_static='-Bstatic'
9284         ;;
9285       ccc*)
9286         lt_prog_compiler_wl='-Wl,'
9287         # All Alpha code is PIC.
9288         lt_prog_compiler_static='-non_shared'
9289         ;;
9290       xl* | bgxl* | bgf* | mpixl*)
9291         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9292         lt_prog_compiler_wl='-Wl,'
9293         lt_prog_compiler_pic='-qpic'
9294         lt_prog_compiler_static='-qstaticlink'
9295         ;;
9296       *)
9297         case `$CC -V 2>&1 | sed 5q` in
9298         *Sun\ F* | *Sun*Fortran*)
9299           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9300           lt_prog_compiler_pic='-KPIC'
9301           lt_prog_compiler_static='-Bstatic'
9302           lt_prog_compiler_wl=''
9303           ;;
9304         *Sun\ C*)
9305           # Sun C 5.9
9306           lt_prog_compiler_pic='-KPIC'
9307           lt_prog_compiler_static='-Bstatic'
9308           lt_prog_compiler_wl='-Wl,'
9309           ;;
9310         esac
9311         ;;
9312       esac
9313       ;;
9314
9315     newsos6)
9316       lt_prog_compiler_pic='-KPIC'
9317       lt_prog_compiler_static='-Bstatic'
9318       ;;
9319
9320     *nto* | *qnx*)
9321       # QNX uses GNU C++, but need to define -shared option too, otherwise
9322       # it will coredump.
9323       lt_prog_compiler_pic='-fPIC -shared'
9324       ;;
9325
9326     osf3* | osf4* | osf5*)
9327       lt_prog_compiler_wl='-Wl,'
9328       # All OSF/1 code is PIC.
9329       lt_prog_compiler_static='-non_shared'
9330       ;;
9331
9332     rdos*)
9333       lt_prog_compiler_static='-non_shared'
9334       ;;
9335
9336     solaris*)
9337       lt_prog_compiler_pic='-KPIC'
9338       lt_prog_compiler_static='-Bstatic'
9339       case $cc_basename in
9340       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9341         lt_prog_compiler_wl='-Qoption ld ';;
9342       *)
9343         lt_prog_compiler_wl='-Wl,';;
9344       esac
9345       ;;
9346
9347     sunos4*)
9348       lt_prog_compiler_wl='-Qoption ld '
9349       lt_prog_compiler_pic='-PIC'
9350       lt_prog_compiler_static='-Bstatic'
9351       ;;
9352
9353     sysv4 | sysv4.2uw2* | sysv4.3*)
9354       lt_prog_compiler_wl='-Wl,'
9355       lt_prog_compiler_pic='-KPIC'
9356       lt_prog_compiler_static='-Bstatic'
9357       ;;
9358
9359     sysv4*MP*)
9360       if test -d /usr/nec ;then
9361         lt_prog_compiler_pic='-Kconform_pic'
9362         lt_prog_compiler_static='-Bstatic'
9363       fi
9364       ;;
9365
9366     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9367       lt_prog_compiler_wl='-Wl,'
9368       lt_prog_compiler_pic='-KPIC'
9369       lt_prog_compiler_static='-Bstatic'
9370       ;;
9371
9372     unicos*)
9373       lt_prog_compiler_wl='-Wl,'
9374       lt_prog_compiler_can_build_shared=no
9375       ;;
9376
9377     uts4*)
9378       lt_prog_compiler_pic='-pic'
9379       lt_prog_compiler_static='-Bstatic'
9380       ;;
9381
9382     *)
9383       lt_prog_compiler_can_build_shared=no
9384       ;;
9385     esac
9386   fi
9387
9388 case $host_os in
9389   # For platforms which do not support PIC, -DPIC is meaningless:
9390   *djgpp*)
9391     lt_prog_compiler_pic=
9392     ;;
9393   *)
9394     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9395     ;;
9396 esac
9397
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9399 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9400 if ${lt_cv_prog_compiler_pic+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9404 fi
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9406 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9407 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9408
9409 #
9410 # Check to make sure the PIC flag actually works.
9411 #
9412 if test -n "$lt_prog_compiler_pic"; then
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9414 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9415 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9416   $as_echo_n "(cached) " >&6
9417 else
9418   lt_cv_prog_compiler_pic_works=no
9419    ac_outfile=conftest.$ac_objext
9420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9421    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9422    # Insert the option either (1) after the last *FLAGS variable, or
9423    # (2) before a word containing "conftest.", or (3) at the end.
9424    # Note that $ac_compile itself does not contain backslashes and begins
9425    # with a dollar sign (not a hyphen), so the echo should work correctly.
9426    # The option is referenced via a variable to avoid confusing sed.
9427    lt_compile=`echo "$ac_compile" | $SED \
9428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430    -e 's:$: $lt_compiler_flag:'`
9431    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9432    (eval "$lt_compile" 2>conftest.err)
9433    ac_status=$?
9434    cat conftest.err >&5
9435    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436    if (exit $ac_status) && test -s "$ac_outfile"; then
9437      # The compiler can only warn and ignore the option if not recognized
9438      # So say no if there are warnings other than the usual output.
9439      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9440      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9441      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9442        lt_cv_prog_compiler_pic_works=yes
9443      fi
9444    fi
9445    $RM conftest*
9446
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9449 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9450
9451 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9452     case $lt_prog_compiler_pic in
9453      "" | " "*) ;;
9454      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9455      esac
9456 else
9457     lt_prog_compiler_pic=
9458      lt_prog_compiler_can_build_shared=no
9459 fi
9460
9461 fi
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473 #
9474 # Check to make sure the static flag actually works.
9475 #
9476 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9478 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9479 if ${lt_cv_prog_compiler_static_works+:} false; then :
9480   $as_echo_n "(cached) " >&6
9481 else
9482   lt_cv_prog_compiler_static_works=no
9483    save_LDFLAGS="$LDFLAGS"
9484    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9485    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9487      # The linker can only warn and ignore the option if not recognized
9488      # So say no if there are warnings
9489      if test -s conftest.err; then
9490        # Append any errors to the config.log.
9491        cat conftest.err 1>&5
9492        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9494        if diff conftest.exp conftest.er2 >/dev/null; then
9495          lt_cv_prog_compiler_static_works=yes
9496        fi
9497      else
9498        lt_cv_prog_compiler_static_works=yes
9499      fi
9500    fi
9501    $RM -r conftest*
9502    LDFLAGS="$save_LDFLAGS"
9503
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9506 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9507
9508 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9509     :
9510 else
9511     lt_prog_compiler_static=
9512 fi
9513
9514
9515
9516
9517
9518
9519
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9522 if ${lt_cv_prog_compiler_c_o+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   lt_cv_prog_compiler_c_o=no
9526    $RM -r conftest 2>/dev/null
9527    mkdir conftest
9528    cd conftest
9529    mkdir out
9530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531
9532    lt_compiler_flag="-o out/conftest2.$ac_objext"
9533    # Insert the option either (1) after the last *FLAGS variable, or
9534    # (2) before a word containing "conftest.", or (3) at the end.
9535    # Note that $ac_compile itself does not contain backslashes and begins
9536    # with a dollar sign (not a hyphen), so the echo should work correctly.
9537    lt_compile=`echo "$ac_compile" | $SED \
9538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540    -e 's:$: $lt_compiler_flag:'`
9541    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542    (eval "$lt_compile" 2>out/conftest.err)
9543    ac_status=$?
9544    cat out/conftest.err >&5
9545    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9547    then
9548      # The compiler can only warn and ignore the option if not recognized
9549      # So say no if there are warnings
9550      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9551      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9552      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9553        lt_cv_prog_compiler_c_o=yes
9554      fi
9555    fi
9556    chmod u+w . 2>&5
9557    $RM conftest*
9558    # SGI C++ compiler will create directory out/ii_files/ for
9559    # template instantiation
9560    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9561    $RM out/* && rmdir out
9562    cd ..
9563    $RM -r conftest
9564    $RM conftest*
9565
9566 fi
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9568 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9569
9570
9571
9572
9573
9574
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9576 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9577 if ${lt_cv_prog_compiler_c_o+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   lt_cv_prog_compiler_c_o=no
9581    $RM -r conftest 2>/dev/null
9582    mkdir conftest
9583    cd conftest
9584    mkdir out
9585    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9586
9587    lt_compiler_flag="-o out/conftest2.$ac_objext"
9588    # Insert the option either (1) after the last *FLAGS variable, or
9589    # (2) before a word containing "conftest.", or (3) at the end.
9590    # Note that $ac_compile itself does not contain backslashes and begins
9591    # with a dollar sign (not a hyphen), so the echo should work correctly.
9592    lt_compile=`echo "$ac_compile" | $SED \
9593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9595    -e 's:$: $lt_compiler_flag:'`
9596    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9597    (eval "$lt_compile" 2>out/conftest.err)
9598    ac_status=$?
9599    cat out/conftest.err >&5
9600    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9602    then
9603      # The compiler can only warn and ignore the option if not recognized
9604      # So say no if there are warnings
9605      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9606      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9607      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9608        lt_cv_prog_compiler_c_o=yes
9609      fi
9610    fi
9611    chmod u+w . 2>&5
9612    $RM conftest*
9613    # SGI C++ compiler will create directory out/ii_files/ for
9614    # template instantiation
9615    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9616    $RM out/* && rmdir out
9617    cd ..
9618    $RM -r conftest
9619    $RM conftest*
9620
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9623 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9624
9625
9626
9627
9628 hard_links="nottested"
9629 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9630   # do not overwrite the value of need_locks provided by the user
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9632 $as_echo_n "checking if we can lock with hard links... " >&6; }
9633   hard_links=yes
9634   $RM conftest*
9635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9636   touch conftest.a
9637   ln conftest.a conftest.b 2>&5 || hard_links=no
9638   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9640 $as_echo "$hard_links" >&6; }
9641   if test "$hard_links" = no; then
9642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9643 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9644     need_locks=warn
9645   fi
9646 else
9647   need_locks=no
9648 fi
9649
9650
9651
9652
9653
9654
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9657
9658   runpath_var=
9659   allow_undefined_flag=
9660   always_export_symbols=no
9661   archive_cmds=
9662   archive_expsym_cmds=
9663   compiler_needs_object=no
9664   enable_shared_with_static_runtimes=no
9665   export_dynamic_flag_spec=
9666   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9667   hardcode_automatic=no
9668   hardcode_direct=no
9669   hardcode_direct_absolute=no
9670   hardcode_libdir_flag_spec=
9671   hardcode_libdir_flag_spec_ld=
9672   hardcode_libdir_separator=
9673   hardcode_minus_L=no
9674   hardcode_shlibpath_var=unsupported
9675   inherit_rpath=no
9676   link_all_deplibs=unknown
9677   module_cmds=
9678   module_expsym_cmds=
9679   old_archive_from_new_cmds=
9680   old_archive_from_expsyms_cmds=
9681   thread_safe_flag_spec=
9682   whole_archive_flag_spec=
9683   # include_expsyms should be a list of space-separated symbols to be *always*
9684   # included in the symbol list
9685   include_expsyms=
9686   # exclude_expsyms can be an extended regexp of symbols to exclude
9687   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9688   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9689   # as well as any symbol that contains `d'.
9690   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9691   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9692   # platforms (ab)use it in PIC code, but their linkers get confused if
9693   # the symbol is explicitly referenced.  Since portable code cannot
9694   # rely on this symbol name, it's probably fine to never include it in
9695   # preloaded symbol tables.
9696   # Exclude shared library initialization/finalization symbols.
9697   extract_expsyms_cmds=
9698
9699   case $host_os in
9700   cygwin* | mingw* | pw32* | cegcc*)
9701     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9702     # When not using gcc, we currently assume that we are using
9703     # Microsoft Visual C++.
9704     if test "$GCC" != yes; then
9705       with_gnu_ld=no
9706     fi
9707     ;;
9708   interix*)
9709     # we just hope/assume this is gcc and not c89 (= MSVC++)
9710     with_gnu_ld=yes
9711     ;;
9712   openbsd*)
9713     with_gnu_ld=no
9714     ;;
9715   esac
9716
9717   ld_shlibs=yes
9718
9719   # On some targets, GNU ld is compatible enough with the native linker
9720   # that we're better off using the native interface for both.
9721   lt_use_gnu_ld_interface=no
9722   if test "$with_gnu_ld" = yes; then
9723     case $host_os in
9724       aix*)
9725         # The AIX port of GNU ld has always aspired to compatibility
9726         # with the native linker.  However, as the warning in the GNU ld
9727         # block says, versions before 2.19.5* couldn't really create working
9728         # shared libraries, regardless of the interface used.
9729         case `$LD -v 2>&1` in
9730           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9731           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9732           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9733           *)
9734             lt_use_gnu_ld_interface=yes
9735             ;;
9736         esac
9737         ;;
9738       *)
9739         lt_use_gnu_ld_interface=yes
9740         ;;
9741     esac
9742   fi
9743
9744   if test "$lt_use_gnu_ld_interface" = yes; then
9745     # If archive_cmds runs LD, not CC, wlarc should be empty
9746     wlarc='${wl}'
9747
9748     # Set some defaults for GNU ld with shared library support. These
9749     # are reset later if shared libraries are not supported. Putting them
9750     # here allows them to be overridden if necessary.
9751     runpath_var=LD_RUN_PATH
9752     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9753     export_dynamic_flag_spec='${wl}--export-dynamic'
9754     # ancient GNU ld didn't support --whole-archive et. al.
9755     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9756       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9757     else
9758       whole_archive_flag_spec=
9759     fi
9760     supports_anon_versioning=no
9761     case `$LD -v 2>&1` in
9762       *GNU\ gold*) supports_anon_versioning=yes ;;
9763       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9764       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9765       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9766       *\ 2.11.*) ;; # other 2.11 versions
9767       *) supports_anon_versioning=yes ;;
9768     esac
9769
9770     # See if GNU ld supports shared libraries.
9771     case $host_os in
9772     aix[3-9]*)
9773       # On AIX/PPC, the GNU linker is very broken
9774       if test "$host_cpu" != ia64; then
9775         ld_shlibs=no
9776         cat <<_LT_EOF 1>&2
9777
9778 *** Warning: the GNU linker, at least up to release 2.19, is reported
9779 *** to be unable to reliably create shared libraries on AIX.
9780 *** Therefore, libtool is disabling shared libraries support.  If you
9781 *** really care for shared libraries, you may want to install binutils
9782 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9783 *** You will then need to restart the configuration process.
9784
9785 _LT_EOF
9786       fi
9787       ;;
9788
9789     amigaos*)
9790       case $host_cpu in
9791       powerpc)
9792             # see comment about AmigaOS4 .so support
9793             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794             archive_expsym_cmds=''
9795         ;;
9796       m68k)
9797             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)'
9798             hardcode_libdir_flag_spec='-L$libdir'
9799             hardcode_minus_L=yes
9800         ;;
9801       esac
9802       ;;
9803
9804     beos*)
9805       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9806         allow_undefined_flag=unsupported
9807         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9808         # support --undefined.  This deserves some investigation.  FIXME
9809         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9810       else
9811         ld_shlibs=no
9812       fi
9813       ;;
9814
9815     cygwin* | mingw* | pw32* | cegcc*)
9816       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9817       # as there is no search path for DLLs.
9818       hardcode_libdir_flag_spec='-L$libdir'
9819       export_dynamic_flag_spec='${wl}--export-all-symbols'
9820       allow_undefined_flag=unsupported
9821       always_export_symbols=no
9822       enable_shared_with_static_runtimes=yes
9823       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'
9824       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9825
9826       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9827         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828         # If the export-symbols file already is a .def file (1st line
9829         # is EXPORTS), use it as is; otherwise, prepend...
9830         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831           cp $export_symbols $output_objdir/$soname.def;
9832         else
9833           echo EXPORTS > $output_objdir/$soname.def;
9834           cat $export_symbols >> $output_objdir/$soname.def;
9835         fi~
9836         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9837       else
9838         ld_shlibs=no
9839       fi
9840       ;;
9841
9842     haiku*)
9843       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844       link_all_deplibs=yes
9845       ;;
9846
9847     interix[3-9]*)
9848       hardcode_direct=no
9849       hardcode_shlibpath_var=no
9850       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9851       export_dynamic_flag_spec='${wl}-E'
9852       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9853       # Instead, shared libraries are loaded at an image base (0x10000000 by
9854       # default) and relocated if they conflict, which is a slow very memory
9855       # consuming and fragmenting process.  To avoid this, we pick a random,
9856       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9857       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9858       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9859       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'
9860       ;;
9861
9862     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9863       tmp_diet=no
9864       if test "$host_os" = linux-dietlibc; then
9865         case $cc_basename in
9866           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9867         esac
9868       fi
9869       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9870          && test "$tmp_diet" = no
9871       then
9872         tmp_addflag=' $pic_flag'
9873         tmp_sharedflag='-shared'
9874         case $cc_basename,$host_cpu in
9875         pgcc*)                          # Portland Group C compiler
9876           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'
9877           tmp_addflag=' $pic_flag'
9878           ;;
9879         pgf77* | pgf90* | pgf95* | pgfortran*)
9880                                         # Portland Group f77 and f90 compilers
9881           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'
9882           tmp_addflag=' $pic_flag -Mnomain' ;;
9883         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9884           tmp_addflag=' -i_dynamic' ;;
9885         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9886           tmp_addflag=' -i_dynamic -nofor_main' ;;
9887         ifc* | ifort*)                  # Intel Fortran compiler
9888           tmp_addflag=' -nofor_main' ;;
9889         lf95*)                          # Lahey Fortran 8.1
9890           whole_archive_flag_spec=
9891           tmp_sharedflag='--shared' ;;
9892         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9893           tmp_sharedflag='-qmkshrobj'
9894           tmp_addflag= ;;
9895         nvcc*)  # Cuda Compiler Driver 2.2
9896           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'
9897           compiler_needs_object=yes
9898           ;;
9899         esac
9900         case `$CC -V 2>&1 | sed 5q` in
9901         *Sun\ C*)                       # Sun C 5.9
9902           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'
9903           compiler_needs_object=yes
9904           tmp_sharedflag='-G' ;;
9905         *Sun\ F*)                       # Sun Fortran 8.3
9906           tmp_sharedflag='-G' ;;
9907         esac
9908         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909
9910         if test "x$supports_anon_versioning" = xyes; then
9911           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9912             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9913             echo "local: *; };" >> $output_objdir/$libname.ver~
9914             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9915         fi
9916
9917         case $cc_basename in
9918         xlf* | bgf* | bgxlf* | mpixlf*)
9919           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9920           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9921           hardcode_libdir_flag_spec=
9922           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9923           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9924           if test "x$supports_anon_versioning" = xyes; then
9925             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9926               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9927               echo "local: *; };" >> $output_objdir/$libname.ver~
9928               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9929           fi
9930           ;;
9931         esac
9932       else
9933         ld_shlibs=no
9934       fi
9935       ;;
9936
9937     netbsd*)
9938       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9939         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9940         wlarc=
9941       else
9942         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9943         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9944       fi
9945       ;;
9946
9947     solaris*)
9948       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9949         ld_shlibs=no
9950         cat <<_LT_EOF 1>&2
9951
9952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9953 *** create shared libraries on Solaris systems.  Therefore, libtool
9954 *** is disabling shared libraries support.  We urge you to upgrade GNU
9955 *** binutils to release 2.9.1 or newer.  Another option is to modify
9956 *** your PATH or compiler configuration so that the native linker is
9957 *** used, and then restart.
9958
9959 _LT_EOF
9960       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963       else
9964         ld_shlibs=no
9965       fi
9966       ;;
9967
9968     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9969       case `$LD -v 2>&1` in
9970         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9971         ld_shlibs=no
9972         cat <<_LT_EOF 1>&2
9973
9974 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9975 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9976 *** is disabling shared libraries support.  We urge you to upgrade GNU
9977 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9978 *** your PATH or compiler configuration so that the native linker is
9979 *** used, and then restart.
9980
9981 _LT_EOF
9982         ;;
9983         *)
9984           # For security reasons, it is highly recommended that you always
9985           # use absolute paths for naming shared libraries, and exclude the
9986           # DT_RUNPATH tag from executables and libraries.  But doing so
9987           # requires that you compile everything twice, which is a pain.
9988           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9989             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9991             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9992           else
9993             ld_shlibs=no
9994           fi
9995         ;;
9996       esac
9997       ;;
9998
9999     sunos4*)
10000       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10001       wlarc=
10002       hardcode_direct=yes
10003       hardcode_shlibpath_var=no
10004       ;;
10005
10006     *)
10007       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10008         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10010       else
10011         ld_shlibs=no
10012       fi
10013       ;;
10014     esac
10015
10016     if test "$ld_shlibs" = no; then
10017       runpath_var=
10018       hardcode_libdir_flag_spec=
10019       export_dynamic_flag_spec=
10020       whole_archive_flag_spec=
10021     fi
10022   else
10023     # PORTME fill in a description of your system's linker (not GNU ld)
10024     case $host_os in
10025     aix3*)
10026       allow_undefined_flag=unsupported
10027       always_export_symbols=yes
10028       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'
10029       # Note: this linker hardcodes the directories in LIBPATH if there
10030       # are no directories specified by -L.
10031       hardcode_minus_L=yes
10032       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10033         # Neither direct hardcoding nor static linking is supported with a
10034         # broken collect2.
10035         hardcode_direct=unsupported
10036       fi
10037       ;;
10038
10039     aix[4-9]*)
10040       if test "$host_cpu" = ia64; then
10041         # On IA64, the linker does run time linking by default, so we don't
10042         # have to do anything special.
10043         aix_use_runtimelinking=no
10044         exp_sym_flag='-Bexport'
10045         no_entry_flag=""
10046       else
10047         # If we're using GNU nm, then we don't want the "-C" option.
10048         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10049         # Also, AIX nm treats weak defined symbols like other global
10050         # defined symbols, whereas GNU nm marks them as "W".
10051         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10052           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10053         else
10054           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10055         fi
10056         aix_use_runtimelinking=no
10057
10058         # Test if we are trying to use run time linking or normal
10059         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10060         # need to do runtime linking.
10061         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10062           for ld_flag in $LDFLAGS; do
10063           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10064             aix_use_runtimelinking=yes
10065             break
10066           fi
10067           done
10068           ;;
10069         esac
10070
10071         exp_sym_flag='-bexport'
10072         no_entry_flag='-bnoentry'
10073       fi
10074
10075       # When large executables or shared objects are built, AIX ld can
10076       # have problems creating the table of contents.  If linking a library
10077       # or program results in "error TOC overflow" add -mminimal-toc to
10078       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10079       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10080
10081       archive_cmds=''
10082       hardcode_direct=yes
10083       hardcode_direct_absolute=yes
10084       hardcode_libdir_separator=':'
10085       link_all_deplibs=yes
10086       file_list_spec='${wl}-f,'
10087
10088       if test "$GCC" = yes; then
10089         case $host_os in aix4.[012]|aix4.[012].*)
10090         # We only want to do this on AIX 4.2 and lower, the check
10091         # below for broken collect2 doesn't work under 4.3+
10092           collect2name=`${CC} -print-prog-name=collect2`
10093           if test -f "$collect2name" &&
10094            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10095           then
10096           # We have reworked collect2
10097           :
10098           else
10099           # We have old collect2
10100           hardcode_direct=unsupported
10101           # It fails to find uninstalled libraries when the uninstalled
10102           # path is not listed in the libpath.  Setting hardcode_minus_L
10103           # to unsupported forces relinking
10104           hardcode_minus_L=yes
10105           hardcode_libdir_flag_spec='-L$libdir'
10106           hardcode_libdir_separator=
10107           fi
10108           ;;
10109         esac
10110         shared_flag='-shared'
10111         if test "$aix_use_runtimelinking" = yes; then
10112           shared_flag="$shared_flag "'${wl}-G'
10113         fi
10114       else
10115         # not using gcc
10116         if test "$host_cpu" = ia64; then
10117         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10118         # chokes on -Wl,-G. The following line is correct:
10119           shared_flag='-G'
10120         else
10121           if test "$aix_use_runtimelinking" = yes; then
10122             shared_flag='${wl}-G'
10123           else
10124             shared_flag='${wl}-bM:SRE'
10125           fi
10126         fi
10127       fi
10128
10129       export_dynamic_flag_spec='${wl}-bexpall'
10130       # It seems that -bexpall does not export symbols beginning with
10131       # underscore (_), so it is better to generate a list of symbols to export.
10132       always_export_symbols=yes
10133       if test "$aix_use_runtimelinking" = yes; then
10134         # Warning - without using the other runtime loading flags (-brtl),
10135         # -berok will link without error, but may produce a broken library.
10136         allow_undefined_flag='-berok'
10137         # Determine the default libpath from the value encoded in an
10138         # empty executable.
10139         if test "${lt_cv_aix_libpath+set}" = set; then
10140   aix_libpath=$lt_cv_aix_libpath
10141 else
10142   if ${lt_cv_aix_libpath_+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h.  */
10147
10148 int
10149 main ()
10150 {
10151
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_link "$LINENO"; then :
10157
10158   lt_aix_libpath_sed='
10159       /Import File Strings/,/^$/ {
10160           /^0/ {
10161               s/^0  *\([^ ]*\) *$/\1/
10162               p
10163           }
10164       }'
10165   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10166   # Check for a 64-bit object if we didn't find anything.
10167   if test -z "$lt_cv_aix_libpath_"; then
10168     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10169   fi
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext \
10172     conftest$ac_exeext conftest.$ac_ext
10173   if test -z "$lt_cv_aix_libpath_"; then
10174     lt_cv_aix_libpath_="/usr/lib:/lib"
10175   fi
10176
10177 fi
10178
10179   aix_libpath=$lt_cv_aix_libpath_
10180 fi
10181
10182         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10183         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10184       else
10185         if test "$host_cpu" = ia64; then
10186           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10187           allow_undefined_flag="-z nodefs"
10188           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"
10189         else
10190          # Determine the default libpath from the value encoded in an
10191          # empty executable.
10192          if test "${lt_cv_aix_libpath+set}" = set; then
10193   aix_libpath=$lt_cv_aix_libpath
10194 else
10195   if ${lt_cv_aix_libpath_+:} false; then :
10196   $as_echo_n "(cached) " >&6
10197 else
10198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h.  */
10200
10201 int
10202 main ()
10203 {
10204
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210
10211   lt_aix_libpath_sed='
10212       /Import File Strings/,/^$/ {
10213           /^0/ {
10214               s/^0  *\([^ ]*\) *$/\1/
10215               p
10216           }
10217       }'
10218   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219   # Check for a 64-bit object if we didn't find anything.
10220   if test -z "$lt_cv_aix_libpath_"; then
10221     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10222   fi
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext \
10225     conftest$ac_exeext conftest.$ac_ext
10226   if test -z "$lt_cv_aix_libpath_"; then
10227     lt_cv_aix_libpath_="/usr/lib:/lib"
10228   fi
10229
10230 fi
10231
10232   aix_libpath=$lt_cv_aix_libpath_
10233 fi
10234
10235          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10236           # Warning - without using the other run time loading flags,
10237           # -berok will link without error, but may produce a broken library.
10238           no_undefined_flag=' ${wl}-bernotok'
10239           allow_undefined_flag=' ${wl}-berok'
10240           if test "$with_gnu_ld" = yes; then
10241             # We only use this code for GNU lds that support --whole-archive.
10242             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10243           else
10244             # Exported symbols can be pulled into shared objects from archives
10245             whole_archive_flag_spec='$convenience'
10246           fi
10247           archive_cmds_need_lc=yes
10248           # This is similar to how AIX traditionally builds its shared libraries.
10249           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10250         fi
10251       fi
10252       ;;
10253
10254     amigaos*)
10255       case $host_cpu in
10256       powerpc)
10257             # see comment about AmigaOS4 .so support
10258             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259             archive_expsym_cmds=''
10260         ;;
10261       m68k)
10262             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)'
10263             hardcode_libdir_flag_spec='-L$libdir'
10264             hardcode_minus_L=yes
10265         ;;
10266       esac
10267       ;;
10268
10269     bsdi[45]*)
10270       export_dynamic_flag_spec=-rdynamic
10271       ;;
10272
10273     cygwin* | mingw* | pw32* | cegcc*)
10274       # When not using gcc, we currently assume that we are using
10275       # Microsoft Visual C++.
10276       # hardcode_libdir_flag_spec is actually meaningless, as there is
10277       # no search path for DLLs.
10278       case $cc_basename in
10279       cl*)
10280         # Native MSVC
10281         hardcode_libdir_flag_spec=' '
10282         allow_undefined_flag=unsupported
10283         always_export_symbols=yes
10284         file_list_spec='@'
10285         # Tell ltmain to make .lib files, not .a files.
10286         libext=lib
10287         # Tell ltmain to make .dll files, not .so files.
10288         shrext_cmds=".dll"
10289         # FIXME: Setting linknames here is a bad hack.
10290         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10291         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10292             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10293           else
10294             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10295           fi~
10296           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10297           linknames='
10298         # The linker will not automatically build a static lib if we build a DLL.
10299         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10300         enable_shared_with_static_runtimes=yes
10301         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10302         # Don't use ranlib
10303         old_postinstall_cmds='chmod 644 $oldlib'
10304         postlink_cmds='lt_outputfile="@OUTPUT@"~
10305           lt_tool_outputfile="@TOOL_OUTPUT@"~
10306           case $lt_outputfile in
10307             *.exe|*.EXE) ;;
10308             *)
10309               lt_outputfile="$lt_outputfile.exe"
10310               lt_tool_outputfile="$lt_tool_outputfile.exe"
10311               ;;
10312           esac~
10313           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10314             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10315             $RM "$lt_outputfile.manifest";
10316           fi'
10317         ;;
10318       *)
10319         # Assume MSVC wrapper
10320         hardcode_libdir_flag_spec=' '
10321         allow_undefined_flag=unsupported
10322         # Tell ltmain to make .lib files, not .a files.
10323         libext=lib
10324         # Tell ltmain to make .dll files, not .so files.
10325         shrext_cmds=".dll"
10326         # FIXME: Setting linknames here is a bad hack.
10327         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10328         # The linker will automatically build a .lib file if we build a DLL.
10329         old_archive_from_new_cmds='true'
10330         # FIXME: Should let the user specify the lib program.
10331         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10332         enable_shared_with_static_runtimes=yes
10333         ;;
10334       esac
10335       ;;
10336
10337     darwin* | rhapsody*)
10338
10339
10340   archive_cmds_need_lc=no
10341   hardcode_direct=no
10342   hardcode_automatic=yes
10343   hardcode_shlibpath_var=unsupported
10344   if test "$lt_cv_ld_force_load" = "yes"; then
10345     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\"`'
10346   else
10347     whole_archive_flag_spec=''
10348   fi
10349   link_all_deplibs=yes
10350   allow_undefined_flag="$_lt_dar_allow_undefined"
10351   case $cc_basename in
10352      ifort*) _lt_dar_can_shared=yes ;;
10353      *) _lt_dar_can_shared=$GCC ;;
10354   esac
10355   if test "$_lt_dar_can_shared" = "yes"; then
10356     output_verbose_link_cmd=func_echo_all
10357     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10358     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10359     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}"
10360     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}"
10361
10362   else
10363   ld_shlibs=no
10364   fi
10365
10366       ;;
10367
10368     dgux*)
10369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370       hardcode_libdir_flag_spec='-L$libdir'
10371       hardcode_shlibpath_var=no
10372       ;;
10373
10374     freebsd1*)
10375       ld_shlibs=no
10376       ;;
10377
10378     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10379     # support.  Future versions do this automatically, but an explicit c++rt0.o
10380     # does not break anything, and helps significantly (at the cost of a little
10381     # extra space).
10382     freebsd2.2*)
10383       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10384       hardcode_libdir_flag_spec='-R$libdir'
10385       hardcode_direct=yes
10386       hardcode_shlibpath_var=no
10387       ;;
10388
10389     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10390     freebsd2*)
10391       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10392       hardcode_direct=yes
10393       hardcode_minus_L=yes
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10398     freebsd* | dragonfly*)
10399       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10400       hardcode_libdir_flag_spec='-R$libdir'
10401       hardcode_direct=yes
10402       hardcode_shlibpath_var=no
10403       ;;
10404
10405     hpux9*)
10406       if test "$GCC" = yes; then
10407         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10408       else
10409         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10410       fi
10411       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412       hardcode_libdir_separator=:
10413       hardcode_direct=yes
10414
10415       # hardcode_minus_L: Not really in the search PATH,
10416       # but as the default location of the library.
10417       hardcode_minus_L=yes
10418       export_dynamic_flag_spec='${wl}-E'
10419       ;;
10420
10421     hpux10*)
10422       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10423         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10424       else
10425         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10426       fi
10427       if test "$with_gnu_ld" = no; then
10428         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10429         hardcode_libdir_flag_spec_ld='+b $libdir'
10430         hardcode_libdir_separator=:
10431         hardcode_direct=yes
10432         hardcode_direct_absolute=yes
10433         export_dynamic_flag_spec='${wl}-E'
10434         # hardcode_minus_L: Not really in the search PATH,
10435         # but as the default location of the library.
10436         hardcode_minus_L=yes
10437       fi
10438       ;;
10439
10440     hpux11*)
10441       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10442         case $host_cpu in
10443         hppa*64*)
10444           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10445           ;;
10446         ia64*)
10447           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10448           ;;
10449         *)
10450           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10451           ;;
10452         esac
10453       else
10454         case $host_cpu in
10455         hppa*64*)
10456           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10457           ;;
10458         ia64*)
10459           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10460           ;;
10461         *)
10462
10463           # Older versions of the 11.00 compiler do not understand -b yet
10464           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10465           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10466 $as_echo_n "checking if $CC understands -b... " >&6; }
10467 if ${lt_cv_prog_compiler__b+:} false; then :
10468   $as_echo_n "(cached) " >&6
10469 else
10470   lt_cv_prog_compiler__b=no
10471    save_LDFLAGS="$LDFLAGS"
10472    LDFLAGS="$LDFLAGS -b"
10473    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10474    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10475      # The linker can only warn and ignore the option if not recognized
10476      # So say no if there are warnings
10477      if test -s conftest.err; then
10478        # Append any errors to the config.log.
10479        cat conftest.err 1>&5
10480        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10481        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10482        if diff conftest.exp conftest.er2 >/dev/null; then
10483          lt_cv_prog_compiler__b=yes
10484        fi
10485      else
10486        lt_cv_prog_compiler__b=yes
10487      fi
10488    fi
10489    $RM -r conftest*
10490    LDFLAGS="$save_LDFLAGS"
10491
10492 fi
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10494 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10495
10496 if test x"$lt_cv_prog_compiler__b" = xyes; then
10497     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10498 else
10499     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10500 fi
10501
10502           ;;
10503         esac
10504       fi
10505       if test "$with_gnu_ld" = no; then
10506         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10507         hardcode_libdir_separator=:
10508
10509         case $host_cpu in
10510         hppa*64*|ia64*)
10511           hardcode_direct=no
10512           hardcode_shlibpath_var=no
10513           ;;
10514         *)
10515           hardcode_direct=yes
10516           hardcode_direct_absolute=yes
10517           export_dynamic_flag_spec='${wl}-E'
10518
10519           # hardcode_minus_L: Not really in the search PATH,
10520           # but as the default location of the library.
10521           hardcode_minus_L=yes
10522           ;;
10523         esac
10524       fi
10525       ;;
10526
10527     irix5* | irix6* | nonstopux*)
10528       if test "$GCC" = yes; then
10529         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'
10530         # Try to use the -exported_symbol ld option, if it does not
10531         # work, assume that -exports_file does not work either and
10532         # implicitly export all symbols.
10533         # This should be the same for all languages, so no per-tag cache variable.
10534         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10535 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10536 if ${lt_cv_irix_exported_symbol+:} false; then :
10537   $as_echo_n "(cached) " >&6
10538 else
10539   save_LDFLAGS="$LDFLAGS"
10540            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10541            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h.  */
10543 int foo (void) { return 0; }
10544 _ACEOF
10545 if ac_fn_c_try_link "$LINENO"; then :
10546   lt_cv_irix_exported_symbol=yes
10547 else
10548   lt_cv_irix_exported_symbol=no
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext \
10551     conftest$ac_exeext conftest.$ac_ext
10552            LDFLAGS="$save_LDFLAGS"
10553 fi
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10555 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10556         if test "$lt_cv_irix_exported_symbol" = yes; then
10557           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'
10558         fi
10559       else
10560         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'
10561         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'
10562       fi
10563       archive_cmds_need_lc='no'
10564       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10565       hardcode_libdir_separator=:
10566       inherit_rpath=yes
10567       link_all_deplibs=yes
10568       ;;
10569
10570     netbsd*)
10571       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10572         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10573       else
10574         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10575       fi
10576       hardcode_libdir_flag_spec='-R$libdir'
10577       hardcode_direct=yes
10578       hardcode_shlibpath_var=no
10579       ;;
10580
10581     newsos6)
10582       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583       hardcode_direct=yes
10584       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10585       hardcode_libdir_separator=:
10586       hardcode_shlibpath_var=no
10587       ;;
10588
10589     *nto* | *qnx*)
10590       ;;
10591
10592     openbsd*)
10593       if test -f /usr/libexec/ld.so; then
10594         hardcode_direct=yes
10595         hardcode_shlibpath_var=no
10596         hardcode_direct_absolute=yes
10597         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10598           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10599           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10600           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10601           export_dynamic_flag_spec='${wl}-E'
10602         else
10603           case $host_os in
10604            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10605              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10606              hardcode_libdir_flag_spec='-R$libdir'
10607              ;;
10608            *)
10609              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10610              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10611              ;;
10612           esac
10613         fi
10614       else
10615         ld_shlibs=no
10616       fi
10617       ;;
10618
10619     os2*)
10620       hardcode_libdir_flag_spec='-L$libdir'
10621       hardcode_minus_L=yes
10622       allow_undefined_flag=unsupported
10623       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10624       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10625       ;;
10626
10627     osf3*)
10628       if test "$GCC" = yes; then
10629         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10630         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'
10631       else
10632         allow_undefined_flag=' -expect_unresolved \*'
10633         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'
10634       fi
10635       archive_cmds_need_lc='no'
10636       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10637       hardcode_libdir_separator=:
10638       ;;
10639
10640     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10641       if test "$GCC" = yes; then
10642         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10643         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'
10644         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10645       else
10646         allow_undefined_flag=' -expect_unresolved \*'
10647         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'
10648         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~
10649         $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'
10650
10651         # Both c and cxx compiler support -rpath directly
10652         hardcode_libdir_flag_spec='-rpath $libdir'
10653       fi
10654       archive_cmds_need_lc='no'
10655       hardcode_libdir_separator=:
10656       ;;
10657
10658     solaris*)
10659       no_undefined_flag=' -z defs'
10660       if test "$GCC" = yes; then
10661         wlarc='${wl}'
10662         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10663         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10664           $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'
10665       else
10666         case `$CC -V 2>&1` in
10667         *"Compilers 5.0"*)
10668           wlarc=''
10669           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10671           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10672           ;;
10673         *)
10674           wlarc='${wl}'
10675           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10676           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10677           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10678           ;;
10679         esac
10680       fi
10681       hardcode_libdir_flag_spec='-R$libdir'
10682       hardcode_shlibpath_var=no
10683       case $host_os in
10684       solaris2.[0-5] | solaris2.[0-5].*) ;;
10685       *)
10686         # The compiler driver will combine and reorder linker options,
10687         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10688         # but is careful enough not to reorder.
10689         # Supported since Solaris 2.6 (maybe 2.5.1?)
10690         if test "$GCC" = yes; then
10691           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10692         else
10693           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10694         fi
10695         ;;
10696       esac
10697       link_all_deplibs=yes
10698       ;;
10699
10700     sunos4*)
10701       if test "x$host_vendor" = xsequent; then
10702         # Use $CC to link under sequent, because it throws in some extra .o
10703         # files that make .init and .fini sections work.
10704         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10705       else
10706         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10707       fi
10708       hardcode_libdir_flag_spec='-L$libdir'
10709       hardcode_direct=yes
10710       hardcode_minus_L=yes
10711       hardcode_shlibpath_var=no
10712       ;;
10713
10714     sysv4)
10715       case $host_vendor in
10716         sni)
10717           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718           hardcode_direct=yes # is this really true???
10719         ;;
10720         siemens)
10721           ## LD is ld it makes a PLAMLIB
10722           ## CC just makes a GrossModule.
10723           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10724           reload_cmds='$CC -r -o $output$reload_objs'
10725           hardcode_direct=no
10726         ;;
10727         motorola)
10728           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10730         ;;
10731       esac
10732       runpath_var='LD_RUN_PATH'
10733       hardcode_shlibpath_var=no
10734       ;;
10735
10736     sysv4.3*)
10737       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738       hardcode_shlibpath_var=no
10739       export_dynamic_flag_spec='-Bexport'
10740       ;;
10741
10742     sysv4*MP*)
10743       if test -d /usr/nec; then
10744         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745         hardcode_shlibpath_var=no
10746         runpath_var=LD_RUN_PATH
10747         hardcode_runpath_var=yes
10748         ld_shlibs=yes
10749       fi
10750       ;;
10751
10752     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10753       no_undefined_flag='${wl}-z,text'
10754       archive_cmds_need_lc=no
10755       hardcode_shlibpath_var=no
10756       runpath_var='LD_RUN_PATH'
10757
10758       if test "$GCC" = yes; then
10759         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10761       else
10762         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10764       fi
10765       ;;
10766
10767     sysv5* | sco3.2v5* | sco5v6*)
10768       # Note: We can NOT use -z defs as we might desire, because we do not
10769       # link with -lc, and that would cause any symbols used from libc to
10770       # always be unresolved, which means just about no library would
10771       # ever link correctly.  If we're not using GNU ld we use -z text
10772       # though, which does catch some bad symbols but isn't as heavy-handed
10773       # as -z defs.
10774       no_undefined_flag='${wl}-z,text'
10775       allow_undefined_flag='${wl}-z,nodefs'
10776       archive_cmds_need_lc=no
10777       hardcode_shlibpath_var=no
10778       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10779       hardcode_libdir_separator=':'
10780       link_all_deplibs=yes
10781       export_dynamic_flag_spec='${wl}-Bexport'
10782       runpath_var='LD_RUN_PATH'
10783
10784       if test "$GCC" = yes; then
10785         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787       else
10788         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790       fi
10791       ;;
10792
10793     uts4*)
10794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795       hardcode_libdir_flag_spec='-L$libdir'
10796       hardcode_shlibpath_var=no
10797       ;;
10798
10799     *)
10800       ld_shlibs=no
10801       ;;
10802     esac
10803
10804     if test x$host_vendor = xsni; then
10805       case $host in
10806       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10807         export_dynamic_flag_spec='${wl}-Blargedynsym'
10808         ;;
10809       esac
10810     fi
10811   fi
10812
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10814 $as_echo "$ld_shlibs" >&6; }
10815 test "$ld_shlibs" = no && can_build_shared=no
10816
10817 with_gnu_ld=$with_gnu_ld
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833 #
10834 # Do we need to explicitly link libc?
10835 #
10836 case "x$archive_cmds_need_lc" in
10837 x|xyes)
10838   # Assume -lc should be added
10839   archive_cmds_need_lc=yes
10840
10841   if test "$enable_shared" = yes && test "$GCC" = yes; then
10842     case $archive_cmds in
10843     *'~'*)
10844       # FIXME: we may have to deal with multi-command sequences.
10845       ;;
10846     '$CC '*)
10847       # Test whether the compiler implicitly links with -lc since on some
10848       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10849       # to ld, don't add -lc before -lgcc.
10850       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10851 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10852 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10853   $as_echo_n "(cached) " >&6
10854 else
10855   $RM conftest*
10856         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10857
10858         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10859   (eval $ac_compile) 2>&5
10860   ac_status=$?
10861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10862   test $ac_status = 0; } 2>conftest.err; then
10863           soname=conftest
10864           lib=conftest
10865           libobjs=conftest.$ac_objext
10866           deplibs=
10867           wl=$lt_prog_compiler_wl
10868           pic_flag=$lt_prog_compiler_pic
10869           compiler_flags=-v
10870           linker_flags=-v
10871           verstring=
10872           output_objdir=.
10873           libname=conftest
10874           lt_save_allow_undefined_flag=$allow_undefined_flag
10875           allow_undefined_flag=
10876           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10877   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10878   ac_status=$?
10879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880   test $ac_status = 0; }
10881           then
10882             lt_cv_archive_cmds_need_lc=no
10883           else
10884             lt_cv_archive_cmds_need_lc=yes
10885           fi
10886           allow_undefined_flag=$lt_save_allow_undefined_flag
10887         else
10888           cat conftest.err 1>&5
10889         fi
10890         $RM conftest*
10891
10892 fi
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10894 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10895       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10896       ;;
10897     esac
10898   fi
10899   ;;
10900 esac
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11059 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11060
11061 if test "$GCC" = yes; then
11062   case $host_os in
11063     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11064     *) lt_awk_arg="/^libraries:/" ;;
11065   esac
11066   case $host_os in
11067     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11068     *) lt_sed_strip_eq="s,=/,/,g" ;;
11069   esac
11070   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11071   case $lt_search_path_spec in
11072   *\;*)
11073     # if the path contains ";" then we assume it to be the separator
11074     # otherwise default to the standard path separator (i.e. ":") - it is
11075     # assumed that no part of a normal pathname contains ";" but that should
11076     # okay in the real world where ";" in dirpaths is itself problematic.
11077     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11078     ;;
11079   *)
11080     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11081     ;;
11082   esac
11083   # Ok, now we have the path, separated by spaces, we can step through it
11084   # and add multilib dir if necessary.
11085   lt_tmp_lt_search_path_spec=
11086   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11087   for lt_sys_path in $lt_search_path_spec; do
11088     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11089       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11090     else
11091       test -d "$lt_sys_path" && \
11092         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11093     fi
11094   done
11095   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11096 BEGIN {RS=" "; FS="/|\n";} {
11097   lt_foo="";
11098   lt_count=0;
11099   for (lt_i = NF; lt_i > 0; lt_i--) {
11100     if ($lt_i != "" && $lt_i != ".") {
11101       if ($lt_i == "..") {
11102         lt_count++;
11103       } else {
11104         if (lt_count == 0) {
11105           lt_foo="/" $lt_i lt_foo;
11106         } else {
11107           lt_count--;
11108         }
11109       }
11110     }
11111   }
11112   if (lt_foo != "") { lt_freq[lt_foo]++; }
11113   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11114 }'`
11115   # AWK program above erroneously prepends '/' to C:/dos/paths
11116   # for these hosts.
11117   case $host_os in
11118     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11119       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11120   esac
11121   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11122 else
11123   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11124 fi
11125 library_names_spec=
11126 libname_spec='lib$name'
11127 soname_spec=
11128 shrext_cmds=".so"
11129 postinstall_cmds=
11130 postuninstall_cmds=
11131 finish_cmds=
11132 finish_eval=
11133 shlibpath_var=
11134 shlibpath_overrides_runpath=unknown
11135 version_type=none
11136 dynamic_linker="$host_os ld.so"
11137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11138 need_lib_prefix=unknown
11139 hardcode_into_libs=no
11140
11141 # when you set need_version to no, make sure it does not cause -set_version
11142 # flags to be left without arguments
11143 need_version=unknown
11144
11145 case $host_os in
11146 aix3*)
11147   version_type=linux
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11149   shlibpath_var=LIBPATH
11150
11151   # AIX 3 has no versioning support, so we append a major version to the name.
11152   soname_spec='${libname}${release}${shared_ext}$major'
11153   ;;
11154
11155 aix[4-9]*)
11156   version_type=linux
11157   need_lib_prefix=no
11158   need_version=no
11159   hardcode_into_libs=yes
11160   if test "$host_cpu" = ia64; then
11161     # AIX 5 supports IA64
11162     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11163     shlibpath_var=LD_LIBRARY_PATH
11164   else
11165     # With GCC up to 2.95.x, collect2 would create an import file
11166     # for dependence libraries.  The import file would start with
11167     # the line `#! .'.  This would cause the generated library to
11168     # depend on `.', always an invalid library.  This was fixed in
11169     # development snapshots of GCC prior to 3.0.
11170     case $host_os in
11171       aix4 | aix4.[01] | aix4.[01].*)
11172       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11173            echo ' yes '
11174            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11175         :
11176       else
11177         can_build_shared=no
11178       fi
11179       ;;
11180     esac
11181     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11182     # soname into executable. Probably we can add versioning support to
11183     # collect2, so additional links can be useful in future.
11184     if test "$aix_use_runtimelinking" = yes; then
11185       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11186       # instead of lib<name>.a to let people know that these are not
11187       # typical AIX shared libraries.
11188       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189     else
11190       # We preserve .a as extension for shared libraries through AIX4.2
11191       # and later when we are not doing run time linking.
11192       library_names_spec='${libname}${release}.a $libname.a'
11193       soname_spec='${libname}${release}${shared_ext}$major'
11194     fi
11195     shlibpath_var=LIBPATH
11196   fi
11197   ;;
11198
11199 amigaos*)
11200   case $host_cpu in
11201   powerpc)
11202     # Since July 2007 AmigaOS4 officially supports .so libraries.
11203     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205     ;;
11206   m68k)
11207     library_names_spec='$libname.ixlibrary $libname.a'
11208     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11209     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11210     ;;
11211   esac
11212   ;;
11213
11214 beos*)
11215   library_names_spec='${libname}${shared_ext}'
11216   dynamic_linker="$host_os ld.so"
11217   shlibpath_var=LIBRARY_PATH
11218   ;;
11219
11220 bsdi[45]*)
11221   version_type=linux
11222   need_version=no
11223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224   soname_spec='${libname}${release}${shared_ext}$major'
11225   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11226   shlibpath_var=LD_LIBRARY_PATH
11227   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11228   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11229   # the default ld.so.conf also contains /usr/contrib/lib and
11230   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11231   # libtool to hard-code these into programs
11232   ;;
11233
11234 cygwin* | mingw* | pw32* | cegcc*)
11235   version_type=windows
11236   shrext_cmds=".dll"
11237   need_version=no
11238   need_lib_prefix=no
11239
11240   case $GCC,$cc_basename in
11241   yes,*)
11242     # gcc
11243     library_names_spec='$libname.dll.a'
11244     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11245     postinstall_cmds='base_file=`basename \${file}`~
11246       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11247       dldir=$destdir/`dirname \$dlpath`~
11248       test -d \$dldir || mkdir -p \$dldir~
11249       $install_prog $dir/$dlname \$dldir/$dlname~
11250       chmod a+x \$dldir/$dlname~
11251       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11252         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11253       fi'
11254     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11255       dlpath=$dir/\$dldll~
11256        $RM \$dlpath'
11257     shlibpath_overrides_runpath=yes
11258
11259     case $host_os in
11260     cygwin*)
11261       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11262       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11263
11264       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11265       ;;
11266     mingw* | cegcc*)
11267       # MinGW DLLs use traditional 'lib' prefix
11268       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11269       ;;
11270     pw32*)
11271       # pw32 DLLs use 'pw' prefix rather than 'lib'
11272       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11273       ;;
11274     esac
11275     dynamic_linker='Win32 ld.exe'
11276     ;;
11277
11278   *,cl*)
11279     # Native MSVC
11280     libname_spec='$name'
11281     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11282     library_names_spec='${libname}.dll.lib'
11283
11284     case $build_os in
11285     mingw*)
11286       sys_lib_search_path_spec=
11287       lt_save_ifs=$IFS
11288       IFS=';'
11289       for lt_path in $LIB
11290       do
11291         IFS=$lt_save_ifs
11292         # Let DOS variable expansion print the short 8.3 style file name.
11293         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11294         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11295       done
11296       IFS=$lt_save_ifs
11297       # Convert to MSYS style.
11298       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11299       ;;
11300     cygwin*)
11301       # Convert to unix form, then to dos form, then back to unix form
11302       # but this time dos style (no spaces!) so that the unix form looks
11303       # like /cygdrive/c/PROGRA~1:/cygdr...
11304       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11305       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11306       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11307       ;;
11308     *)
11309       sys_lib_search_path_spec="$LIB"
11310       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11311         # It is most probably a Windows format PATH.
11312         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11313       else
11314         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11315       fi
11316       # FIXME: find the short name or the path components, as spaces are
11317       # common. (e.g. "Program Files" -> "PROGRA~1")
11318       ;;
11319     esac
11320
11321     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11322     postinstall_cmds='base_file=`basename \${file}`~
11323       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11324       dldir=$destdir/`dirname \$dlpath`~
11325       test -d \$dldir || mkdir -p \$dldir~
11326       $install_prog $dir/$dlname \$dldir/$dlname'
11327     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11328       dlpath=$dir/\$dldll~
11329        $RM \$dlpath'
11330     shlibpath_overrides_runpath=yes
11331     dynamic_linker='Win32 link.exe'
11332     ;;
11333
11334   *)
11335     # Assume MSVC wrapper
11336     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11337     dynamic_linker='Win32 ld.exe'
11338     ;;
11339   esac
11340   # FIXME: first we should search . and the directory the executable is in
11341   shlibpath_var=PATH
11342   ;;
11343
11344 darwin* | rhapsody*)
11345   dynamic_linker="$host_os dyld"
11346   version_type=darwin
11347   need_lib_prefix=no
11348   need_version=no
11349   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11350   soname_spec='${libname}${release}${major}$shared_ext'
11351   shlibpath_overrides_runpath=yes
11352   shlibpath_var=DYLD_LIBRARY_PATH
11353   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11354
11355   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11356   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11357   ;;
11358
11359 dgux*)
11360   version_type=linux
11361   need_lib_prefix=no
11362   need_version=no
11363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11364   soname_spec='${libname}${release}${shared_ext}$major'
11365   shlibpath_var=LD_LIBRARY_PATH
11366   ;;
11367
11368 freebsd1*)
11369   dynamic_linker=no
11370   ;;
11371
11372 freebsd* | dragonfly*)
11373   # DragonFly does not have aout.  When/if they implement a new
11374   # versioning mechanism, adjust this.
11375   if test -x /usr/bin/objformat; then
11376     objformat=`/usr/bin/objformat`
11377   else
11378     case $host_os in
11379     freebsd[123]*) objformat=aout ;;
11380     *) objformat=elf ;;
11381     esac
11382   fi
11383   version_type=freebsd-$objformat
11384   case $version_type in
11385     freebsd-elf*)
11386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11387       need_version=no
11388       need_lib_prefix=no
11389       ;;
11390     freebsd-*)
11391       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11392       need_version=yes
11393       ;;
11394   esac
11395   shlibpath_var=LD_LIBRARY_PATH
11396   case $host_os in
11397   freebsd2*)
11398     shlibpath_overrides_runpath=yes
11399     ;;
11400   freebsd3.[01]* | freebsdelf3.[01]*)
11401     shlibpath_overrides_runpath=yes
11402     hardcode_into_libs=yes
11403     ;;
11404   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11405   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11406     shlibpath_overrides_runpath=no
11407     hardcode_into_libs=yes
11408     ;;
11409   *) # from 4.6 on, and DragonFly
11410     shlibpath_overrides_runpath=yes
11411     hardcode_into_libs=yes
11412     ;;
11413   esac
11414   ;;
11415
11416 gnu*)
11417   version_type=linux
11418   need_lib_prefix=no
11419   need_version=no
11420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11421   soname_spec='${libname}${release}${shared_ext}$major'
11422   shlibpath_var=LD_LIBRARY_PATH
11423   hardcode_into_libs=yes
11424   ;;
11425
11426 haiku*)
11427   version_type=linux
11428   need_lib_prefix=no
11429   need_version=no
11430   dynamic_linker="$host_os runtime_loader"
11431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11432   soname_spec='${libname}${release}${shared_ext}$major'
11433   shlibpath_var=LIBRARY_PATH
11434   shlibpath_overrides_runpath=yes
11435   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11436   hardcode_into_libs=yes
11437   ;;
11438
11439 hpux9* | hpux10* | hpux11*)
11440   # Give a soname corresponding to the major version so that dld.sl refuses to
11441   # link against other versions.
11442   version_type=sunos
11443   need_lib_prefix=no
11444   need_version=no
11445   case $host_cpu in
11446   ia64*)
11447     shrext_cmds='.so'
11448     hardcode_into_libs=yes
11449     dynamic_linker="$host_os dld.so"
11450     shlibpath_var=LD_LIBRARY_PATH
11451     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453     soname_spec='${libname}${release}${shared_ext}$major'
11454     if test "X$HPUX_IA64_MODE" = X32; then
11455       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11456     else
11457       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11458     fi
11459     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11460     ;;
11461   hppa*64*)
11462     shrext_cmds='.sl'
11463     hardcode_into_libs=yes
11464     dynamic_linker="$host_os dld.sl"
11465     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11466     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468     soname_spec='${libname}${release}${shared_ext}$major'
11469     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11470     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11471     ;;
11472   *)
11473     shrext_cmds='.sl'
11474     dynamic_linker="$host_os dld.sl"
11475     shlibpath_var=SHLIB_PATH
11476     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478     soname_spec='${libname}${release}${shared_ext}$major'
11479     ;;
11480   esac
11481   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11482   postinstall_cmds='chmod 555 $lib'
11483   # or fails outright, so override atomically:
11484   install_override_mode=555
11485   ;;
11486
11487 interix[3-9]*)
11488   version_type=linux
11489   need_lib_prefix=no
11490   need_version=no
11491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11492   soname_spec='${libname}${release}${shared_ext}$major'
11493   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11494   shlibpath_var=LD_LIBRARY_PATH
11495   shlibpath_overrides_runpath=no
11496   hardcode_into_libs=yes
11497   ;;
11498
11499 irix5* | irix6* | nonstopux*)
11500   case $host_os in
11501     nonstopux*) version_type=nonstopux ;;
11502     *)
11503         if test "$lt_cv_prog_gnu_ld" = yes; then
11504                 version_type=linux
11505         else
11506                 version_type=irix
11507         fi ;;
11508   esac
11509   need_lib_prefix=no
11510   need_version=no
11511   soname_spec='${libname}${release}${shared_ext}$major'
11512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11513   case $host_os in
11514   irix5* | nonstopux*)
11515     libsuff= shlibsuff=
11516     ;;
11517   *)
11518     case $LD in # libtool.m4 will add one of these switches to LD
11519     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11520       libsuff= shlibsuff= libmagic=32-bit;;
11521     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11522       libsuff=32 shlibsuff=N32 libmagic=N32;;
11523     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11524       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11525     *) libsuff= shlibsuff= libmagic=never-match;;
11526     esac
11527     ;;
11528   esac
11529   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11530   shlibpath_overrides_runpath=no
11531   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11532   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11533   hardcode_into_libs=yes
11534   ;;
11535
11536 # No shared lib support for Linux oldld, aout, or coff.
11537 linux*oldld* | linux*aout* | linux*coff*)
11538   dynamic_linker=no
11539   ;;
11540
11541 # This must be Linux ELF.
11542 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11543   version_type=linux
11544   need_lib_prefix=no
11545   need_version=no
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   shlibpath_overrides_runpath=no
11551
11552   # Some binutils ld are patched to set DT_RUNPATH
11553   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11554   $as_echo_n "(cached) " >&6
11555 else
11556   lt_cv_shlibpath_overrides_runpath=no
11557     save_LDFLAGS=$LDFLAGS
11558     save_libdir=$libdir
11559     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11560          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h.  */
11563
11564 int
11565 main ()
11566 {
11567
11568   ;
11569   return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_link "$LINENO"; then :
11573   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11574   lt_cv_shlibpath_overrides_runpath=yes
11575 fi
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext \
11578     conftest$ac_exeext conftest.$ac_ext
11579     LDFLAGS=$save_LDFLAGS
11580     libdir=$save_libdir
11581
11582 fi
11583
11584   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11585
11586   # This implies no fast_install, which is unacceptable.
11587   # Some rework will be needed to allow for fast_install
11588   # before this can be enabled.
11589   hardcode_into_libs=yes
11590
11591   # Add ABI-specific directories to the system library path.
11592   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11593
11594   # Append ld.so.conf contents to the search path
11595   if test -f /etc/ld.so.conf; then
11596     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' ' '`
11597     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11598
11599   fi
11600
11601   # We used to test for /lib/ld.so.1 and disable shared libraries on
11602   # powerpc, because MkLinux only supported shared libraries with the
11603   # GNU dynamic linker.  Since this was broken with cross compilers,
11604   # most powerpc-linux boxes support dynamic linking these days and
11605   # people can always --disable-shared, the test was removed, and we
11606   # assume the GNU/Linux dynamic linker is in use.
11607   dynamic_linker='GNU/Linux ld.so'
11608   ;;
11609
11610 netbsd*)
11611   version_type=sunos
11612   need_lib_prefix=no
11613   need_version=no
11614   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11616     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11617     dynamic_linker='NetBSD (a.out) ld.so'
11618   else
11619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11620     soname_spec='${libname}${release}${shared_ext}$major'
11621     dynamic_linker='NetBSD ld.elf_so'
11622   fi
11623   shlibpath_var=LD_LIBRARY_PATH
11624   shlibpath_overrides_runpath=yes
11625   hardcode_into_libs=yes
11626   ;;
11627
11628 newsos6)
11629   version_type=linux
11630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631   shlibpath_var=LD_LIBRARY_PATH
11632   shlibpath_overrides_runpath=yes
11633   ;;
11634
11635 *nto* | *qnx*)
11636   version_type=qnx
11637   need_lib_prefix=no
11638   need_version=no
11639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640   soname_spec='${libname}${release}${shared_ext}$major'
11641   shlibpath_var=LD_LIBRARY_PATH
11642   shlibpath_overrides_runpath=no
11643   hardcode_into_libs=yes
11644   dynamic_linker='ldqnx.so'
11645   ;;
11646
11647 openbsd*)
11648   version_type=sunos
11649   sys_lib_dlsearch_path_spec="/usr/lib"
11650   need_lib_prefix=no
11651   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11652   case $host_os in
11653     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11654     *)                          need_version=no  ;;
11655   esac
11656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11658   shlibpath_var=LD_LIBRARY_PATH
11659   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11660     case $host_os in
11661       openbsd2.[89] | openbsd2.[89].*)
11662         shlibpath_overrides_runpath=no
11663         ;;
11664       *)
11665         shlibpath_overrides_runpath=yes
11666         ;;
11667       esac
11668   else
11669     shlibpath_overrides_runpath=yes
11670   fi
11671   ;;
11672
11673 os2*)
11674   libname_spec='$name'
11675   shrext_cmds=".dll"
11676   need_lib_prefix=no
11677   library_names_spec='$libname${shared_ext} $libname.a'
11678   dynamic_linker='OS/2 ld.exe'
11679   shlibpath_var=LIBPATH
11680   ;;
11681
11682 osf3* | osf4* | osf5*)
11683   version_type=osf
11684   need_lib_prefix=no
11685   need_version=no
11686   soname_spec='${libname}${release}${shared_ext}$major'
11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688   shlibpath_var=LD_LIBRARY_PATH
11689   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11690   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11691   ;;
11692
11693 rdos*)
11694   dynamic_linker=no
11695   ;;
11696
11697 solaris*)
11698   version_type=linux
11699   need_lib_prefix=no
11700   need_version=no
11701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702   soname_spec='${libname}${release}${shared_ext}$major'
11703   shlibpath_var=LD_LIBRARY_PATH
11704   shlibpath_overrides_runpath=yes
11705   hardcode_into_libs=yes
11706   # ldd complains unless libraries are executable
11707   postinstall_cmds='chmod +x $lib'
11708   ;;
11709
11710 sunos4*)
11711   version_type=sunos
11712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11714   shlibpath_var=LD_LIBRARY_PATH
11715   shlibpath_overrides_runpath=yes
11716   if test "$with_gnu_ld" = yes; then
11717     need_lib_prefix=no
11718   fi
11719   need_version=yes
11720   ;;
11721
11722 sysv4 | sysv4.3*)
11723   version_type=linux
11724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725   soname_spec='${libname}${release}${shared_ext}$major'
11726   shlibpath_var=LD_LIBRARY_PATH
11727   case $host_vendor in
11728     sni)
11729       shlibpath_overrides_runpath=no
11730       need_lib_prefix=no
11731       runpath_var=LD_RUN_PATH
11732       ;;
11733     siemens)
11734       need_lib_prefix=no
11735       ;;
11736     motorola)
11737       need_lib_prefix=no
11738       need_version=no
11739       shlibpath_overrides_runpath=no
11740       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11741       ;;
11742   esac
11743   ;;
11744
11745 sysv4*MP*)
11746   if test -d /usr/nec ;then
11747     version_type=linux
11748     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11749     soname_spec='$libname${shared_ext}.$major'
11750     shlibpath_var=LD_LIBRARY_PATH
11751   fi
11752   ;;
11753
11754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11755   version_type=freebsd-elf
11756   need_lib_prefix=no
11757   need_version=no
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11759   soname_spec='${libname}${release}${shared_ext}$major'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   shlibpath_overrides_runpath=yes
11762   hardcode_into_libs=yes
11763   if test "$with_gnu_ld" = yes; then
11764     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11765   else
11766     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11767     case $host_os in
11768       sco3.2v5*)
11769         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11770         ;;
11771     esac
11772   fi
11773   sys_lib_dlsearch_path_spec='/usr/lib'
11774   ;;
11775
11776 tpf*)
11777   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11778   version_type=linux
11779   need_lib_prefix=no
11780   need_version=no
11781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782   shlibpath_var=LD_LIBRARY_PATH
11783   shlibpath_overrides_runpath=no
11784   hardcode_into_libs=yes
11785   ;;
11786
11787 uts4*)
11788   version_type=linux
11789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790   soname_spec='${libname}${release}${shared_ext}$major'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   ;;
11793
11794 *)
11795   dynamic_linker=no
11796   ;;
11797 esac
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11799 $as_echo "$dynamic_linker" >&6; }
11800 test "$dynamic_linker" = no && can_build_shared=no
11801
11802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11803 if test "$GCC" = yes; then
11804   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11805 fi
11806
11807 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11808   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11809 fi
11810 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11811   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11812 fi
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11906 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11907 hardcode_action=
11908 if test -n "$hardcode_libdir_flag_spec" ||
11909    test -n "$runpath_var" ||
11910    test "X$hardcode_automatic" = "Xyes" ; then
11911
11912   # We can hardcode non-existent directories.
11913   if test "$hardcode_direct" != no &&
11914      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11915      # have to relink, otherwise we might link with an installed library
11916      # when we should be linking with a yet-to-be-installed one
11917      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11918      test "$hardcode_minus_L" != no; then
11919     # Linking always hardcodes the temporary library directory.
11920     hardcode_action=relink
11921   else
11922     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11923     hardcode_action=immediate
11924   fi
11925 else
11926   # We cannot hardcode anything, or else we can only hardcode existing
11927   # directories.
11928   hardcode_action=unsupported
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11931 $as_echo "$hardcode_action" >&6; }
11932
11933 if test "$hardcode_action" = relink ||
11934    test "$inherit_rpath" = yes; then
11935   # Fast installation is not supported
11936   enable_fast_install=no
11937 elif test "$shlibpath_overrides_runpath" = yes ||
11938      test "$enable_shared" = no; then
11939   # Fast installation is not necessary
11940   enable_fast_install=needless
11941 fi
11942
11943
11944
11945
11946
11947
11948   if test "x$enable_dlopen" != xyes; then
11949   enable_dlopen=unknown
11950   enable_dlopen_self=unknown
11951   enable_dlopen_self_static=unknown
11952 else
11953   lt_cv_dlopen=no
11954   lt_cv_dlopen_libs=
11955
11956   case $host_os in
11957   beos*)
11958     lt_cv_dlopen="load_add_on"
11959     lt_cv_dlopen_libs=
11960     lt_cv_dlopen_self=yes
11961     ;;
11962
11963   mingw* | pw32* | cegcc*)
11964     lt_cv_dlopen="LoadLibrary"
11965     lt_cv_dlopen_libs=
11966     ;;
11967
11968   cygwin*)
11969     lt_cv_dlopen="dlopen"
11970     lt_cv_dlopen_libs=
11971     ;;
11972
11973   darwin*)
11974   # if libdl is installed we need to link against it
11975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl  $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h.  */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986    Use char because int might match the return type of a GCC
11987    builtin and then its argument prototype would still apply.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001   ac_cv_lib_dl_dlopen=yes
12002 else
12003   ac_cv_lib_dl_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006     conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013 else
12014
12015     lt_cv_dlopen="dyld"
12016     lt_cv_dlopen_libs=
12017     lt_cv_dlopen_self=yes
12018
12019 fi
12020
12021     ;;
12022
12023   *)
12024     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12025 if test "x$ac_cv_func_shl_load" = xyes; then :
12026   lt_cv_dlopen="shl_load"
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12030 if ${ac_cv_lib_dld_shl_load+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-ldld  $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char shl_load ();
12045 int
12046 main ()
12047 {
12048 return shl_load ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054   ac_cv_lib_dld_shl_load=yes
12055 else
12056   ac_cv_lib_dld_shl_load=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059     conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12063 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12064 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12065   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12066 else
12067   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12068 if test "x$ac_cv_func_dlopen" = xyes; then :
12069   lt_cv_dlopen="dlopen"
12070 else
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12073 if ${ac_cv_lib_dl_dlopen+:} false; then :
12074   $as_echo_n "(cached) " >&6
12075 else
12076   ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-ldl  $LIBS"
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h.  */
12080
12081 /* Override any GCC internal prototype to avoid an error.
12082    Use char because int might match the return type of a GCC
12083    builtin and then its argument prototype would still apply.  */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char dlopen ();
12088 int
12089 main ()
12090 {
12091 return dlopen ();
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"; then :
12097   ac_cv_lib_dl_dlopen=yes
12098 else
12099   ac_cv_lib_dl_dlopen=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext \
12102     conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12108   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12109 else
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112 if ${ac_cv_lib_svld_dlopen+:} false; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lsvld  $LIBS"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119
12120 /* Override any GCC internal prototype to avoid an error.
12121    Use char because int might match the return type of a GCC
12122    builtin and then its argument prototype would still apply.  */
12123 #ifdef __cplusplus
12124 extern "C"
12125 #endif
12126 char dlopen ();
12127 int
12128 main ()
12129 {
12130 return dlopen ();
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 if ac_fn_c_try_link "$LINENO"; then :
12136   ac_cv_lib_svld_dlopen=yes
12137 else
12138   ac_cv_lib_svld_dlopen=no
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext \
12141     conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12145 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12146 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12147   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12148 else
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12150 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12151 if ${ac_cv_lib_dld_dld_link+:} false; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldld  $LIBS"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h.  */
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160    Use char because int might match the return type of a GCC
12161    builtin and then its argument prototype would still apply.  */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char dld_link ();
12166 int
12167 main ()
12168 {
12169 return dld_link ();
12170   ;
12171   return 0;
12172 }
12173 _ACEOF
12174 if ac_fn_c_try_link "$LINENO"; then :
12175   ac_cv_lib_dld_dld_link=yes
12176 else
12177   ac_cv_lib_dld_dld_link=no
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext \
12180     conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12182 fi
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12184 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12185 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12186   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12187 fi
12188
12189
12190 fi
12191
12192
12193 fi
12194
12195
12196 fi
12197
12198
12199 fi
12200
12201
12202 fi
12203
12204     ;;
12205   esac
12206
12207   if test "x$lt_cv_dlopen" != xno; then
12208     enable_dlopen=yes
12209   else
12210     enable_dlopen=no
12211   fi
12212
12213   case $lt_cv_dlopen in
12214   dlopen)
12215     save_CPPFLAGS="$CPPFLAGS"
12216     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12217
12218     save_LDFLAGS="$LDFLAGS"
12219     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12220
12221     save_LIBS="$LIBS"
12222     LIBS="$lt_cv_dlopen_libs $LIBS"
12223
12224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12225 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12226 if ${lt_cv_dlopen_self+:} false; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229           if test "$cross_compiling" = yes; then :
12230   lt_cv_dlopen_self=cross
12231 else
12232   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233   lt_status=$lt_dlunknown
12234   cat > conftest.$ac_ext <<_LT_EOF
12235 #line $LINENO "configure"
12236 #include "confdefs.h"
12237
12238 #if HAVE_DLFCN_H
12239 #include <dlfcn.h>
12240 #endif
12241
12242 #include <stdio.h>
12243
12244 #ifdef RTLD_GLOBAL
12245 #  define LT_DLGLOBAL           RTLD_GLOBAL
12246 #else
12247 #  ifdef DL_GLOBAL
12248 #    define LT_DLGLOBAL         DL_GLOBAL
12249 #  else
12250 #    define LT_DLGLOBAL         0
12251 #  endif
12252 #endif
12253
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255    find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12257 #  ifdef RTLD_LAZY
12258 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12259 #  else
12260 #    ifdef DL_LAZY
12261 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12262 #    else
12263 #      ifdef RTLD_NOW
12264 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12265 #      else
12266 #        ifdef DL_NOW
12267 #          define LT_DLLAZY_OR_NOW      DL_NOW
12268 #        else
12269 #          define LT_DLLAZY_OR_NOW      0
12270 #        endif
12271 #      endif
12272 #    endif
12273 #  endif
12274 #endif
12275
12276 /* When -fvisbility=hidden is used, assume the code has been annotated
12277    correspondingly for the symbols needed.  */
12278 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12279 int fnord () __attribute__((visibility("default")));
12280 #endif
12281
12282 int fnord () { return 42; }
12283 int main ()
12284 {
12285   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12286   int status = $lt_dlunknown;
12287
12288   if (self)
12289     {
12290       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12291       else
12292         {
12293           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12294           else puts (dlerror ());
12295         }
12296       /* dlclose (self); */
12297     }
12298   else
12299     puts (dlerror ());
12300
12301   return status;
12302 }
12303 _LT_EOF
12304   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12305   (eval $ac_link) 2>&5
12306   ac_status=$?
12307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12309     (./conftest; exit; ) >&5 2>/dev/null
12310     lt_status=$?
12311     case x$lt_status in
12312       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12313       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12314       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12315     esac
12316   else :
12317     # compilation failed
12318     lt_cv_dlopen_self=no
12319   fi
12320 fi
12321 rm -fr conftest*
12322
12323
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12326 $as_echo "$lt_cv_dlopen_self" >&6; }
12327
12328     if test "x$lt_cv_dlopen_self" = xyes; then
12329       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12330       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12331 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12332 if ${lt_cv_dlopen_self_static+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335           if test "$cross_compiling" = yes; then :
12336   lt_cv_dlopen_self_static=cross
12337 else
12338   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12339   lt_status=$lt_dlunknown
12340   cat > conftest.$ac_ext <<_LT_EOF
12341 #line $LINENO "configure"
12342 #include "confdefs.h"
12343
12344 #if HAVE_DLFCN_H
12345 #include <dlfcn.h>
12346 #endif
12347
12348 #include <stdio.h>
12349
12350 #ifdef RTLD_GLOBAL
12351 #  define LT_DLGLOBAL           RTLD_GLOBAL
12352 #else
12353 #  ifdef DL_GLOBAL
12354 #    define LT_DLGLOBAL         DL_GLOBAL
12355 #  else
12356 #    define LT_DLGLOBAL         0
12357 #  endif
12358 #endif
12359
12360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12361    find out it does not work in some platform. */
12362 #ifndef LT_DLLAZY_OR_NOW
12363 #  ifdef RTLD_LAZY
12364 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12365 #  else
12366 #    ifdef DL_LAZY
12367 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12368 #    else
12369 #      ifdef RTLD_NOW
12370 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12371 #      else
12372 #        ifdef DL_NOW
12373 #          define LT_DLLAZY_OR_NOW      DL_NOW
12374 #        else
12375 #          define LT_DLLAZY_OR_NOW      0
12376 #        endif
12377 #      endif
12378 #    endif
12379 #  endif
12380 #endif
12381
12382 /* When -fvisbility=hidden is used, assume the code has been annotated
12383    correspondingly for the symbols needed.  */
12384 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12385 int fnord () __attribute__((visibility("default")));
12386 #endif
12387
12388 int fnord () { return 42; }
12389 int main ()
12390 {
12391   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12392   int status = $lt_dlunknown;
12393
12394   if (self)
12395     {
12396       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12397       else
12398         {
12399           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12400           else puts (dlerror ());
12401         }
12402       /* dlclose (self); */
12403     }
12404   else
12405     puts (dlerror ());
12406
12407   return status;
12408 }
12409 _LT_EOF
12410   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12411   (eval $ac_link) 2>&5
12412   ac_status=$?
12413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12415     (./conftest; exit; ) >&5 2>/dev/null
12416     lt_status=$?
12417     case x$lt_status in
12418       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12419       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12420       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12421     esac
12422   else :
12423     # compilation failed
12424     lt_cv_dlopen_self_static=no
12425   fi
12426 fi
12427 rm -fr conftest*
12428
12429
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12432 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12433     fi
12434
12435     CPPFLAGS="$save_CPPFLAGS"
12436     LDFLAGS="$save_LDFLAGS"
12437     LIBS="$save_LIBS"
12438     ;;
12439   esac
12440
12441   case $lt_cv_dlopen_self in
12442   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12443   *) enable_dlopen_self=unknown ;;
12444   esac
12445
12446   case $lt_cv_dlopen_self_static in
12447   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12448   *) enable_dlopen_self_static=unknown ;;
12449   esac
12450 fi
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468 striplib=
12469 old_striplib=
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12471 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12472 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12473   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12474   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476 $as_echo "yes" >&6; }
12477 else
12478 # FIXME - insert some real tests, host_os isn't really good enough
12479   case $host_os in
12480   darwin*)
12481     if test -n "$STRIP" ; then
12482       striplib="$STRIP -x"
12483       old_striplib="$STRIP -S"
12484       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12485 $as_echo "yes" >&6; }
12486     else
12487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489     fi
12490     ;;
12491   *)
12492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494     ;;
12495   esac
12496 fi
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509   # Report which library types will actually be built
12510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12511 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12513 $as_echo "$can_build_shared" >&6; }
12514
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12516 $as_echo_n "checking whether to build shared libraries... " >&6; }
12517   test "$can_build_shared" = "no" && enable_shared=no
12518
12519   # On AIX, shared libraries and static libraries use the same namespace, and
12520   # are all built from PIC.
12521   case $host_os in
12522   aix3*)
12523     test "$enable_shared" = yes && enable_static=no
12524     if test -n "$RANLIB"; then
12525       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12526       postinstall_cmds='$RANLIB $lib'
12527     fi
12528     ;;
12529
12530   aix[4-9]*)
12531     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12532       test "$enable_shared" = yes && enable_static=no
12533     fi
12534     ;;
12535   esac
12536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12537 $as_echo "$enable_shared" >&6; }
12538
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12540 $as_echo_n "checking whether to build static libraries... " >&6; }
12541   # Make sure either enable_shared or enable_static is yes.
12542   test "$enable_shared" = yes || enable_static=yes
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12544 $as_echo "$enable_static" >&6; }
12545
12546
12547
12548
12549 fi
12550 ac_ext=c
12551 ac_cpp='$CPP $CPPFLAGS'
12552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12555
12556 CC="$lt_save_CC"
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570         ac_config_commands="$ac_config_commands libtool"
12571
12572
12573
12574
12575 # Only expand once:
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12587         if test -n "$ac_tool_prefix"; then
12588   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12589 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   case $PKG_CONFIG in
12596   [\\/]* | ?:[\\/]*)
12597   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12598   ;;
12599   *)
12600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603   IFS=$as_save_IFS
12604   test -z "$as_dir" && as_dir=.
12605     for ac_exec_ext in '' $ac_executable_extensions; do
12606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609     break 2
12610   fi
12611 done
12612   done
12613 IFS=$as_save_IFS
12614
12615   ;;
12616 esac
12617 fi
12618 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12619 if test -n "$PKG_CONFIG"; then
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12621 $as_echo "$PKG_CONFIG" >&6; }
12622 else
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626
12627
12628 fi
12629 if test -z "$ac_cv_path_PKG_CONFIG"; then
12630   ac_pt_PKG_CONFIG=$PKG_CONFIG
12631   # Extract the first word of "pkg-config", so it can be a program name with args.
12632 set dummy pkg-config; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   case $ac_pt_PKG_CONFIG in
12639   [\\/]* | ?:[\\/]*)
12640   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12641   ;;
12642   *)
12643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12645 do
12646   IFS=$as_save_IFS
12647   test -z "$as_dir" && as_dir=.
12648     for ac_exec_ext in '' $ac_executable_extensions; do
12649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12650     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652     break 2
12653   fi
12654 done
12655   done
12656 IFS=$as_save_IFS
12657
12658   ;;
12659 esac
12660 fi
12661 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12662 if test -n "$ac_pt_PKG_CONFIG"; then
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12664 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12665 else
12666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668 fi
12669
12670   if test "x$ac_pt_PKG_CONFIG" = x; then
12671     PKG_CONFIG=""
12672   else
12673     case $cross_compiling:$ac_tool_warned in
12674 yes:)
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12677 ac_tool_warned=yes ;;
12678 esac
12679     PKG_CONFIG=$ac_pt_PKG_CONFIG
12680   fi
12681 else
12682   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12683 fi
12684
12685 fi
12686 if test -n "$PKG_CONFIG"; then
12687         _pkg_min_version=0.9.0
12688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12689 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12690         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12691                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692 $as_echo "yes" >&6; }
12693         else
12694                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12696                 PKG_CONFIG=""
12697         fi
12698 fi
12699
12700
12701
12702 # Check whether --with-html-dir was given.
12703 if test "${with_html_dir+set}" = set; then :
12704   withval=$with_html_dir;
12705 else
12706   with_html_dir='${datadir}/gtk-doc/html'
12707 fi
12708
12709   HTML_DIR="$with_html_dir"
12710
12711
12712     # Check whether --enable-gtk-doc was given.
12713 if test "${enable_gtk_doc+set}" = set; then :
12714   enableval=$enable_gtk_doc;
12715 else
12716   enable_gtk_doc=no
12717 fi
12718
12719
12720   if test x$enable_gtk_doc = xyes; then
12721     if test -n "$PKG_CONFIG" && \
12722     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.10\""; } >&5
12723   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.10") 2>&5
12724   ac_status=$?
12725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12726   test $ac_status = 0; }; then
12727   :
12728 else
12729   as_fn_error $? "You need to have gtk-doc >= 1.10 installed to build gtk-doc" "$LINENO" 5
12730 fi
12731   fi
12732
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12734 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12736 $as_echo "$enable_gtk_doc" >&6; }
12737
12738   for ac_prog in gtkdoc-check
12739 do
12740   # Extract the first word of "$ac_prog", so it can be a program name with args.
12741 set dummy $ac_prog; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12745   $as_echo_n "(cached) " >&6
12746 else
12747   case $GTKDOC_CHECK in
12748   [\\/]* | ?:[\\/]*)
12749   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12750   ;;
12751   *)
12752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12754 do
12755   IFS=$as_save_IFS
12756   test -z "$as_dir" && as_dir=.
12757     for ac_exec_ext in '' $ac_executable_extensions; do
12758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761     break 2
12762   fi
12763 done
12764   done
12765 IFS=$as_save_IFS
12766
12767   ;;
12768 esac
12769 fi
12770 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12771 if test -n "$GTKDOC_CHECK"; then
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12773 $as_echo "$GTKDOC_CHECK" >&6; }
12774 else
12775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 fi
12778
12779
12780   test -n "$GTKDOC_CHECK" && break
12781 done
12782
12783
12784    if test x$enable_gtk_doc = xyes; then
12785   ENABLE_GTK_DOC_TRUE=
12786   ENABLE_GTK_DOC_FALSE='#'
12787 else
12788   ENABLE_GTK_DOC_TRUE='#'
12789   ENABLE_GTK_DOC_FALSE=
12790 fi
12791
12792    if test -n "$LIBTOOL"; then
12793   GTK_DOC_USE_LIBTOOL_TRUE=
12794   GTK_DOC_USE_LIBTOOL_FALSE='#'
12795 else
12796   GTK_DOC_USE_LIBTOOL_TRUE='#'
12797   GTK_DOC_USE_LIBTOOL_FALSE=
12798 fi
12799
12800
12801 # Extract the first word of "xsltproc", so it can be a program name with args.
12802 set dummy xsltproc; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_path_XSLTPROC+:} false; then :
12806   $as_echo_n "(cached) " >&6
12807 else
12808   case $XSLTPROC in
12809   [\\/]* | ?:[\\/]*)
12810   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12811   ;;
12812   *)
12813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12815 do
12816   IFS=$as_save_IFS
12817   test -z "$as_dir" && as_dir=.
12818     for ac_exec_ext in '' $ac_executable_extensions; do
12819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822     break 2
12823   fi
12824 done
12825   done
12826 IFS=$as_save_IFS
12827
12828   ;;
12829 esac
12830 fi
12831 XSLTPROC=$ac_cv_path_XSLTPROC
12832 if test -n "$XSLTPROC"; then
12833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12834 $as_echo "$XSLTPROC" >&6; }
12835 else
12836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12838 fi
12839
12840
12841
12842 linux_os=no
12843 case ${host_os} in
12844   *linux*)
12845     linux_os=yes
12846     ;;
12847 esac
12848  if test "x$linux_os" = xyes; then
12849   LINUX_TRUE=
12850   LINUX_FALSE='#'
12851 else
12852   LINUX_TRUE='#'
12853   LINUX_FALSE=
12854 fi
12855
12856
12857 # Extract the first word of "perl", so it can be a program name with args.
12858 set dummy perl; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_PERL+:} false; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   case $PERL in
12865   [\\/]* | ?:[\\/]*)
12866   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12867   ;;
12868   *)
12869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874     for ac_exec_ext in '' $ac_executable_extensions; do
12875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881   done
12882 IFS=$as_save_IFS
12883
12884   ;;
12885 esac
12886 fi
12887 PERL=$ac_cv_path_PERL
12888 if test -n "$PERL"; then
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12890 $as_echo "$PERL" >&6; }
12891 else
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895
12896
12897
12898 # Check whether --enable-largefile was given.
12899 if test "${enable_largefile+set}" = set; then :
12900   enableval=$enable_largefile;
12901 fi
12902
12903 if test "$enable_largefile" != no; then
12904
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12906 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12907 if ${ac_cv_sys_largefile_CC+:} false; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   ac_cv_sys_largefile_CC=no
12911      if test "$GCC" != yes; then
12912        ac_save_CC=$CC
12913        while :; do
12914          # IRIX 6.2 and later do not support large files by default,
12915          # so use the C compiler's -n32 option if that helps.
12916          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h.  */
12918 #include <sys/types.h>
12919  /* Check that off_t can represent 2**63 - 1 correctly.
12920     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12921     since some C++ compilers masquerading as C compilers
12922     incorrectly reject 9223372036854775807.  */
12923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12924   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12925                        && LARGE_OFF_T % 2147483647 == 1)
12926                       ? 1 : -1];
12927 int
12928 main ()
12929 {
12930
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935          if ac_fn_c_try_compile "$LINENO"; then :
12936   break
12937 fi
12938 rm -f core conftest.err conftest.$ac_objext
12939          CC="$CC -n32"
12940          if ac_fn_c_try_compile "$LINENO"; then :
12941   ac_cv_sys_largefile_CC=' -n32'; break
12942 fi
12943 rm -f core conftest.err conftest.$ac_objext
12944          break
12945        done
12946        CC=$ac_save_CC
12947        rm -f conftest.$ac_ext
12948     fi
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12951 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12952   if test "$ac_cv_sys_largefile_CC" != no; then
12953     CC=$CC$ac_cv_sys_largefile_CC
12954   fi
12955
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12957 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12958 if ${ac_cv_sys_file_offset_bits+:} false; then :
12959   $as_echo_n "(cached) " >&6
12960 else
12961   while :; do
12962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h.  */
12964 #include <sys/types.h>
12965  /* Check that off_t can represent 2**63 - 1 correctly.
12966     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12967     since some C++ compilers masquerading as C compilers
12968     incorrectly reject 9223372036854775807.  */
12969 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12970   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12971                        && LARGE_OFF_T % 2147483647 == 1)
12972                       ? 1 : -1];
12973 int
12974 main ()
12975 {
12976
12977   ;
12978   return 0;
12979 }
12980 _ACEOF
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982   ac_cv_sys_file_offset_bits=no; break
12983 fi
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h.  */
12987 #define _FILE_OFFSET_BITS 64
12988 #include <sys/types.h>
12989  /* Check that off_t can represent 2**63 - 1 correctly.
12990     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12991     since some C++ compilers masquerading as C compilers
12992     incorrectly reject 9223372036854775807.  */
12993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12994   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12995                        && LARGE_OFF_T % 2147483647 == 1)
12996                       ? 1 : -1];
12997 int
12998 main ()
12999 {
13000
13001   ;
13002   return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_compile "$LINENO"; then :
13006   ac_cv_sys_file_offset_bits=64; break
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009   ac_cv_sys_file_offset_bits=unknown
13010   break
13011 done
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13014 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13015 case $ac_cv_sys_file_offset_bits in #(
13016   no | unknown) ;;
13017   *)
13018 cat >>confdefs.h <<_ACEOF
13019 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13020 _ACEOF
13021 ;;
13022 esac
13023 rm -rf conftest*
13024   if test $ac_cv_sys_file_offset_bits = unknown; then
13025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13026 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13027 if ${ac_cv_sys_large_files+:} false; then :
13028   $as_echo_n "(cached) " >&6
13029 else
13030   while :; do
13031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h.  */
13033 #include <sys/types.h>
13034  /* Check that off_t can represent 2**63 - 1 correctly.
13035     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13036     since some C++ compilers masquerading as C compilers
13037     incorrectly reject 9223372036854775807.  */
13038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13039   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13040                        && LARGE_OFF_T % 2147483647 == 1)
13041                       ? 1 : -1];
13042 int
13043 main ()
13044 {
13045
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051   ac_cv_sys_large_files=no; break
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056 #define _LARGE_FILES 1
13057 #include <sys/types.h>
13058  /* Check that off_t can represent 2**63 - 1 correctly.
13059     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13060     since some C++ compilers masquerading as C compilers
13061     incorrectly reject 9223372036854775807.  */
13062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13063   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13064                        && LARGE_OFF_T % 2147483647 == 1)
13065                       ? 1 : -1];
13066 int
13067 main ()
13068 {
13069
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075   ac_cv_sys_large_files=1; break
13076 fi
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078   ac_cv_sys_large_files=unknown
13079   break
13080 done
13081 fi
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13083 $as_echo "$ac_cv_sys_large_files" >&6; }
13084 case $ac_cv_sys_large_files in #(
13085   no | unknown) ;;
13086   *)
13087 cat >>confdefs.h <<_ACEOF
13088 #define _LARGE_FILES $ac_cv_sys_large_files
13089 _ACEOF
13090 ;;
13091 esac
13092 rm -rf conftest*
13093   fi
13094 fi
13095
13096
13097 for ac_header in linux/compiler.h linux/blkpg.h linux/major.h
13098 do :
13099   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
13101 #ifdef HAVE_LINUX_COMPILER_H
13102 #include <linux/compiler.h>
13103 #endif
13104
13105 "
13106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13107   cat >>confdefs.h <<_ACEOF
13108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13109 _ACEOF
13110
13111 fi
13112
13113 done
13114
13115 for ac_header in err.h \
13116         errno.h \
13117         getopt.h \
13118         linux/fd.h \
13119         linux/tiocl.h \
13120         linux/version.h \
13121         linux/falloc.h \
13122         linux/cdrom.h \
13123         fcntl.h \
13124         locale.h \
13125         stdint.h \
13126         inttypes.h \
13127         paths.h \
13128         pty.h \
13129         mntent.h \
13130         net/if.h \
13131         net/if_dl.h \
13132         netinet/in.h \
13133         rpcsvc/nfs_prot.h \
13134         stdlib.h \
13135         asm/io.h \
13136         sys/disk.h \
13137         sys/disklabel.h \
13138         sys/ioctl.h \
13139         sys/ioccom.h \
13140         sys/io.h \
13141         sys/time.h \
13142         sys/mkdev.h \
13143         sys/prctl.h \
13144         sys/queue.h \
13145         sys/sockio.h \
13146         sys/socket.h \
13147         sys/syscall.h \
13148         sys/file.h \
13149         sys/ioctl.h \
13150         sys/stat.h \
13151         sys/types.h \
13152         sys/un.h \
13153         sys/user.h \
13154         sys/resource.h \
13155         unistd.h
13156 do :
13157   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13160   cat >>confdefs.h <<_ACEOF
13161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13162 _ACEOF
13163
13164 fi
13165
13166 done
13167
13168
13169 for ac_header in linux/raw.h
13170 do :
13171   ac_fn_c_check_header_mongrel "$LINENO" "linux/raw.h" "ac_cv_header_linux_raw_h" "$ac_includes_default"
13172 if test "x$ac_cv_header_linux_raw_h" = xyes; then :
13173   cat >>confdefs.h <<_ACEOF
13174 #define HAVE_LINUX_RAW_H 1
13175 _ACEOF
13176   if true; then
13177   HAVE_RAW_TRUE=
13178   HAVE_RAW_FALSE='#'
13179 else
13180   HAVE_RAW_TRUE='#'
13181   HAVE_RAW_FALSE=
13182 fi
13183
13184 else
13185    if false; then
13186   HAVE_RAW_TRUE=
13187   HAVE_RAW_FALSE='#'
13188 else
13189   HAVE_RAW_TRUE='#'
13190   HAVE_RAW_FALSE=
13191 fi
13192
13193 fi
13194
13195 done
13196
13197
13198 for ac_header in langinfo.h
13199 do :
13200   ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
13201 if test "x$ac_cv_header_langinfo_h" = xyes; then :
13202   cat >>confdefs.h <<_ACEOF
13203 #define HAVE_LANGINFO_H 1
13204 _ACEOF
13205   if true; then
13206   HAVE_LANGINFO_TRUE=
13207   HAVE_LANGINFO_FALSE='#'
13208 else
13209   HAVE_LANGINFO_TRUE='#'
13210   HAVE_LANGINFO_FALSE=
13211 fi
13212
13213 else
13214    if false; then
13215   HAVE_LANGINFO_TRUE=
13216   HAVE_LANGINFO_FALSE='#'
13217 else
13218   HAVE_LANGINFO_TRUE='#'
13219   HAVE_LANGINFO_FALSE=
13220 fi
13221
13222 fi
13223
13224 done
13225
13226
13227
13228 ac_fn_c_check_decl "$LINENO" "_NL_TIME_WEEK_1STDAY" "ac_cv_have_decl__NL_TIME_WEEK_1STDAY" "#include <langinfo.h>
13229 "
13230 if test "x$ac_cv_have_decl__NL_TIME_WEEK_1STDAY" = xyes; then :
13231   ac_have_decl=1
13232 else
13233   ac_have_decl=0
13234 fi
13235
13236 cat >>confdefs.h <<_ACEOF
13237 #define HAVE_DECL__NL_TIME_WEEK_1STDAY $ac_have_decl
13238 _ACEOF
13239
13240
13241 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
13242 "
13243 if test "x$ac_cv_have_decl_llseek" = xyes; then :
13244
13245 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
13246
13247 fi
13248
13249
13250 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
13251          #define _LARGEFILE64_SOURCE
13252          #include <unistd.h>
13253 "
13254 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
13255
13256 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
13257
13258 fi
13259
13260
13261 for ac_func in inet_aton \
13262         err \
13263         errx \
13264         futimens \
13265         fstat64 \
13266         fsync \
13267         getdomainname \
13268         get_current_dir_name \
13269         usleep \
13270         nanosleep \
13271         personality \
13272         updwtmp \
13273         jrand48 \
13274         lchown \
13275         llseek \
13276         lseek64 \
13277         strtoull \
13278         sysconf \
13279         getdtablesize \
13280         getexecname \
13281         getrlimit \
13282         sigqueue \
13283         srandom \
13284         setresgid \
13285         setresuid \
13286         strndup \
13287         strnlen \
13288         strnchr \
13289         inotify_init \
13290         prctl \
13291         posix_fadvise \
13292         getmntinfo \
13293         __secure_getenv \
13294         warn \
13295         warnx \
13296         rpmatch
13297 do :
13298   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13301   cat >>confdefs.h <<_ACEOF
13302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13303 _ACEOF
13304
13305 fi
13306 done
13307
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13309 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13310 if ${ac_cv_sys_largefile_source+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   while :; do
13314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316 #include <sys/types.h> /* for off_t */
13317      #include <stdio.h>
13318 int
13319 main ()
13320 {
13321 int (*fp) (FILE *, off_t, int) = fseeko;
13322      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13323   ;
13324   return 0;
13325 }
13326 _ACEOF
13327 if ac_fn_c_try_link "$LINENO"; then :
13328   ac_cv_sys_largefile_source=no; break
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331     conftest$ac_exeext conftest.$ac_ext
13332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h.  */
13334 #define _LARGEFILE_SOURCE 1
13335 #include <sys/types.h> /* for off_t */
13336      #include <stdio.h>
13337 int
13338 main ()
13339 {
13340 int (*fp) (FILE *, off_t, int) = fseeko;
13341      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_c_try_link "$LINENO"; then :
13347   ac_cv_sys_largefile_source=1; break
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext \
13350     conftest$ac_exeext conftest.$ac_ext
13351   ac_cv_sys_largefile_source=unknown
13352   break
13353 done
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13356 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13357 case $ac_cv_sys_largefile_source in #(
13358   no | unknown) ;;
13359   *)
13360 cat >>confdefs.h <<_ACEOF
13361 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13362 _ACEOF
13363 ;;
13364 esac
13365 rm -rf conftest*
13366
13367 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13368 # in glibc 2.1.3, but that breaks too many other things.
13369 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13370 if test $ac_cv_sys_largefile_source != unknown; then
13371
13372 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13373
13374 fi
13375
13376
13377 for ac_func in openat fstatat unlinkat
13378 do :
13379   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13380 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13381 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13382   cat >>confdefs.h <<_ACEOF
13383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13384 _ACEOF
13385  have_openat=yes
13386 else
13387   have_openat=no
13388 fi
13389 done
13390
13391
13392 for ac_func in ioperm iopl
13393 do :
13394   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13395 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13396 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13397   cat >>confdefs.h <<_ACEOF
13398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13399 _ACEOF
13400  have_io=yes
13401 fi
13402 done
13403
13404  if test "x$have_io" = xyes -o "x$linux_os" = xyes; then
13405   BUILD_HWCLOCK_TRUE=
13406   BUILD_HWCLOCK_FALSE='#'
13407 else
13408   BUILD_HWCLOCK_TRUE='#'
13409   BUILD_HWCLOCK_FALSE=
13410 fi
13411
13412
13413 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13414          #include <sys/socket.h>
13415 "
13416 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13417
13418 cat >>confdefs.h <<_ACEOF
13419 #define HAVE_SA_LEN 1
13420 _ACEOF
13421
13422 fi
13423
13424
13425 SOCKET_LIBS=
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13427 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13428 if ${ac_cv_search_gethostbyname+:} false; then :
13429   $as_echo_n "(cached) " >&6
13430 else
13431   ac_func_search_save_LIBS=$LIBS
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h.  */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436    Use char because int might match the return type of a GCC
13437    builtin and then its argument prototype would still apply.  */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char gethostbyname ();
13442 int
13443 main ()
13444 {
13445 return gethostbyname ();
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 for ac_lib in '' nsl; do
13451   if test -z "$ac_lib"; then
13452     ac_res="none required"
13453   else
13454     ac_res=-l$ac_lib
13455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13456   fi
13457   if ac_fn_c_try_link "$LINENO"; then :
13458   ac_cv_search_gethostbyname=$ac_res
13459 fi
13460 rm -f core conftest.err conftest.$ac_objext \
13461     conftest$ac_exeext
13462   if ${ac_cv_search_gethostbyname+:} false; then :
13463   break
13464 fi
13465 done
13466 if ${ac_cv_search_gethostbyname+:} false; then :
13467
13468 else
13469   ac_cv_search_gethostbyname=no
13470 fi
13471 rm conftest.$ac_ext
13472 LIBS=$ac_func_search_save_LIBS
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13475 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13476 ac_res=$ac_cv_search_gethostbyname
13477 if test "$ac_res" != no; then :
13478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13479   if test x"$ac_cv_search_gethostbyname" != x"none required"; then
13480                 SOCKET_LIBS="$SOCKET_LIBS -lnsl";
13481          fi
13482 fi
13483
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13485 $as_echo_n "checking for library containing socket... " >&6; }
13486 if ${ac_cv_search_socket+:} false; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   ac_func_search_save_LIBS=$LIBS
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h.  */
13492
13493 /* Override any GCC internal prototype to avoid an error.
13494    Use char because int might match the return type of a GCC
13495    builtin and then its argument prototype would still apply.  */
13496 #ifdef __cplusplus
13497 extern "C"
13498 #endif
13499 char socket ();
13500 int
13501 main ()
13502 {
13503 return socket ();
13504   ;
13505   return 0;
13506 }
13507 _ACEOF
13508 for ac_lib in '' socket; do
13509   if test -z "$ac_lib"; then
13510     ac_res="none required"
13511   else
13512     ac_res=-l$ac_lib
13513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13514   fi
13515   if ac_fn_c_try_link "$LINENO"; then :
13516   ac_cv_search_socket=$ac_res
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext \
13519     conftest$ac_exeext
13520   if ${ac_cv_search_socket+:} false; then :
13521   break
13522 fi
13523 done
13524 if ${ac_cv_search_socket+:} false; then :
13525
13526 else
13527   ac_cv_search_socket=no
13528 fi
13529 rm conftest.$ac_ext
13530 LIBS=$ac_func_search_save_LIBS
13531 fi
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13533 $as_echo "$ac_cv_search_socket" >&6; }
13534 ac_res=$ac_cv_search_socket
13535 if test "$ac_res" != no; then :
13536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13537   if test x"$ac_cv_search_socket" != x"none required"; then
13538                 SOCKET_LIBS="$SOCKET_LIBS -lsocket";
13539         fi
13540 fi
13541
13542
13543
13544
13545 have_dirfd=no
13546 for ac_func in dirfd
13547 do :
13548   ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
13549 if test "x$ac_cv_func_dirfd" = xyes; then :
13550   cat >>confdefs.h <<_ACEOF
13551 #define HAVE_DIRFD 1
13552 _ACEOF
13553  have_dirfd=yes
13554 else
13555   have_dirfd=no
13556 fi
13557 done
13558
13559 if test x"$have_dirfd" = xno ; then
13560         ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
13561                  #include <dirent.h>
13562 "
13563 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
13564   ac_have_decl=1
13565 else
13566   ac_have_decl=0
13567 fi
13568
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_DECL_DIRFD $ac_have_decl
13571 _ACEOF
13572 if test $ac_have_decl = 1; then :
13573   have_dirfd=yes
13574 else
13575   have_dirfd=no
13576 fi
13577
13578 fi
13579
13580 have_ddfd=no
13581 if test x"$have_dirfd" = xno ; then
13582         ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
13583                  #include <dirent.h>
13584 "
13585 if test "x$ac_cv_member_DIR_dd_fd" = xyes; then :
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_DIR_DD_FD 1
13589 _ACEOF
13590
13591 have_ddfd=yes
13592 else
13593   have_ddfd=no
13594 fi
13595
13596 fi
13597
13598 case "$have_dirfd:$have_ddfd" in
13599 no:no)
13600   as_fn_error $? "cannot find a method to get filedescriptor of directory" "$LINENO" 5 ;;
13601 esac
13602
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
13605 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h.  */
13608 #include <argp.h>
13609 int
13610 main ()
13611 {
13612 program_invocation_short_name = "test";
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618
13619 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13620
13621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622 $as_echo "yes" >&6; }
13623 else
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13626 fi
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined" >&5
13630 $as_echo_n "checking whether __progname is defined... " >&6; }
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h.  */
13633 extern char *__progname;
13634 int
13635 main ()
13636 {
13637 if (*__progname == 0) return;
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 if ac_fn_c_try_link "$LINENO"; then :
13643
13644 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13645
13646            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13647 $as_echo "yes" >&6; }
13648 else
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext \
13653     conftest$ac_exeext conftest.$ac_ext
13654
13655
13656
13657 # Check whether --enable-static-programs was given.
13658 if test "${enable_static_programs+set}" = set; then :
13659   enableval=$enable_static_programs;
13660 fi
13661
13662
13663 case $enable_static_programs in
13664 yes) enable_static_programs=losetup,mount,umount,fdisk,sfdisk,blkid ;;
13665 no) enable_static_programs= ;;
13666 esac
13667
13668
13669   case ,$enable_static_programs, in
13670    *,losetup,*) static_losetup=yes ;;
13671   esac
13672    if test "x$static_losetup" = xyes; then
13673   HAVE_STATIC_LOSETUP_TRUE=
13674   HAVE_STATIC_LOSETUP_FALSE='#'
13675 else
13676   HAVE_STATIC_LOSETUP_TRUE='#'
13677   HAVE_STATIC_LOSETUP_FALSE=
13678 fi
13679
13680
13681   case ,$enable_static_programs, in
13682    *,mount,*) static_mount=yes ;;
13683   esac
13684    if test "x$static_mount" = xyes; then
13685   HAVE_STATIC_MOUNT_TRUE=
13686   HAVE_STATIC_MOUNT_FALSE='#'
13687 else
13688   HAVE_STATIC_MOUNT_TRUE='#'
13689   HAVE_STATIC_MOUNT_FALSE=
13690 fi
13691
13692
13693   case ,$enable_static_programs, in
13694    *,umount,*) static_umount=yes ;;
13695   esac
13696    if test "x$static_umount" = xyes; then
13697   HAVE_STATIC_UMOUNT_TRUE=
13698   HAVE_STATIC_UMOUNT_FALSE='#'
13699 else
13700   HAVE_STATIC_UMOUNT_TRUE='#'
13701   HAVE_STATIC_UMOUNT_FALSE=
13702 fi
13703
13704
13705   case ,$enable_static_programs, in
13706    *,fdisk,*) static_fdisk=yes ;;
13707   esac
13708    if test "x$static_fdisk" = xyes; then
13709   HAVE_STATIC_FDISK_TRUE=
13710   HAVE_STATIC_FDISK_FALSE='#'
13711 else
13712   HAVE_STATIC_FDISK_TRUE='#'
13713   HAVE_STATIC_FDISK_FALSE=
13714 fi
13715
13716
13717   case ,$enable_static_programs, in
13718    *,sfdisk,*) static_sfdisk=yes ;;
13719   esac
13720    if test "x$static_sfdisk" = xyes; then
13721   HAVE_STATIC_SFDISK_TRUE=
13722   HAVE_STATIC_SFDISK_FALSE='#'
13723 else
13724   HAVE_STATIC_SFDISK_TRUE='#'
13725   HAVE_STATIC_SFDISK_FALSE=
13726 fi
13727
13728
13729   case ,$enable_static_programs, in
13730    *,blkid,*) static_blkid=yes ;;
13731   esac
13732    if test "x$static_blkid" = xyes; then
13733   HAVE_STATIC_BLKID_TRUE=
13734   HAVE_STATIC_BLKID_FALSE='#'
13735 else
13736   HAVE_STATIC_BLKID_TRUE='#'
13737   HAVE_STATIC_BLKID_FALSE=
13738 fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755   # Check whether --enable-tls was given.
13756 if test "${enable_tls+set}" = set; then :
13757   enableval=$enable_tls;
13758 else
13759   enable_tls=yes
13760 fi
13761
13762
13763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
13764 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
13765 if ${ax_cv_have_tls+:} false; then :
13766   $as_echo_n "(cached) " >&6
13767 else
13768
13769     if test "$cross_compiling" = yes; then :
13770                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h.  */
13772 __thread int a; int b; int main() { return a = b; }
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775   chktls_save_LDFLAGS="$LDFLAGS"
13776                           case $host in
13777             *-*-linux*)
13778               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
13779               ;;
13780           esac
13781           chktls_save_CFLAGS="$CFLAGS"
13782           CFLAGS="-fPIC $CFLAGS"
13783                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785 int f() { return 0; }
13786 _ACEOF
13787 if ac_fn_c_try_link "$LINENO"; then :
13788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h.  */
13790 __thread int a; int b; int f() { return a = b; }
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793   ax_cv_have_tls=yes
13794 else
13795   ax_cv_have_tls=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798     conftest$ac_exeext conftest.$ac_ext
13799 else
13800   ax_cv_have_tls=yes
13801 fi
13802 rm -f core conftest.err conftest.$ac_objext \
13803     conftest$ac_exeext conftest.$ac_ext
13804           CFLAGS="$chktls_save_CFLAGS"
13805           LDFLAGS="$chktls_save_LDFLAGS"
13806 else
13807   ax_cv_have_tls=no
13808 fi
13809 rm -f core conftest.err conftest.$ac_objext \
13810     conftest$ac_exeext conftest.$ac_ext
13811
13812
13813 else
13814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h.  */
13816 __thread int a; int b; int main() { return a = b; }
13817 _ACEOF
13818 if ac_fn_c_try_run "$LINENO"; then :
13819                       chktls_save_LDFLAGS="$LDFLAGS"
13820       LDFLAGS="-static $LDFLAGS"
13821       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h.  */
13823 int main() { return 0; }
13824 _ACEOF
13825 if ac_fn_c_try_link "$LINENO"; then :
13826   if test "$cross_compiling" = yes; then :
13827   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13829 as_fn_error $? "cannot run test program while cross compiling
13830 See \`config.log' for more details" "$LINENO" 5; }
13831 else
13832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h.  */
13834 __thread int a; int b; int main() { return a = b; }
13835 _ACEOF
13836 if ac_fn_c_try_run "$LINENO"; then :
13837   ax_cv_have_tls=yes
13838 else
13839   ax_cv_have_tls=no
13840 fi
13841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13842   conftest.$ac_objext conftest.beam conftest.$ac_ext
13843 fi
13844
13845 else
13846   ax_cv_have_tls=yes
13847 fi
13848 rm -f core conftest.err conftest.$ac_objext \
13849     conftest$ac_exeext conftest.$ac_ext
13850       LDFLAGS="$chktls_save_LDFLAGS"
13851       if test $ax_cv_have_tls = yes; then
13852                                                 chktls_save_CFLAGS="$CFLAGS"
13853         thread_CFLAGS=failed
13854         for flag in '' '-pthread' '-lpthread'; do
13855           CFLAGS="$flag $chktls_save_CFLAGS"
13856           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h.  */
13858 #include <pthread.h>
13859                 void *g(void *d) { return NULL; }
13860 int
13861 main ()
13862 {
13863 pthread_t t; pthread_create(&t,NULL,g,NULL);
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 if ac_fn_c_try_link "$LINENO"; then :
13869   thread_CFLAGS="$flag"
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext \
13872     conftest$ac_exeext conftest.$ac_ext
13873           if test "X$thread_CFLAGS" != Xfailed; then
13874             break
13875           fi
13876         done
13877         CFLAGS="$chktls_save_CFLAGS"
13878         if test "X$thread_CFLAGS" != Xfailed; then
13879           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
13880           if test "$cross_compiling" = yes; then :
13881   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13883 as_fn_error $? "cannot run test program while cross compiling
13884 See \`config.log' for more details" "$LINENO" 5; }
13885 else
13886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h.  */
13888 #include <pthread.h>
13889                 __thread int a;
13890                 static int *a_in_other_thread;
13891                 static void *
13892                 thread_func (void *arg)
13893                 {
13894                   a_in_other_thread = &a;
13895                   return (void *)0;
13896                 }
13897 int
13898 main ()
13899 {
13900 pthread_t thread;
13901                 void *thread_retval;
13902                 int *a_in_main_thread;
13903                 if (pthread_create (&thread, (pthread_attr_t *)0,
13904                                     thread_func, (void *)0))
13905                   return 0;
13906                 a_in_main_thread = &a;
13907                 if (pthread_join (thread, &thread_retval))
13908                   return 0;
13909                 return (a_in_other_thread == a_in_main_thread);
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_run "$LINENO"; then :
13915   ax_cv_have_tls=yes
13916 else
13917   ax_cv_have_tls=no
13918 fi
13919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13920   conftest.$ac_objext conftest.beam conftest.$ac_ext
13921 fi
13922
13923           CFLAGS="$chktls_save_CFLAGS"
13924         fi
13925       fi
13926 else
13927   ax_cv_have_tls=no
13928 fi
13929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13930   conftest.$ac_objext conftest.beam conftest.$ac_ext
13931 fi
13932
13933 fi
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_tls" >&5
13935 $as_echo "$ax_cv_have_tls" >&6; }
13936
13937   if test "$enable_tls $ax_cv_have_tls" = "yes yes"; then
13938
13939 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13940
13941   fi
13942
13943
13944 # Check whether --enable-mount was given.
13945 if test "${enable_mount+set}" = set; then :
13946   enableval=$enable_mount;
13947 else
13948   enable_mount=check
13949
13950 fi
13951
13952 build_mount=yes
13953 if test "x$enable_mount" = xcheck; then
13954   if test "x$linux_os" = xno; then
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build mount utilities" >&5
13956 $as_echo "$as_me: WARNING: non-linux system; do not build mount utilities" >&2;}
13957     build_mount=no
13958   fi
13959 elif test "x$enable_mount" = xno; then
13960     build_mount=no
13961 fi
13962  if test "x$build_mount" = xyes; then
13963   BUILD_MOUNT_TRUE=
13964   BUILD_MOUNT_FALSE='#'
13965 else
13966   BUILD_MOUNT_TRUE='#'
13967   BUILD_MOUNT_FALSE=
13968 fi
13969
13970
13971
13972 # Check whether --enable-fsck was given.
13973 if test "${enable_fsck+set}" = set; then :
13974   enableval=$enable_fsck;
13975 else
13976   enable_fsck=yes
13977
13978 fi
13979
13980  if test "x$enable_fsck" = xyes; then
13981   BUILD_FSCK_TRUE=
13982   BUILD_FSCK_FALSE='#'
13983 else
13984   BUILD_FSCK_TRUE='#'
13985   BUILD_FSCK_FALSE=
13986 fi
13987
13988
13989
13990 # Check whether --enable-partx was given.
13991 if test "${enable_partx+set}" = set; then :
13992   enableval=$enable_partx;
13993 else
13994   enable_partx=check
13995
13996 fi
13997
13998 build_partx=yes
13999 if test "x$enable_partx" = xcheck; then
14000   if test "x$linux_os" = xno; then
14001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build partx utilities" >&5
14002 $as_echo "$as_me: WARNING: non-linux system; do not build partx utilities" >&2;}
14003     build_partx=no
14004   fi
14005 elif test "x$enable_partx" = xno; then
14006     build_partx=no
14007 fi
14008  if test "x$build_partx" = xyes; then
14009   BUILD_PARTX_TRUE=
14010   BUILD_PARTX_FALSE='#'
14011 else
14012   BUILD_PARTX_TRUE='#'
14013   BUILD_PARTX_FALSE=
14014 fi
14015
14016
14017
14018 # Check whether --enable-libuuid was given.
14019 if test "${enable_libuuid+set}" = set; then :
14020   enableval=$enable_libuuid;
14021 else
14022   enable_libuuid=yes
14023
14024 fi
14025
14026
14027
14028  if test "x$enable_libuuid" = xyes; then
14029   BUILD_LIBUUID_TRUE=
14030   BUILD_LIBUUID_FALSE='#'
14031 else
14032   BUILD_LIBUUID_TRUE='#'
14033   BUILD_LIBUUID_FALSE=
14034 fi
14035
14036
14037 if test "x$enable_libuuid" = xyes; then
14038
14039 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
14040
14041 else
14042   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&5
14043 $as_echo "$as_me: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&2;}
14044 fi
14045
14046
14047 # Check whether --enable-uuidd was given.
14048 if test "${enable_uuidd+set}" = set; then :
14049   enableval=$enable_uuidd;
14050 else
14051   enable_uuidd=auto
14052
14053 fi
14054
14055
14056 case "$enable_uuidd:$enable_libuuid" in
14057 yes:no)
14058   as_fn_error $? "cannot enable uuidd when libuuid is disabled" "$LINENO" 5 ;;
14059 auto:*)
14060   enable_uuidd=$enable_libuuid ;;
14061 esac
14062 if test "x$enable_uuidd" = xyes; then
14063
14064 $as_echo "#define HAVE_UUIDD 1" >>confdefs.h
14065
14066 fi
14067  if test "x$enable_uuidd" = xyes; then
14068   BUILD_UUIDD_TRUE=
14069   BUILD_UUIDD_FALSE='#'
14070 else
14071   BUILD_UUIDD_TRUE='#'
14072   BUILD_UUIDD_FALSE=
14073 fi
14074
14075
14076
14077 # Check whether --enable-libblkid was given.
14078 if test "${enable_libblkid+set}" = set; then :
14079   enableval=$enable_libblkid;
14080 else
14081   enable_libblkid=yes
14082
14083 fi
14084
14085
14086
14087
14088  if test "x$enable_libblkid" = xyes; then
14089   BUILD_LIBBLKID_TRUE=
14090   BUILD_LIBBLKID_FALSE='#'
14091 else
14092   BUILD_LIBBLKID_TRUE='#'
14093   BUILD_LIBBLKID_FALSE=
14094 fi
14095
14096
14097 cat >>confdefs.h <<_ACEOF
14098 #define LIBBLKID_VERSION "$LIBBLKID_VERSION"
14099 _ACEOF
14100
14101
14102 cat >>confdefs.h <<_ACEOF
14103 #define LIBBLKID_DATE "$LIBBLKID_DATE"
14104 _ACEOF
14105
14106
14107 if test "x$enable_libblkid" = xyes; then
14108
14109 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
14110
14111 else
14112   if test "x$build_mount" = xyes; then
14113     as_fn_error $? "libblkid is needed to build util-linux mount" "$LINENO" 5
14114   fi
14115   if test "x$enable_fsck" = xyes; then
14116     as_fn_error $? "libblkid is needed to build util-linux fsck" "$LINENO" 5
14117   fi
14118   if test "x$build_partx" = xyes; then
14119     as_fn_error $? "libblkid is needed to build util-linux partx" "$LINENO" 5
14120   fi
14121 fi
14122
14123
14124 # Check whether --enable-libmount was given.
14125 if test "${enable_libmount+set}" = set; then :
14126   enableval=$enable_libmount;
14127 else
14128   enable_libmount=check
14129
14130 fi
14131
14132 build_libmount=yes
14133 if test "x$enable_libmount" = xcheck; then
14134   if test "x$linux_os" = xno; then
14135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build libmount" >&5
14136 $as_echo "$as_me: WARNING: non-linux system; do not build libmount" >&2;}
14137     build_libmount=no
14138   fi
14139 elif test "x$enable_libmount" = xno; then
14140     build_libmount=no
14141 fi
14142
14143
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking needed scanf type modifiers" >&5
14145 $as_echo_n "checking needed scanf type modifiers... " >&6; }
14146 if ${scanf_cv_type_modifier+:} false; then :
14147   $as_echo_n "(cached) " >&6
14148 else
14149   if test "$cross_compiling" = yes; then :
14150   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14152 as_fn_error $? "cannot run test program while cross compiling
14153 See \`config.log' for more details" "$LINENO" 5; }
14154 else
14155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h.  */
14157 # include <stdio.h>
14158 int main()
14159 {
14160         int i;
14161         char *s;
14162         i = sscanf("x", "%ms", &s);
14163         if (i == 1)
14164                 return 0;
14165         return 1;
14166 }
14167 _ACEOF
14168 if ac_fn_c_try_run "$LINENO"; then :
14169   scanf_cv_type_modifier=ms
14170 else
14171   if test "$cross_compiling" = yes; then :
14172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14174 as_fn_error $? "cannot run test program while cross compiling
14175 See \`config.log' for more details" "$LINENO" 5; }
14176 else
14177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h.  */
14179 # include <stdio.h>
14180 int main()
14181 {
14182         int i;
14183         char *s;
14184         i = sscanf("x", "%as", &s);
14185         if (i == 1)
14186                 return 0;
14187         return 1;
14188 }
14189 _ACEOF
14190 if ac_fn_c_try_run "$LINENO"; then :
14191   scanf_cv_type_modifier=as
14192 else
14193   scanf_cv_type_modifier=no
14194
14195 fi
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14197   conftest.$ac_objext conftest.beam conftest.$ac_ext
14198 fi
14199
14200
14201 fi
14202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14203   conftest.$ac_objext conftest.beam conftest.$ac_ext
14204 fi
14205
14206
14207 fi
14208
14209
14210 case "$scanf_cv_type_modifier" in
14211 ms)
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (%ms) yes" >&5
14213 $as_echo "(%ms) yes" >&6; }
14214
14215 $as_echo "#define HAVE_SCANF_MS_MODIFIER 1" >>confdefs.h
14216  ;;
14217 as)
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (%as) yes" >&5
14219 $as_echo "(%as) yes" >&6; }
14220
14221 $as_echo "#define HAVE_SCANF_AS_MODIFIER 1" >>confdefs.h
14222  ;;
14223 *)
14224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226   if "x$build_libmount" = xyes; then
14227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: %as or %ms for sscanf() not found; do not build libmount" >&5
14228 $as_echo "$as_me: WARNING: %as or %ms for sscanf() not found; do not build libmount" >&2;}
14229     build_libmount=no
14230   fi
14231 esac
14232
14233
14234 case "$enable_libblkid:$build_libmount" in
14235 no:yes)
14236   as_fn_error $? "cannot enable libmount when libblkid is disabled" "$LINENO" 5 ;;
14237 esac
14238
14239
14240
14241
14242 cat >>confdefs.h <<_ACEOF
14243 #define LIBMOUNT_VERSION "$LIBMOUNT_VERSION"
14244 _ACEOF
14245
14246  if test "x$build_libmount" = xyes; then
14247   BUILD_LIBMOUNT_TRUE=
14248   BUILD_LIBMOUNT_FALSE='#'
14249 else
14250   BUILD_LIBMOUNT_TRUE='#'
14251   BUILD_LIBMOUNT_FALSE=
14252 fi
14253
14254
14255
14256 # Check whether --enable-libmount-mount was given.
14257 if test "${enable_libmount_mount+set}" = set; then :
14258   enableval=$enable_libmount_mount;
14259 else
14260   enable_libmount_mount=no
14261
14262 fi
14263
14264
14265 case "$build_libmount:$enable_libmount_mount" in
14266 no:yes)
14267   as_fn_error $? "cannot link mount(8) with libmount when libmount is disabled" "$LINENO" 5 ;;
14268 yes:yes)
14269
14270 $as_echo "#define HAVE_LIBMOUNT_MOUNT 1" >>confdefs.h
14271
14272 esac
14273  if test "x$enable_libmount_mount" = xyes; then
14274   BUILD_LIBMOUNT_MOUNT_TRUE=
14275   BUILD_LIBMOUNT_MOUNT_FALSE='#'
14276 else
14277   BUILD_LIBMOUNT_MOUNT_TRUE='#'
14278   BUILD_LIBMOUNT_MOUNT_FALSE=
14279 fi
14280
14281
14282
14283 # Check whether --enable-mountpoint was given.
14284 if test "${enable_mountpoint+set}" = set; then :
14285   enableval=$enable_mountpoint;
14286 else
14287   enable_mountpoint=check
14288
14289 fi
14290
14291
14292 build_mountpoint=yes
14293 if test "x$enable_mountpoint" = xcheck; then
14294   if test "x$build_libmount" = xno; then
14295     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; do not build mountpoint" >&5
14296 $as_echo "$as_me: WARNING: libmount disabled; do not build mountpoint" >&2;}
14297     build_mountpoint=no
14298   fi
14299 elif test "x$enable_mountpoint" = xno; then
14300     build_mountpoint=no
14301 fi
14302
14303 case "$build_libmount:$build_mountpoint" in
14304 no:yes)
14305   as_fn_error $? "cannot enable mountpoint when libmount is disabled" "$LINENO" 5 ;;
14306 esac
14307  if test "x$build_mountpoint" = xyes; then
14308   BUILD_MOUNTPOINT_TRUE=
14309   BUILD_MOUNTPOINT_FALSE='#'
14310 else
14311   BUILD_MOUNTPOINT_TRUE='#'
14312   BUILD_MOUNTPOINT_FALSE=
14313 fi
14314
14315
14316
14317
14318
14319   have_util=yes
14320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
14321 $as_echo_n "checking for openpty in -lutil... " >&6; }
14322 if ${ac_cv_lib_util_openpty+:} false; then :
14323   $as_echo_n "(cached) " >&6
14324 else
14325   ac_check_lib_save_LIBS=$LIBS
14326 LIBS="-lutil  $LIBS"
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h.  */
14329
14330 /* Override any GCC internal prototype to avoid an error.
14331    Use char because int might match the return type of a GCC
14332    builtin and then its argument prototype would still apply.  */
14333 #ifdef __cplusplus
14334 extern "C"
14335 #endif
14336 char openpty ();
14337 int
14338 main ()
14339 {
14340 return openpty ();
14341   ;
14342   return 0;
14343 }
14344 _ACEOF
14345 if ac_fn_c_try_link "$LINENO"; then :
14346   ac_cv_lib_util_openpty=yes
14347 else
14348   ac_cv_lib_util_openpty=no
14349 fi
14350 rm -f core conftest.err conftest.$ac_objext \
14351     conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14353 fi
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
14355 $as_echo "$ac_cv_lib_util_openpty" >&6; }
14356 if test "x$ac_cv_lib_util_openpty" = xyes; then :
14357   cat >>confdefs.h <<_ACEOF
14358 #define HAVE_LIBUTIL 1
14359 _ACEOF
14360
14361   LIBS="-lutil $LIBS"
14362
14363 else
14364   have_util=no
14365 fi
14366
14367    if test $have_util = yes; then
14368   HAVE_UTIL_TRUE=
14369   HAVE_UTIL_FALSE='#'
14370 else
14371   HAVE_UTIL_TRUE='#'
14372   HAVE_UTIL_FALSE=
14373 fi
14374
14375
14376
14377
14378   have_termcap=yes
14379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetnum in -ltermcap" >&5
14380 $as_echo_n "checking for tgetnum in -ltermcap... " >&6; }
14381 if ${ac_cv_lib_termcap_tgetnum+:} false; then :
14382   $as_echo_n "(cached) " >&6
14383 else
14384   ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-ltermcap  $LIBS"
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h.  */
14388
14389 /* Override any GCC internal prototype to avoid an error.
14390    Use char because int might match the return type of a GCC
14391    builtin and then its argument prototype would still apply.  */
14392 #ifdef __cplusplus
14393 extern "C"
14394 #endif
14395 char tgetnum ();
14396 int
14397 main ()
14398 {
14399 return tgetnum ();
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 if ac_fn_c_try_link "$LINENO"; then :
14405   ac_cv_lib_termcap_tgetnum=yes
14406 else
14407   ac_cv_lib_termcap_tgetnum=no
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext \
14410     conftest$ac_exeext conftest.$ac_ext
14411 LIBS=$ac_check_lib_save_LIBS
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetnum" >&5
14414 $as_echo "$ac_cv_lib_termcap_tgetnum" >&6; }
14415 if test "x$ac_cv_lib_termcap_tgetnum" = xyes; then :
14416   cat >>confdefs.h <<_ACEOF
14417 #define HAVE_LIBTERMCAP 1
14418 _ACEOF
14419
14420   LIBS="-ltermcap $LIBS"
14421
14422 else
14423   have_termcap=no
14424 fi
14425
14426    if test $have_termcap = yes; then
14427   HAVE_TERMCAP_TRUE=
14428   HAVE_TERMCAP_FALSE='#'
14429 else
14430   HAVE_TERMCAP_TRUE='#'
14431   HAVE_TERMCAP_FALSE=
14432 fi
14433
14434
14435
14436
14437
14438         MKINSTALLDIRS=
14439   if test -n "$ac_aux_dir"; then
14440     case "$ac_aux_dir" in
14441       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14442       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14443     esac
14444   fi
14445   if test -z "$MKINSTALLDIRS"; then
14446     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14447   fi
14448
14449
14450
14451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14452 $as_echo_n "checking whether NLS is requested... " >&6; }
14453     # Check whether --enable-nls was given.
14454 if test "${enable_nls+set}" = set; then :
14455   enableval=$enable_nls; USE_NLS=$enableval
14456 else
14457   USE_NLS=yes
14458 fi
14459
14460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14461 $as_echo "$USE_NLS" >&6; }
14462
14463
14464
14465
14466
14467
14468 # Prepare PATH_SEPARATOR.
14469 # The user is always right.
14470 if test "${PATH_SEPARATOR+set}" != set; then
14471   echo "#! /bin/sh" >conf$$.sh
14472   echo  "exit 0"   >>conf$$.sh
14473   chmod +x conf$$.sh
14474   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14475     PATH_SEPARATOR=';'
14476   else
14477     PATH_SEPARATOR=:
14478   fi
14479   rm -f conf$$.sh
14480 fi
14481
14482 # Find out how to test for executable files. Don't use a zero-byte file,
14483 # as systems may use methods other than mode bits to determine executability.
14484 cat >conf$$.file <<_ASEOF
14485 #! /bin/sh
14486 exit 0
14487 _ASEOF
14488 chmod +x conf$$.file
14489 if test -x conf$$.file >/dev/null 2>&1; then
14490   ac_executable_p="test -x"
14491 else
14492   ac_executable_p="test -f"
14493 fi
14494 rm -f conf$$.file
14495
14496 # Extract the first word of "msgfmt", so it can be a program name with args.
14497 set dummy msgfmt; ac_word=$2
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14499 $as_echo_n "checking for $ac_word... " >&6; }
14500 if ${ac_cv_path_MSGFMT+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   case "$MSGFMT" in
14504   [\\/]* | ?:[\\/]*)
14505     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14506     ;;
14507   *)
14508     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14509     for ac_dir in $PATH; do
14510       IFS="$ac_save_IFS"
14511       test -z "$ac_dir" && ac_dir=.
14512       for ac_exec_ext in '' $ac_executable_extensions; do
14513         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14514           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14515      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14516             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14517             break 2
14518           fi
14519         fi
14520       done
14521     done
14522     IFS="$ac_save_IFS"
14523   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14524     ;;
14525 esac
14526 fi
14527 MSGFMT="$ac_cv_path_MSGFMT"
14528 if test "$MSGFMT" != ":"; then
14529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14530 $as_echo "$MSGFMT" >&6; }
14531 else
14532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14534 fi
14535
14536   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14537 set dummy gmsgfmt; ac_word=$2
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 $as_echo_n "checking for $ac_word... " >&6; }
14540 if ${ac_cv_path_GMSGFMT+:} false; then :
14541   $as_echo_n "(cached) " >&6
14542 else
14543   case $GMSGFMT in
14544   [\\/]* | ?:[\\/]*)
14545   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14546   ;;
14547   *)
14548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14550 do
14551   IFS=$as_save_IFS
14552   test -z "$as_dir" && as_dir=.
14553     for ac_exec_ext in '' $ac_executable_extensions; do
14554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14555     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14557     break 2
14558   fi
14559 done
14560   done
14561 IFS=$as_save_IFS
14562
14563   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14564   ;;
14565 esac
14566 fi
14567 GMSGFMT=$ac_cv_path_GMSGFMT
14568 if test -n "$GMSGFMT"; then
14569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14570 $as_echo "$GMSGFMT" >&6; }
14571 else
14572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573 $as_echo "no" >&6; }
14574 fi
14575
14576
14577
14578
14579 # Prepare PATH_SEPARATOR.
14580 # The user is always right.
14581 if test "${PATH_SEPARATOR+set}" != set; then
14582   echo "#! /bin/sh" >conf$$.sh
14583   echo  "exit 0"   >>conf$$.sh
14584   chmod +x conf$$.sh
14585   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14586     PATH_SEPARATOR=';'
14587   else
14588     PATH_SEPARATOR=:
14589   fi
14590   rm -f conf$$.sh
14591 fi
14592
14593 # Find out how to test for executable files. Don't use a zero-byte file,
14594 # as systems may use methods other than mode bits to determine executability.
14595 cat >conf$$.file <<_ASEOF
14596 #! /bin/sh
14597 exit 0
14598 _ASEOF
14599 chmod +x conf$$.file
14600 if test -x conf$$.file >/dev/null 2>&1; then
14601   ac_executable_p="test -x"
14602 else
14603   ac_executable_p="test -f"
14604 fi
14605 rm -f conf$$.file
14606
14607 # Extract the first word of "xgettext", so it can be a program name with args.
14608 set dummy xgettext; ac_word=$2
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14610 $as_echo_n "checking for $ac_word... " >&6; }
14611 if ${ac_cv_path_XGETTEXT+:} false; then :
14612   $as_echo_n "(cached) " >&6
14613 else
14614   case "$XGETTEXT" in
14615   [\\/]* | ?:[\\/]*)
14616     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14617     ;;
14618   *)
14619     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14620     for ac_dir in $PATH; do
14621       IFS="$ac_save_IFS"
14622       test -z "$ac_dir" && ac_dir=.
14623       for ac_exec_ext in '' $ac_executable_extensions; do
14624         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14625           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14626      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14627             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14628             break 2
14629           fi
14630         fi
14631       done
14632     done
14633     IFS="$ac_save_IFS"
14634   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14635     ;;
14636 esac
14637 fi
14638 XGETTEXT="$ac_cv_path_XGETTEXT"
14639 if test "$XGETTEXT" != ":"; then
14640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14641 $as_echo "$XGETTEXT" >&6; }
14642 else
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14645 fi
14646
14647     rm -f messages.po
14648
14649
14650 # Prepare PATH_SEPARATOR.
14651 # The user is always right.
14652 if test "${PATH_SEPARATOR+set}" != set; then
14653   echo "#! /bin/sh" >conf$$.sh
14654   echo  "exit 0"   >>conf$$.sh
14655   chmod +x conf$$.sh
14656   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14657     PATH_SEPARATOR=';'
14658   else
14659     PATH_SEPARATOR=:
14660   fi
14661   rm -f conf$$.sh
14662 fi
14663
14664 # Find out how to test for executable files. Don't use a zero-byte file,
14665 # as systems may use methods other than mode bits to determine executability.
14666 cat >conf$$.file <<_ASEOF
14667 #! /bin/sh
14668 exit 0
14669 _ASEOF
14670 chmod +x conf$$.file
14671 if test -x conf$$.file >/dev/null 2>&1; then
14672   ac_executable_p="test -x"
14673 else
14674   ac_executable_p="test -f"
14675 fi
14676 rm -f conf$$.file
14677
14678 # Extract the first word of "msgmerge", so it can be a program name with args.
14679 set dummy msgmerge; ac_word=$2
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14681 $as_echo_n "checking for $ac_word... " >&6; }
14682 if ${ac_cv_path_MSGMERGE+:} false; then :
14683   $as_echo_n "(cached) " >&6
14684 else
14685   case "$MSGMERGE" in
14686   [\\/]* | ?:[\\/]*)
14687     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14688     ;;
14689   *)
14690     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14691     for ac_dir in $PATH; do
14692       IFS="$ac_save_IFS"
14693       test -z "$ac_dir" && ac_dir=.
14694       for ac_exec_ext in '' $ac_executable_extensions; do
14695         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14696           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14697             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14698             break 2
14699           fi
14700         fi
14701       done
14702     done
14703     IFS="$ac_save_IFS"
14704   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14705     ;;
14706 esac
14707 fi
14708 MSGMERGE="$ac_cv_path_MSGMERGE"
14709 if test "$MSGMERGE" != ":"; then
14710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14711 $as_echo "$MSGMERGE" >&6; }
14712 else
14713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14715 fi
14716
14717
14718       if test "$GMSGFMT" != ":"; then
14719             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14720        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14721       : ;
14722     else
14723       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14725 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14726       GMSGFMT=":"
14727     fi
14728   fi
14729
14730       if test "$XGETTEXT" != ":"; then
14731             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14732        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14733       : ;
14734     else
14735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14736 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14737       XGETTEXT=":"
14738     fi
14739         rm -f messages.po
14740   fi
14741
14742   ac_config_commands="$ac_config_commands default-1"
14743
14744
14745
14746       if test "X$prefix" = "XNONE"; then
14747     acl_final_prefix="$ac_default_prefix"
14748   else
14749     acl_final_prefix="$prefix"
14750   fi
14751   if test "X$exec_prefix" = "XNONE"; then
14752     acl_final_exec_prefix='${prefix}'
14753   else
14754     acl_final_exec_prefix="$exec_prefix"
14755   fi
14756   acl_save_prefix="$prefix"
14757   prefix="$acl_final_prefix"
14758   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14759   prefix="$acl_save_prefix"
14760
14761
14762 # Check whether --with-gnu-ld was given.
14763 if test "${with_gnu_ld+set}" = set; then :
14764   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14765 else
14766   with_gnu_ld=no
14767 fi
14768
14769 # Prepare PATH_SEPARATOR.
14770 # The user is always right.
14771 if test "${PATH_SEPARATOR+set}" != set; then
14772   echo "#! /bin/sh" >conf$$.sh
14773   echo  "exit 0"   >>conf$$.sh
14774   chmod +x conf$$.sh
14775   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14776     PATH_SEPARATOR=';'
14777   else
14778     PATH_SEPARATOR=:
14779   fi
14780   rm -f conf$$.sh
14781 fi
14782 ac_prog=ld
14783 if test "$GCC" = yes; then
14784   # Check if gcc -print-prog-name=ld gives a path.
14785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14786 $as_echo_n "checking for ld used by GCC... " >&6; }
14787   case $host in
14788   *-*-mingw*)
14789     # gcc leaves a trailing carriage return which upsets mingw
14790     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14791   *)
14792     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14793   esac
14794   case $ac_prog in
14795     # Accept absolute paths.
14796     [\\/]* | [A-Za-z]:[\\/]*)
14797       re_direlt='/[^/][^/]*/\.\./'
14798       # Canonicalize the path of ld
14799       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14800       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14801         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14802       done
14803       test -z "$LD" && LD="$ac_prog"
14804       ;;
14805   "")
14806     # If it fails, then pretend we aren't using GCC.
14807     ac_prog=ld
14808     ;;
14809   *)
14810     # If it is relative, then search for the first ld in PATH.
14811     with_gnu_ld=unknown
14812     ;;
14813   esac
14814 elif test "$with_gnu_ld" = yes; then
14815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14816 $as_echo_n "checking for GNU ld... " >&6; }
14817 else
14818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14819 $as_echo_n "checking for non-GNU ld... " >&6; }
14820 fi
14821 if ${acl_cv_path_LD+:} false; then :
14822   $as_echo_n "(cached) " >&6
14823 else
14824   if test -z "$LD"; then
14825   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14826   for ac_dir in $PATH; do
14827     test -z "$ac_dir" && ac_dir=.
14828     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14829       acl_cv_path_LD="$ac_dir/$ac_prog"
14830       # Check to see if the program is GNU ld.  I'd rather use --version,
14831       # but apparently some GNU ld's only accept -v.
14832       # Break only if it was the GNU/non-GNU ld that we prefer.
14833       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14834       *GNU* | *'with BFD'*)
14835         test "$with_gnu_ld" != no && break ;;
14836       *)
14837         test "$with_gnu_ld" != yes && break ;;
14838       esac
14839     fi
14840   done
14841   IFS="$ac_save_ifs"
14842 else
14843   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14844 fi
14845 fi
14846
14847 LD="$acl_cv_path_LD"
14848 if test -n "$LD"; then
14849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14850 $as_echo "$LD" >&6; }
14851 else
14852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14854 fi
14855 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14858 if ${acl_cv_prog_gnu_ld+:} false; then :
14859   $as_echo_n "(cached) " >&6
14860 else
14861   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14862 case `$LD -v 2>&1 </dev/null` in
14863 *GNU* | *'with BFD'*)
14864   acl_cv_prog_gnu_ld=yes ;;
14865 *)
14866   acl_cv_prog_gnu_ld=no ;;
14867 esac
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14870 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14871 with_gnu_ld=$acl_cv_prog_gnu_ld
14872
14873
14874
14875                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14876 $as_echo_n "checking for shared library run path origin... " >&6; }
14877 if ${acl_cv_rpath+:} false; then :
14878   $as_echo_n "(cached) " >&6
14879 else
14880
14881     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14882     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14883     . ./conftest.sh
14884     rm -f ./conftest.sh
14885     acl_cv_rpath=done
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14889 $as_echo "$acl_cv_rpath" >&6; }
14890   wl="$acl_cv_wl"
14891   libext="$acl_cv_libext"
14892   shlibext="$acl_cv_shlibext"
14893   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14894   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14895   hardcode_direct="$acl_cv_hardcode_direct"
14896   hardcode_minus_L="$acl_cv_hardcode_minus_L"
14897     # Check whether --enable-rpath was given.
14898 if test "${enable_rpath+set}" = set; then :
14899   enableval=$enable_rpath; :
14900 else
14901   enable_rpath=yes
14902 fi
14903
14904
14905
14906
14907
14908
14909
14910
14911     use_additional=yes
14912
14913   acl_save_prefix="$prefix"
14914   prefix="$acl_final_prefix"
14915   acl_save_exec_prefix="$exec_prefix"
14916   exec_prefix="$acl_final_exec_prefix"
14917
14918     eval additional_includedir=\"$includedir\"
14919     eval additional_libdir=\"$libdir\"
14920
14921   exec_prefix="$acl_save_exec_prefix"
14922   prefix="$acl_save_prefix"
14923
14924
14925 # Check whether --with-libiconv-prefix was given.
14926 if test "${with_libiconv_prefix+set}" = set; then :
14927   withval=$with_libiconv_prefix;
14928     if test "X$withval" = "Xno"; then
14929       use_additional=no
14930     else
14931       if test "X$withval" = "X"; then
14932
14933   acl_save_prefix="$prefix"
14934   prefix="$acl_final_prefix"
14935   acl_save_exec_prefix="$exec_prefix"
14936   exec_prefix="$acl_final_exec_prefix"
14937
14938           eval additional_includedir=\"$includedir\"
14939           eval additional_libdir=\"$libdir\"
14940
14941   exec_prefix="$acl_save_exec_prefix"
14942   prefix="$acl_save_prefix"
14943
14944       else
14945         additional_includedir="$withval/include"
14946         additional_libdir="$withval/lib"
14947       fi
14948     fi
14949
14950 fi
14951
14952       LIBICONV=
14953   LTLIBICONV=
14954   INCICONV=
14955   rpathdirs=
14956   ltrpathdirs=
14957   names_already_handled=
14958   names_next_round='iconv '
14959   while test -n "$names_next_round"; do
14960     names_this_round="$names_next_round"
14961     names_next_round=
14962     for name in $names_this_round; do
14963       already_handled=
14964       for n in $names_already_handled; do
14965         if test "$n" = "$name"; then
14966           already_handled=yes
14967           break
14968         fi
14969       done
14970       if test -z "$already_handled"; then
14971         names_already_handled="$names_already_handled $name"
14972                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14973         eval value=\"\$HAVE_LIB$uppername\"
14974         if test -n "$value"; then
14975           if test "$value" = yes; then
14976             eval value=\"\$LIB$uppername\"
14977             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14978             eval value=\"\$LTLIB$uppername\"
14979             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14980           else
14981                                     :
14982           fi
14983         else
14984                               found_dir=
14985           found_la=
14986           found_so=
14987           found_a=
14988           if test $use_additional = yes; then
14989             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14990               found_dir="$additional_libdir"
14991               found_so="$additional_libdir/lib$name.$shlibext"
14992               if test -f "$additional_libdir/lib$name.la"; then
14993                 found_la="$additional_libdir/lib$name.la"
14994               fi
14995             else
14996               if test -f "$additional_libdir/lib$name.$libext"; then
14997                 found_dir="$additional_libdir"
14998                 found_a="$additional_libdir/lib$name.$libext"
14999                 if test -f "$additional_libdir/lib$name.la"; then
15000                   found_la="$additional_libdir/lib$name.la"
15001                 fi
15002               fi
15003             fi
15004           fi
15005           if test "X$found_dir" = "X"; then
15006             for x in $LDFLAGS $LTLIBICONV; do
15007
15008   acl_save_prefix="$prefix"
15009   prefix="$acl_final_prefix"
15010   acl_save_exec_prefix="$exec_prefix"
15011   exec_prefix="$acl_final_exec_prefix"
15012   eval x=\"$x\"
15013   exec_prefix="$acl_save_exec_prefix"
15014   prefix="$acl_save_prefix"
15015
15016               case "$x" in
15017                 -L*)
15018                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15019                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15020                     found_dir="$dir"
15021                     found_so="$dir/lib$name.$shlibext"
15022                     if test -f "$dir/lib$name.la"; then
15023                       found_la="$dir/lib$name.la"
15024                     fi
15025                   else
15026                     if test -f "$dir/lib$name.$libext"; then
15027                       found_dir="$dir"
15028                       found_a="$dir/lib$name.$libext"
15029                       if test -f "$dir/lib$name.la"; then
15030                         found_la="$dir/lib$name.la"
15031                       fi
15032                     fi
15033                   fi
15034                   ;;
15035               esac
15036               if test "X$found_dir" != "X"; then
15037                 break
15038               fi
15039             done
15040           fi
15041           if test "X$found_dir" != "X"; then
15042                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15043             if test "X$found_so" != "X"; then
15044                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15045                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15046               else
15047                                                                                 haveit=
15048                 for x in $ltrpathdirs; do
15049                   if test "X$x" = "X$found_dir"; then
15050                     haveit=yes
15051                     break
15052                   fi
15053                 done
15054                 if test -z "$haveit"; then
15055                   ltrpathdirs="$ltrpathdirs $found_dir"
15056                 fi
15057                                 if test "$hardcode_direct" = yes; then
15058                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15059                 else
15060                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15061                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15062                                                             haveit=
15063                     for x in $rpathdirs; do
15064                       if test "X$x" = "X$found_dir"; then
15065                         haveit=yes
15066                         break
15067                       fi
15068                     done
15069                     if test -z "$haveit"; then
15070                       rpathdirs="$rpathdirs $found_dir"
15071                     fi
15072                   else
15073                                                                                 haveit=
15074                     for x in $LDFLAGS $LIBICONV; do
15075
15076   acl_save_prefix="$prefix"
15077   prefix="$acl_final_prefix"
15078   acl_save_exec_prefix="$exec_prefix"
15079   exec_prefix="$acl_final_exec_prefix"
15080   eval x=\"$x\"
15081   exec_prefix="$acl_save_exec_prefix"
15082   prefix="$acl_save_prefix"
15083
15084                       if test "X$x" = "X-L$found_dir"; then
15085                         haveit=yes
15086                         break
15087                       fi
15088                     done
15089                     if test -z "$haveit"; then
15090                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15091                     fi
15092                     if test "$hardcode_minus_L" != no; then
15093                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15094                     else
15095                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15096                     fi
15097                   fi
15098                 fi
15099               fi
15100             else
15101               if test "X$found_a" != "X"; then
15102                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15103               else
15104                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15105               fi
15106             fi
15107                         additional_includedir=
15108             case "$found_dir" in
15109               */lib | */lib/)
15110                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15111                 additional_includedir="$basedir/include"
15112                 ;;
15113             esac
15114             if test "X$additional_includedir" != "X"; then
15115                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15116                 haveit=
15117                 if test "X$additional_includedir" = "X/usr/local/include"; then
15118                   if test -n "$GCC"; then
15119                     case $host_os in
15120                       linux*) haveit=yes;;
15121                     esac
15122                   fi
15123                 fi
15124                 if test -z "$haveit"; then
15125                   for x in $CPPFLAGS $INCICONV; do
15126
15127   acl_save_prefix="$prefix"
15128   prefix="$acl_final_prefix"
15129   acl_save_exec_prefix="$exec_prefix"
15130   exec_prefix="$acl_final_exec_prefix"
15131   eval x=\"$x\"
15132   exec_prefix="$acl_save_exec_prefix"
15133   prefix="$acl_save_prefix"
15134
15135                     if test "X$x" = "X-I$additional_includedir"; then
15136                       haveit=yes
15137                       break
15138                     fi
15139                   done
15140                   if test -z "$haveit"; then
15141                     if test -d "$additional_includedir"; then
15142                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15143                     fi
15144                   fi
15145                 fi
15146               fi
15147             fi
15148                         if test -n "$found_la"; then
15149                                                         save_libdir="$libdir"
15150               case "$found_la" in
15151                 */* | *\\*) . "$found_la" ;;
15152                 *) . "./$found_la" ;;
15153               esac
15154               libdir="$save_libdir"
15155                             for dep in $dependency_libs; do
15156                 case "$dep" in
15157                   -L*)
15158                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15159                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
15160                       haveit=
15161                       if test "X$additional_libdir" = "X/usr/local/lib"; then
15162                         if test -n "$GCC"; then
15163                           case $host_os in
15164                             linux*) haveit=yes;;
15165                           esac
15166                         fi
15167                       fi
15168                       if test -z "$haveit"; then
15169                         haveit=
15170                         for x in $LDFLAGS $LIBICONV; do
15171
15172   acl_save_prefix="$prefix"
15173   prefix="$acl_final_prefix"
15174   acl_save_exec_prefix="$exec_prefix"
15175   exec_prefix="$acl_final_exec_prefix"
15176   eval x=\"$x\"
15177   exec_prefix="$acl_save_exec_prefix"
15178   prefix="$acl_save_prefix"
15179
15180                           if test "X$x" = "X-L$additional_libdir"; then
15181                             haveit=yes
15182                             break
15183                           fi
15184                         done
15185                         if test -z "$haveit"; then
15186                           if test -d "$additional_libdir"; then
15187                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15188                           fi
15189                         fi
15190                         haveit=
15191                         for x in $LDFLAGS $LTLIBICONV; do
15192
15193   acl_save_prefix="$prefix"
15194   prefix="$acl_final_prefix"
15195   acl_save_exec_prefix="$exec_prefix"
15196   exec_prefix="$acl_final_exec_prefix"
15197   eval x=\"$x\"
15198   exec_prefix="$acl_save_exec_prefix"
15199   prefix="$acl_save_prefix"
15200
15201                           if test "X$x" = "X-L$additional_libdir"; then
15202                             haveit=yes
15203                             break
15204                           fi
15205                         done
15206                         if test -z "$haveit"; then
15207                           if test -d "$additional_libdir"; then
15208                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15209                           fi
15210                         fi
15211                       fi
15212                     fi
15213                     ;;
15214                   -R*)
15215                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15216                     if test "$enable_rpath" != no; then
15217                                                                   haveit=
15218                       for x in $rpathdirs; do
15219                         if test "X$x" = "X$dir"; then
15220                           haveit=yes
15221                           break
15222                         fi
15223                       done
15224                       if test -z "$haveit"; then
15225                         rpathdirs="$rpathdirs $dir"
15226                       fi
15227                                                                   haveit=
15228                       for x in $ltrpathdirs; do
15229                         if test "X$x" = "X$dir"; then
15230                           haveit=yes
15231                           break
15232                         fi
15233                       done
15234                       if test -z "$haveit"; then
15235                         ltrpathdirs="$ltrpathdirs $dir"
15236                       fi
15237                     fi
15238                     ;;
15239                   -l*)
15240                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15241                     ;;
15242                   *.la)
15243                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15244                     ;;
15245                   *)
15246                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15247                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15248                     ;;
15249                 esac
15250               done
15251             fi
15252           else
15253                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15254             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15255           fi
15256         fi
15257       fi
15258     done
15259   done
15260   if test "X$rpathdirs" != "X"; then
15261     if test -n "$hardcode_libdir_separator"; then
15262                         alldirs=
15263       for found_dir in $rpathdirs; do
15264         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15265       done
15266             acl_save_libdir="$libdir"
15267       libdir="$alldirs"
15268       eval flag=\"$hardcode_libdir_flag_spec\"
15269       libdir="$acl_save_libdir"
15270       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15271     else
15272             for found_dir in $rpathdirs; do
15273         acl_save_libdir="$libdir"
15274         libdir="$found_dir"
15275         eval flag=\"$hardcode_libdir_flag_spec\"
15276         libdir="$acl_save_libdir"
15277         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15278       done
15279     fi
15280   fi
15281   if test "X$ltrpathdirs" != "X"; then
15282             for found_dir in $ltrpathdirs; do
15283       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15284     done
15285   fi
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15305 $as_echo_n "checking whether NLS is requested... " >&6; }
15306     # Check whether --enable-nls was given.
15307 if test "${enable_nls+set}" = set; then :
15308   enableval=$enable_nls; USE_NLS=$enableval
15309 else
15310   USE_NLS=yes
15311 fi
15312
15313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15314 $as_echo "$USE_NLS" >&6; }
15315
15316
15317
15318
15319   LIBINTL=
15320   LTLIBINTL=
15321   POSUB=
15322
15323     if test "$USE_NLS" = "yes"; then
15324     gt_use_preinstalled_gnugettext=no
15325
15326
15327
15328
15329
15330
15331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15332 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15333 if ${gt_cv_func_gnugettext1_libc+:} false; then :
15334   $as_echo_n "(cached) " >&6
15335 else
15336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h.  */
15338 #include <libintl.h>
15339 extern int _nl_msg_cat_cntr;
15340 extern int *_nl_domain_bindings;
15341 int
15342 main ()
15343 {
15344 bindtextdomain ("", "");
15345 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 if ac_fn_c_try_link "$LINENO"; then :
15351   gt_cv_func_gnugettext1_libc=yes
15352 else
15353   gt_cv_func_gnugettext1_libc=no
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext \
15356     conftest$ac_exeext conftest.$ac_ext
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
15359 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
15360
15361         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
15362
15363
15364
15365
15366
15367           am_save_CPPFLAGS="$CPPFLAGS"
15368
15369   for element in $INCICONV; do
15370     haveit=
15371     for x in $CPPFLAGS; do
15372
15373   acl_save_prefix="$prefix"
15374   prefix="$acl_final_prefix"
15375   acl_save_exec_prefix="$exec_prefix"
15376   exec_prefix="$acl_final_exec_prefix"
15377   eval x=\"$x\"
15378   exec_prefix="$acl_save_exec_prefix"
15379   prefix="$acl_save_prefix"
15380
15381       if test "X$x" = "X$element"; then
15382         haveit=yes
15383         break
15384       fi
15385     done
15386     if test -z "$haveit"; then
15387       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15388     fi
15389   done
15390
15391
15392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15393 $as_echo_n "checking for iconv... " >&6; }
15394 if ${am_cv_func_iconv+:} false; then :
15395   $as_echo_n "(cached) " >&6
15396 else
15397
15398     am_cv_func_iconv="no, consider installing GNU libiconv"
15399     am_cv_lib_iconv=no
15400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h.  */
15402 #include <stdlib.h>
15403 #include <iconv.h>
15404 int
15405 main ()
15406 {
15407 iconv_t cd = iconv_open("","");
15408        iconv(cd,NULL,NULL,NULL,NULL);
15409        iconv_close(cd);
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 if ac_fn_c_try_link "$LINENO"; then :
15415   am_cv_func_iconv=yes
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext \
15418     conftest$ac_exeext conftest.$ac_ext
15419     if test "$am_cv_func_iconv" != yes; then
15420       am_save_LIBS="$LIBS"
15421       LIBS="$LIBS $LIBICONV"
15422       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h.  */
15424 #include <stdlib.h>
15425 #include <iconv.h>
15426 int
15427 main ()
15428 {
15429 iconv_t cd = iconv_open("","");
15430          iconv(cd,NULL,NULL,NULL,NULL);
15431          iconv_close(cd);
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 if ac_fn_c_try_link "$LINENO"; then :
15437   am_cv_lib_iconv=yes
15438         am_cv_func_iconv=yes
15439 fi
15440 rm -f core conftest.err conftest.$ac_objext \
15441     conftest$ac_exeext conftest.$ac_ext
15442       LIBS="$am_save_LIBS"
15443     fi
15444
15445 fi
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15447 $as_echo "$am_cv_func_iconv" >&6; }
15448   if test "$am_cv_func_iconv" = yes; then
15449
15450 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15451
15452   fi
15453   if test "$am_cv_lib_iconv" = yes; then
15454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15455 $as_echo_n "checking how to link with libiconv... " >&6; }
15456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15457 $as_echo "$LIBICONV" >&6; }
15458   else
15459             CPPFLAGS="$am_save_CPPFLAGS"
15460     LIBICONV=
15461     LTLIBICONV=
15462   fi
15463
15464
15465
15466
15467
15468
15469     use_additional=yes
15470
15471   acl_save_prefix="$prefix"
15472   prefix="$acl_final_prefix"
15473   acl_save_exec_prefix="$exec_prefix"
15474   exec_prefix="$acl_final_exec_prefix"
15475
15476     eval additional_includedir=\"$includedir\"
15477     eval additional_libdir=\"$libdir\"
15478
15479   exec_prefix="$acl_save_exec_prefix"
15480   prefix="$acl_save_prefix"
15481
15482
15483 # Check whether --with-libintl-prefix was given.
15484 if test "${with_libintl_prefix+set}" = set; then :
15485   withval=$with_libintl_prefix;
15486     if test "X$withval" = "Xno"; then
15487       use_additional=no
15488     else
15489       if test "X$withval" = "X"; then
15490
15491   acl_save_prefix="$prefix"
15492   prefix="$acl_final_prefix"
15493   acl_save_exec_prefix="$exec_prefix"
15494   exec_prefix="$acl_final_exec_prefix"
15495
15496           eval additional_includedir=\"$includedir\"
15497           eval additional_libdir=\"$libdir\"
15498
15499   exec_prefix="$acl_save_exec_prefix"
15500   prefix="$acl_save_prefix"
15501
15502       else
15503         additional_includedir="$withval/include"
15504         additional_libdir="$withval/lib"
15505       fi
15506     fi
15507
15508 fi
15509
15510       LIBINTL=
15511   LTLIBINTL=
15512   INCINTL=
15513   rpathdirs=
15514   ltrpathdirs=
15515   names_already_handled=
15516   names_next_round='intl '
15517   while test -n "$names_next_round"; do
15518     names_this_round="$names_next_round"
15519     names_next_round=
15520     for name in $names_this_round; do
15521       already_handled=
15522       for n in $names_already_handled; do
15523         if test "$n" = "$name"; then
15524           already_handled=yes
15525           break
15526         fi
15527       done
15528       if test -z "$already_handled"; then
15529         names_already_handled="$names_already_handled $name"
15530                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15531         eval value=\"\$HAVE_LIB$uppername\"
15532         if test -n "$value"; then
15533           if test "$value" = yes; then
15534             eval value=\"\$LIB$uppername\"
15535             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15536             eval value=\"\$LTLIB$uppername\"
15537             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15538           else
15539                                     :
15540           fi
15541         else
15542                               found_dir=
15543           found_la=
15544           found_so=
15545           found_a=
15546           if test $use_additional = yes; then
15547             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15548               found_dir="$additional_libdir"
15549               found_so="$additional_libdir/lib$name.$shlibext"
15550               if test -f "$additional_libdir/lib$name.la"; then
15551                 found_la="$additional_libdir/lib$name.la"
15552               fi
15553             else
15554               if test -f "$additional_libdir/lib$name.$libext"; then
15555                 found_dir="$additional_libdir"
15556                 found_a="$additional_libdir/lib$name.$libext"
15557                 if test -f "$additional_libdir/lib$name.la"; then
15558                   found_la="$additional_libdir/lib$name.la"
15559                 fi
15560               fi
15561             fi
15562           fi
15563           if test "X$found_dir" = "X"; then
15564             for x in $LDFLAGS $LTLIBINTL; do
15565
15566   acl_save_prefix="$prefix"
15567   prefix="$acl_final_prefix"
15568   acl_save_exec_prefix="$exec_prefix"
15569   exec_prefix="$acl_final_exec_prefix"
15570   eval x=\"$x\"
15571   exec_prefix="$acl_save_exec_prefix"
15572   prefix="$acl_save_prefix"
15573
15574               case "$x" in
15575                 -L*)
15576                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15577                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15578                     found_dir="$dir"
15579                     found_so="$dir/lib$name.$shlibext"
15580                     if test -f "$dir/lib$name.la"; then
15581                       found_la="$dir/lib$name.la"
15582                     fi
15583                   else
15584                     if test -f "$dir/lib$name.$libext"; then
15585                       found_dir="$dir"
15586                       found_a="$dir/lib$name.$libext"
15587                       if test -f "$dir/lib$name.la"; then
15588                         found_la="$dir/lib$name.la"
15589                       fi
15590                     fi
15591                   fi
15592                   ;;
15593               esac
15594               if test "X$found_dir" != "X"; then
15595                 break
15596               fi
15597             done
15598           fi
15599           if test "X$found_dir" != "X"; then
15600                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15601             if test "X$found_so" != "X"; then
15602                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15603                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15604               else
15605                                                                                 haveit=
15606                 for x in $ltrpathdirs; do
15607                   if test "X$x" = "X$found_dir"; then
15608                     haveit=yes
15609                     break
15610                   fi
15611                 done
15612                 if test -z "$haveit"; then
15613                   ltrpathdirs="$ltrpathdirs $found_dir"
15614                 fi
15615                                 if test "$hardcode_direct" = yes; then
15616                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15617                 else
15618                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15619                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15620                                                             haveit=
15621                     for x in $rpathdirs; do
15622                       if test "X$x" = "X$found_dir"; then
15623                         haveit=yes
15624                         break
15625                       fi
15626                     done
15627                     if test -z "$haveit"; then
15628                       rpathdirs="$rpathdirs $found_dir"
15629                     fi
15630                   else
15631                                                                                 haveit=
15632                     for x in $LDFLAGS $LIBINTL; do
15633
15634   acl_save_prefix="$prefix"
15635   prefix="$acl_final_prefix"
15636   acl_save_exec_prefix="$exec_prefix"
15637   exec_prefix="$acl_final_exec_prefix"
15638   eval x=\"$x\"
15639   exec_prefix="$acl_save_exec_prefix"
15640   prefix="$acl_save_prefix"
15641
15642                       if test "X$x" = "X-L$found_dir"; then
15643                         haveit=yes
15644                         break
15645                       fi
15646                     done
15647                     if test -z "$haveit"; then
15648                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15649                     fi
15650                     if test "$hardcode_minus_L" != no; then
15651                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15652                     else
15653                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15654                     fi
15655                   fi
15656                 fi
15657               fi
15658             else
15659               if test "X$found_a" != "X"; then
15660                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15661               else
15662                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15663               fi
15664             fi
15665                         additional_includedir=
15666             case "$found_dir" in
15667               */lib | */lib/)
15668                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15669                 additional_includedir="$basedir/include"
15670                 ;;
15671             esac
15672             if test "X$additional_includedir" != "X"; then
15673                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15674                 haveit=
15675                 if test "X$additional_includedir" = "X/usr/local/include"; then
15676                   if test -n "$GCC"; then
15677                     case $host_os in
15678                       linux*) haveit=yes;;
15679                     esac
15680                   fi
15681                 fi
15682                 if test -z "$haveit"; then
15683                   for x in $CPPFLAGS $INCINTL; do
15684
15685   acl_save_prefix="$prefix"
15686   prefix="$acl_final_prefix"
15687   acl_save_exec_prefix="$exec_prefix"
15688   exec_prefix="$acl_final_exec_prefix"
15689   eval x=\"$x\"
15690   exec_prefix="$acl_save_exec_prefix"
15691   prefix="$acl_save_prefix"
15692
15693                     if test "X$x" = "X-I$additional_includedir"; then
15694                       haveit=yes
15695                       break
15696                     fi
15697                   done
15698                   if test -z "$haveit"; then
15699                     if test -d "$additional_includedir"; then
15700                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15701                     fi
15702                   fi
15703                 fi
15704               fi
15705             fi
15706                         if test -n "$found_la"; then
15707                                                         save_libdir="$libdir"
15708               case "$found_la" in
15709                 */* | *\\*) . "$found_la" ;;
15710                 *) . "./$found_la" ;;
15711               esac
15712               libdir="$save_libdir"
15713                             for dep in $dependency_libs; do
15714                 case "$dep" in
15715                   -L*)
15716                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15717                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
15718                       haveit=
15719                       if test "X$additional_libdir" = "X/usr/local/lib"; then
15720                         if test -n "$GCC"; then
15721                           case $host_os in
15722                             linux*) haveit=yes;;
15723                           esac
15724                         fi
15725                       fi
15726                       if test -z "$haveit"; then
15727                         haveit=
15728                         for x in $LDFLAGS $LIBINTL; do
15729
15730   acl_save_prefix="$prefix"
15731   prefix="$acl_final_prefix"
15732   acl_save_exec_prefix="$exec_prefix"
15733   exec_prefix="$acl_final_exec_prefix"
15734   eval x=\"$x\"
15735   exec_prefix="$acl_save_exec_prefix"
15736   prefix="$acl_save_prefix"
15737
15738                           if test "X$x" = "X-L$additional_libdir"; then
15739                             haveit=yes
15740                             break
15741                           fi
15742                         done
15743                         if test -z "$haveit"; then
15744                           if test -d "$additional_libdir"; then
15745                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15746                           fi
15747                         fi
15748                         haveit=
15749                         for x in $LDFLAGS $LTLIBINTL; do
15750
15751   acl_save_prefix="$prefix"
15752   prefix="$acl_final_prefix"
15753   acl_save_exec_prefix="$exec_prefix"
15754   exec_prefix="$acl_final_exec_prefix"
15755   eval x=\"$x\"
15756   exec_prefix="$acl_save_exec_prefix"
15757   prefix="$acl_save_prefix"
15758
15759                           if test "X$x" = "X-L$additional_libdir"; then
15760                             haveit=yes
15761                             break
15762                           fi
15763                         done
15764                         if test -z "$haveit"; then
15765                           if test -d "$additional_libdir"; then
15766                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15767                           fi
15768                         fi
15769                       fi
15770                     fi
15771                     ;;
15772                   -R*)
15773                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15774                     if test "$enable_rpath" != no; then
15775                                                                   haveit=
15776                       for x in $rpathdirs; do
15777                         if test "X$x" = "X$dir"; then
15778                           haveit=yes
15779                           break
15780                         fi
15781                       done
15782                       if test -z "$haveit"; then
15783                         rpathdirs="$rpathdirs $dir"
15784                       fi
15785                                                                   haveit=
15786                       for x in $ltrpathdirs; do
15787                         if test "X$x" = "X$dir"; then
15788                           haveit=yes
15789                           break
15790                         fi
15791                       done
15792                       if test -z "$haveit"; then
15793                         ltrpathdirs="$ltrpathdirs $dir"
15794                       fi
15795                     fi
15796                     ;;
15797                   -l*)
15798                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15799                     ;;
15800                   *.la)
15801                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15802                     ;;
15803                   *)
15804                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15805                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15806                     ;;
15807                 esac
15808               done
15809             fi
15810           else
15811                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15812             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15813           fi
15814         fi
15815       fi
15816     done
15817   done
15818   if test "X$rpathdirs" != "X"; then
15819     if test -n "$hardcode_libdir_separator"; then
15820                         alldirs=
15821       for found_dir in $rpathdirs; do
15822         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15823       done
15824             acl_save_libdir="$libdir"
15825       libdir="$alldirs"
15826       eval flag=\"$hardcode_libdir_flag_spec\"
15827       libdir="$acl_save_libdir"
15828       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15829     else
15830             for found_dir in $rpathdirs; do
15831         acl_save_libdir="$libdir"
15832         libdir="$found_dir"
15833         eval flag=\"$hardcode_libdir_flag_spec\"
15834         libdir="$acl_save_libdir"
15835         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15836       done
15837     fi
15838   fi
15839   if test "X$ltrpathdirs" != "X"; then
15840             for found_dir in $ltrpathdirs; do
15841       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15842     done
15843   fi
15844
15845           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15846 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15847 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
15848   $as_echo_n "(cached) " >&6
15849 else
15850   gt_save_CPPFLAGS="$CPPFLAGS"
15851             CPPFLAGS="$CPPFLAGS $INCINTL"
15852             gt_save_LIBS="$LIBS"
15853             LIBS="$LIBS $LIBINTL"
15854                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h.  */
15856 #include <libintl.h>
15857 extern int _nl_msg_cat_cntr;
15858 extern
15859 #ifdef __cplusplus
15860 "C"
15861 #endif
15862 const char *_nl_expand_alias ();
15863 int
15864 main ()
15865 {
15866 bindtextdomain ("", "");
15867 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15868   ;
15869   return 0;
15870 }
15871 _ACEOF
15872 if ac_fn_c_try_link "$LINENO"; then :
15873   gt_cv_func_gnugettext1_libintl=yes
15874 else
15875   gt_cv_func_gnugettext1_libintl=no
15876 fi
15877 rm -f core conftest.err conftest.$ac_objext \
15878     conftest$ac_exeext conftest.$ac_ext
15879                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
15880               LIBS="$LIBS $LIBICONV"
15881               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h.  */
15883 #include <libintl.h>
15884 extern int _nl_msg_cat_cntr;
15885 extern
15886 #ifdef __cplusplus
15887 "C"
15888 #endif
15889 const char *_nl_expand_alias ();
15890 int
15891 main ()
15892 {
15893 bindtextdomain ("", "");
15894 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 if ac_fn_c_try_link "$LINENO"; then :
15900   LIBINTL="$LIBINTL $LIBICONV"
15901                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15902                 gt_cv_func_gnugettext1_libintl=yes
15903
15904 fi
15905 rm -f core conftest.err conftest.$ac_objext \
15906     conftest$ac_exeext conftest.$ac_ext
15907             fi
15908             CPPFLAGS="$gt_save_CPPFLAGS"
15909             LIBS="$gt_save_LIBS"
15910 fi
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
15912 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
15913         fi
15914
15915                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
15916            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
15917                 && test "$PACKAGE" != gettext-runtime \
15918                 && test "$PACKAGE" != gettext-tools; }; then
15919           gt_use_preinstalled_gnugettext=yes
15920         else
15921                     LIBINTL=
15922           LTLIBINTL=
15923           INCINTL=
15924         fi
15925
15926
15927
15928     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15929        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15930
15931 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15932
15933     else
15934       USE_NLS=no
15935     fi
15936   fi
15937
15938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15939 $as_echo_n "checking whether to use NLS... " >&6; }
15940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15941 $as_echo "$USE_NLS" >&6; }
15942   if test "$USE_NLS" = "yes"; then
15943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15944 $as_echo_n "checking where the gettext function comes from... " >&6; }
15945     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15946       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15947         gt_source="external libintl"
15948       else
15949         gt_source="libc"
15950       fi
15951     else
15952       gt_source="included intl directory"
15953     fi
15954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15955 $as_echo "$gt_source" >&6; }
15956   fi
15957
15958   if test "$USE_NLS" = "yes"; then
15959
15960     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15961       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15963 $as_echo_n "checking how to link with libintl... " >&6; }
15964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15965 $as_echo "$LIBINTL" >&6; }
15966
15967   for element in $INCINTL; do
15968     haveit=
15969     for x in $CPPFLAGS; do
15970
15971   acl_save_prefix="$prefix"
15972   prefix="$acl_final_prefix"
15973   acl_save_exec_prefix="$exec_prefix"
15974   exec_prefix="$acl_final_exec_prefix"
15975   eval x=\"$x\"
15976   exec_prefix="$acl_save_exec_prefix"
15977   prefix="$acl_save_prefix"
15978
15979       if test "X$x" = "X$element"; then
15980         haveit=yes
15981         break
15982       fi
15983     done
15984     if test -z "$haveit"; then
15985       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15986     fi
15987   done
15988
15989       fi
15990
15991
15992 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15993
15994
15995 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15996
15997     fi
15998
15999         POSUB=po
16000   fi
16001
16002
16003
16004     INTLLIBS="$LIBINTL"
16005
16006
16007
16008
16009
16010
16011 if test -d "$srcdir/po"
16012 then
16013     ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
16014 else
16015     ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
16016 fi
16017
16018
16019 # Check whether --with-ncurses was given.
16020 if test "${with_ncurses+set}" = set; then :
16021   withval=$with_ncurses;
16022 else
16023   with_ncurses=auto
16024
16025 fi
16026
16027  if false; then
16028   HAVE_NCURSES_TRUE=
16029   HAVE_NCURSES_FALSE='#'
16030 else
16031   HAVE_NCURSES_TRUE='#'
16032   HAVE_NCURSES_FALSE=
16033 fi
16034
16035
16036 if test "x$with_ncurses" != xno; then
16037   have_ncurses=no
16038   for ac_header in ncurses.h ncurses/ncurses.h
16039 do :
16040   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16043   cat >>confdefs.h <<_ACEOF
16044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16045 _ACEOF
16046
16047     if test "x$with_ncurses" = xauto; then
16048
16049
16050   have_ncurses=yes
16051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
16052 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
16053 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
16054   $as_echo_n "(cached) " >&6
16055 else
16056   ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-lncursesw  $LIBS"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h.  */
16060
16061 /* Override any GCC internal prototype to avoid an error.
16062    Use char because int might match the return type of a GCC
16063    builtin and then its argument prototype would still apply.  */
16064 #ifdef __cplusplus
16065 extern "C"
16066 #endif
16067 char initscr ();
16068 int
16069 main ()
16070 {
16071 return initscr ();
16072   ;
16073   return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"; then :
16077   ac_cv_lib_ncursesw_initscr=yes
16078 else
16079   ac_cv_lib_ncursesw_initscr=no
16080 fi
16081 rm -f core conftest.err conftest.$ac_objext \
16082     conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16084 fi
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
16086 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
16087 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
16088   cat >>confdefs.h <<_ACEOF
16089 #define HAVE_LIBNCURSESW 1
16090 _ACEOF
16091
16092   LIBS="-lncursesw $LIBS"
16093
16094 else
16095   have_ncurses=no
16096 fi
16097
16098    if test $have_ncurses = yes; then
16099   HAVE_NCURSES_TRUE=
16100   HAVE_NCURSES_FALSE='#'
16101 else
16102   HAVE_NCURSES_TRUE='#'
16103   HAVE_NCURSES_FALSE=
16104 fi
16105
16106
16107       if test "x$have_ncurses" = xyes; then
16108         for ac_header in ncursesw/ncurses.h
16109 do :
16110   ac_fn_c_check_header_mongrel "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
16111 if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes; then :
16112   cat >>confdefs.h <<_ACEOF
16113 #define HAVE_NCURSESW_NCURSES_H 1
16114 _ACEOF
16115
16116 fi
16117
16118 done
16119
16120         NCURSES_LIBS="-lncursesw"
16121       fi
16122     fi
16123     if test "x$have_ncurses" = xno; then
16124
16125
16126   have_ncurses=yes
16127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
16128 $as_echo_n "checking for initscr in -lncurses... " >&6; }
16129 if ${ac_cv_lib_ncurses_initscr+:} false; then :
16130   $as_echo_n "(cached) " >&6
16131 else
16132   ac_check_lib_save_LIBS=$LIBS
16133 LIBS="-lncurses  $LIBS"
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h.  */
16136
16137 /* Override any GCC internal prototype to avoid an error.
16138    Use char because int might match the return type of a GCC
16139    builtin and then its argument prototype would still apply.  */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 char initscr ();
16144 int
16145 main ()
16146 {
16147 return initscr ();
16148   ;
16149   return 0;
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_link "$LINENO"; then :
16153   ac_cv_lib_ncurses_initscr=yes
16154 else
16155   ac_cv_lib_ncurses_initscr=no
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext \
16158     conftest$ac_exeext conftest.$ac_ext
16159 LIBS=$ac_check_lib_save_LIBS
16160 fi
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
16162 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
16163 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
16164   cat >>confdefs.h <<_ACEOF
16165 #define HAVE_LIBNCURSES 1
16166 _ACEOF
16167
16168   LIBS="-lncurses $LIBS"
16169
16170 else
16171   have_ncurses=no
16172 fi
16173
16174    if test $have_ncurses = yes; then
16175   HAVE_NCURSES_TRUE=
16176   HAVE_NCURSES_FALSE='#'
16177 else
16178   HAVE_NCURSES_TRUE='#'
16179   HAVE_NCURSES_FALSE=
16180 fi
16181
16182
16183       if test "x$have_ncurses" = xyes; then
16184         NCURSES_LIBS="-lncurses"
16185       fi
16186     fi
16187
16188 fi
16189
16190 done
16191
16192   if test "x$have_ncurses" = xno; then
16193     as_fn_error $? "ncurses or ncursesw selected, but library not found (--without-ncurses to disable)" "$LINENO" 5
16194   fi
16195 fi
16196
16197
16198
16199
16200 # Check whether --with-slang was given.
16201 if test "${with_slang+set}" = set; then :
16202   withval=$with_slang;
16203 else
16204   with_slang=no
16205
16206 fi
16207
16208
16209 have_tinfo=no
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
16211 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
16212 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
16213   $as_echo_n "(cached) " >&6
16214 else
16215   ac_check_lib_save_LIBS=$LIBS
16216 LIBS="-ltinfo  $LIBS"
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h.  */
16219
16220 /* Override any GCC internal prototype to avoid an error.
16221    Use char because int might match the return type of a GCC
16222    builtin and then its argument prototype would still apply.  */
16223 #ifdef __cplusplus
16224 extern "C"
16225 #endif
16226 char tgetent ();
16227 int
16228 main ()
16229 {
16230 return tgetent ();
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 if ac_fn_c_try_link "$LINENO"; then :
16236   ac_cv_lib_tinfo_tgetent=yes
16237 else
16238   ac_cv_lib_tinfo_tgetent=no
16239 fi
16240 rm -f core conftest.err conftest.$ac_objext \
16241     conftest$ac_exeext conftest.$ac_ext
16242 LIBS=$ac_check_lib_save_LIBS
16243 fi
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
16245 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
16246 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
16247   have_tinfo=yes
16248 fi
16249
16250  if test "x$have_tinfo" = xyes; then
16251   HAVE_TINFO_TRUE=
16252   HAVE_TINFO_FALSE='#'
16253 else
16254   HAVE_TINFO_TRUE='#'
16255   HAVE_TINFO_FALSE=
16256 fi
16257
16258
16259 use_slang=no
16260 if test "x$with_slang" = xyes; then
16261   for ac_header in slang.h slang/slang.h
16262 do :
16263   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16264 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16265 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16266   cat >>confdefs.h <<_ACEOF
16267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16268 _ACEOF
16269
16270 fi
16271
16272 done
16273
16274   for ac_header in slcurses.h slang/slcurses.h
16275 do :
16276   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16278 #ifdef HAVE_SLANG_H
16279 #include <slang.h>
16280 #elif defined(HAVE_SLANG_SLANG_H)
16281 #include <slang/slang.h>
16282 #endif
16283
16284 "
16285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16286   cat >>confdefs.h <<_ACEOF
16287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16288 _ACEOF
16289  use_slang=yes
16290 fi
16291
16292 done
16293
16294   if test "x$use_slang" = xno; then
16295     as_fn_error $? "slang selected but slcurses.h not found" "$LINENO" 5
16296   fi
16297 fi
16298  if test "x$use_slang" = xyes; then
16299   USE_SLANG_TRUE=
16300   USE_SLANG_FALSE='#'
16301 else
16302   USE_SLANG_TRUE='#'
16303   USE_SLANG_FALSE=
16304 fi
16305
16306
16307
16308
16309 # Check whether --with-utempter was given.
16310 if test "${with_utempter+set}" = set; then :
16311   withval=$with_utempter;
16312 else
16313   with_utempter=no
16314
16315 fi
16316
16317
16318 if test "x$with_utempter" = xyes; then
16319
16320
16321   have_utempter=yes
16322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utempter_add_record in -lutempter" >&5
16323 $as_echo_n "checking for utempter_add_record in -lutempter... " >&6; }
16324 if ${ac_cv_lib_utempter_utempter_add_record+:} false; then :
16325   $as_echo_n "(cached) " >&6
16326 else
16327   ac_check_lib_save_LIBS=$LIBS
16328 LIBS="-lutempter  $LIBS"
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h.  */
16331
16332 /* Override any GCC internal prototype to avoid an error.
16333    Use char because int might match the return type of a GCC
16334    builtin and then its argument prototype would still apply.  */
16335 #ifdef __cplusplus
16336 extern "C"
16337 #endif
16338 char utempter_add_record ();
16339 int
16340 main ()
16341 {
16342 return utempter_add_record ();
16343   ;
16344   return 0;
16345 }
16346 _ACEOF
16347 if ac_fn_c_try_link "$LINENO"; then :
16348   ac_cv_lib_utempter_utempter_add_record=yes
16349 else
16350   ac_cv_lib_utempter_utempter_add_record=no
16351 fi
16352 rm -f core conftest.err conftest.$ac_objext \
16353     conftest$ac_exeext conftest.$ac_ext
16354 LIBS=$ac_check_lib_save_LIBS
16355 fi
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utempter_utempter_add_record" >&5
16357 $as_echo "$ac_cv_lib_utempter_utempter_add_record" >&6; }
16358 if test "x$ac_cv_lib_utempter_utempter_add_record" = xyes; then :
16359   cat >>confdefs.h <<_ACEOF
16360 #define HAVE_LIBUTEMPTER 1
16361 _ACEOF
16362
16363   LIBS="-lutempter $LIBS"
16364
16365 else
16366   have_utempter=no
16367 fi
16368
16369    if test $have_utempter = yes; then
16370   HAVE_UTEMPTER_TRUE=
16371   HAVE_UTEMPTER_FALSE='#'
16372 else
16373   HAVE_UTEMPTER_TRUE='#'
16374   HAVE_UTEMPTER_FALSE=
16375 fi
16376
16377
16378   if test "x$have_utempter" = xno; then
16379     as_fn_error $? "utempter selected but libutempter not found" "$LINENO" 5
16380   fi
16381 else
16382    if false; then
16383   HAVE_UTEMPTER_TRUE=
16384   HAVE_UTEMPTER_FALSE='#'
16385 else
16386   HAVE_UTEMPTER_TRUE='#'
16387   HAVE_UTEMPTER_FALSE=
16388 fi
16389
16390 fi
16391
16392 # on Solaris, you can't mix and match standards, since we use c99
16393 # aparently at this stage, XOPEN_SOURCE will conflict.  As workaround,
16394 # check for crypt.h and use that without XOPEN_SOURCE.
16395 for ac_header in crypt.h
16396 do :
16397   ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_crypt_h" = xyes; then :
16399   cat >>confdefs.h <<_ACEOF
16400 #define HAVE_CRYPT_H 1
16401 _ACEOF
16402
16403 fi
16404
16405 done
16406
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h.  */
16409
16410 #ifdef HAVE_CRYPT_H
16411 #include <crypt.h>
16412 #else
16413 #define _XOPEN_SOURCE
16414 #include <unistd.h>
16415 #endif
16416
16417 int
16418 main ()
16419 {
16420
16421 char *c = crypt("abc","pw");
16422
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 if ac_fn_c_try_link "$LINENO"; then :
16428
16429 else
16430
16431   LIBS="$LIBS -lcrypt"
16432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h.  */
16434
16435   #ifdef HAVE_CRYPT_H
16436   #include <crypt.h>
16437   #else
16438   #define _XOPEN_SOURCE
16439   #include <unistd.h>
16440   #endif
16441
16442 int
16443 main ()
16444 {
16445
16446   char *c = crypt("abc","pw");
16447
16448   ;
16449   return 0;
16450 }
16451 _ACEOF
16452 if ac_fn_c_try_compile "$LINENO"; then :
16453
16454
16455 $as_echo "#define NEED_LIBCRYPT 1" >>confdefs.h
16456
16457   need_libcrypt=yes
16458
16459 else
16460
16461   as_fn_error $? "crypt() is not available" "$LINENO" 5
16462
16463 fi
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465
16466 fi
16467 rm -f core conftest.err conftest.$ac_objext \
16468     conftest$ac_exeext conftest.$ac_ext
16469
16470  if test "x$need_libcrypt" = xyes; then
16471   NEED_LIBCRYPT_TRUE=
16472   NEED_LIBCRYPT_FALSE='#'
16473 else
16474   NEED_LIBCRYPT_TRUE='#'
16475   NEED_LIBCRYPT_FALSE=
16476 fi
16477
16478
16479 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
16480 #include <sys/sem.h>
16481
16482 "
16483 if test "x$ac_cv_type_union_semun" = xyes; then :
16484
16485 cat >>confdefs.h <<_ACEOF
16486 #define HAVE_UNION_SEMUN 1
16487 _ACEOF
16488
16489
16490 fi
16491
16492 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
16493 if test "x$ac_cv_type_loff_t" = xyes; then :
16494
16495 cat >>confdefs.h <<_ACEOF
16496 #define HAVE_LOFF_T 1
16497 _ACEOF
16498
16499
16500 fi
16501
16502
16503
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h.  */
16506
16507 #include <wchar.h>
16508 #include <wctype.h>
16509 #include <stdio.h>
16510
16511 int
16512 main ()
16513 {
16514
16515   wchar_t wc;
16516   wint_t w;
16517   w = fgetwc(stdin);
16518   if (w == WEOF) exit(1);
16519   wc = w;
16520   fputwc(wc,stdout);
16521
16522   ;
16523   return 0;
16524 }
16525 _ACEOF
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527
16528 $as_echo "#define HAVE_WIDECHAR 1" >>confdefs.h
16529
16530
16531 fi
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall pivot_root" >&5
16545 $as_echo_n "checking for syscall pivot_root... " >&6; }
16546 if ${util_cv_syscall_pivot_root+:} false; then :
16547   $as_echo_n "(cached) " >&6
16548 else
16549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h.  */
16551
16552 #include <sys/syscall.h>
16553 #include <unistd.h>
16554
16555 int
16556 main ()
16557 {
16558 int test = SYS_pivot_root;
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_compile "$LINENO"; then :
16564   syscall=SYS_pivot_root
16565 else
16566               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h.  */
16568
16569 #include <sys/syscall.h>
16570 #include <unistd.h>
16571
16572 int
16573 main ()
16574 {
16575 int test = _NR_pivot_root;
16576   ;
16577   return 0;
16578 }
16579 _ACEOF
16580 if ac_fn_c_try_compile "$LINENO"; then :
16581   syscall=_NR_pivot_root
16582 else
16583
16584           syscall=no
16585           if test "x$linux_os" = xyes; then
16586             case $host_cpu in
16587
16588             esac
16589           fi
16590
16591 fi
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593
16594
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597
16598     util_cv_syscall_pivot_root=$syscall
16599
16600 fi
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_pivot_root" >&5
16602 $as_echo "$util_cv_syscall_pivot_root" >&6; }
16603    if test "x$util_cv_syscall_pivot_root" != xno; then
16604   HAVE_PIVOT_ROOT_TRUE=
16605   HAVE_PIVOT_ROOT_FALSE='#'
16606 else
16607   HAVE_PIVOT_ROOT_TRUE='#'
16608   HAVE_PIVOT_ROOT_FALSE=
16609 fi
16610
16611   case $util_cv_syscall_pivot_root in #(
16612   no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall pivot_root." >&5
16613 $as_echo "$as_me: WARNING: Unable to detect syscall pivot_root." >&2;} ;;
16614   SYS_*) ;;
16615   *)
16616 cat >>confdefs.h <<_ACEOF
16617 #define SYS_pivot_root $util_cv_syscall_pivot_root
16618 _ACEOF
16619  ;;
16620   esac
16621
16622
16623
16624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall sched_getaffinity" >&5
16625 $as_echo_n "checking for syscall sched_getaffinity... " >&6; }
16626 if ${util_cv_syscall_sched_getaffinity+:} false; then :
16627   $as_echo_n "(cached) " >&6
16628 else
16629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h.  */
16631
16632 #include <sys/syscall.h>
16633 #include <unistd.h>
16634
16635 int
16636 main ()
16637 {
16638 int test = SYS_sched_getaffinity;
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 if ac_fn_c_try_compile "$LINENO"; then :
16644   syscall=SYS_sched_getaffinity
16645 else
16646               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h.  */
16648
16649 #include <sys/syscall.h>
16650 #include <unistd.h>
16651
16652 int
16653 main ()
16654 {
16655 int test = _NR_sched_getaffinity;
16656   ;
16657   return 0;
16658 }
16659 _ACEOF
16660 if ac_fn_c_try_compile "$LINENO"; then :
16661   syscall=_NR_sched_getaffinity
16662 else
16663
16664           syscall=no
16665           if test "x$linux_os" = xyes; then
16666             case $host_cpu in
16667
16668             esac
16669           fi
16670
16671 fi
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673
16674
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677
16678     util_cv_syscall_sched_getaffinity=$syscall
16679
16680 fi
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_sched_getaffinity" >&5
16682 $as_echo "$util_cv_syscall_sched_getaffinity" >&6; }
16683    if test "x$util_cv_syscall_sched_getaffinity" != xno; then
16684   HAVE_SCHED_GETAFFINITY_TRUE=
16685   HAVE_SCHED_GETAFFINITY_FALSE='#'
16686 else
16687   HAVE_SCHED_GETAFFINITY_TRUE='#'
16688   HAVE_SCHED_GETAFFINITY_FALSE=
16689 fi
16690
16691   case $util_cv_syscall_sched_getaffinity in #(
16692   no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall sched_getaffinity." >&5
16693 $as_echo "$as_me: WARNING: Unable to detect syscall sched_getaffinity." >&2;} ;;
16694   SYS_*) ;;
16695   *)
16696 cat >>confdefs.h <<_ACEOF
16697 #define SYS_sched_getaffinity $util_cv_syscall_sched_getaffinity
16698 _ACEOF
16699  ;;
16700   esac
16701
16702
16703
16704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall ioprio_set" >&5
16705 $as_echo_n "checking for syscall ioprio_set... " >&6; }
16706 if ${util_cv_syscall_ioprio_set+:} false; then :
16707   $as_echo_n "(cached) " >&6
16708 else
16709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h.  */
16711
16712 #include <sys/syscall.h>
16713 #include <unistd.h>
16714
16715 int
16716 main ()
16717 {
16718 int test = SYS_ioprio_set;
16719   ;
16720   return 0;
16721 }
16722 _ACEOF
16723 if ac_fn_c_try_compile "$LINENO"; then :
16724   syscall=SYS_ioprio_set
16725 else
16726               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h.  */
16728
16729 #include <sys/syscall.h>
16730 #include <unistd.h>
16731
16732 int
16733 main ()
16734 {
16735 int test = _NR_ioprio_set;
16736   ;
16737   return 0;
16738 }
16739 _ACEOF
16740 if ac_fn_c_try_compile "$LINENO"; then :
16741   syscall=_NR_ioprio_set
16742 else
16743
16744           syscall=no
16745           if test "x$linux_os" = xyes; then
16746             case $host_cpu in
16747               #(
16748   alpha) syscall="442" ;;  #(
16749   i*86) syscall="289" ;;  #(
16750   ia64*) syscall="1274" ;;  #(
16751   powerpc*) syscall="273" ;;  #(
16752   s390*) syscall="282" ;;  #(
16753   sparc*) syscall="196" ;;  #(
16754   sh*) syscall="288" ;;  #(
16755   x86_64*) syscall="251" ;;
16756             esac
16757           fi
16758
16759 fi
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761
16762
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765
16766     util_cv_syscall_ioprio_set=$syscall
16767
16768 fi
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_ioprio_set" >&5
16770 $as_echo "$util_cv_syscall_ioprio_set" >&6; }
16771    if test "x$util_cv_syscall_ioprio_set" != xno; then
16772   HAVE_IOPRIO_SET_TRUE=
16773   HAVE_IOPRIO_SET_FALSE='#'
16774 else
16775   HAVE_IOPRIO_SET_TRUE='#'
16776   HAVE_IOPRIO_SET_FALSE=
16777 fi
16778
16779   case $util_cv_syscall_ioprio_set in #(
16780   no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall ioprio_set." >&5
16781 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_set." >&2;} ;;
16782   SYS_*) ;;
16783   *)
16784 cat >>confdefs.h <<_ACEOF
16785 #define SYS_ioprio_set $util_cv_syscall_ioprio_set
16786 _ACEOF
16787  ;;
16788   esac
16789
16790
16791
16792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall ioprio_get" >&5
16793 $as_echo_n "checking for syscall ioprio_get... " >&6; }
16794 if ${util_cv_syscall_ioprio_get+:} false; then :
16795   $as_echo_n "(cached) " >&6
16796 else
16797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798 /* end confdefs.h.  */
16799
16800 #include <sys/syscall.h>
16801 #include <unistd.h>
16802
16803 int
16804 main ()
16805 {
16806 int test = SYS_ioprio_get;
16807   ;
16808   return 0;
16809 }
16810 _ACEOF
16811 if ac_fn_c_try_compile "$LINENO"; then :
16812   syscall=SYS_ioprio_get
16813 else
16814               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h.  */
16816
16817 #include <sys/syscall.h>
16818 #include <unistd.h>
16819
16820 int
16821 main ()
16822 {
16823 int test = _NR_ioprio_get;
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 if ac_fn_c_try_compile "$LINENO"; then :
16829   syscall=_NR_ioprio_get
16830 else
16831
16832           syscall=no
16833           if test "x$linux_os" = xyes; then
16834             case $host_cpu in
16835               #(
16836   alpha) syscall="443" ;;  #(
16837   i*86) syscall="290" ;;  #(
16838   ia64*) syscall="1275" ;;  #(
16839   powerpc*) syscall="274" ;;  #(
16840   s390*) syscall="283" ;;  #(
16841   sparc*) syscall="218" ;;  #(
16842   sh*) syscall="289" ;;  #(
16843   x86_64*) syscall="252" ;;
16844             esac
16845           fi
16846
16847 fi
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849
16850
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853
16854     util_cv_syscall_ioprio_get=$syscall
16855
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_ioprio_get" >&5
16858 $as_echo "$util_cv_syscall_ioprio_get" >&6; }
16859    if test "x$util_cv_syscall_ioprio_get" != xno; then
16860   HAVE_IOPRIO_GET_TRUE=
16861   HAVE_IOPRIO_GET_FALSE='#'
16862 else
16863   HAVE_IOPRIO_GET_TRUE='#'
16864   HAVE_IOPRIO_GET_FALSE=
16865 fi
16866
16867   case $util_cv_syscall_ioprio_get in #(
16868   no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall ioprio_get." >&5
16869 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_get." >&2;} ;;
16870   SYS_*) ;;
16871   *)
16872 cat >>confdefs.h <<_ACEOF
16873 #define SYS_ioprio_get $util_cv_syscall_ioprio_get
16874 _ACEOF
16875  ;;
16876   esac
16877
16878
16879
16880
16881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall fallocate" >&5
16882 $as_echo_n "checking for syscall fallocate... " >&6; }
16883 if ${util_cv_syscall_fallocate+:} false; then :
16884   $as_echo_n "(cached) " >&6
16885 else
16886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h.  */
16888
16889 #include <sys/syscall.h>
16890 #include <unistd.h>
16891
16892 int
16893 main ()
16894 {
16895 int test = SYS_fallocate;
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901   syscall=SYS_fallocate
16902 else
16903               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h.  */
16905
16906 #include <sys/syscall.h>
16907 #include <unistd.h>
16908
16909 int
16910 main ()
16911 {
16912 int test = _NR_fallocate;
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 if ac_fn_c_try_compile "$LINENO"; then :
16918   syscall=_NR_fallocate
16919 else
16920
16921           syscall=no
16922           if test "x$linux_os" = xyes; then
16923             case $host_cpu in
16924
16925             esac
16926           fi
16927
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16930
16931
16932 fi
16933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16934
16935     util_cv_syscall_fallocate=$syscall
16936
16937 fi
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_fallocate" >&5
16939 $as_echo "$util_cv_syscall_fallocate" >&6; }
16940    if test "x$util_cv_syscall_fallocate" != xno; then
16941   HAVE_FALLOCATE_TRUE=
16942   HAVE_FALLOCATE_FALSE='#'
16943 else
16944   HAVE_FALLOCATE_TRUE='#'
16945   HAVE_FALLOCATE_FALSE=
16946 fi
16947
16948   case $util_cv_syscall_fallocate in #(
16949   no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall fallocate." >&5
16950 $as_echo "$as_me: WARNING: Unable to detect syscall fallocate." >&2;} ;;
16951   SYS_*) ;;
16952   *)
16953 cat >>confdefs.h <<_ACEOF
16954 #define SYS_fallocate $util_cv_syscall_fallocate
16955 _ACEOF
16956  ;;
16957   esac
16958
16959
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid fallocate() function" >&5
16961 $as_echo_n "checking for valid fallocate() function... " >&6; }
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h.  */
16964
16965
16966 #ifdef HAVE_UNISTD_H
16967 # include <unistd.h>
16968 #endif
16969 #ifdef HAVE_SYS_TYPES_H
16970 # include <sys/types.h>
16971 #endif
16972 #ifdef HAVE_LINUX_FALLOC_H
16973 # include <linux/falloc.h>
16974 #endif
16975 #ifdef HAVE_FCNTL_H
16976 # include <fcntl.h>
16977 #endif
16978
16979 int
16980 main ()
16981 {
16982
16983    long ret;
16984
16985    ret = fallocate(0, FALLOC_FL_KEEP_SIZE, 0xfffffffful, 0xfffffffful);
16986
16987    if (ret != 0) {
16988       return 1;
16989    }
16990
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 if ac_fn_c_try_link "$LINENO"; then :
16996
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16998 $as_echo "yes" >&6; }
16999
17000 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
17001
17002 else
17003
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext \
17008     conftest$ac_exeext conftest.$ac_ext
17009
17010
17011
17012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall unshare" >&5
17013 $as_echo_n "checking for syscall unshare... " >&6; }
17014 if ${util_cv_syscall_unshare+:} false; then :
17015   $as_echo_n "(cached) " >&6
17016 else
17017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h.  */
17019
17020 #include <sys/syscall.h>
17021 #include <unistd.h>
17022
17023 int
17024 main ()
17025 {
17026 int test = SYS_unshare;
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 if ac_fn_c_try_compile "$LINENO"; then :
17032   syscall=SYS_unshare
17033 else
17034               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h.  */
17036
17037 #include <sys/syscall.h>
17038 #include <unistd.h>
17039
17040 int
17041 main ()
17042 {
17043 int test = _NR_unshare;
17044   ;
17045   return 0;
17046 }
17047 _ACEOF
17048 if ac_fn_c_try_compile "$LINENO"; then :
17049   syscall=_NR_unshare
17050 else
17051
17052           syscall=no
17053           if test "x$linux_os" = xyes; then
17054             case $host_cpu in
17055
17056             esac
17057           fi
17058
17059 fi
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061
17062
17063 fi
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065
17066     util_cv_syscall_unshare=$syscall
17067
17068 fi
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_unshare" >&5
17070 $as_echo "$util_cv_syscall_unshare" >&6; }
17071    if test "x$util_cv_syscall_unshare" != xno; then
17072   HAVE_UNSHARE_TRUE=
17073   HAVE_UNSHARE_FALSE='#'
17074 else
17075   HAVE_UNSHARE_TRUE='#'
17076   HAVE_UNSHARE_FALSE=
17077 fi
17078
17079   case $util_cv_syscall_unshare in #(
17080   no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall unshare." >&5
17081 $as_echo "$as_me: WARNING: Unable to detect syscall unshare." >&2;} ;;
17082   SYS_*) ;;
17083   *)
17084 cat >>confdefs.h <<_ACEOF
17085 #define SYS_unshare $util_cv_syscall_unshare
17086 _ACEOF
17087  ;;
17088   esac
17089
17090 for ac_func in unshare
17091 do :
17092   ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
17093 if test "x$ac_cv_func_unshare" = xyes; then :
17094   cat >>confdefs.h <<_ACEOF
17095 #define HAVE_UNSHARE 1
17096 _ACEOF
17097
17098 fi
17099 done
17100
17101
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h.  */
17104
17105 #include <time.h>
17106 #include <unistd.h>
17107
17108 int
17109 main ()
17110 {
17111
17112     int a = 0;
17113     struct tm *tm = localtime(0);
17114     if (a == -1)  /* false */
17115         sleep(tm->tm_gmtoff);
17116
17117   ;
17118   return 0;
17119 }
17120 _ACEOF
17121 if ac_fn_c_try_compile "$LINENO"; then :
17122
17123 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17124
17125
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128
17129 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "#include <termios.h>
17130 "
17131 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
17132
17133 cat >>confdefs.h <<_ACEOF
17134 #define HAVE_STRUCT_TERMIOS_C_LINE 1
17135 _ACEOF
17136
17137
17138 fi
17139
17140
17141 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h>
17142 "
17143 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
17144
17145 cat >>confdefs.h <<_ACEOF
17146 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
17147 _ACEOF
17148
17149
17150 fi
17151
17152
17153 ac_fn_c_check_decl "$LINENO" "UNAME26" "ac_cv_have_decl_UNAME26" "#include <linux/personality.h>
17154 "
17155 if test "x$ac_cv_have_decl_UNAME26" = xyes; then :
17156   ac_have_decl=1
17157 else
17158   ac_have_decl=0
17159 fi
17160
17161 cat >>confdefs.h <<_ACEOF
17162 #define HAVE_DECL_UNAME26 $ac_have_decl
17163 _ACEOF
17164 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <linux/personality.h>
17165 "
17166 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
17167   ac_have_decl=1
17168 else
17169   ac_have_decl=0
17170 fi
17171
17172 cat >>confdefs.h <<_ACEOF
17173 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
17174 _ACEOF
17175 ac_fn_c_check_decl "$LINENO" "FDPIC_FUNCPTRS" "ac_cv_have_decl_FDPIC_FUNCPTRS" "#include <linux/personality.h>
17176 "
17177 if test "x$ac_cv_have_decl_FDPIC_FUNCPTRS" = xyes; then :
17178   ac_have_decl=1
17179 else
17180   ac_have_decl=0
17181 fi
17182
17183 cat >>confdefs.h <<_ACEOF
17184 #define HAVE_DECL_FDPIC_FUNCPTRS $ac_have_decl
17185 _ACEOF
17186 ac_fn_c_check_decl "$LINENO" "MMAP_PAGE_ZERO" "ac_cv_have_decl_MMAP_PAGE_ZERO" "#include <linux/personality.h>
17187 "
17188 if test "x$ac_cv_have_decl_MMAP_PAGE_ZERO" = xyes; then :
17189   ac_have_decl=1
17190 else
17191   ac_have_decl=0
17192 fi
17193
17194 cat >>confdefs.h <<_ACEOF
17195 #define HAVE_DECL_MMAP_PAGE_ZERO $ac_have_decl
17196 _ACEOF
17197 ac_fn_c_check_decl "$LINENO" "ADDR_COMPAT_LAYOUT" "ac_cv_have_decl_ADDR_COMPAT_LAYOUT" "#include <linux/personality.h>
17198 "
17199 if test "x$ac_cv_have_decl_ADDR_COMPAT_LAYOUT" = xyes; then :
17200   ac_have_decl=1
17201 else
17202   ac_have_decl=0
17203 fi
17204
17205 cat >>confdefs.h <<_ACEOF
17206 #define HAVE_DECL_ADDR_COMPAT_LAYOUT $ac_have_decl
17207 _ACEOF
17208 ac_fn_c_check_decl "$LINENO" "READ_IMPLIES_EXEC" "ac_cv_have_decl_READ_IMPLIES_EXEC" "#include <linux/personality.h>
17209 "
17210 if test "x$ac_cv_have_decl_READ_IMPLIES_EXEC" = xyes; then :
17211   ac_have_decl=1
17212 else
17213   ac_have_decl=0
17214 fi
17215
17216 cat >>confdefs.h <<_ACEOF
17217 #define HAVE_DECL_READ_IMPLIES_EXEC $ac_have_decl
17218 _ACEOF
17219 ac_fn_c_check_decl "$LINENO" "ADDR_LIMIT_32BIT" "ac_cv_have_decl_ADDR_LIMIT_32BIT" "#include <linux/personality.h>
17220 "
17221 if test "x$ac_cv_have_decl_ADDR_LIMIT_32BIT" = xyes; then :
17222   ac_have_decl=1
17223 else
17224   ac_have_decl=0
17225 fi
17226
17227 cat >>confdefs.h <<_ACEOF
17228 #define HAVE_DECL_ADDR_LIMIT_32BIT $ac_have_decl
17229 _ACEOF
17230 ac_fn_c_check_decl "$LINENO" "WHOLE_SECONDS" "ac_cv_have_decl_WHOLE_SECONDS" "#include <linux/personality.h>
17231 "
17232 if test "x$ac_cv_have_decl_WHOLE_SECONDS" = xyes; then :
17233   ac_have_decl=1
17234 else
17235   ac_have_decl=0
17236 fi
17237
17238 cat >>confdefs.h <<_ACEOF
17239 #define HAVE_DECL_WHOLE_SECONDS $ac_have_decl
17240 _ACEOF
17241 ac_fn_c_check_decl "$LINENO" "STICKY_TIMEOUTS" "ac_cv_have_decl_STICKY_TIMEOUTS" "#include <linux/personality.h>
17242 "
17243 if test "x$ac_cv_have_decl_STICKY_TIMEOUTS" = xyes; then :
17244   ac_have_decl=1
17245 else
17246   ac_have_decl=0
17247 fi
17248
17249 cat >>confdefs.h <<_ACEOF
17250 #define HAVE_DECL_STICKY_TIMEOUTS $ac_have_decl
17251 _ACEOF
17252 ac_fn_c_check_decl "$LINENO" "ADDR_LIMIT_3GB" "ac_cv_have_decl_ADDR_LIMIT_3GB" "#include <linux/personality.h>
17253 "
17254 if test "x$ac_cv_have_decl_ADDR_LIMIT_3GB" = xyes; then :
17255   ac_have_decl=1
17256 else
17257   ac_have_decl=0
17258 fi
17259
17260 cat >>confdefs.h <<_ACEOF
17261 #define HAVE_DECL_ADDR_LIMIT_3GB $ac_have_decl
17262 _ACEOF
17263
17264
17265 for ac_header in sys/swap.h
17266 do :
17267   ac_fn_c_check_header_mongrel "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" "$ac_includes_default"
17268 if test "x$ac_cv_header_sys_swap_h" = xyes; then :
17269   cat >>confdefs.h <<_ACEOF
17270 #define HAVE_SYS_SWAP_H 1
17271 _ACEOF
17272
17273 fi
17274
17275 done
17276
17277
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h.  */
17280
17281 #ifdef HAVE_SYS_SWAP_H
17282 # include <sys/swap.h>
17283 #endif
17284 #include <unistd.h>
17285
17286 int
17287 main ()
17288 {
17289 swapon("/dev/null", 0);
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 if ac_fn_c_try_compile "$LINENO"; then :
17295
17296 $as_echo "#define SWAPON_HAS_TWO_ARGS 1" >>confdefs.h
17297
17298
17299 else
17300   { $as_echo "$as_me:${as_lineno-$LINENO}: Your libc thinks that swapon has 1 arg only." >&5
17301 $as_echo "$as_me: Your libc thinks that swapon has 1 arg only." >&6;}
17302
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305
17306
17307 ac_fn_c_check_type "$LINENO" "cpu_set_t" "ac_cv_type_cpu_set_t" "
17308 #include <sched.h>
17309
17310 "
17311 if test "x$ac_cv_type_cpu_set_t" = xyes; then :
17312
17313 cat >>confdefs.h <<_ACEOF
17314 #define HAVE_CPU_SET_T 1
17315 _ACEOF
17316
17317 have_cpu_set_t=yes
17318 fi
17319
17320
17321  if test "x$have_cpu_set_t" = xyes; then
17322   HAVE_CPU_SET_T_TRUE=
17323   HAVE_CPU_SET_T_FALSE='#'
17324 else
17325   HAVE_CPU_SET_T_TRUE='#'
17326   HAVE_CPU_SET_T_FALSE=
17327 fi
17328
17329
17330 ac_fn_c_check_decl "$LINENO" "CPU_ALLOC" "ac_cv_have_decl_CPU_ALLOC" "
17331 #include <sched.h>
17332
17333 "
17334 if test "x$ac_cv_have_decl_CPU_ALLOC" = xyes; then :
17335   ac_have_decl=1
17336 else
17337   ac_have_decl=0
17338 fi
17339
17340 cat >>confdefs.h <<_ACEOF
17341 #define HAVE_DECL_CPU_ALLOC $ac_have_decl
17342 _ACEOF
17343
17344
17345
17346
17347
17348
17349   cpu_I86=false
17350   case "$host" in
17351    i?86-*) cpu_I86=true ;;
17352   esac
17353    if test "x$cpu_I86" = xtrue; then
17354   ARCH_I86_TRUE=
17355   ARCH_I86_FALSE='#'
17356 else
17357   ARCH_I86_TRUE='#'
17358   ARCH_I86_FALSE=
17359 fi
17360
17361
17362
17363   cpu_86_64=false
17364   case "$host" in
17365    x86_64*) cpu_86_64=true ;;
17366   esac
17367    if test "x$cpu_86_64" = xtrue; then
17368   ARCH_86_64_TRUE=
17369   ARCH_86_64_FALSE='#'
17370 else
17371   ARCH_86_64_TRUE='#'
17372   ARCH_86_64_FALSE=
17373 fi
17374
17375
17376
17377   cpu_IA64=false
17378   case "$host" in
17379    ia64*) cpu_IA64=true ;;
17380   esac
17381    if test "x$cpu_IA64" = xtrue; then
17382   ARCH_IA64_TRUE=
17383   ARCH_IA64_FALSE='#'
17384 else
17385   ARCH_IA64_TRUE='#'
17386   ARCH_IA64_FALSE=
17387 fi
17388
17389
17390
17391   cpu_S390=false
17392   case "$host" in
17393    s390*) cpu_S390=true ;;
17394   esac
17395    if test "x$cpu_S390" = xtrue; then
17396   ARCH_S390_TRUE=
17397   ARCH_S390_FALSE='#'
17398 else
17399   ARCH_S390_TRUE='#'
17400   ARCH_S390_FALSE=
17401 fi
17402
17403
17404
17405   cpu_SPARC=false
17406   case "$host" in
17407    sparc*) cpu_SPARC=true ;;
17408   esac
17409    if test "x$cpu_SPARC" = xtrue; then
17410   ARCH_SPARC_TRUE=
17411   ARCH_SPARC_FALSE='#'
17412 else
17413   ARCH_SPARC_TRUE='#'
17414   ARCH_SPARC_FALSE=
17415 fi
17416
17417
17418
17419   cpu_PPC=false
17420   case "$host" in
17421    ppc*|powerpc*) cpu_PPC=true ;;
17422   esac
17423    if test "x$cpu_PPC" = xtrue; then
17424   ARCH_PPC_TRUE=
17425   ARCH_PPC_FALSE='#'
17426 else
17427   ARCH_PPC_TRUE='#'
17428   ARCH_PPC_FALSE=
17429 fi
17430
17431
17432
17433   cpu_M68K=false
17434   case "$host" in
17435    m68*) cpu_M68K=true ;;
17436   esac
17437    if test "x$cpu_M68K" = xtrue; then
17438   ARCH_M68K_TRUE=
17439   ARCH_M68K_FALSE='#'
17440 else
17441   ARCH_M68K_TRUE='#'
17442   ARCH_M68K_FALSE=
17443 fi
17444
17445
17446
17447   cpu_MIPS=false
17448   case "$host" in
17449    mips*) cpu_MIPS=true ;;
17450   esac
17451    if test "x$cpu_MIPS" = xtrue; then
17452   ARCH_MIPS_TRUE=
17453   ARCH_MIPS_FALSE='#'
17454 else
17455   ARCH_MIPS_TRUE='#'
17456   ARCH_MIPS_FALSE=
17457 fi
17458
17459
17460
17461   cpu_HPPA=false
17462   case "$host" in
17463    hppa*) cpu_HPPA=true ;;
17464   esac
17465    if test "x$cpu_HPPA" = xtrue; then
17466   ARCH_HPPA_TRUE=
17467   ARCH_HPPA_FALSE='#'
17468 else
17469   ARCH_HPPA_TRUE='#'
17470   ARCH_HPPA_FALSE=
17471 fi
17472
17473
17474
17475 # Check whether --enable-arch was given.
17476 if test "${enable_arch+set}" = set; then :
17477   enableval=$enable_arch;
17478 else
17479   enable_arch=no
17480
17481 fi
17482
17483  if test "x$enable_arch" = xyes; then
17484   BUILD_ARCH_TRUE=
17485   BUILD_ARCH_FALSE='#'
17486 else
17487   BUILD_ARCH_TRUE='#'
17488   BUILD_ARCH_FALSE=
17489 fi
17490
17491
17492 # Check whether --enable-ddate was given.
17493 if test "${enable_ddate+set}" = set; then :
17494   enableval=$enable_ddate;
17495 else
17496   enable_ddate=no
17497
17498 fi
17499
17500  if test "x$enable_ddate" = xyes; then
17501   BUILD_DDATE_TRUE=
17502   BUILD_DDATE_FALSE='#'
17503 else
17504   BUILD_DDATE_TRUE='#'
17505   BUILD_DDATE_FALSE=
17506 fi
17507
17508
17509 # Check whether --enable-agetty was given.
17510 if test "${enable_agetty+set}" = set; then :
17511   enableval=$enable_agetty;
17512 else
17513   enable_agetty=yes
17514
17515 fi
17516
17517  if test "x$enable_agetty" = xyes; then
17518   BUILD_AGETTY_TRUE=
17519   BUILD_AGETTY_FALSE='#'
17520 else
17521   BUILD_AGETTY_TRUE='#'
17522   BUILD_AGETTY_FALSE=
17523 fi
17524
17525
17526 # Check whether --enable-cramfs was given.
17527 if test "${enable_cramfs+set}" = set; then :
17528   enableval=$enable_cramfs;
17529 else
17530   enable_cramfs=check
17531
17532 fi
17533
17534
17535 if test "x$enable_cramfs" = xno; then
17536   build_cramfs=no
17537 else
17538   build_cramfs=yes
17539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
17540 $as_echo_n "checking for crc32 in -lz... " >&6; }
17541 if ${ac_cv_lib_z_crc32+:} false; then :
17542   $as_echo_n "(cached) " >&6
17543 else
17544   ac_check_lib_save_LIBS=$LIBS
17545 LIBS="-lz  $LIBS"
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h.  */
17548
17549 /* Override any GCC internal prototype to avoid an error.
17550    Use char because int might match the return type of a GCC
17551    builtin and then its argument prototype would still apply.  */
17552 #ifdef __cplusplus
17553 extern "C"
17554 #endif
17555 char crc32 ();
17556 int
17557 main ()
17558 {
17559 return crc32 ();
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 if ac_fn_c_try_link "$LINENO"; then :
17565   ac_cv_lib_z_crc32=yes
17566 else
17567   ac_cv_lib_z_crc32=no
17568 fi
17569 rm -f core conftest.err conftest.$ac_objext \
17570     conftest$ac_exeext conftest.$ac_ext
17571 LIBS=$ac_check_lib_save_LIBS
17572 fi
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
17574 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17575 if test "x$ac_cv_lib_z_crc32" = xyes; then :
17576   cat >>confdefs.h <<_ACEOF
17577 #define HAVE_LIBZ 1
17578 _ACEOF
17579
17580   LIBS="-lz $LIBS"
17581
17582 else
17583   build_cramfs=no
17584 fi
17585
17586   case $enable_cramfs:$build_cramfs in
17587   yes:no) as_fn_error $? "cramfs selected but libz not found" "$LINENO" 5;;
17588   esac
17589 fi
17590  if test "x$build_cramfs" = xyes; then
17591   BUILD_CRAMFS_TRUE=
17592   BUILD_CRAMFS_FALSE='#'
17593 else
17594   BUILD_CRAMFS_TRUE='#'
17595   BUILD_CRAMFS_FALSE=
17596 fi
17597
17598
17599 build_lsblk=yes
17600 if test "x$have_openat" = xno; then
17601   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openat() function not found; do not build lsblk" >&5
17602 $as_echo "$as_me: WARNING: openat() function not found; do not build lsblk" >&2;}
17603   build_lsblk=no
17604 elif test "x$linux_os" = xno; then
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build lsblk" >&5
17606 $as_echo "$as_me: WARNING: non-linux system; do not build lsblk" >&2;}
17607   build_lsblk=no
17608 fi
17609  if test "x$build_lsblk" = xyes; then
17610   BUILD_LSBLK_TRUE=
17611   BUILD_LSBLK_FALSE='#'
17612 else
17613   BUILD_LSBLK_TRUE='#'
17614   BUILD_LSBLK_FALSE=
17615 fi
17616
17617
17618 # Check whether --enable-switch_root was given.
17619 if test "${enable_switch_root+set}" = set; then :
17620   enableval=$enable_switch_root;
17621 else
17622   enable_switch_root=check
17623
17624 fi
17625
17626 if test "x$enable_switch_root" = xno; then
17627   build_switch_root=no
17628 else
17629   build_switch_root=yes
17630   case $enable_switch_root:$linux_os in
17631   yes:no) as_fn_error $? "switch_root selected for non-linux system" "$LINENO" 5;;
17632   check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build switch_root" >&5
17633 $as_echo "$as_me: WARNING: non-linux system; do not build switch_root" >&2;}
17634             build_switch_root=no;;
17635   esac
17636   if test "x$build_switch_root" = xyes; then
17637     case $enable_switch_root:$have_openat in
17638     yes:no) as_fn_error $? "switch_root selected but openat() function not found" "$LINENO" 5;;
17639     check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openat() function not found; do not build switch_root" >&5
17640 $as_echo "$as_me: WARNING: openat() function not found; do not build switch_root" >&2;}
17641               build_switch_root=no;;
17642     esac
17643   fi
17644 fi
17645  if test "x$build_switch_root" = xyes; then
17646   BUILD_SWITCH_ROOT_TRUE=
17647   BUILD_SWITCH_ROOT_FALSE='#'
17648 else
17649   BUILD_SWITCH_ROOT_TRUE='#'
17650   BUILD_SWITCH_ROOT_FALSE=
17651 fi
17652
17653
17654
17655 # Check whether --enable-pivot_root was given.
17656 if test "${enable_pivot_root+set}" = set; then :
17657   enableval=$enable_pivot_root;
17658 else
17659   enable_pivot_root=check
17660
17661 fi
17662
17663 if test "x$enable_pivot_root" = xno; then
17664   build_pivot_root=no
17665 else
17666   build_pivot_root=yes
17667   case $enable_pivot_root:$linux_os in
17668   yes:no) as_fn_error $? "pivot_root selected for non-linux system" "$LINENO" 5;;
17669   check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build pivot_root" >&5
17670 $as_echo "$as_me: WARNING: non-linux system; do not build pivot_root" >&2;}
17671             build_pivot_root=no;;
17672   esac
17673   if test "x$build_pivot_root" = xyes; then
17674     case $enable_pivot_root:$util_cv_syscall_pivot_root in
17675     yes:no) as_fn_error $? "pivot_root selected but pivot_root syscall not found" "$LINENO" 5;;
17676     check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pivot_root syscall not found; do not build pivot_root" >&5
17677 $as_echo "$as_me: WARNING: pivot_root syscall not found; do not build pivot_root" >&2;}
17678               build_pivot_root=no;;
17679     esac
17680   fi
17681 fi
17682  if test "x$build_pivot_root" = xyes; then
17683   BUILD_PIVOT_ROOT_TRUE=
17684   BUILD_PIVOT_ROOT_FALSE='#'
17685 else
17686   BUILD_PIVOT_ROOT_TRUE='#'
17687   BUILD_PIVOT_ROOT_FALSE=
17688 fi
17689
17690
17691
17692 # Check whether --enable-fallocate was given.
17693 if test "${enable_fallocate+set}" = set; then :
17694   enableval=$enable_fallocate;
17695 else
17696   enable_fallocate=check
17697
17698 fi
17699
17700 if test "x$enable_fallocate" = xno; then
17701   build_fallocate=no
17702 else
17703   build_fallocate=yes
17704   case $enable_fallocate:$linux_os in
17705   yes:no) as_fn_error $? "fallocate selected for non-linux system" "$LINENO" 5;;
17706   check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build fallocate" >&5
17707 $as_echo "$as_me: WARNING: non-linux system; do not build fallocate" >&2;}
17708             build_fallocate=no;;
17709   esac
17710   if test "x$build_fallocate" = xyes; then
17711     case $enable_fallocate:$util_cv_syscall_fallocate in
17712     yes:no) as_fn_error $? "fallocate selected but fallocate syscall not found" "$LINENO" 5;;
17713     check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fallocate syscall not found; do not build fallocate" >&5
17714 $as_echo "$as_me: WARNING: fallocate syscall not found; do not build fallocate" >&2;}
17715               build_fallocate=no;;
17716     esac
17717   fi
17718 fi
17719  if test "x$build_fallocate" = xyes; then
17720   BUILD_FALLOCATE_TRUE=
17721   BUILD_FALLOCATE_FALSE='#'
17722 else
17723   BUILD_FALLOCATE_TRUE='#'
17724   BUILD_FALLOCATE_FALSE=
17725 fi
17726
17727
17728
17729 # Check whether --enable-unshare was given.
17730 if test "${enable_unshare+set}" = set; then :
17731   enableval=$enable_unshare;
17732 else
17733   enable_unshare=check
17734
17735 fi
17736
17737 if test "x$enable_unshare" = xno; then
17738   build_unshare=no
17739 else
17740   build_unshare=yes
17741   case $enable_unshare:$linux_os in
17742   yes:no) as_fn_error $? "unshare selected for non-linux system" "$LINENO" 5;;
17743   check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build unshare" >&5
17744 $as_echo "$as_me: WARNING: non-linux system; do not build unshare" >&2;}
17745             build_unshare=no;;
17746   esac
17747   if test "x$build_unshare" = xyes; then
17748     case $enable_unshare:$util_cv_syscall_unshare in
17749     yes:no) as_fn_error $? "unshare selected but unshare syscall not found" "$LINENO" 5;;
17750     check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unshare syscall not found; do not build unshare" >&5
17751 $as_echo "$as_me: WARNING: unshare syscall not found; do not build unshare" >&2;}
17752               build_unshare=no;;
17753     esac
17754   fi
17755 fi
17756  if test "x$build_unshare" = xyes; then
17757   BUILD_UNSHARE_TRUE=
17758   BUILD_UNSHARE_FALSE='#'
17759 else
17760   BUILD_UNSHARE_TRUE='#'
17761   BUILD_UNSHARE_FALSE=
17762 fi
17763
17764
17765
17766
17767 # Check whether --enable-elvtune was given.
17768 if test "${enable_elvtune+set}" = set; then :
17769   enableval=$enable_elvtune;
17770 else
17771   enable_elvtune=no
17772
17773 fi
17774
17775  if test "x$enable_elvtune" = xyes; then
17776   BUILD_ELVTUNE_TRUE=
17777   BUILD_ELVTUNE_FALSE='#'
17778 else
17779   BUILD_ELVTUNE_TRUE='#'
17780   BUILD_ELVTUNE_FALSE=
17781 fi
17782
17783
17784 # Check whether --enable-kill was given.
17785 if test "${enable_kill+set}" = set; then :
17786   enableval=$enable_kill;
17787 else
17788   enable_kill=no
17789
17790 fi
17791
17792  if test "x$enable_kill" = xyes; then
17793   BUILD_KILL_TRUE=
17794   BUILD_KILL_FALSE='#'
17795 else
17796   BUILD_KILL_TRUE='#'
17797   BUILD_KILL_FALSE=
17798 fi
17799
17800
17801
17802 # Check whether --enable-last was given.
17803 if test "${enable_last+set}" = set; then :
17804   enableval=$enable_last;
17805 else
17806   enable_last=no
17807
17808 fi
17809
17810  if test "x$enable_last" = xyes; then
17811   BUILD_LAST_TRUE=
17812   BUILD_LAST_FALSE='#'
17813 else
17814   BUILD_LAST_TRUE='#'
17815   BUILD_LAST_FALSE=
17816 fi
17817
17818
17819 # Check whether --enable-line was given.
17820 if test "${enable_line+set}" = set; then :
17821   enableval=$enable_line;
17822 else
17823   enable_line=no
17824
17825 fi
17826
17827  if test "x$enable_line" = xyes; then
17828   BUILD_LINE_TRUE=
17829   BUILD_LINE_FALSE='#'
17830 else
17831   BUILD_LINE_TRUE='#'
17832   BUILD_LINE_FALSE=
17833 fi
17834
17835
17836 # Check whether --enable-mesg was given.
17837 if test "${enable_mesg+set}" = set; then :
17838   enableval=$enable_mesg;
17839 else
17840   enable_mesg=no
17841
17842 fi
17843
17844  if test "x$enable_mesg" = xyes; then
17845   BUILD_MESG_TRUE=
17846   BUILD_MESG_FALSE='#'
17847 else
17848   BUILD_MESG_TRUE='#'
17849   BUILD_MESG_FALSE=
17850 fi
17851
17852
17853
17854 # Check whether --enable-raw was given.
17855 if test "${enable_raw+set}" = set; then :
17856   enableval=$enable_raw;
17857 else
17858   enable_raw=no
17859
17860 fi
17861
17862  if test "x$enable_raw" = xyes; then
17863   BUILD_RAW_TRUE=
17864   BUILD_RAW_FALSE='#'
17865 else
17866   BUILD_RAW_TRUE='#'
17867   BUILD_RAW_FALSE=
17868 fi
17869
17870
17871
17872 # Check whether --enable-rename was given.
17873 if test "${enable_rename+set}" = set; then :
17874   enableval=$enable_rename;
17875 else
17876   enable_rename=yes
17877
17878 fi
17879
17880  if test "x$enable_rename" = xyes; then
17881   BUILD_RENAME_TRUE=
17882   BUILD_RENAME_FALSE='#'
17883 else
17884   BUILD_RENAME_TRUE='#'
17885   BUILD_RENAME_FALSE=
17886 fi
17887
17888
17889
17890 # Check whether --enable-reset was given.
17891 if test "${enable_reset+set}" = set; then :
17892   enableval=$enable_reset;
17893 else
17894   enable_reset=no
17895
17896 fi
17897
17898  if test "x$enable_reset" = xyes; then
17899   BUILD_RESET_TRUE=
17900   BUILD_RESET_FALSE='#'
17901 else
17902   BUILD_RESET_TRUE='#'
17903   BUILD_RESET_FALSE=
17904 fi
17905
17906
17907
17908 # Check whether --enable-login-utils was given.
17909 if test "${enable_login_utils+set}" = set; then :
17910   enableval=$enable_login_utils;
17911 else
17912   enable_login_utils=no
17913
17914 fi
17915
17916  if test "x$enable_login_utils" = xyes; then
17917   BUILD_LOGIN_UTILS_TRUE=
17918   BUILD_LOGIN_UTILS_FALSE='#'
17919 else
17920   BUILD_LOGIN_UTILS_TRUE='#'
17921   BUILD_LOGIN_UTILS_FALSE=
17922 fi
17923
17924
17925
17926 # Check whether --with-pam was given.
17927 if test "${with_pam+set}" = set; then :
17928   withval=$with_pam;
17929 fi
17930
17931
17932  if false; then
17933   HAVE_PAM_TRUE=
17934   HAVE_PAM_FALSE='#'
17935 else
17936   HAVE_PAM_TRUE='#'
17937   HAVE_PAM_FALSE=
17938 fi
17939
17940 if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then
17941   for ac_header in security/pam_misc.h
17942 do :
17943   ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
17944 if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
17945   cat >>confdefs.h <<_ACEOF
17946 #define HAVE_SECURITY_PAM_MISC_H 1
17947 _ACEOF
17948   if true; then
17949   HAVE_PAM_TRUE=
17950   HAVE_PAM_FALSE='#'
17951 else
17952   HAVE_PAM_TRUE='#'
17953   HAVE_PAM_FALSE=
17954 fi
17955
17956 else
17957   if test "x$with_pam" = xyes; then
17958         as_fn_error $? "PAM selected but security/pam_misc.h not found" "$LINENO" 5
17959      fi
17960
17961 fi
17962
17963 done
17964
17965 fi
17966
17967
17968 # Check whether --with-selinux was given.
17969 if test "${with_selinux+set}" = set; then :
17970   withval=$with_selinux;
17971 else
17972   with_selinux=no
17973
17974 fi
17975
17976
17977 if test "x$with_selinux" = xno; then
17978    if false; then
17979   HAVE_SELINUX_TRUE=
17980   HAVE_SELINUX_FALSE='#'
17981 else
17982   HAVE_SELINUX_TRUE='#'
17983   HAVE_SELINUX_FALSE=
17984 fi
17985
17986 else
17987
17988
17989   have_selinux=yes
17990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprevcon in -lselinux" >&5
17991 $as_echo_n "checking for getprevcon in -lselinux... " >&6; }
17992 if ${ac_cv_lib_selinux_getprevcon+:} false; then :
17993   $as_echo_n "(cached) " >&6
17994 else
17995   ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lselinux  $LIBS"
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h.  */
17999
18000 /* Override any GCC internal prototype to avoid an error.
18001    Use char because int might match the return type of a GCC
18002    builtin and then its argument prototype would still apply.  */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char getprevcon ();
18007 int
18008 main ()
18009 {
18010 return getprevcon ();
18011   ;
18012   return 0;
18013 }
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016   ac_cv_lib_selinux_getprevcon=yes
18017 else
18018   ac_cv_lib_selinux_getprevcon=no
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext \
18021     conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_check_lib_save_LIBS
18023 fi
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getprevcon" >&5
18025 $as_echo "$ac_cv_lib_selinux_getprevcon" >&6; }
18026 if test "x$ac_cv_lib_selinux_getprevcon" = xyes; then :
18027   cat >>confdefs.h <<_ACEOF
18028 #define HAVE_LIBSELINUX 1
18029 _ACEOF
18030
18031   LIBS="-lselinux $LIBS"
18032
18033 else
18034   have_selinux=no
18035 fi
18036
18037    if test $have_selinux = yes; then
18038   HAVE_SELINUX_TRUE=
18039   HAVE_SELINUX_FALSE='#'
18040 else
18041   HAVE_SELINUX_TRUE='#'
18042   HAVE_SELINUX_FALSE=
18043 fi
18044
18045
18046   case "$with_selinux:$have_selinux" in
18047   yes:no) as_fn_error $? "SELinux selected but libselinux not found" "$LINENO" 5;;
18048   esac
18049 fi
18050
18051 if test "x$have_selinux" = xyes; then
18052   SELINUX_LIBS="-lselinux -lsepol"
18053   SELINUX_LIBS_STATIC="-lselinux -lsepol"
18054   old_LDFLAGS="$LDFLAGS"
18055   LDFLAGS="$LDFLAGS $SELINUX_LIBS"
18056   # This function is missing in old libselinux 1.xx versions
18057   for ac_func in security_get_initial_context
18058 do :
18059   ac_fn_c_check_func "$LINENO" "security_get_initial_context" "ac_cv_func_security_get_initial_context"
18060 if test "x$ac_cv_func_security_get_initial_context" = xyes; then :
18061   cat >>confdefs.h <<_ACEOF
18062 #define HAVE_SECURITY_GET_INITIAL_CONTEXT 1
18063 _ACEOF
18064
18065 fi
18066 done
18067
18068   LDFLAGS="$old_LDFLAGS"
18069 fi
18070
18071
18072
18073
18074 # Check whether --with-audit was given.
18075 if test "${with_audit+set}" = set; then :
18076   withval=$with_audit;
18077 else
18078   with_audit=no
18079
18080 fi
18081
18082
18083 if test "x$with_audit" = xno; then
18084    if false; then
18085   HAVE_AUDIT_TRUE=
18086   HAVE_AUDIT_FALSE='#'
18087 else
18088   HAVE_AUDIT_TRUE='#'
18089   HAVE_AUDIT_FALSE=
18090 fi
18091
18092 else
18093
18094
18095   have_audit=yes
18096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_message in -laudit" >&5
18097 $as_echo_n "checking for audit_log_user_message in -laudit... " >&6; }
18098 if ${ac_cv_lib_audit_audit_log_user_message+:} false; then :
18099   $as_echo_n "(cached) " >&6
18100 else
18101   ac_check_lib_save_LIBS=$LIBS
18102 LIBS="-laudit  $LIBS"
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h.  */
18105
18106 /* Override any GCC internal prototype to avoid an error.
18107    Use char because int might match the return type of a GCC
18108    builtin and then its argument prototype would still apply.  */
18109 #ifdef __cplusplus
18110 extern "C"
18111 #endif
18112 char audit_log_user_message ();
18113 int
18114 main ()
18115 {
18116 return audit_log_user_message ();
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 if ac_fn_c_try_link "$LINENO"; then :
18122   ac_cv_lib_audit_audit_log_user_message=yes
18123 else
18124   ac_cv_lib_audit_audit_log_user_message=no
18125 fi
18126 rm -f core conftest.err conftest.$ac_objext \
18127     conftest$ac_exeext conftest.$ac_ext
18128 LIBS=$ac_check_lib_save_LIBS
18129 fi
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_message" >&5
18131 $as_echo "$ac_cv_lib_audit_audit_log_user_message" >&6; }
18132 if test "x$ac_cv_lib_audit_audit_log_user_message" = xyes; then :
18133   cat >>confdefs.h <<_ACEOF
18134 #define HAVE_LIBAUDIT 1
18135 _ACEOF
18136
18137   LIBS="-laudit $LIBS"
18138
18139 else
18140   have_audit=no
18141 fi
18142
18143    if test $have_audit = yes; then
18144   HAVE_AUDIT_TRUE=
18145   HAVE_AUDIT_FALSE='#'
18146 else
18147   HAVE_AUDIT_TRUE='#'
18148   HAVE_AUDIT_FALSE=
18149 fi
18150
18151
18152   case "$with_audit:$have_audit" in
18153   yes:no)
18154    as_fn_error $? "Audit selected but libaudit not found (or doesn't support audit_log_user_message())" "$LINENO" 5
18155    ;;
18156   esac
18157 fi
18158
18159 # Check whether --enable-schedutils was given.
18160 if test "${enable_schedutils+set}" = set; then :
18161   enableval=$enable_schedutils;
18162 else
18163   enable_schedutils=yes
18164
18165 fi
18166
18167  if test "x$enable_schedutils" = xyes; then
18168   BUILD_SCHEDUTILS_TRUE=
18169   BUILD_SCHEDUTILS_FALSE='#'
18170 else
18171   BUILD_SCHEDUTILS_TRUE='#'
18172   BUILD_SCHEDUTILS_FALSE=
18173 fi
18174
18175
18176
18177 # Check whether --enable-wall was given.
18178 if test "${enable_wall+set}" = set; then :
18179   enableval=$enable_wall;
18180 else
18181   enable_wall=yes
18182
18183 fi
18184
18185  if test "x$enable_wall" = xyes; then
18186   BUILD_WALL_TRUE=
18187   BUILD_WALL_FALSE='#'
18188 else
18189   BUILD_WALL_TRUE='#'
18190   BUILD_WALL_FALSE=
18191 fi
18192
18193
18194
18195 # Check whether --enable-write was given.
18196 if test "${enable_write+set}" = set; then :
18197   enableval=$enable_write;
18198 else
18199   enable_write=no
18200
18201 fi
18202
18203  if test "x$enable_write" = xyes; then
18204   BUILD_WRITE_TRUE=
18205   BUILD_WRITE_FALSE='#'
18206 else
18207   BUILD_WRITE_TRUE='#'
18208   BUILD_WRITE_FALSE=
18209 fi
18210
18211
18212
18213 # Check whether --enable-chsh-only-listed was given.
18214 if test "${enable_chsh_only_listed+set}" = set; then :
18215   enableval=$enable_chsh_only_listed;
18216 else
18217   enable_chsh_only_listed=yes
18218
18219 fi
18220
18221
18222 if test "x$enable_chsh_only_listed" = xyes; then
18223
18224 $as_echo "#define ONLY_LISTED_SHELLS 1" >>confdefs.h
18225
18226 fi
18227
18228
18229 # Check whether --enable-login-chown-vcs was given.
18230 if test "${enable_login_chown_vcs+set}" = set; then :
18231   enableval=$enable_login_chown_vcs;
18232 else
18233   enable_login_chown_vcs=no
18234
18235 fi
18236
18237
18238 if test "x$enable_login_chown_vcs" = xyes; then
18239
18240 $as_echo "#define LOGIN_CHOWN_VCS 1" >>confdefs.h
18241
18242 fi
18243
18244
18245 # Check whether --enable-login-stat-mail was given.
18246 if test "${enable_login_stat_mail+set}" = set; then :
18247   enableval=$enable_login_stat_mail;
18248 else
18249   enable_login_stat_mail=no
18250
18251 fi
18252
18253
18254 if test "x$enable_login_stat_mail" = xyes; then
18255
18256 $as_echo "#define LOGIN_STAT_MAIL 1" >>confdefs.h
18257
18258 fi
18259
18260
18261 # Check whether --enable-pg-bell was given.
18262 if test "${enable_pg_bell+set}" = set; then :
18263   enableval=$enable_pg_bell;
18264 else
18265   enable_pg_bell=yes
18266
18267 fi
18268
18269
18270 if test "x$enable_pg_bell" = xyes; then
18271
18272 $as_echo "#define PG_BELL 1" >>confdefs.h
18273
18274 fi
18275
18276
18277 # Check whether --enable-require-password was given.
18278 if test "${enable_require_password+set}" = set; then :
18279   enableval=$enable_require_password;
18280 else
18281   enable_require_password=yes
18282
18283 fi
18284
18285
18286 if test "x$enable_require_password" = xyes; then
18287
18288 $as_echo "#define REQUIRE_PASSWORD 1" >>confdefs.h
18289
18290 fi
18291
18292
18293
18294 # Check whether --enable-fs-paths-default was given.
18295 if test "${enable_fs_paths_default+set}" = set; then :
18296   enableval=$enable_fs_paths_default; case "$enableval" in
18297      yes) fs_paths_defaults="/sbin:/sbin/fs.d:/sbin/fs" ;;
18298       no) fs_paths_defaults="" ;;
18299        *) fs_paths_defaults="$enableval" ;;
18300    esac
18301 else
18302   fs_paths_defaults="/sbin:/sbin/fs.d:/sbin/fs"
18303
18304 fi
18305
18306 # Check whether --enable-fs-paths-extra was given.
18307 if test "${enable_fs_paths_extra+set}" = set; then :
18308   enableval=$enable_fs_paths_extra; case "$enableval" in
18309      yes|no) fs_paths_extra="" ;;
18310           *) fs_paths_extra="$enableval" ;;
18311     esac
18312 else
18313   fs_paths_extra=""
18314
18315 fi
18316
18317 fs_paths="$fs_paths_defaults"
18318 if test "x$fs_paths_extra" != "x"; then
18319   if test "x$fs_paths" != "x"; then
18320     fs_paths="${fs_paths}:"
18321   fi
18322   fs_paths="${fs_paths}${fs_paths_extra}"
18323 fi
18324
18325 cat >>confdefs.h <<_ACEOF
18326 #define FS_SEARCH_PATH "$fs_paths"
18327 _ACEOF
18328
18329
18330
18331 # Check whether --enable-use-tty-group was given.
18332 if test "${enable_use_tty_group+set}" = set; then :
18333   enableval=$enable_use_tty_group;
18334 else
18335   enable_use_tty_group=yes
18336
18337 fi
18338
18339  if test "x$enable_use_tty_group" = xyes; then
18340   USE_TTY_GROUP_TRUE=
18341   USE_TTY_GROUP_FALSE='#'
18342 else
18343   USE_TTY_GROUP_TRUE='#'
18344   USE_TTY_GROUP_FALSE=
18345 fi
18346
18347
18348 if test "x$enable_use_tty_group" = xyes; then
18349
18350 $as_echo "#define USE_TTY_GROUP 1" >>confdefs.h
18351
18352 fi
18353
18354 # Check whether --enable-makeinstall-chown was given.
18355 if test "${enable_makeinstall_chown+set}" = set; then :
18356   enableval=$enable_makeinstall_chown;
18357 else
18358   enable_makeinstall_chown=yes
18359
18360 fi
18361
18362  if test "x$enable_makeinstall_chown" = xyes; then
18363   MAKEINSTALL_DO_CHOWN_TRUE=
18364   MAKEINSTALL_DO_CHOWN_FALSE='#'
18365 else
18366   MAKEINSTALL_DO_CHOWN_TRUE='#'
18367   MAKEINSTALL_DO_CHOWN_FALSE=
18368 fi
18369
18370
18371 # Check whether --enable-makeinstall-setuid was given.
18372 if test "${enable_makeinstall_setuid+set}" = set; then :
18373   enableval=$enable_makeinstall_setuid;
18374 else
18375   enable_makeinstall_setuid=yes
18376
18377 fi
18378
18379  if test "x$enable_makeinstall_setuid" = xyes; then
18380   MAKEINSTALL_DO_SETUID_TRUE=
18381   MAKEINSTALL_DO_SETUID_FALSE='#'
18382 else
18383   MAKEINSTALL_DO_SETUID_TRUE='#'
18384   MAKEINSTALL_DO_SETUID_FALSE=
18385 fi
18386
18387
18388
18389
18390
18391
18392 LIBS=""
18393
18394
18395 ac_config_headers="$ac_config_headers config.h"
18396
18397
18398 ac_config_files="$ac_config_files disk-utils/Makefile fdisk/Makefile fsck/Makefile getopt/Makefile hwclock/Makefile include/Makefile lib/Makefile login-utils/Makefile Makefile man/ru/Makefile misc-utils/chkdupexe:misc-utils/chkdupexe.pl misc-utils/Makefile mount/Makefile partx/Makefile po/Makefile.in schedutils/Makefile libblkid/blkid.pc libblkid/Makefile libblkid/docs/Makefile libblkid/docs/version.xml libblkid/src/Makefile libblkid/src/blkid.h libblkid/src/superblocks/Makefile libblkid/src/topology/Makefile libblkid/src/partitions/Makefile libblkid/samples/Makefile libmount/mount.pc libmount/Makefile libmount/src/Makefile libmount/src/libmount.h libmount/docs/Makefile libmount/docs/version.xml libmount/samples/Makefile libuuid/uuid.pc libuuid/Makefile libuuid/man/Makefile libuuid/src/Makefile sys-utils/Makefile term-utils/Makefile tests/commands.sh tests/helpers/Makefile tests/Makefile text-utils/Makefile"
18399
18400
18401
18402 cat >confcache <<\_ACEOF
18403 # This file is a shell script that caches the results of configure
18404 # tests run on this system so they can be shared between configure
18405 # scripts and configure runs, see configure's option --config-cache.
18406 # It is not useful on other systems.  If it contains results you don't
18407 # want to keep, you may remove or edit it.
18408 #
18409 # config.status only pays attention to the cache file if you give it
18410 # the --recheck option to rerun configure.
18411 #
18412 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18413 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18414 # following values.
18415
18416 _ACEOF
18417
18418 # The following way of writing the cache mishandles newlines in values,
18419 # but we know of no workaround that is simple, portable, and efficient.
18420 # So, we kill variables containing newlines.
18421 # Ultrix sh set writes to stderr and can't be redirected directly,
18422 # and sets the high bit in the cache file unless we assign to the vars.
18423 (
18424   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18425     eval ac_val=\$$ac_var
18426     case $ac_val in #(
18427     *${as_nl}*)
18428       case $ac_var in #(
18429       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18431       esac
18432       case $ac_var in #(
18433       _ | IFS | as_nl) ;; #(
18434       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18435       *) { eval $ac_var=; unset $ac_var;} ;;
18436       esac ;;
18437     esac
18438   done
18439
18440   (set) 2>&1 |
18441     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18442     *${as_nl}ac_space=\ *)
18443       # `set' does not quote correctly, so add quotes: double-quote
18444       # substitution turns \\\\ into \\, and sed turns \\ into \.
18445       sed -n \
18446         "s/'/'\\\\''/g;
18447           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18448       ;; #(
18449     *)
18450       # `set' quotes correctly as required by POSIX, so do not add quotes.
18451       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18452       ;;
18453     esac |
18454     sort
18455 ) |
18456   sed '
18457      /^ac_cv_env_/b end
18458      t clear
18459      :clear
18460      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18461      t end
18462      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18463      :end' >>confcache
18464 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18465   if test -w "$cache_file"; then
18466     if test "x$cache_file" != "x/dev/null"; then
18467       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18468 $as_echo "$as_me: updating cache $cache_file" >&6;}
18469       if test ! -f "$cache_file" || test -h "$cache_file"; then
18470         cat confcache >"$cache_file"
18471       else
18472         case $cache_file in #(
18473         */* | ?:*)
18474           mv -f confcache "$cache_file"$$ &&
18475           mv -f "$cache_file"$$ "$cache_file" ;; #(
18476         *)
18477           mv -f confcache "$cache_file" ;;
18478         esac
18479       fi
18480     fi
18481   else
18482     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18483 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18484   fi
18485 fi
18486 rm -f confcache
18487
18488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18489 # Let make expand exec_prefix.
18490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18491
18492 DEFS=-DHAVE_CONFIG_H
18493
18494 ac_libobjs=
18495 ac_ltlibobjs=
18496 U=
18497 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18498   # 1. Remove the extension, and $U if already installed.
18499   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18500   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18501   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18502   #    will be set to the directory where LIBOBJS objects are built.
18503   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18504   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18505 done
18506 LIBOBJS=$ac_libobjs
18507
18508 LTLIBOBJS=$ac_ltlibobjs
18509
18510
18511  if test -n "$EXEEXT"; then
18512   am__EXEEXT_TRUE=
18513   am__EXEEXT_FALSE='#'
18514 else
18515   am__EXEEXT_TRUE='#'
18516   am__EXEEXT_FALSE=
18517 fi
18518
18519 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18520   as_fn_error $? "conditional \"AMDEP\" was never defined.
18521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18522 fi
18523 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18524   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18526 fi
18527
18528 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
18529   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
18530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18531 fi
18532 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
18533   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
18534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18535 fi
18536 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
18537   as_fn_error $? "conditional \"LINUX\" was never defined.
18538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18539 fi
18540 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
18541   as_fn_error $? "conditional \"HAVE_RAW\" was never defined.
18542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18543 fi
18544 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
18545   as_fn_error $? "conditional \"HAVE_RAW\" was never defined.
18546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18547 fi
18548 if test -z "${HAVE_LANGINFO_TRUE}" && test -z "${HAVE_LANGINFO_FALSE}"; then
18549   as_fn_error $? "conditional \"HAVE_LANGINFO\" was never defined.
18550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18551 fi
18552 if test -z "${HAVE_LANGINFO_TRUE}" && test -z "${HAVE_LANGINFO_FALSE}"; then
18553   as_fn_error $? "conditional \"HAVE_LANGINFO\" was never defined.
18554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18555 fi
18556 if test -z "${BUILD_HWCLOCK_TRUE}" && test -z "${BUILD_HWCLOCK_FALSE}"; then
18557   as_fn_error $? "conditional \"BUILD_HWCLOCK\" was never defined.
18558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18559 fi
18560 if test -z "${HAVE_STATIC_LOSETUP_TRUE}" && test -z "${HAVE_STATIC_LOSETUP_FALSE}"; then
18561   as_fn_error $? "conditional \"HAVE_STATIC_LOSETUP\" was never defined.
18562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18563 fi
18564 if test -z "${HAVE_STATIC_MOUNT_TRUE}" && test -z "${HAVE_STATIC_MOUNT_FALSE}"; then
18565   as_fn_error $? "conditional \"HAVE_STATIC_MOUNT\" was never defined.
18566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18567 fi
18568 if test -z "${HAVE_STATIC_UMOUNT_TRUE}" && test -z "${HAVE_STATIC_UMOUNT_FALSE}"; then
18569   as_fn_error $? "conditional \"HAVE_STATIC_UMOUNT\" was never defined.
18570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18571 fi
18572 if test -z "${HAVE_STATIC_FDISK_TRUE}" && test -z "${HAVE_STATIC_FDISK_FALSE}"; then
18573   as_fn_error $? "conditional \"HAVE_STATIC_FDISK\" was never defined.
18574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18575 fi
18576 if test -z "${HAVE_STATIC_SFDISK_TRUE}" && test -z "${HAVE_STATIC_SFDISK_FALSE}"; then
18577   as_fn_error $? "conditional \"HAVE_STATIC_SFDISK\" was never defined.
18578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18579 fi
18580 if test -z "${HAVE_STATIC_BLKID_TRUE}" && test -z "${HAVE_STATIC_BLKID_FALSE}"; then
18581   as_fn_error $? "conditional \"HAVE_STATIC_BLKID\" was never defined.
18582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18583 fi
18584 if test -z "${BUILD_MOUNT_TRUE}" && test -z "${BUILD_MOUNT_FALSE}"; then
18585   as_fn_error $? "conditional \"BUILD_MOUNT\" was never defined.
18586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18587 fi
18588 if test -z "${BUILD_FSCK_TRUE}" && test -z "${BUILD_FSCK_FALSE}"; then
18589   as_fn_error $? "conditional \"BUILD_FSCK\" was never defined.
18590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18591 fi
18592 if test -z "${BUILD_PARTX_TRUE}" && test -z "${BUILD_PARTX_FALSE}"; then
18593   as_fn_error $? "conditional \"BUILD_PARTX\" was never defined.
18594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18595 fi
18596 if test -z "${BUILD_LIBUUID_TRUE}" && test -z "${BUILD_LIBUUID_FALSE}"; then
18597   as_fn_error $? "conditional \"BUILD_LIBUUID\" was never defined.
18598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18599 fi
18600 if test -z "${BUILD_UUIDD_TRUE}" && test -z "${BUILD_UUIDD_FALSE}"; then
18601   as_fn_error $? "conditional \"BUILD_UUIDD\" was never defined.
18602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18603 fi
18604 if test -z "${BUILD_LIBBLKID_TRUE}" && test -z "${BUILD_LIBBLKID_FALSE}"; then
18605   as_fn_error $? "conditional \"BUILD_LIBBLKID\" was never defined.
18606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18607 fi
18608 if test -z "${BUILD_LIBMOUNT_TRUE}" && test -z "${BUILD_LIBMOUNT_FALSE}"; then
18609   as_fn_error $? "conditional \"BUILD_LIBMOUNT\" was never defined.
18610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18611 fi
18612 if test -z "${BUILD_LIBMOUNT_MOUNT_TRUE}" && test -z "${BUILD_LIBMOUNT_MOUNT_FALSE}"; then
18613   as_fn_error $? "conditional \"BUILD_LIBMOUNT_MOUNT\" was never defined.
18614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18615 fi
18616 if test -z "${BUILD_MOUNTPOINT_TRUE}" && test -z "${BUILD_MOUNTPOINT_FALSE}"; then
18617   as_fn_error $? "conditional \"BUILD_MOUNTPOINT\" was never defined.
18618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18619 fi
18620 if test -z "${HAVE_UTIL_TRUE}" && test -z "${HAVE_UTIL_FALSE}"; then
18621   as_fn_error $? "conditional \"HAVE_UTIL\" was never defined.
18622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18623 fi
18624 if test -z "${HAVE_TERMCAP_TRUE}" && test -z "${HAVE_TERMCAP_FALSE}"; then
18625   as_fn_error $? "conditional \"HAVE_TERMCAP\" was never defined.
18626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18627 fi
18628 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18629   as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18631 fi
18632 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18633   as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18635 fi
18636 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18637   as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18639 fi
18640 if test -z "${HAVE_TINFO_TRUE}" && test -z "${HAVE_TINFO_FALSE}"; then
18641   as_fn_error $? "conditional \"HAVE_TINFO\" was never defined.
18642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18643 fi
18644 if test -z "${USE_SLANG_TRUE}" && test -z "${USE_SLANG_FALSE}"; then
18645   as_fn_error $? "conditional \"USE_SLANG\" was never defined.
18646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18647 fi
18648 if test -z "${HAVE_UTEMPTER_TRUE}" && test -z "${HAVE_UTEMPTER_FALSE}"; then
18649   as_fn_error $? "conditional \"HAVE_UTEMPTER\" was never defined.
18650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18651 fi
18652 if test -z "${HAVE_UTEMPTER_TRUE}" && test -z "${HAVE_UTEMPTER_FALSE}"; then
18653   as_fn_error $? "conditional \"HAVE_UTEMPTER\" was never defined.
18654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18655 fi
18656 if test -z "${NEED_LIBCRYPT_TRUE}" && test -z "${NEED_LIBCRYPT_FALSE}"; then
18657   as_fn_error $? "conditional \"NEED_LIBCRYPT\" was never defined.
18658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18659 fi
18660 if test -z "${HAVE_PIVOT_ROOT_TRUE}" && test -z "${HAVE_PIVOT_ROOT_FALSE}"; then
18661   as_fn_error $? "conditional \"HAVE_PIVOT_ROOT\" was never defined.
18662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18663 fi
18664 if test -z "${HAVE_SCHED_GETAFFINITY_TRUE}" && test -z "${HAVE_SCHED_GETAFFINITY_FALSE}"; then
18665   as_fn_error $? "conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
18666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18667 fi
18668 if test -z "${HAVE_IOPRIO_SET_TRUE}" && test -z "${HAVE_IOPRIO_SET_FALSE}"; then
18669   as_fn_error $? "conditional \"HAVE_IOPRIO_SET\" was never defined.
18670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18671 fi
18672 if test -z "${HAVE_IOPRIO_GET_TRUE}" && test -z "${HAVE_IOPRIO_GET_FALSE}"; then
18673   as_fn_error $? "conditional \"HAVE_IOPRIO_GET\" was never defined.
18674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18675 fi
18676 if test -z "${HAVE_FALLOCATE_TRUE}" && test -z "${HAVE_FALLOCATE_FALSE}"; then
18677   as_fn_error $? "conditional \"HAVE_FALLOCATE\" was never defined.
18678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18679 fi
18680 if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
18681   as_fn_error $? "conditional \"HAVE_UNSHARE\" was never defined.
18682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18683 fi
18684 if test -z "${HAVE_CPU_SET_T_TRUE}" && test -z "${HAVE_CPU_SET_T_FALSE}"; then
18685   as_fn_error $? "conditional \"HAVE_CPU_SET_T\" was never defined.
18686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18687 fi
18688 if test -z "${ARCH_I86_TRUE}" && test -z "${ARCH_I86_FALSE}"; then
18689   as_fn_error $? "conditional \"ARCH_I86\" was never defined.
18690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18691 fi
18692 if test -z "${ARCH_86_64_TRUE}" && test -z "${ARCH_86_64_FALSE}"; then
18693   as_fn_error $? "conditional \"ARCH_86_64\" was never defined.
18694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18695 fi
18696 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
18697   as_fn_error $? "conditional \"ARCH_IA64\" was never defined.
18698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18699 fi
18700 if test -z "${ARCH_S390_TRUE}" && test -z "${ARCH_S390_FALSE}"; then
18701   as_fn_error $? "conditional \"ARCH_S390\" was never defined.
18702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18703 fi
18704 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
18705   as_fn_error $? "conditional \"ARCH_SPARC\" was never defined.
18706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18707 fi
18708 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
18709   as_fn_error $? "conditional \"ARCH_PPC\" was never defined.
18710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18711 fi
18712 if test -z "${ARCH_M68K_TRUE}" && test -z "${ARCH_M68K_FALSE}"; then
18713   as_fn_error $? "conditional \"ARCH_M68K\" was never defined.
18714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18715 fi
18716 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
18717   as_fn_error $? "conditional \"ARCH_MIPS\" was never defined.
18718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18719 fi
18720 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
18721   as_fn_error $? "conditional \"ARCH_HPPA\" was never defined.
18722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18723 fi
18724 if test -z "${BUILD_ARCH_TRUE}" && test -z "${BUILD_ARCH_FALSE}"; then
18725   as_fn_error $? "conditional \"BUILD_ARCH\" was never defined.
18726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18727 fi
18728 if test -z "${BUILD_DDATE_TRUE}" && test -z "${BUILD_DDATE_FALSE}"; then
18729   as_fn_error $? "conditional \"BUILD_DDATE\" was never defined.
18730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18731 fi
18732 if test -z "${BUILD_AGETTY_TRUE}" && test -z "${BUILD_AGETTY_FALSE}"; then
18733   as_fn_error $? "conditional \"BUILD_AGETTY\" was never defined.
18734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18735 fi
18736 if test -z "${BUILD_CRAMFS_TRUE}" && test -z "${BUILD_CRAMFS_FALSE}"; then
18737   as_fn_error $? "conditional \"BUILD_CRAMFS\" was never defined.
18738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18739 fi
18740 if test -z "${BUILD_LSBLK_TRUE}" && test -z "${BUILD_LSBLK_FALSE}"; then
18741   as_fn_error $? "conditional \"BUILD_LSBLK\" was never defined.
18742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18743 fi
18744 if test -z "${BUILD_SWITCH_ROOT_TRUE}" && test -z "${BUILD_SWITCH_ROOT_FALSE}"; then
18745   as_fn_error $? "conditional \"BUILD_SWITCH_ROOT\" was never defined.
18746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18747 fi
18748 if test -z "${BUILD_PIVOT_ROOT_TRUE}" && test -z "${BUILD_PIVOT_ROOT_FALSE}"; then
18749   as_fn_error $? "conditional \"BUILD_PIVOT_ROOT\" was never defined.
18750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18751 fi
18752 if test -z "${BUILD_FALLOCATE_TRUE}" && test -z "${BUILD_FALLOCATE_FALSE}"; then
18753   as_fn_error $? "conditional \"BUILD_FALLOCATE\" was never defined.
18754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18755 fi
18756 if test -z "${BUILD_UNSHARE_TRUE}" && test -z "${BUILD_UNSHARE_FALSE}"; then
18757   as_fn_error $? "conditional \"BUILD_UNSHARE\" was never defined.
18758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18759 fi
18760 if test -z "${BUILD_ELVTUNE_TRUE}" && test -z "${BUILD_ELVTUNE_FALSE}"; then
18761   as_fn_error $? "conditional \"BUILD_ELVTUNE\" was never defined.
18762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18763 fi
18764 if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
18765   as_fn_error $? "conditional \"BUILD_KILL\" was never defined.
18766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18767 fi
18768 if test -z "${BUILD_LAST_TRUE}" && test -z "${BUILD_LAST_FALSE}"; then
18769   as_fn_error $? "conditional \"BUILD_LAST\" was never defined.
18770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18771 fi
18772 if test -z "${BUILD_LINE_TRUE}" && test -z "${BUILD_LINE_FALSE}"; then
18773   as_fn_error $? "conditional \"BUILD_LINE\" was never defined.
18774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18775 fi
18776 if test -z "${BUILD_MESG_TRUE}" && test -z "${BUILD_MESG_FALSE}"; then
18777   as_fn_error $? "conditional \"BUILD_MESG\" was never defined.
18778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18779 fi
18780 if test -z "${BUILD_RAW_TRUE}" && test -z "${BUILD_RAW_FALSE}"; then
18781   as_fn_error $? "conditional \"BUILD_RAW\" was never defined.
18782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18783 fi
18784 if test -z "${BUILD_RENAME_TRUE}" && test -z "${BUILD_RENAME_FALSE}"; then
18785   as_fn_error $? "conditional \"BUILD_RENAME\" was never defined.
18786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18787 fi
18788 if test -z "${BUILD_RESET_TRUE}" && test -z "${BUILD_RESET_FALSE}"; then
18789   as_fn_error $? "conditional \"BUILD_RESET\" was never defined.
18790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18791 fi
18792 if test -z "${BUILD_LOGIN_UTILS_TRUE}" && test -z "${BUILD_LOGIN_UTILS_FALSE}"; then
18793   as_fn_error $? "conditional \"BUILD_LOGIN_UTILS\" was never defined.
18794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18795 fi
18796 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
18797   as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
18798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18799 fi
18800 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
18801   as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
18802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18803 fi
18804 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
18805   as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
18806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18807 fi
18808 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
18809   as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
18810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18811 fi
18812 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
18813   as_fn_error $? "conditional \"HAVE_AUDIT\" was never defined.
18814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18815 fi
18816 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
18817   as_fn_error $? "conditional \"HAVE_AUDIT\" was never defined.
18818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18819 fi
18820 if test -z "${BUILD_SCHEDUTILS_TRUE}" && test -z "${BUILD_SCHEDUTILS_FALSE}"; then
18821   as_fn_error $? "conditional \"BUILD_SCHEDUTILS\" was never defined.
18822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18823 fi
18824 if test -z "${BUILD_WALL_TRUE}" && test -z "${BUILD_WALL_FALSE}"; then
18825   as_fn_error $? "conditional \"BUILD_WALL\" was never defined.
18826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18827 fi
18828 if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then
18829   as_fn_error $? "conditional \"BUILD_WRITE\" was never defined.
18830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18831 fi
18832 if test -z "${USE_TTY_GROUP_TRUE}" && test -z "${USE_TTY_GROUP_FALSE}"; then
18833   as_fn_error $? "conditional \"USE_TTY_GROUP\" was never defined.
18834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18835 fi
18836 if test -z "${MAKEINSTALL_DO_CHOWN_TRUE}" && test -z "${MAKEINSTALL_DO_CHOWN_FALSE}"; then
18837   as_fn_error $? "conditional \"MAKEINSTALL_DO_CHOWN\" was never defined.
18838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18839 fi
18840 if test -z "${MAKEINSTALL_DO_SETUID_TRUE}" && test -z "${MAKEINSTALL_DO_SETUID_FALSE}"; then
18841   as_fn_error $? "conditional \"MAKEINSTALL_DO_SETUID\" was never defined.
18842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18843 fi
18844
18845 : "${CONFIG_STATUS=./config.status}"
18846 ac_write_fail=0
18847 ac_clean_files_save=$ac_clean_files
18848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18850 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18851 as_write_fail=0
18852 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18853 #! $SHELL
18854 # Generated by $as_me.
18855 # Run this file to recreate the current configuration.
18856 # Compiler output produced by configure, useful for debugging
18857 # configure, is in config.log if it exists.
18858
18859 debug=false
18860 ac_cs_recheck=false
18861 ac_cs_silent=false
18862
18863 SHELL=\${CONFIG_SHELL-$SHELL}
18864 export SHELL
18865 _ASEOF
18866 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18867 ## -------------------- ##
18868 ## M4sh Initialization. ##
18869 ## -------------------- ##
18870
18871 # Be more Bourne compatible
18872 DUALCASE=1; export DUALCASE # for MKS sh
18873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18874   emulate sh
18875   NULLCMD=:
18876   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18877   # is contrary to our usage.  Disable this feature.
18878   alias -g '${1+"$@"}'='"$@"'
18879   setopt NO_GLOB_SUBST
18880 else
18881   case `(set -o) 2>/dev/null` in #(
18882   *posix*) :
18883     set -o posix ;; #(
18884   *) :
18885      ;;
18886 esac
18887 fi
18888
18889
18890 as_nl='
18891 '
18892 export as_nl
18893 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18894 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18897 # Prefer a ksh shell builtin over an external printf program on Solaris,
18898 # but without wasting forks for bash or zsh.
18899 if test -z "$BASH_VERSION$ZSH_VERSION" \
18900     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18901   as_echo='print -r --'
18902   as_echo_n='print -rn --'
18903 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18904   as_echo='printf %s\n'
18905   as_echo_n='printf %s'
18906 else
18907   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18908     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18909     as_echo_n='/usr/ucb/echo -n'
18910   else
18911     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18912     as_echo_n_body='eval
18913       arg=$1;
18914       case $arg in #(
18915       *"$as_nl"*)
18916         expr "X$arg" : "X\\(.*\\)$as_nl";
18917         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18918       esac;
18919       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18920     '
18921     export as_echo_n_body
18922     as_echo_n='sh -c $as_echo_n_body as_echo'
18923   fi
18924   export as_echo_body
18925   as_echo='sh -c $as_echo_body as_echo'
18926 fi
18927
18928 # The user is always right.
18929 if test "${PATH_SEPARATOR+set}" != set; then
18930   PATH_SEPARATOR=:
18931   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18932     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18933       PATH_SEPARATOR=';'
18934   }
18935 fi
18936
18937
18938 # IFS
18939 # We need space, tab and new line, in precisely that order.  Quoting is
18940 # there to prevent editors from complaining about space-tab.
18941 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18942 # splitting by setting IFS to empty value.)
18943 IFS=" ""        $as_nl"
18944
18945 # Find who we are.  Look in the path if we contain no directory separator.
18946 as_myself=
18947 case $0 in #((
18948   *[\\/]* ) as_myself=$0 ;;
18949   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950 for as_dir in $PATH
18951 do
18952   IFS=$as_save_IFS
18953   test -z "$as_dir" && as_dir=.
18954     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18955   done
18956 IFS=$as_save_IFS
18957
18958      ;;
18959 esac
18960 # We did not find ourselves, most probably we were run as `sh COMMAND'
18961 # in which case we are not to be found in the path.
18962 if test "x$as_myself" = x; then
18963   as_myself=$0
18964 fi
18965 if test ! -f "$as_myself"; then
18966   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18967   exit 1
18968 fi
18969
18970 # Unset variables that we do not need and which cause bugs (e.g. in
18971 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18972 # suppresses any "Segmentation fault" message there.  '((' could
18973 # trigger a bug in pdksh 5.2.14.
18974 for as_var in BASH_ENV ENV MAIL MAILPATH
18975 do eval test x\${$as_var+set} = xset \
18976   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18977 done
18978 PS1='$ '
18979 PS2='> '
18980 PS4='+ '
18981
18982 # NLS nuisances.
18983 LC_ALL=C
18984 export LC_ALL
18985 LANGUAGE=C
18986 export LANGUAGE
18987
18988 # CDPATH.
18989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18990
18991
18992 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18993 # ----------------------------------------
18994 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18995 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18996 # script with STATUS, using 1 if that was 0.
18997 as_fn_error ()
18998 {
18999   as_status=$1; test $as_status -eq 0 && as_status=1
19000   if test "$4"; then
19001     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19002     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19003   fi
19004   $as_echo "$as_me: error: $2" >&2
19005   as_fn_exit $as_status
19006 } # as_fn_error
19007
19008
19009 # as_fn_set_status STATUS
19010 # -----------------------
19011 # Set $? to STATUS, without forking.
19012 as_fn_set_status ()
19013 {
19014   return $1
19015 } # as_fn_set_status
19016
19017 # as_fn_exit STATUS
19018 # -----------------
19019 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19020 as_fn_exit ()
19021 {
19022   set +e
19023   as_fn_set_status $1
19024   exit $1
19025 } # as_fn_exit
19026
19027 # as_fn_unset VAR
19028 # ---------------
19029 # Portably unset VAR.
19030 as_fn_unset ()
19031 {
19032   { eval $1=; unset $1;}
19033 }
19034 as_unset=as_fn_unset
19035 # as_fn_append VAR VALUE
19036 # ----------------------
19037 # Append the text in VALUE to the end of the definition contained in VAR. Take
19038 # advantage of any shell optimizations that allow amortized linear growth over
19039 # repeated appends, instead of the typical quadratic growth present in naive
19040 # implementations.
19041 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19042   eval 'as_fn_append ()
19043   {
19044     eval $1+=\$2
19045   }'
19046 else
19047   as_fn_append ()
19048   {
19049     eval $1=\$$1\$2
19050   }
19051 fi # as_fn_append
19052
19053 # as_fn_arith ARG...
19054 # ------------------
19055 # Perform arithmetic evaluation on the ARGs, and store the result in the
19056 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19057 # must be portable across $(()) and expr.
19058 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19059   eval 'as_fn_arith ()
19060   {
19061     as_val=$(( $* ))
19062   }'
19063 else
19064   as_fn_arith ()
19065   {
19066     as_val=`expr "$@" || test $? -eq 1`
19067   }
19068 fi # as_fn_arith
19069
19070
19071 if expr a : '\(a\)' >/dev/null 2>&1 &&
19072    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19073   as_expr=expr
19074 else
19075   as_expr=false
19076 fi
19077
19078 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19079   as_basename=basename
19080 else
19081   as_basename=false
19082 fi
19083
19084 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19085   as_dirname=dirname
19086 else
19087   as_dirname=false
19088 fi
19089
19090 as_me=`$as_basename -- "$0" ||
19091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19092          X"$0" : 'X\(//\)$' \| \
19093          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19094 $as_echo X/"$0" |
19095     sed '/^.*\/\([^/][^/]*\)\/*$/{
19096             s//\1/
19097             q
19098           }
19099           /^X\/\(\/\/\)$/{
19100             s//\1/
19101             q
19102           }
19103           /^X\/\(\/\).*/{
19104             s//\1/
19105             q
19106           }
19107           s/.*/./; q'`
19108
19109 # Avoid depending upon Character Ranges.
19110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19113 as_cr_digits='0123456789'
19114 as_cr_alnum=$as_cr_Letters$as_cr_digits
19115
19116 ECHO_C= ECHO_N= ECHO_T=
19117 case `echo -n x` in #(((((
19118 -n*)
19119   case `echo 'xy\c'` in
19120   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19121   xy)  ECHO_C='\c';;
19122   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19123        ECHO_T=' ';;
19124   esac;;
19125 *)
19126   ECHO_N='-n';;
19127 esac
19128
19129 rm -f conf$$ conf$$.exe conf$$.file
19130 if test -d conf$$.dir; then
19131   rm -f conf$$.dir/conf$$.file
19132 else
19133   rm -f conf$$.dir
19134   mkdir conf$$.dir 2>/dev/null
19135 fi
19136 if (echo >conf$$.file) 2>/dev/null; then
19137   if ln -s conf$$.file conf$$ 2>/dev/null; then
19138     as_ln_s='ln -s'
19139     # ... but there are two gotchas:
19140     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19141     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19142     # In both cases, we have to default to `cp -p'.
19143     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19144       as_ln_s='cp -p'
19145   elif ln conf$$.file conf$$ 2>/dev/null; then
19146     as_ln_s=ln
19147   else
19148     as_ln_s='cp -p'
19149   fi
19150 else
19151   as_ln_s='cp -p'
19152 fi
19153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19154 rmdir conf$$.dir 2>/dev/null
19155
19156
19157 # as_fn_mkdir_p
19158 # -------------
19159 # Create "$as_dir" as a directory, including parents if necessary.
19160 as_fn_mkdir_p ()
19161 {
19162
19163   case $as_dir in #(
19164   -*) as_dir=./$as_dir;;
19165   esac
19166   test -d "$as_dir" || eval $as_mkdir_p || {
19167     as_dirs=
19168     while :; do
19169       case $as_dir in #(
19170       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19171       *) as_qdir=$as_dir;;
19172       esac
19173       as_dirs="'$as_qdir' $as_dirs"
19174       as_dir=`$as_dirname -- "$as_dir" ||
19175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19176          X"$as_dir" : 'X\(//\)[^/]' \| \
19177          X"$as_dir" : 'X\(//\)$' \| \
19178          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19179 $as_echo X"$as_dir" |
19180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19181             s//\1/
19182             q
19183           }
19184           /^X\(\/\/\)[^/].*/{
19185             s//\1/
19186             q
19187           }
19188           /^X\(\/\/\)$/{
19189             s//\1/
19190             q
19191           }
19192           /^X\(\/\).*/{
19193             s//\1/
19194             q
19195           }
19196           s/.*/./; q'`
19197       test -d "$as_dir" && break
19198     done
19199     test -z "$as_dirs" || eval "mkdir $as_dirs"
19200   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19201
19202
19203 } # as_fn_mkdir_p
19204 if mkdir -p . 2>/dev/null; then
19205   as_mkdir_p='mkdir -p "$as_dir"'
19206 else
19207   test -d ./-p && rmdir ./-p
19208   as_mkdir_p=false
19209 fi
19210
19211 if test -x / >/dev/null 2>&1; then
19212   as_test_x='test -x'
19213 else
19214   if ls -dL / >/dev/null 2>&1; then
19215     as_ls_L_option=L
19216   else
19217     as_ls_L_option=
19218   fi
19219   as_test_x='
19220     eval sh -c '\''
19221       if test -d "$1"; then
19222         test -d "$1/.";
19223       else
19224         case $1 in #(
19225         -*)set "./$1";;
19226         esac;
19227         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19228         ???[sx]*):;;*)false;;esac;fi
19229     '\'' sh
19230   '
19231 fi
19232 as_executable_p=$as_test_x
19233
19234 # Sed expression to map a string onto a valid CPP name.
19235 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19236
19237 # Sed expression to map a string onto a valid variable name.
19238 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19239
19240
19241 exec 6>&1
19242 ## ----------------------------------- ##
19243 ## Main body of $CONFIG_STATUS script. ##
19244 ## ----------------------------------- ##
19245 _ASEOF
19246 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19247
19248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249 # Save the log message, to keep $0 and so on meaningful, and to
19250 # report actual input values of CONFIG_FILES etc. instead of their
19251 # values after options handling.
19252 ac_log="
19253 This file was extended by util-linux $as_me 2.20.1, which was
19254 generated by GNU Autoconf 2.68.  Invocation command line was
19255
19256   CONFIG_FILES    = $CONFIG_FILES
19257   CONFIG_HEADERS  = $CONFIG_HEADERS
19258   CONFIG_LINKS    = $CONFIG_LINKS
19259   CONFIG_COMMANDS = $CONFIG_COMMANDS
19260   $ $0 $@
19261
19262 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19263 "
19264
19265 _ACEOF
19266
19267 case $ac_config_files in *"
19268 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19269 esac
19270
19271 case $ac_config_headers in *"
19272 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19273 esac
19274
19275
19276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19277 # Files that config.status was made for.
19278 config_files="$ac_config_files"
19279 config_headers="$ac_config_headers"
19280 config_commands="$ac_config_commands"
19281
19282 _ACEOF
19283
19284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19285 ac_cs_usage="\
19286 \`$as_me' instantiates files and other configuration actions
19287 from templates according to the current configuration.  Unless the files
19288 and actions are specified as TAGs, all are instantiated by default.
19289
19290 Usage: $0 [OPTION]... [TAG]...
19291
19292   -h, --help       print this help, then exit
19293   -V, --version    print version number and configuration settings, then exit
19294       --config     print configuration, then exit
19295   -q, --quiet, --silent
19296                    do not print progress messages
19297   -d, --debug      don't remove temporary files
19298       --recheck    update $as_me by reconfiguring in the same conditions
19299       --file=FILE[:TEMPLATE]
19300                    instantiate the configuration file FILE
19301       --header=FILE[:TEMPLATE]
19302                    instantiate the configuration header FILE
19303
19304 Configuration files:
19305 $config_files
19306
19307 Configuration headers:
19308 $config_headers
19309
19310 Configuration commands:
19311 $config_commands
19312
19313 Report bugs to <kzak@redhat.com>."
19314
19315 _ACEOF
19316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19318 ac_cs_version="\\
19319 util-linux config.status 2.20.1
19320 configured by $0, generated by GNU Autoconf 2.68,
19321   with options \\"\$ac_cs_config\\"
19322
19323 Copyright (C) 2010 Free Software Foundation, Inc.
19324 This config.status script is free software; the Free Software Foundation
19325 gives unlimited permission to copy, distribute and modify it."
19326
19327 ac_pwd='$ac_pwd'
19328 srcdir='$srcdir'
19329 INSTALL='$INSTALL'
19330 MKDIR_P='$MKDIR_P'
19331 AWK='$AWK'
19332 test -n "\$AWK" || AWK=awk
19333 _ACEOF
19334
19335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19336 # The default lists apply if the user does not specify any file.
19337 ac_need_defaults=:
19338 while test $# != 0
19339 do
19340   case $1 in
19341   --*=?*)
19342     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19343     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19344     ac_shift=:
19345     ;;
19346   --*=)
19347     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19348     ac_optarg=
19349     ac_shift=:
19350     ;;
19351   *)
19352     ac_option=$1
19353     ac_optarg=$2
19354     ac_shift=shift
19355     ;;
19356   esac
19357
19358   case $ac_option in
19359   # Handling of the options.
19360   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19361     ac_cs_recheck=: ;;
19362   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19363     $as_echo "$ac_cs_version"; exit ;;
19364   --config | --confi | --conf | --con | --co | --c )
19365     $as_echo "$ac_cs_config"; exit ;;
19366   --debug | --debu | --deb | --de | --d | -d )
19367     debug=: ;;
19368   --file | --fil | --fi | --f )
19369     $ac_shift
19370     case $ac_optarg in
19371     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19372     '') as_fn_error $? "missing file argument" ;;
19373     esac
19374     as_fn_append CONFIG_FILES " '$ac_optarg'"
19375     ac_need_defaults=false;;
19376   --header | --heade | --head | --hea )
19377     $ac_shift
19378     case $ac_optarg in
19379     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19380     esac
19381     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19382     ac_need_defaults=false;;
19383   --he | --h)
19384     # Conflict between --help and --header
19385     as_fn_error $? "ambiguous option: \`$1'
19386 Try \`$0 --help' for more information.";;
19387   --help | --hel | -h )
19388     $as_echo "$ac_cs_usage"; exit ;;
19389   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19390   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19391     ac_cs_silent=: ;;
19392
19393   # This is an error.
19394   -*) as_fn_error $? "unrecognized option: \`$1'
19395 Try \`$0 --help' for more information." ;;
19396
19397   *) as_fn_append ac_config_targets " $1"
19398      ac_need_defaults=false ;;
19399
19400   esac
19401   shift
19402 done
19403
19404 ac_configure_extra_args=
19405
19406 if $ac_cs_silent; then
19407   exec 6>/dev/null
19408   ac_configure_extra_args="$ac_configure_extra_args --silent"
19409 fi
19410
19411 _ACEOF
19412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19413 if \$ac_cs_recheck; then
19414   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19415   shift
19416   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19417   CONFIG_SHELL='$SHELL'
19418   export CONFIG_SHELL
19419   exec "\$@"
19420 fi
19421
19422 _ACEOF
19423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19424 exec 5>>config.log
19425 {
19426   echo
19427   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19428 ## Running $as_me. ##
19429 _ASBOX
19430   $as_echo "$ac_log"
19431 } >&5
19432
19433 _ACEOF
19434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19435 #
19436 # INIT-COMMANDS
19437 #
19438 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19439
19440
19441 # The HP-UX ksh and POSIX shell print the target directory to stdout
19442 # if CDPATH is set.
19443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19444
19445 sed_quote_subst='$sed_quote_subst'
19446 double_quote_subst='$double_quote_subst'
19447 delay_variable_subst='$delay_variable_subst'
19448 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19449 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19450 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19451 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19452 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19453 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19454 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19455 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19456 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19457 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19458 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19459 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19460 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19461 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19462 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19463 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19464 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19465 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19466 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19467 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19468 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19469 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19470 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19471 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19472 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19473 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19474 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19475 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19476 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19477 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19478 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19479 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19480 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19481 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19482 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19483 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19484 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19485 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19486 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19487 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19488 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19489 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19490 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19491 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19492 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19493 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19494 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19495 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19496 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19497 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19498 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19499 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19500 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19501 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19502 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19503 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"`'
19504 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19505 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19506 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19507 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19508 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19509 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19510 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19511 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19512 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19513 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19514 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19515 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19516 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19517 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19518 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19519 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19520 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19521 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19522 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19523 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19524 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19525 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19526 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19527 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19528 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19529 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19530 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19531 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19532 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19533 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19534 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19535 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19536 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19537 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19538 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19539 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19540 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19541 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19542 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19543 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19544 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19545 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19546 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19547 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19548 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19549 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19550 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19551 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19552 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19553 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19554 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19555 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19556 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19557 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19558 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19559 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19560 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19561 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19562 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19563 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19564 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19565 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19566 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19567 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19568 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19569 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19570 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19571 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19572 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19573 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19574 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19575 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19576 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19577 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19578
19579 LTCC='$LTCC'
19580 LTCFLAGS='$LTCFLAGS'
19581 compiler='$compiler_DEFAULT'
19582
19583 # A function that is used when there is no print builtin or printf.
19584 func_fallback_echo ()
19585 {
19586   eval 'cat <<_LTECHO_EOF
19587 \$1
19588 _LTECHO_EOF'
19589 }
19590
19591 # Quote evaled strings.
19592 for var in SHELL \
19593 ECHO \
19594 SED \
19595 GREP \
19596 EGREP \
19597 FGREP \
19598 LD \
19599 NM \
19600 LN_S \
19601 lt_SP2NL \
19602 lt_NL2SP \
19603 reload_flag \
19604 OBJDUMP \
19605 deplibs_check_method \
19606 file_magic_cmd \
19607 file_magic_glob \
19608 want_nocaseglob \
19609 DLLTOOL \
19610 sharedlib_from_linklib_cmd \
19611 AR \
19612 AR_FLAGS \
19613 archiver_list_spec \
19614 STRIP \
19615 RANLIB \
19616 CC \
19617 CFLAGS \
19618 compiler \
19619 lt_cv_sys_global_symbol_pipe \
19620 lt_cv_sys_global_symbol_to_cdecl \
19621 lt_cv_sys_global_symbol_to_c_name_address \
19622 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19623 nm_file_list_spec \
19624 lt_prog_compiler_no_builtin_flag \
19625 lt_prog_compiler_pic \
19626 lt_prog_compiler_wl \
19627 lt_prog_compiler_static \
19628 lt_cv_prog_compiler_c_o \
19629 need_locks \
19630 MANIFEST_TOOL \
19631 DSYMUTIL \
19632 NMEDIT \
19633 LIPO \
19634 OTOOL \
19635 OTOOL64 \
19636 shrext_cmds \
19637 export_dynamic_flag_spec \
19638 whole_archive_flag_spec \
19639 compiler_needs_object \
19640 with_gnu_ld \
19641 allow_undefined_flag \
19642 no_undefined_flag \
19643 hardcode_libdir_flag_spec \
19644 hardcode_libdir_flag_spec_ld \
19645 hardcode_libdir_separator \
19646 exclude_expsyms \
19647 include_expsyms \
19648 file_list_spec \
19649 variables_saved_for_relink \
19650 libname_spec \
19651 library_names_spec \
19652 soname_spec \
19653 install_override_mode \
19654 finish_eval \
19655 old_striplib \
19656 striplib; do
19657     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19658     *[\\\\\\\`\\"\\\$]*)
19659       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19660       ;;
19661     *)
19662       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19663       ;;
19664     esac
19665 done
19666
19667 # Double-quote double-evaled strings.
19668 for var in reload_cmds \
19669 old_postinstall_cmds \
19670 old_postuninstall_cmds \
19671 old_archive_cmds \
19672 extract_expsyms_cmds \
19673 old_archive_from_new_cmds \
19674 old_archive_from_expsyms_cmds \
19675 archive_cmds \
19676 archive_expsym_cmds \
19677 module_cmds \
19678 module_expsym_cmds \
19679 export_symbols_cmds \
19680 prelink_cmds \
19681 postlink_cmds \
19682 postinstall_cmds \
19683 postuninstall_cmds \
19684 finish_cmds \
19685 sys_lib_search_path_spec \
19686 sys_lib_dlsearch_path_spec; do
19687     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19688     *[\\\\\\\`\\"\\\$]*)
19689       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19690       ;;
19691     *)
19692       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19693       ;;
19694     esac
19695 done
19696
19697 ac_aux_dir='$ac_aux_dir'
19698 xsi_shell='$xsi_shell'
19699 lt_shell_append='$lt_shell_append'
19700
19701 # See if we are running on zsh, and set the options which allow our
19702 # commands through without removal of \ escapes INIT.
19703 if test -n "\${ZSH_VERSION+set}" ; then
19704    setopt NO_GLOB_SUBST
19705 fi
19706
19707
19708     PACKAGE='$PACKAGE'
19709     VERSION='$VERSION'
19710     TIMESTAMP='$TIMESTAMP'
19711     RM='$RM'
19712     ofile='$ofile'
19713
19714
19715
19716 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19717     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19718     # from automake.
19719     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19720     # Capture the value of LINGUAS because we need it to compute CATALOGS.
19721     LINGUAS="${LINGUAS-%UNSET%}"
19722
19723
19724 _ACEOF
19725
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19727
19728 # Handling of arguments.
19729 for ac_config_target in $ac_config_targets
19730 do
19731   case $ac_config_target in
19732     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19733     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19734     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19735     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19736     "disk-utils/Makefile") CONFIG_FILES="$CONFIG_FILES disk-utils/Makefile" ;;
19737     "fdisk/Makefile") CONFIG_FILES="$CONFIG_FILES fdisk/Makefile" ;;
19738     "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
19739     "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
19740     "hwclock/Makefile") CONFIG_FILES="$CONFIG_FILES hwclock/Makefile" ;;
19741     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19742     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19743     "login-utils/Makefile") CONFIG_FILES="$CONFIG_FILES login-utils/Makefile" ;;
19744     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19745     "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
19746     "misc-utils/chkdupexe") CONFIG_FILES="$CONFIG_FILES misc-utils/chkdupexe:misc-utils/chkdupexe.pl" ;;
19747     "misc-utils/Makefile") CONFIG_FILES="$CONFIG_FILES misc-utils/Makefile" ;;
19748     "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
19749     "partx/Makefile") CONFIG_FILES="$CONFIG_FILES partx/Makefile" ;;
19750     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19751     "schedutils/Makefile") CONFIG_FILES="$CONFIG_FILES schedutils/Makefile" ;;
19752     "libblkid/blkid.pc") CONFIG_FILES="$CONFIG_FILES libblkid/blkid.pc" ;;
19753     "libblkid/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/Makefile" ;;
19754     "libblkid/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/docs/Makefile" ;;
19755     "libblkid/docs/version.xml") CONFIG_FILES="$CONFIG_FILES libblkid/docs/version.xml" ;;
19756     "libblkid/src/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/Makefile" ;;
19757     "libblkid/src/blkid.h") CONFIG_FILES="$CONFIG_FILES libblkid/src/blkid.h" ;;
19758     "libblkid/src/superblocks/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/superblocks/Makefile" ;;
19759     "libblkid/src/topology/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/topology/Makefile" ;;
19760     "libblkid/src/partitions/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/partitions/Makefile" ;;
19761     "libblkid/samples/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/samples/Makefile" ;;
19762     "libmount/mount.pc") CONFIG_FILES="$CONFIG_FILES libmount/mount.pc" ;;
19763     "libmount/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/Makefile" ;;
19764     "libmount/src/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/src/Makefile" ;;
19765     "libmount/src/libmount.h") CONFIG_FILES="$CONFIG_FILES libmount/src/libmount.h" ;;
19766     "libmount/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/docs/Makefile" ;;
19767     "libmount/docs/version.xml") CONFIG_FILES="$CONFIG_FILES libmount/docs/version.xml" ;;
19768     "libmount/samples/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/samples/Makefile" ;;
19769     "libuuid/uuid.pc") CONFIG_FILES="$CONFIG_FILES libuuid/uuid.pc" ;;
19770     "libuuid/Makefile") CONFIG_FILES="$CONFIG_FILES libuuid/Makefile" ;;
19771     "libuuid/man/Makefile") CONFIG_FILES="$CONFIG_FILES libuuid/man/Makefile" ;;
19772     "libuuid/src/Makefile") CONFIG_FILES="$CONFIG_FILES libuuid/src/Makefile" ;;
19773     "sys-utils/Makefile") CONFIG_FILES="$CONFIG_FILES sys-utils/Makefile" ;;
19774     "term-utils/Makefile") CONFIG_FILES="$CONFIG_FILES term-utils/Makefile" ;;
19775     "tests/commands.sh") CONFIG_FILES="$CONFIG_FILES tests/commands.sh" ;;
19776     "tests/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES tests/helpers/Makefile" ;;
19777     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19778     "text-utils/Makefile") CONFIG_FILES="$CONFIG_FILES text-utils/Makefile" ;;
19779
19780   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19781   esac
19782 done
19783
19784
19785 # If the user did not use the arguments to specify the items to instantiate,
19786 # then the envvar interface is used.  Set only those that are not.
19787 # We use the long form for the default assignment because of an extremely
19788 # bizarre bug on SunOS 4.1.3.
19789 if $ac_need_defaults; then
19790   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19791   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19792   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19793 fi
19794
19795 # Have a temporary directory for convenience.  Make it in the build tree
19796 # simply because there is no reason against having it here, and in addition,
19797 # creating and moving files from /tmp can sometimes cause problems.
19798 # Hook for its removal unless debugging.
19799 # Note that there is a small window in which the directory will not be cleaned:
19800 # after its creation but before its name has been assigned to `$tmp'.
19801 $debug ||
19802 {
19803   tmp= ac_tmp=
19804   trap 'exit_status=$?
19805   : "${ac_tmp:=$tmp}"
19806   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19807 ' 0
19808   trap 'as_fn_exit 1' 1 2 13 15
19809 }
19810 # Create a (secure) tmp directory for tmp files.
19811
19812 {
19813   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19814   test -d "$tmp"
19815 }  ||
19816 {
19817   tmp=./conf$$-$RANDOM
19818   (umask 077 && mkdir "$tmp")
19819 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19820 ac_tmp=$tmp
19821
19822 # Set up the scripts for CONFIG_FILES section.
19823 # No need to generate them if there are no CONFIG_FILES.
19824 # This happens for instance with `./config.status config.h'.
19825 if test -n "$CONFIG_FILES"; then
19826
19827
19828 ac_cr=`echo X | tr X '\015'`
19829 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19830 # But we know of no other shell where ac_cr would be empty at this
19831 # point, so we can use a bashism as a fallback.
19832 if test "x$ac_cr" = x; then
19833   eval ac_cr=\$\'\\r\'
19834 fi
19835 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19836 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19837   ac_cs_awk_cr='\\r'
19838 else
19839   ac_cs_awk_cr=$ac_cr
19840 fi
19841
19842 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19843 _ACEOF
19844
19845
19846 {
19847   echo "cat >conf$$subs.awk <<_ACEOF" &&
19848   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19849   echo "_ACEOF"
19850 } >conf$$subs.sh ||
19851   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19852 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19853 ac_delim='%!_!# '
19854 for ac_last_try in false false false false false :; do
19855   . ./conf$$subs.sh ||
19856     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19857
19858   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19859   if test $ac_delim_n = $ac_delim_num; then
19860     break
19861   elif $ac_last_try; then
19862     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19863   else
19864     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19865   fi
19866 done
19867 rm -f conf$$subs.sh
19868
19869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19870 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19871 _ACEOF
19872 sed -n '
19873 h
19874 s/^/S["/; s/!.*/"]=/
19875 p
19876 g
19877 s/^[^!]*!//
19878 :repl
19879 t repl
19880 s/'"$ac_delim"'$//
19881 t delim
19882 :nl
19883 h
19884 s/\(.\{148\}\)..*/\1/
19885 t more1
19886 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19887 p
19888 n
19889 b repl
19890 :more1
19891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19892 p
19893 g
19894 s/.\{148\}//
19895 t nl
19896 :delim
19897 h
19898 s/\(.\{148\}\)..*/\1/
19899 t more2
19900 s/["\\]/\\&/g; s/^/"/; s/$/"/
19901 p
19902 b
19903 :more2
19904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19905 p
19906 g
19907 s/.\{148\}//
19908 t delim
19909 ' <conf$$subs.awk | sed '
19910 /^[^""]/{
19911   N
19912   s/\n//
19913 }
19914 ' >>$CONFIG_STATUS || ac_write_fail=1
19915 rm -f conf$$subs.awk
19916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19917 _ACAWK
19918 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19919   for (key in S) S_is_set[key] = 1
19920   FS = "\a"
19921
19922 }
19923 {
19924   line = $ 0
19925   nfields = split(line, field, "@")
19926   substed = 0
19927   len = length(field[1])
19928   for (i = 2; i < nfields; i++) {
19929     key = field[i]
19930     keylen = length(key)
19931     if (S_is_set[key]) {
19932       value = S[key]
19933       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19934       len += length(value) + length(field[++i])
19935       substed = 1
19936     } else
19937       len += 1 + keylen
19938   }
19939
19940   print line
19941 }
19942
19943 _ACAWK
19944 _ACEOF
19945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19946 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19947   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19948 else
19949   cat
19950 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19951   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19952 _ACEOF
19953
19954 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19955 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19956 # trailing colons and then remove the whole line if VPATH becomes empty
19957 # (actually we leave an empty line to preserve line numbers).
19958 if test "x$srcdir" = x.; then
19959   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19960 h
19961 s///
19962 s/^/:/
19963 s/[      ]*$/:/
19964 s/:\$(srcdir):/:/g
19965 s/:\${srcdir}:/:/g
19966 s/:@srcdir@:/:/g
19967 s/^:*//
19968 s/:*$//
19969 x
19970 s/\(=[   ]*\).*/\1/
19971 G
19972 s/\n//
19973 s/^[^=]*=[       ]*$//
19974 }'
19975 fi
19976
19977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19978 fi # test -n "$CONFIG_FILES"
19979
19980 # Set up the scripts for CONFIG_HEADERS section.
19981 # No need to generate them if there are no CONFIG_HEADERS.
19982 # This happens for instance with `./config.status Makefile'.
19983 if test -n "$CONFIG_HEADERS"; then
19984 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19985 BEGIN {
19986 _ACEOF
19987
19988 # Transform confdefs.h into an awk script `defines.awk', embedded as
19989 # here-document in config.status, that substitutes the proper values into
19990 # config.h.in to produce config.h.
19991
19992 # Create a delimiter string that does not exist in confdefs.h, to ease
19993 # handling of long lines.
19994 ac_delim='%!_!# '
19995 for ac_last_try in false false :; do
19996   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19997   if test -z "$ac_tt"; then
19998     break
19999   elif $ac_last_try; then
20000     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20001   else
20002     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20003   fi
20004 done
20005
20006 # For the awk script, D is an array of macro values keyed by name,
20007 # likewise P contains macro parameters if any.  Preserve backslash
20008 # newline sequences.
20009
20010 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20011 sed -n '
20012 s/.\{148\}/&'"$ac_delim"'/g
20013 t rset
20014 :rset
20015 s/^[     ]*#[    ]*define[       ][      ]*/ /
20016 t def
20017 d
20018 :def
20019 s/\\$//
20020 t bsnl
20021 s/["\\]/\\&/g
20022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20023 D["\1"]=" \3"/p
20024 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20025 d
20026 :bsnl
20027 s/["\\]/\\&/g
20028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20029 D["\1"]=" \3\\\\\\n"\\/p
20030 t cont
20031 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20032 t cont
20033 d
20034 :cont
20035 n
20036 s/.\{148\}/&'"$ac_delim"'/g
20037 t clear
20038 :clear
20039 s/\\$//
20040 t bsnlc
20041 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20042 d
20043 :bsnlc
20044 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20045 b cont
20046 ' <confdefs.h | sed '
20047 s/'"$ac_delim"'/"\\\
20048 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20049
20050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20051   for (key in D) D_is_set[key] = 1
20052   FS = "\a"
20053 }
20054 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20055   line = \$ 0
20056   split(line, arg, " ")
20057   if (arg[1] == "#") {
20058     defundef = arg[2]
20059     mac1 = arg[3]
20060   } else {
20061     defundef = substr(arg[1], 2)
20062     mac1 = arg[2]
20063   }
20064   split(mac1, mac2, "(") #)
20065   macro = mac2[1]
20066   prefix = substr(line, 1, index(line, defundef) - 1)
20067   if (D_is_set[macro]) {
20068     # Preserve the white space surrounding the "#".
20069     print prefix "define", macro P[macro] D[macro]
20070     next
20071   } else {
20072     # Replace #undef with comments.  This is necessary, for example,
20073     # in the case of _POSIX_SOURCE, which is predefined and required
20074     # on some systems where configure will not decide to define it.
20075     if (defundef == "undef") {
20076       print "/*", prefix defundef, macro, "*/"
20077       next
20078     }
20079   }
20080 }
20081 { print }
20082 _ACAWK
20083 _ACEOF
20084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20085   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20086 fi # test -n "$CONFIG_HEADERS"
20087
20088
20089 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20090 shift
20091 for ac_tag
20092 do
20093   case $ac_tag in
20094   :[FHLC]) ac_mode=$ac_tag; continue;;
20095   esac
20096   case $ac_mode$ac_tag in
20097   :[FHL]*:*);;
20098   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20099   :[FH]-) ac_tag=-:-;;
20100   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20101   esac
20102   ac_save_IFS=$IFS
20103   IFS=:
20104   set x $ac_tag
20105   IFS=$ac_save_IFS
20106   shift
20107   ac_file=$1
20108   shift
20109
20110   case $ac_mode in
20111   :L) ac_source=$1;;
20112   :[FH])
20113     ac_file_inputs=
20114     for ac_f
20115     do
20116       case $ac_f in
20117       -) ac_f="$ac_tmp/stdin";;
20118       *) # Look for the file first in the build tree, then in the source tree
20119          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20120          # because $ac_f cannot contain `:'.
20121          test -f "$ac_f" ||
20122            case $ac_f in
20123            [\\/$]*) false;;
20124            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20125            esac ||
20126            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20127       esac
20128       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20129       as_fn_append ac_file_inputs " '$ac_f'"
20130     done
20131
20132     # Let's still pretend it is `configure' which instantiates (i.e., don't
20133     # use $as_me), people would be surprised to read:
20134     #    /* config.h.  Generated by config.status.  */
20135     configure_input='Generated from '`
20136           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20137         `' by configure.'
20138     if test x"$ac_file" != x-; then
20139       configure_input="$ac_file.  $configure_input"
20140       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20141 $as_echo "$as_me: creating $ac_file" >&6;}
20142     fi
20143     # Neutralize special characters interpreted by sed in replacement strings.
20144     case $configure_input in #(
20145     *\&* | *\|* | *\\* )
20146        ac_sed_conf_input=`$as_echo "$configure_input" |
20147        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20148     *) ac_sed_conf_input=$configure_input;;
20149     esac
20150
20151     case $ac_tag in
20152     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20153       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20154     esac
20155     ;;
20156   esac
20157
20158   ac_dir=`$as_dirname -- "$ac_file" ||
20159 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20160          X"$ac_file" : 'X\(//\)[^/]' \| \
20161          X"$ac_file" : 'X\(//\)$' \| \
20162          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20163 $as_echo X"$ac_file" |
20164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20165             s//\1/
20166             q
20167           }
20168           /^X\(\/\/\)[^/].*/{
20169             s//\1/
20170             q
20171           }
20172           /^X\(\/\/\)$/{
20173             s//\1/
20174             q
20175           }
20176           /^X\(\/\).*/{
20177             s//\1/
20178             q
20179           }
20180           s/.*/./; q'`
20181   as_dir="$ac_dir"; as_fn_mkdir_p
20182   ac_builddir=.
20183
20184 case "$ac_dir" in
20185 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20186 *)
20187   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20188   # A ".." for each directory in $ac_dir_suffix.
20189   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20190   case $ac_top_builddir_sub in
20191   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20192   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20193   esac ;;
20194 esac
20195 ac_abs_top_builddir=$ac_pwd
20196 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20197 # for backward compatibility:
20198 ac_top_builddir=$ac_top_build_prefix
20199
20200 case $srcdir in
20201   .)  # We are building in place.
20202     ac_srcdir=.
20203     ac_top_srcdir=$ac_top_builddir_sub
20204     ac_abs_top_srcdir=$ac_pwd ;;
20205   [\\/]* | ?:[\\/]* )  # Absolute name.
20206     ac_srcdir=$srcdir$ac_dir_suffix;
20207     ac_top_srcdir=$srcdir
20208     ac_abs_top_srcdir=$srcdir ;;
20209   *) # Relative name.
20210     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20211     ac_top_srcdir=$ac_top_build_prefix$srcdir
20212     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20213 esac
20214 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20215
20216
20217   case $ac_mode in
20218   :F)
20219   #
20220   # CONFIG_FILE
20221   #
20222
20223   case $INSTALL in
20224   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20225   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20226   esac
20227   ac_MKDIR_P=$MKDIR_P
20228   case $MKDIR_P in
20229   [\\/$]* | ?:[\\/]* ) ;;
20230   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20231   esac
20232 _ACEOF
20233
20234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20235 # If the template does not know about datarootdir, expand it.
20236 # FIXME: This hack should be removed a few years after 2.60.
20237 ac_datarootdir_hack=; ac_datarootdir_seen=
20238 ac_sed_dataroot='
20239 /datarootdir/ {
20240   p
20241   q
20242 }
20243 /@datadir@/p
20244 /@docdir@/p
20245 /@infodir@/p
20246 /@localedir@/p
20247 /@mandir@/p'
20248 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20249 *datarootdir*) ac_datarootdir_seen=yes;;
20250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20251   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20252 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20253 _ACEOF
20254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255   ac_datarootdir_hack='
20256   s&@datadir@&$datadir&g
20257   s&@docdir@&$docdir&g
20258   s&@infodir@&$infodir&g
20259   s&@localedir@&$localedir&g
20260   s&@mandir@&$mandir&g
20261   s&\\\${datarootdir}&$datarootdir&g' ;;
20262 esac
20263 _ACEOF
20264
20265 # Neutralize VPATH when `$srcdir' = `.'.
20266 # Shell code in configure.ac might set extrasub.
20267 # FIXME: do we really want to maintain this feature?
20268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20269 ac_sed_extra="$ac_vpsub
20270 $extrasub
20271 _ACEOF
20272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20273 :t
20274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20275 s|@configure_input@|$ac_sed_conf_input|;t t
20276 s&@top_builddir@&$ac_top_builddir_sub&;t t
20277 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20278 s&@srcdir@&$ac_srcdir&;t t
20279 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20280 s&@top_srcdir@&$ac_top_srcdir&;t t
20281 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20282 s&@builddir@&$ac_builddir&;t t
20283 s&@abs_builddir@&$ac_abs_builddir&;t t
20284 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20285 s&@INSTALL@&$ac_INSTALL&;t t
20286 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20287 $ac_datarootdir_hack
20288 "
20289 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20290   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20291
20292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20293   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20294   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20295       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20296   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20297 which seems to be undefined.  Please make sure it is defined" >&5
20298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20299 which seems to be undefined.  Please make sure it is defined" >&2;}
20300
20301   rm -f "$ac_tmp/stdin"
20302   case $ac_file in
20303   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20304   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20305   esac \
20306   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20307  ;;
20308   :H)
20309   #
20310   # CONFIG_HEADER
20311   #
20312   if test x"$ac_file" != x-; then
20313     {
20314       $as_echo "/* $configure_input  */" \
20315       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20316     } >"$ac_tmp/config.h" \
20317       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20318     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20319       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20320 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20321     else
20322       rm -f "$ac_file"
20323       mv "$ac_tmp/config.h" "$ac_file" \
20324         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20325     fi
20326   else
20327     $as_echo "/* $configure_input  */" \
20328       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20329       || as_fn_error $? "could not create -" "$LINENO" 5
20330   fi
20331 # Compute "$ac_file"'s index in $config_headers.
20332 _am_arg="$ac_file"
20333 _am_stamp_count=1
20334 for _am_header in $config_headers :; do
20335   case $_am_header in
20336     $_am_arg | $_am_arg:* )
20337       break ;;
20338     * )
20339       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20340   esac
20341 done
20342 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20343 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20344          X"$_am_arg" : 'X\(//\)[^/]' \| \
20345          X"$_am_arg" : 'X\(//\)$' \| \
20346          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20347 $as_echo X"$_am_arg" |
20348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20349             s//\1/
20350             q
20351           }
20352           /^X\(\/\/\)[^/].*/{
20353             s//\1/
20354             q
20355           }
20356           /^X\(\/\/\)$/{
20357             s//\1/
20358             q
20359           }
20360           /^X\(\/\).*/{
20361             s//\1/
20362             q
20363           }
20364           s/.*/./; q'`/stamp-h$_am_stamp_count
20365  ;;
20366
20367   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20368 $as_echo "$as_me: executing $ac_file commands" >&6;}
20369  ;;
20370   esac
20371
20372
20373   case $ac_file$ac_mode in
20374     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20375   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20376   # are listed without --file.  Let's play safe and only enable the eval
20377   # if we detect the quoting.
20378   case $CONFIG_FILES in
20379   *\'*) eval set x "$CONFIG_FILES" ;;
20380   *)   set x $CONFIG_FILES ;;
20381   esac
20382   shift
20383   for mf
20384   do
20385     # Strip MF so we end up with the name of the file.
20386     mf=`echo "$mf" | sed -e 's/:.*$//'`
20387     # Check whether this is an Automake generated Makefile or not.
20388     # We used to match only the files named `Makefile.in', but
20389     # some people rename them; so instead we look at the file content.
20390     # Grep'ing the first line is not enough: some people post-process
20391     # each Makefile.in and add a new line on top of each file to say so.
20392     # Grep'ing the whole file is not good either: AIX grep has a line
20393     # limit of 2048, but all sed's we know have understand at least 4000.
20394     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20395       dirpart=`$as_dirname -- "$mf" ||
20396 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20397          X"$mf" : 'X\(//\)[^/]' \| \
20398          X"$mf" : 'X\(//\)$' \| \
20399          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20400 $as_echo X"$mf" |
20401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20402             s//\1/
20403             q
20404           }
20405           /^X\(\/\/\)[^/].*/{
20406             s//\1/
20407             q
20408           }
20409           /^X\(\/\/\)$/{
20410             s//\1/
20411             q
20412           }
20413           /^X\(\/\).*/{
20414             s//\1/
20415             q
20416           }
20417           s/.*/./; q'`
20418     else
20419       continue
20420     fi
20421     # Extract the definition of DEPDIR, am__include, and am__quote
20422     # from the Makefile without running `make'.
20423     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20424     test -z "$DEPDIR" && continue
20425     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20426     test -z "am__include" && continue
20427     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20428     # When using ansi2knr, U may be empty or an underscore; expand it
20429     U=`sed -n 's/^U = //p' < "$mf"`
20430     # Find all dependency output files, they are included files with
20431     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20432     # simplest approach to changing $(DEPDIR) to its actual value in the
20433     # expansion.
20434     for file in `sed -n "
20435       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20436          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20437       # Make sure the directory exists.
20438       test -f "$dirpart/$file" && continue
20439       fdir=`$as_dirname -- "$file" ||
20440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20441          X"$file" : 'X\(//\)[^/]' \| \
20442          X"$file" : 'X\(//\)$' \| \
20443          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20444 $as_echo X"$file" |
20445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20446             s//\1/
20447             q
20448           }
20449           /^X\(\/\/\)[^/].*/{
20450             s//\1/
20451             q
20452           }
20453           /^X\(\/\/\)$/{
20454             s//\1/
20455             q
20456           }
20457           /^X\(\/\).*/{
20458             s//\1/
20459             q
20460           }
20461           s/.*/./; q'`
20462       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20463       # echo "creating $dirpart/$file"
20464       echo '# dummy' > "$dirpart/$file"
20465     done
20466   done
20467 }
20468  ;;
20469     "libtool":C)
20470
20471     # See if we are running on zsh, and set the options which allow our
20472     # commands through without removal of \ escapes.
20473     if test -n "${ZSH_VERSION+set}" ; then
20474       setopt NO_GLOB_SUBST
20475     fi
20476
20477     cfgfile="${ofile}T"
20478     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20479     $RM "$cfgfile"
20480
20481     cat <<_LT_EOF >> "$cfgfile"
20482 #! $SHELL
20483
20484 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20485 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20488 #
20489 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20490 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20491 #                 Inc.
20492 #   Written by Gordon Matzigkeit, 1996
20493 #
20494 #   This file is part of GNU Libtool.
20495 #
20496 # GNU Libtool is free software; you can redistribute it and/or
20497 # modify it under the terms of the GNU General Public License as
20498 # published by the Free Software Foundation; either version 2 of
20499 # the License, or (at your option) any later version.
20500 #
20501 # As a special exception to the GNU General Public License,
20502 # if you distribute this file as part of a program or library that
20503 # is built using GNU Libtool, you may include this file under the
20504 # same distribution terms that you use for the rest of that program.
20505 #
20506 # GNU Libtool is distributed in the hope that it will be useful,
20507 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20509 # GNU General Public License for more details.
20510 #
20511 # You should have received a copy of the GNU General Public License
20512 # along with GNU Libtool; see the file COPYING.  If not, a copy
20513 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20514 # obtained by writing to the Free Software Foundation, Inc.,
20515 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20516
20517
20518 # The names of the tagged configurations supported by this script.
20519 available_tags=""
20520
20521 # ### BEGIN LIBTOOL CONFIG
20522
20523 # Which release of libtool.m4 was used?
20524 macro_version=$macro_version
20525 macro_revision=$macro_revision
20526
20527 # Whether or not to build shared libraries.
20528 build_libtool_libs=$enable_shared
20529
20530 # Whether or not to build static libraries.
20531 build_old_libs=$enable_static
20532
20533 # What type of objects to build.
20534 pic_mode=$pic_mode
20535
20536 # Whether or not to optimize for fast installation.
20537 fast_install=$enable_fast_install
20538
20539 # Shell to use when invoking shell scripts.
20540 SHELL=$lt_SHELL
20541
20542 # An echo program that protects backslashes.
20543 ECHO=$lt_ECHO
20544
20545 # The host system.
20546 host_alias=$host_alias
20547 host=$host
20548 host_os=$host_os
20549
20550 # The build system.
20551 build_alias=$build_alias
20552 build=$build
20553 build_os=$build_os
20554
20555 # A sed program that does not truncate output.
20556 SED=$lt_SED
20557
20558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20559 Xsed="\$SED -e 1s/^X//"
20560
20561 # A grep program that handles long lines.
20562 GREP=$lt_GREP
20563
20564 # An ERE matcher.
20565 EGREP=$lt_EGREP
20566
20567 # A literal string matcher.
20568 FGREP=$lt_FGREP
20569
20570 # A BSD- or MS-compatible name lister.
20571 NM=$lt_NM
20572
20573 # Whether we need soft or hard links.
20574 LN_S=$lt_LN_S
20575
20576 # What is the maximum length of a command?
20577 max_cmd_len=$max_cmd_len
20578
20579 # Object file audit (normally "o").
20580 objext=$ac_objext
20581
20582 # Executable file audit (normally "").
20583 exeext=$exeext
20584
20585 # whether the shell understands "unset".
20586 lt_unset=$lt_unset
20587
20588 # turn spaces into newlines.
20589 SP2NL=$lt_lt_SP2NL
20590
20591 # turn newlines into spaces.
20592 NL2SP=$lt_lt_NL2SP
20593
20594 # convert \$build file names to \$host format.
20595 to_host_file_cmd=$lt_cv_to_host_file_cmd
20596
20597 # convert \$build files to toolchain format.
20598 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20599
20600 # An object symbol dumper.
20601 OBJDUMP=$lt_OBJDUMP
20602
20603 # Method to check whether dependent libraries are shared objects.
20604 deplibs_check_method=$lt_deplibs_check_method
20605
20606 # Command to use when deplibs_check_method = "file_magic".
20607 file_magic_cmd=$lt_file_magic_cmd
20608
20609 # How to find potential files when deplibs_check_method = "file_magic".
20610 file_magic_glob=$lt_file_magic_glob
20611
20612 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20613 want_nocaseglob=$lt_want_nocaseglob
20614
20615 # DLL creation program.
20616 DLLTOOL=$lt_DLLTOOL
20617
20618 # Command to associate shared and link libraries.
20619 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20620
20621 # The archiver.
20622 AR=$lt_AR
20623
20624 # Flags to create an archive.
20625 AR_FLAGS=$lt_AR_FLAGS
20626
20627 # How to feed a file listing to the archiver.
20628 archiver_list_spec=$lt_archiver_list_spec
20629
20630 # A symbol stripping program.
20631 STRIP=$lt_STRIP
20632
20633 # Commands used to install an old-style archive.
20634 RANLIB=$lt_RANLIB
20635 old_postinstall_cmds=$lt_old_postinstall_cmds
20636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20637
20638 # Whether to use a lock for old archive extraction.
20639 lock_old_archive_extraction=$lock_old_archive_extraction
20640
20641 # A C compiler.
20642 LTCC=$lt_CC
20643
20644 # LTCC compiler flags.
20645 LTCFLAGS=$lt_CFLAGS
20646
20647 # Take the output of nm and produce a listing of raw symbols and C names.
20648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20649
20650 # Transform the output of nm in a proper C declaration.
20651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20652
20653 # Transform the output of nm in a C name address pair.
20654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20655
20656 # Transform the output of nm in a C name address pair when lib prefix is needed.
20657 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20658
20659 # Specify filename containing input files for \$NM.
20660 nm_file_list_spec=$lt_nm_file_list_spec
20661
20662 # The root where to search for dependent libraries,and in which our libraries should be installed.
20663 lt_sysroot=$lt_sysroot
20664
20665 # The name of the directory that contains temporary libtool files.
20666 objdir=$objdir
20667
20668 # Used to examine libraries when file_magic_cmd begins with "file".
20669 MAGIC_CMD=$MAGIC_CMD
20670
20671 # Must we lock files when doing compilation?
20672 need_locks=$lt_need_locks
20673
20674 # Manifest tool.
20675 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20676
20677 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20678 DSYMUTIL=$lt_DSYMUTIL
20679
20680 # Tool to change global to local symbols on Mac OS X.
20681 NMEDIT=$lt_NMEDIT
20682
20683 # Tool to manipulate fat objects and archives on Mac OS X.
20684 LIPO=$lt_LIPO
20685
20686 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20687 OTOOL=$lt_OTOOL
20688
20689 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20690 OTOOL64=$lt_OTOOL64
20691
20692 # Old archive audit (normally "a").
20693 libext=$libext
20694
20695 # Shared library audit (normally ".so").
20696 shrext_cmds=$lt_shrext_cmds
20697
20698 # The commands to extract the exported symbol list from a shared archive.
20699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20700
20701 # Variables whose values should be saved in libtool wrapper scripts and
20702 # restored at link time.
20703 variables_saved_for_relink=$lt_variables_saved_for_relink
20704
20705 # Do we need the "lib" prefix for modules?
20706 need_lib_prefix=$need_lib_prefix
20707
20708 # Do we need a version for libraries?
20709 need_version=$need_version
20710
20711 # Library versioning type.
20712 version_type=$version_type
20713
20714 # Shared library runtime path variable.
20715 runpath_var=$runpath_var
20716
20717 # Shared library path variable.
20718 shlibpath_var=$shlibpath_var
20719
20720 # Is shlibpath searched before the hard-coded library search path?
20721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20722
20723 # Format of library name prefix.
20724 libname_spec=$lt_libname_spec
20725
20726 # List of archive names.  First name is the real one, the rest are links.
20727 # The last name is the one that the linker finds with -lNAME
20728 library_names_spec=$lt_library_names_spec
20729
20730 # The coded name of the library, if different from the real name.
20731 soname_spec=$lt_soname_spec
20732
20733 # Permission mode override for installation of shared libraries.
20734 install_override_mode=$lt_install_override_mode
20735
20736 # Command to use after installation of a shared archive.
20737 postinstall_cmds=$lt_postinstall_cmds
20738
20739 # Command to use after uninstallation of a shared archive.
20740 postuninstall_cmds=$lt_postuninstall_cmds
20741
20742 # Commands used to finish a libtool library installation in a directory.
20743 finish_cmds=$lt_finish_cmds
20744
20745 # As "finish_cmds", except a single script fragment to be evaled but
20746 # not shown.
20747 finish_eval=$lt_finish_eval
20748
20749 # Whether we should hardcode library paths into libraries.
20750 hardcode_into_libs=$hardcode_into_libs
20751
20752 # Compile-time system search path for libraries.
20753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20754
20755 # Run-time system search path for libraries.
20756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20757
20758 # Whether dlopen is supported.
20759 dlopen_support=$enable_dlopen
20760
20761 # Whether dlopen of programs is supported.
20762 dlopen_self=$enable_dlopen_self
20763
20764 # Whether dlopen of statically linked programs is supported.
20765 dlopen_self_static=$enable_dlopen_self_static
20766
20767 # Commands to strip libraries.
20768 old_striplib=$lt_old_striplib
20769 striplib=$lt_striplib
20770
20771
20772 # The linker used to build libraries.
20773 LD=$lt_LD
20774
20775 # How to create reloadable object files.
20776 reload_flag=$lt_reload_flag
20777 reload_cmds=$lt_reload_cmds
20778
20779 # Commands used to build an old-style archive.
20780 old_archive_cmds=$lt_old_archive_cmds
20781
20782 # A language specific compiler.
20783 CC=$lt_compiler
20784
20785 # Is the compiler the GNU compiler?
20786 with_gcc=$GCC
20787
20788 # Compiler flag to turn off builtin functions.
20789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20790
20791 # Additional compiler flags for building library objects.
20792 pic_flag=$lt_lt_prog_compiler_pic
20793
20794 # How to pass a linker flag through the compiler.
20795 wl=$lt_lt_prog_compiler_wl
20796
20797 # Compiler flag to prevent dynamic linking.
20798 link_static_flag=$lt_lt_prog_compiler_static
20799
20800 # Does compiler simultaneously support -c and -o options?
20801 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20802
20803 # Whether or not to add -lc for building shared libraries.
20804 build_libtool_need_lc=$archive_cmds_need_lc
20805
20806 # Whether or not to disallow shared libs when runtime libs are static.
20807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20808
20809 # Compiler flag to allow reflexive dlopens.
20810 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20811
20812 # Compiler flag to generate shared objects directly from archives.
20813 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20814
20815 # Whether the compiler copes with passing no objects directly.
20816 compiler_needs_object=$lt_compiler_needs_object
20817
20818 # Create an old-style archive from a shared archive.
20819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20820
20821 # Create a temporary old-style archive to link instead of a shared archive.
20822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20823
20824 # Commands used to build a shared archive.
20825 archive_cmds=$lt_archive_cmds
20826 archive_expsym_cmds=$lt_archive_expsym_cmds
20827
20828 # Commands used to build a loadable module if different from building
20829 # a shared archive.
20830 module_cmds=$lt_module_cmds
20831 module_expsym_cmds=$lt_module_expsym_cmds
20832
20833 # Whether we are building with GNU ld or not.
20834 with_gnu_ld=$lt_with_gnu_ld
20835
20836 # Flag that allows shared libraries with undefined symbols to be built.
20837 allow_undefined_flag=$lt_allow_undefined_flag
20838
20839 # Flag that enforces no undefined symbols.
20840 no_undefined_flag=$lt_no_undefined_flag
20841
20842 # Flag to hardcode \$libdir into a binary during linking.
20843 # This must work even if \$libdir does not exist
20844 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20845
20846 # If ld is used when linking, flag to hardcode \$libdir into a binary
20847 # during linking.  This must work even if \$libdir does not exist.
20848 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20849
20850 # Whether we need a single "-rpath" flag with a separated argument.
20851 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20852
20853 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20854 # DIR into the resulting binary.
20855 hardcode_direct=$hardcode_direct
20856
20857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20858 # DIR into the resulting binary and the resulting library dependency is
20859 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20860 # library is relocated.
20861 hardcode_direct_absolute=$hardcode_direct_absolute
20862
20863 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20864 # into the resulting binary.
20865 hardcode_minus_L=$hardcode_minus_L
20866
20867 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20868 # into the resulting binary.
20869 hardcode_shlibpath_var=$hardcode_shlibpath_var
20870
20871 # Set to "yes" if building a shared library automatically hardcodes DIR
20872 # into the library and all subsequent libraries and executables linked
20873 # against it.
20874 hardcode_automatic=$hardcode_automatic
20875
20876 # Set to yes if linker adds runtime paths of dependent libraries
20877 # to runtime path list.
20878 inherit_rpath=$inherit_rpath
20879
20880 # Whether libtool must link a program against all its dependency libraries.
20881 link_all_deplibs=$link_all_deplibs
20882
20883 # Set to "yes" if exported symbols are required.
20884 always_export_symbols=$always_export_symbols
20885
20886 # The commands to list exported symbols.
20887 export_symbols_cmds=$lt_export_symbols_cmds
20888
20889 # Symbols that should not be listed in the preloaded symbols.
20890 exclude_expsyms=$lt_exclude_expsyms
20891
20892 # Symbols that must always be exported.
20893 include_expsyms=$lt_include_expsyms
20894
20895 # Commands necessary for linking programs (against libraries) with templates.
20896 prelink_cmds=$lt_prelink_cmds
20897
20898 # Commands necessary for finishing linking programs.
20899 postlink_cmds=$lt_postlink_cmds
20900
20901 # Specify filename containing input files.
20902 file_list_spec=$lt_file_list_spec
20903
20904 # How to hardcode a shared library path into an executable.
20905 hardcode_action=$hardcode_action
20906
20907 # ### END LIBTOOL CONFIG
20908
20909 _LT_EOF
20910
20911   case $host_os in
20912   aix3*)
20913     cat <<\_LT_EOF >> "$cfgfile"
20914 # AIX sometimes has problems with the GCC collect2 program.  For some
20915 # reason, if we set the COLLECT_NAMES environment variable, the problems
20916 # vanish in a puff of smoke.
20917 if test "X${COLLECT_NAMES+set}" != Xset; then
20918   COLLECT_NAMES=
20919   export COLLECT_NAMES
20920 fi
20921 _LT_EOF
20922     ;;
20923   esac
20924
20925
20926 ltmain="$ac_aux_dir/ltmain.sh"
20927
20928
20929   # We use sed instead of cat because bash on DJGPP gets confused if
20930   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20931   # text mode, it properly converts lines to CR/LF.  This bash problem
20932   # is reportedly fixed, but why not run on old versions too?
20933   sed '$q' "$ltmain" >> "$cfgfile" \
20934      || (rm -f "$cfgfile"; exit 1)
20935
20936   if test x"$xsi_shell" = xyes; then
20937   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20938 func_dirname ()\
20939 {\
20940 \    case ${1} in\
20941 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20942 \      *  ) func_dirname_result="${3}" ;;\
20943 \    esac\
20944 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20945   && mv -f "$cfgfile.tmp" "$cfgfile" \
20946     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20947 test 0 -eq $? || _lt_function_replace_fail=:
20948
20949
20950   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20951 func_basename ()\
20952 {\
20953 \    func_basename_result="${1##*/}"\
20954 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20955   && mv -f "$cfgfile.tmp" "$cfgfile" \
20956     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20957 test 0 -eq $? || _lt_function_replace_fail=:
20958
20959
20960   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20961 func_dirname_and_basename ()\
20962 {\
20963 \    case ${1} in\
20964 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20965 \      *  ) func_dirname_result="${3}" ;;\
20966 \    esac\
20967 \    func_basename_result="${1##*/}"\
20968 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20969   && mv -f "$cfgfile.tmp" "$cfgfile" \
20970     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20971 test 0 -eq $? || _lt_function_replace_fail=:
20972
20973
20974   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20975 func_stripname ()\
20976 {\
20977 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20978 \    # positional parameters, so assign one to ordinary parameter first.\
20979 \    func_stripname_result=${3}\
20980 \    func_stripname_result=${func_stripname_result#"${1}"}\
20981 \    func_stripname_result=${func_stripname_result%"${2}"}\
20982 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20983   && mv -f "$cfgfile.tmp" "$cfgfile" \
20984     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20985 test 0 -eq $? || _lt_function_replace_fail=:
20986
20987
20988   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20989 func_split_long_opt ()\
20990 {\
20991 \    func_split_long_opt_name=${1%%=*}\
20992 \    func_split_long_opt_arg=${1#*=}\
20993 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20994   && mv -f "$cfgfile.tmp" "$cfgfile" \
20995     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20996 test 0 -eq $? || _lt_function_replace_fail=:
20997
20998
20999   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21000 func_split_short_opt ()\
21001 {\
21002 \    func_split_short_opt_arg=${1#??}\
21003 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21004 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21005   && mv -f "$cfgfile.tmp" "$cfgfile" \
21006     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21007 test 0 -eq $? || _lt_function_replace_fail=:
21008
21009
21010   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21011 func_lo2o ()\
21012 {\
21013 \    case ${1} in\
21014 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21015 \      *)    func_lo2o_result=${1} ;;\
21016 \    esac\
21017 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21018   && mv -f "$cfgfile.tmp" "$cfgfile" \
21019     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21020 test 0 -eq $? || _lt_function_replace_fail=:
21021
21022
21023   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21024 func_xform ()\
21025 {\
21026     func_xform_result=${1%.*}.lo\
21027 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21028   && mv -f "$cfgfile.tmp" "$cfgfile" \
21029     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21030 test 0 -eq $? || _lt_function_replace_fail=:
21031
21032
21033   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21034 func_arith ()\
21035 {\
21036     func_arith_result=$(( $* ))\
21037 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21038   && mv -f "$cfgfile.tmp" "$cfgfile" \
21039     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21040 test 0 -eq $? || _lt_function_replace_fail=:
21041
21042
21043   sed -e '/^func_len ()$/,/^} # func_len /c\
21044 func_len ()\
21045 {\
21046     func_len_result=${#1}\
21047 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21048   && mv -f "$cfgfile.tmp" "$cfgfile" \
21049     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21050 test 0 -eq $? || _lt_function_replace_fail=:
21051
21052 fi
21053
21054 if test x"$lt_shell_append" = xyes; then
21055   sed -e '/^func_append ()$/,/^} # func_append /c\
21056 func_append ()\
21057 {\
21058     eval "${1}+=\\${2}"\
21059 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21060   && mv -f "$cfgfile.tmp" "$cfgfile" \
21061     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21062 test 0 -eq $? || _lt_function_replace_fail=:
21063
21064
21065   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21066 func_append_quoted ()\
21067 {\
21068 \    func_quote_for_eval "${2}"\
21069 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21070 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21071   && mv -f "$cfgfile.tmp" "$cfgfile" \
21072     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21073 test 0 -eq $? || _lt_function_replace_fail=:
21074
21075
21076   # Save a `func_append' function call where possible by direct use of '+='
21077   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21078     && mv -f "$cfgfile.tmp" "$cfgfile" \
21079       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21080   test 0 -eq $? || _lt_function_replace_fail=:
21081 else
21082   # Save a `func_append' function call even when '+=' is not available
21083   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21084     && mv -f "$cfgfile.tmp" "$cfgfile" \
21085       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21086   test 0 -eq $? || _lt_function_replace_fail=:
21087 fi
21088
21089 if test x"$_lt_function_replace_fail" = x":"; then
21090   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21091 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21092 fi
21093
21094
21095    mv -f "$cfgfile" "$ofile" ||
21096     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21097   chmod +x "$ofile"
21098
21099  ;;
21100     "default-1":C)
21101     for ac_file in $CONFIG_FILES; do
21102       # Support "outfile[:infile[:infile...]]"
21103       case "$ac_file" in
21104         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21105       esac
21106       # PO directories have a Makefile.in generated from Makefile.in.in.
21107       case "$ac_file" in */Makefile.in)
21108         # Adjust a relative srcdir.
21109         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21110         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21111         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21112         # In autoconf-2.13 it is called $ac_given_srcdir.
21113         # In autoconf-2.50 it is called $srcdir.
21114         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21115         case "$ac_given_srcdir" in
21116           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21117           /*) top_srcdir="$ac_given_srcdir" ;;
21118           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
21119         esac
21120         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21121           rm -f "$ac_dir/POTFILES"
21122           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21123           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21124           POMAKEFILEDEPS="POTFILES.in"
21125           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21126           # on $ac_dir but don't depend on user-specified configuration
21127           # parameters.
21128           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21129             # The LINGUAS file contains the set of available languages.
21130             if test -n "$OBSOLETE_ALL_LINGUAS"; then
21131               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21132             fi
21133             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21134             # Hide the ALL_LINGUAS assigment from automake.
21135             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21136             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21137           else
21138             # The set of available languages was given in configure.in.
21139             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21140           fi
21141           # Compute POFILES
21142           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21143           # Compute UPDATEPOFILES
21144           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21145           # Compute DUMMYPOFILES
21146           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21147           # Compute GMOFILES
21148           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21149           case "$ac_given_srcdir" in
21150             .) srcdirpre= ;;
21151             *) srcdirpre='$(srcdir)/' ;;
21152           esac
21153           POFILES=
21154           UPDATEPOFILES=
21155           DUMMYPOFILES=
21156           GMOFILES=
21157           for lang in $ALL_LINGUAS; do
21158             POFILES="$POFILES $srcdirpre$lang.po"
21159             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21160             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21161             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21162           done
21163           # CATALOGS depends on both $ac_dir and the user's LINGUAS
21164           # environment variable.
21165           INST_LINGUAS=
21166           if test -n "$ALL_LINGUAS"; then
21167             for presentlang in $ALL_LINGUAS; do
21168               useit=no
21169               if test "%UNSET%" != "$LINGUAS"; then
21170                 desiredlanguages="$LINGUAS"
21171               else
21172                 desiredlanguages="$ALL_LINGUAS"
21173               fi
21174               for desiredlang in $desiredlanguages; do
21175                 # Use the presentlang catalog if desiredlang is
21176                 #   a. equal to presentlang, or
21177                 #   b. a variant of presentlang (because in this case,
21178                 #      presentlang can be used as a fallback for messages
21179                 #      which are not translated in the desiredlang catalog).
21180                 case "$desiredlang" in
21181                   "$presentlang"*) useit=yes;;
21182                 esac
21183               done
21184               if test $useit = yes; then
21185                 INST_LINGUAS="$INST_LINGUAS $presentlang"
21186               fi
21187             done
21188           fi
21189           CATALOGS=
21190           if test -n "$INST_LINGUAS"; then
21191             for lang in $INST_LINGUAS; do
21192               CATALOGS="$CATALOGS $lang.gmo"
21193             done
21194           fi
21195           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21196           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21197           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21198             if test -f "$f"; then
21199               case "$f" in
21200                 *.orig | *.bak | *~) ;;
21201                 *) cat "$f" >> "$ac_dir/Makefile" ;;
21202               esac
21203             fi
21204           done
21205         fi
21206         ;;
21207       esac
21208     done ;;
21209
21210   esac
21211 done # for ac_tag
21212
21213
21214 as_fn_exit 0
21215 _ACEOF
21216 ac_clean_files=$ac_clean_files_save
21217
21218 test $ac_write_fail = 0 ||
21219   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21220
21221
21222 # configure is writing to config.log, and then calls config.status.
21223 # config.status does its own redirection, appending to config.log.
21224 # Unfortunately, on DOS this fails, as config.log is still kept open
21225 # by configure, so config.status won't be able to write to it; its
21226 # output is simply discarded.  So we exec the FD to /dev/null,
21227 # effectively closing config.log, so it can be properly (re)opened and
21228 # appended to by config.status.  When coming back to configure, we
21229 # need to make the FD available again.
21230 if test "$no_create" != yes; then
21231   ac_cs_success=:
21232   ac_config_status_args=
21233   test "$silent" = yes &&
21234     ac_config_status_args="$ac_config_status_args --quiet"
21235   exec 5>/dev/null
21236   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21237   exec 5>>config.log
21238   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21239   # would make configure fail if this is the last instruction.
21240   $ac_cs_success || as_fn_exit 1
21241 fi
21242 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21243   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21244 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21245 fi
21246