tizen 2.0
[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.63 for util-linux-ng 2.16.2.
4 #
5 # Report bugs to <kzak@redhat.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='util-linux-ng'
747 PACKAGE_TARNAME='util-linux-ng'
748 PACKAGE_VERSION='2.16.2'
749 PACKAGE_STRING='util-linux-ng 2.16.2'
750 PACKAGE_BUGREPORT='kzak@redhat.com'
751
752 ac_unique_file="mount/mount.c"
753 ac_default_prefix=/usr
754 # Factoring default headers for most tests.
755 ac_includes_default="\
756 #include <stdio.h>
757 #ifdef HAVE_SYS_TYPES_H
758 # include <sys/types.h>
759 #endif
760 #ifdef HAVE_SYS_STAT_H
761 # include <sys/stat.h>
762 #endif
763 #ifdef STDC_HEADERS
764 # include <stdlib.h>
765 # include <stddef.h>
766 #else
767 # ifdef HAVE_STDLIB_H
768 #  include <stdlib.h>
769 # endif
770 #endif
771 #ifdef HAVE_STRING_H
772 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #  include <memory.h>
774 # endif
775 # include <string.h>
776 #endif
777 #ifdef HAVE_STRINGS_H
778 # include <strings.h>
779 #endif
780 #ifdef HAVE_INTTYPES_H
781 # include <inttypes.h>
782 #endif
783 #ifdef HAVE_STDINT_H
784 # include <stdint.h>
785 #endif
786 #ifdef HAVE_UNISTD_H
787 # include <unistd.h>
788 #endif"
789
790 ac_subst_vars='am__EXEEXT_FALSE
791 am__EXEEXT_TRUE
792 LTLIBOBJS
793 LIBOBJS
794 SUID_LDFLAGS
795 SUID_CFLAGS
796 MAKEINSTALL_DO_CHOWN_FALSE
797 MAKEINSTALL_DO_CHOWN_TRUE
798 USE_TTY_GROUP_FALSE
799 USE_TTY_GROUP_TRUE
800 BUILD_WRITE_FALSE
801 BUILD_WRITE_TRUE
802 BUILD_WALL_FALSE
803 BUILD_WALL_TRUE
804 BUILD_SCHEDUTILS_FALSE
805 BUILD_SCHEDUTILS_TRUE
806 HAVE_AUDIT_FALSE
807 HAVE_AUDIT_TRUE
808 SELINUX_LIBS_STATIC
809 SELINUX_LIBS
810 HAVE_SELINUX_FALSE
811 HAVE_SELINUX_TRUE
812 HAVE_PAM_FALSE
813 HAVE_PAM_TRUE
814 BUILD_LOGIN_UTILS_FALSE
815 BUILD_LOGIN_UTILS_TRUE
816 BUILD_RESET_FALSE
817 BUILD_RESET_TRUE
818 BUILD_RENAME_FALSE
819 BUILD_RENAME_TRUE
820 BUILD_RDEV_FALSE
821 BUILD_RDEV_TRUE
822 BUILD_RAW_FALSE
823 BUILD_RAW_TRUE
824 BUILD_PARTX_FALSE
825 BUILD_PARTX_TRUE
826 BUILD_MESG_FALSE
827 BUILD_MESG_TRUE
828 BUILD_LAST_FALSE
829 BUILD_LAST_TRUE
830 BUILD_KILL_FALSE
831 BUILD_KILL_TRUE
832 BUILD_INIT_FALSE
833 BUILD_INIT_TRUE
834 BUILD_ELVTUNE_FALSE
835 BUILD_ELVTUNE_TRUE
836 BUILD_SWITCH_ROOT_FALSE
837 BUILD_SWITCH_ROOT_TRUE
838 BUILD_CRAMFS_FALSE
839 BUILD_CRAMFS_TRUE
840 BUILD_AGETTY_FALSE
841 BUILD_AGETTY_TRUE
842 BUILD_ARCH_FALSE
843 BUILD_ARCH_TRUE
844 ARCH_HPPA_FALSE
845 ARCH_HPPA_TRUE
846 ARCH_MIPS_FALSE
847 ARCH_MIPS_TRUE
848 ARCH_M68K_FALSE
849 ARCH_M68K_TRUE
850 ARCH_PPC_FALSE
851 ARCH_PPC_TRUE
852 ARCH_SPARC_FALSE
853 ARCH_SPARC_TRUE
854 ARCH_S390_FALSE
855 ARCH_S390_TRUE
856 ARCH_IA64_FALSE
857 ARCH_IA64_TRUE
858 ARCH_86_64_FALSE
859 ARCH_86_64_TRUE
860 ARCH_I86_FALSE
861 ARCH_I86_TRUE
862 HAVE_IOPRIO_GET_FALSE
863 HAVE_IOPRIO_GET_TRUE
864 HAVE_IOPRIO_SET_FALSE
865 HAVE_IOPRIO_SET_TRUE
866 HAVE_SCHED_GETAFFINITY_FALSE
867 HAVE_SCHED_GETAFFINITY_TRUE
868 HAVE_PIVOT_ROOT_FALSE
869 HAVE_PIVOT_ROOT_TRUE
870 NEED_LIBCRYPT_FALSE
871 NEED_LIBCRYPT_TRUE
872 USE_SLANG_FALSE
873 USE_SLANG_TRUE
874 HAVE_TINFO_FALSE
875 HAVE_TINFO_TRUE
876 NCURSES_LIBS
877 HAVE_NCURSES_FALSE
878 HAVE_NCURSES_TRUE
879 POSUB
880 LTLIBINTL
881 LIBINTL
882 INTLLIBS
883 LTLIBICONV
884 LIBICONV
885 MSGMERGE
886 XGETTEXT
887 GMSGFMT
888 MSGFMT
889 USE_NLS
890 MKINSTALLDIRS
891 HAVE_TERMCAP_FALSE
892 HAVE_TERMCAP_TRUE
893 HAVE_UTIL_FALSE
894 HAVE_UTIL_TRUE
895 BLKID_LIBS_STATIC
896 HAVE_BLKID_FALSE
897 HAVE_BLKID_TRUE
898 BLKID_LIBS
899 BLKID_CFLAGS
900 BUILD_LIBBLKID_FALSE
901 BUILD_LIBBLKID_TRUE
902 LIBBLKID_VERSION_INFO
903 LIBBLKID_VERSION
904 BUILD_UUIDD_FALSE
905 BUILD_UUIDD_TRUE
906 HAVE_UUID_FALSE
907 HAVE_UUID_TRUE
908 UUID_LIBS
909 UUID_CFLAGS
910 BUILD_LIBUUID_FALSE
911 BUILD_LIBUUID_TRUE
912 LIBUUID_VERSION_INFO
913 LIBUUID_VERSION
914 BUILD_FSCK_FALSE
915 BUILD_FSCK_TRUE
916 BUILD_MOUNT_FALSE
917 BUILD_MOUNT_TRUE
918 HAVE_STATIC_BLKID_FALSE
919 HAVE_STATIC_BLKID_TRUE
920 HAVE_STATIC_SFDISK_FALSE
921 HAVE_STATIC_SFDISK_TRUE
922 HAVE_STATIC_FDISK_FALSE
923 HAVE_STATIC_FDISK_TRUE
924 HAVE_STATIC_UMOUNT_FALSE
925 HAVE_STATIC_UMOUNT_TRUE
926 HAVE_STATIC_MOUNT_FALSE
927 HAVE_STATIC_MOUNT_TRUE
928 HAVE_STATIC_LOSETUP_FALSE
929 HAVE_STATIC_LOSETUP_TRUE
930 HAVE_RAW_FALSE
931 HAVE_RAW_TRUE
932 VOLID
933 BLKID
934 PERL
935 LINUX_FALSE
936 LINUX_TRUE
937 PKG_CONFIG
938 OTOOL64
939 OTOOL
940 LIPO
941 NMEDIT
942 DSYMUTIL
943 lt_ECHO
944 RANLIB
945 AR
946 OBJDUMP
947 LN_S
948 NM
949 ac_ct_DUMPBIN
950 DUMPBIN
951 LD
952 FGREP
953 SED
954 LIBTOOL
955 host_os
956 host_vendor
957 host_cpu
958 host
959 build_os
960 build_vendor
961 build_cpu
962 build
963 EGREP
964 GREP
965 CPP
966 am__fastdepCC_FALSE
967 am__fastdepCC_TRUE
968 CCDEPMODE
969 AMDEPBACKSLASH
970 AMDEP_FALSE
971 AMDEP_TRUE
972 am__quote
973 am__include
974 DEPDIR
975 OBJEXT
976 EXEEXT
977 ac_ct_CC
978 CPPFLAGS
979 LDFLAGS
980 CFLAGS
981 CC
982 usrlib_execdir
983 usrsbin_execdir
984 usrbin_execdir
985 libdirname
986 am__untar
987 am__tar
988 AMTAR
989 am__leading_dot
990 SET_MAKE
991 AWK
992 mkdir_p
993 MKDIR_P
994 INSTALL_STRIP_PROGRAM
995 STRIP
996 install_sh
997 MAKEINFO
998 AUTOHEADER
999 AUTOMAKE
1000 AUTOCONF
1001 ACLOCAL
1002 VERSION
1003 PACKAGE
1004 CYGPATH_W
1005 am__isrc
1006 INSTALL_DATA
1007 INSTALL_SCRIPT
1008 INSTALL_PROGRAM
1009 target_alias
1010 host_alias
1011 build_alias
1012 LIBS
1013 ECHO_T
1014 ECHO_N
1015 ECHO_C
1016 DEFS
1017 mandir
1018 localedir
1019 libdir
1020 psdir
1021 pdfdir
1022 dvidir
1023 htmldir
1024 infodir
1025 docdir
1026 oldincludedir
1027 includedir
1028 localstatedir
1029 sharedstatedir
1030 sysconfdir
1031 datadir
1032 datarootdir
1033 libexecdir
1034 sbindir
1035 bindir
1036 program_transform_name
1037 prefix
1038 exec_prefix
1039 PACKAGE_BUGREPORT
1040 PACKAGE_STRING
1041 PACKAGE_VERSION
1042 PACKAGE_TARNAME
1043 PACKAGE_NAME
1044 PATH_SEPARATOR
1045 SHELL'
1046 ac_subst_files=''
1047 ac_user_opts='
1048 enable_option_checking
1049 enable_dependency_tracking
1050 enable_shared
1051 enable_static
1052 with_pic
1053 enable_fast_install
1054 with_gnu_ld
1055 enable_libtool_lock
1056 enable_largefile
1057 enable_static_programs
1058 enable_tls
1059 enable_mount
1060 enable_fsck
1061 enable_libuuid
1062 enable_uuidd
1063 enable_libblkid
1064 enable_nls
1065 enable_rpath
1066 with_libiconv_prefix
1067 with_libintl_prefix
1068 with_ncurses
1069 with_slang
1070 enable_arch
1071 enable_agetty
1072 enable_cramfs
1073 enable_switch_root
1074 enable_elvtune
1075 enable_init
1076 enable_kill
1077 enable_last
1078 enable_mesg
1079 enable_partx
1080 enable_raw
1081 enable_rdev
1082 enable_rename
1083 enable_reset
1084 enable_login_utils
1085 with_pam
1086 with_selinux
1087 with_audit
1088 enable_schedutils
1089 enable_wall
1090 enable_write
1091 enable_chsh_only_listed
1092 enable_login_chown_vcs
1093 enable_login_stat_mail
1094 enable_pg_bell
1095 enable_require_password
1096 enable_use_tty_group
1097 enable_makeinstall_chown
1098 '
1099       ac_precious_vars='build_alias
1100 host_alias
1101 target_alias
1102 CC
1103 CFLAGS
1104 LDFLAGS
1105 LIBS
1106 CPPFLAGS
1107 CPP
1108 PKG_CONFIG
1109 UUID_CFLAGS
1110 UUID_LIBS
1111 BLKID_CFLAGS
1112 BLKID_LIBS
1113 BLKID_LIBS_STATIC
1114 SUID_CFLAGS
1115 SUID_LDFLAGS'
1116
1117
1118 # Initialize some variables set by options.
1119 ac_init_help=
1120 ac_init_version=false
1121 ac_unrecognized_opts=
1122 ac_unrecognized_sep=
1123 # The variables have the same names as the options, with
1124 # dashes changed to underlines.
1125 cache_file=/dev/null
1126 exec_prefix=NONE
1127 no_create=
1128 no_recursion=
1129 prefix=NONE
1130 program_prefix=NONE
1131 program_suffix=NONE
1132 program_transform_name=s,x,x,
1133 silent=
1134 site=
1135 srcdir=
1136 verbose=
1137 x_includes=NONE
1138 x_libraries=NONE
1139
1140 # Installation directory options.
1141 # These are left unexpanded so users can "make install exec_prefix=/foo"
1142 # and all the variables that are supposed to be based on exec_prefix
1143 # by default will actually change.
1144 # Use braces instead of parens because sh, perl, etc. also accept them.
1145 # (The list follows the same order as the GNU Coding Standards.)
1146 bindir='${exec_prefix}/bin'
1147 sbindir='${exec_prefix}/sbin'
1148 libexecdir='${exec_prefix}/libexec'
1149 datarootdir='${prefix}/share'
1150 datadir='${datarootdir}'
1151 sysconfdir='${prefix}/etc'
1152 sharedstatedir='${prefix}/com'
1153 localstatedir='${prefix}/var'
1154 includedir='${prefix}/include'
1155 oldincludedir='/usr/include'
1156 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1157 infodir='${datarootdir}/info'
1158 htmldir='${docdir}'
1159 dvidir='${docdir}'
1160 pdfdir='${docdir}'
1161 psdir='${docdir}'
1162 libdir='${exec_prefix}/lib'
1163 localedir='${datarootdir}/locale'
1164 mandir='${datarootdir}/man'
1165
1166 ac_prev=
1167 ac_dashdash=
1168 for ac_option
1169 do
1170   # If the previous option needs an argument, assign it.
1171   if test -n "$ac_prev"; then
1172     eval $ac_prev=\$ac_option
1173     ac_prev=
1174     continue
1175   fi
1176
1177   case $ac_option in
1178   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1179   *)    ac_optarg=yes ;;
1180   esac
1181
1182   # Accept the important Cygnus configure options, so we can diagnose typos.
1183
1184   case $ac_dashdash$ac_option in
1185   --)
1186     ac_dashdash=yes ;;
1187
1188   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1189     ac_prev=bindir ;;
1190   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1191     bindir=$ac_optarg ;;
1192
1193   -build | --build | --buil | --bui | --bu)
1194     ac_prev=build_alias ;;
1195   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1196     build_alias=$ac_optarg ;;
1197
1198   -cache-file | --cache-file | --cache-fil | --cache-fi \
1199   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1200     ac_prev=cache_file ;;
1201   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1202   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1203     cache_file=$ac_optarg ;;
1204
1205   --config-cache | -C)
1206     cache_file=config.cache ;;
1207
1208   -datadir | --datadir | --datadi | --datad)
1209     ac_prev=datadir ;;
1210   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1211     datadir=$ac_optarg ;;
1212
1213   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1214   | --dataroo | --dataro | --datar)
1215     ac_prev=datarootdir ;;
1216   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1217   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1218     datarootdir=$ac_optarg ;;
1219
1220   -disable-* | --disable-*)
1221     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_useropt_orig=$ac_useropt
1227     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228     case $ac_user_opts in
1229       *"
1230 "enable_$ac_useropt"
1231 "*) ;;
1232       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1233          ac_unrecognized_sep=', ';;
1234     esac
1235     eval enable_$ac_useropt=no ;;
1236
1237   -docdir | --docdir | --docdi | --doc | --do)
1238     ac_prev=docdir ;;
1239   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1240     docdir=$ac_optarg ;;
1241
1242   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1243     ac_prev=dvidir ;;
1244   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1245     dvidir=$ac_optarg ;;
1246
1247   -enable-* | --enable-*)
1248     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1252    { (exit 1); exit 1; }; }
1253     ac_useropt_orig=$ac_useropt
1254     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255     case $ac_user_opts in
1256       *"
1257 "enable_$ac_useropt"
1258 "*) ;;
1259       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1260          ac_unrecognized_sep=', ';;
1261     esac
1262     eval enable_$ac_useropt=\$ac_optarg ;;
1263
1264   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1265   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1266   | --exec | --exe | --ex)
1267     ac_prev=exec_prefix ;;
1268   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1269   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1270   | --exec=* | --exe=* | --ex=*)
1271     exec_prefix=$ac_optarg ;;
1272
1273   -gas | --gas | --ga | --g)
1274     # Obsolete; use --with-gas.
1275     with_gas=yes ;;
1276
1277   -help | --help | --hel | --he | -h)
1278     ac_init_help=long ;;
1279   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1280     ac_init_help=recursive ;;
1281   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1282     ac_init_help=short ;;
1283
1284   -host | --host | --hos | --ho)
1285     ac_prev=host_alias ;;
1286   -host=* | --host=* | --hos=* | --ho=*)
1287     host_alias=$ac_optarg ;;
1288
1289   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1290     ac_prev=htmldir ;;
1291   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1292   | --ht=*)
1293     htmldir=$ac_optarg ;;
1294
1295   -includedir | --includedir | --includedi | --included | --include \
1296   | --includ | --inclu | --incl | --inc)
1297     ac_prev=includedir ;;
1298   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1299   | --includ=* | --inclu=* | --incl=* | --inc=*)
1300     includedir=$ac_optarg ;;
1301
1302   -infodir | --infodir | --infodi | --infod | --info | --inf)
1303     ac_prev=infodir ;;
1304   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1305     infodir=$ac_optarg ;;
1306
1307   -libdir | --libdir | --libdi | --libd)
1308     ac_prev=libdir ;;
1309   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1310     libdir=$ac_optarg ;;
1311
1312   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1313   | --libexe | --libex | --libe)
1314     ac_prev=libexecdir ;;
1315   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1316   | --libexe=* | --libex=* | --libe=*)
1317     libexecdir=$ac_optarg ;;
1318
1319   -localedir | --localedir | --localedi | --localed | --locale)
1320     ac_prev=localedir ;;
1321   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1322     localedir=$ac_optarg ;;
1323
1324   -localstatedir | --localstatedir | --localstatedi | --localstated \
1325   | --localstate | --localstat | --localsta | --localst | --locals)
1326     ac_prev=localstatedir ;;
1327   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1328   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1329     localstatedir=$ac_optarg ;;
1330
1331   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1332     ac_prev=mandir ;;
1333   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1334     mandir=$ac_optarg ;;
1335
1336   -nfp | --nfp | --nf)
1337     # Obsolete; use --without-fp.
1338     with_fp=no ;;
1339
1340   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1341   | --no-cr | --no-c | -n)
1342     no_create=yes ;;
1343
1344   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1345   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1346     no_recursion=yes ;;
1347
1348   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1349   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1350   | --oldin | --oldi | --old | --ol | --o)
1351     ac_prev=oldincludedir ;;
1352   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1353   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1354   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1355     oldincludedir=$ac_optarg ;;
1356
1357   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1358     ac_prev=prefix ;;
1359   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1360     prefix=$ac_optarg ;;
1361
1362   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1363   | --program-pre | --program-pr | --program-p)
1364     ac_prev=program_prefix ;;
1365   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1366   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1367     program_prefix=$ac_optarg ;;
1368
1369   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1370   | --program-suf | --program-su | --program-s)
1371     ac_prev=program_suffix ;;
1372   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1373   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1374     program_suffix=$ac_optarg ;;
1375
1376   -program-transform-name | --program-transform-name \
1377   | --program-transform-nam | --program-transform-na \
1378   | --program-transform-n | --program-transform- \
1379   | --program-transform | --program-transfor \
1380   | --program-transfo | --program-transf \
1381   | --program-trans | --program-tran \
1382   | --progr-tra | --program-tr | --program-t)
1383     ac_prev=program_transform_name ;;
1384   -program-transform-name=* | --program-transform-name=* \
1385   | --program-transform-nam=* | --program-transform-na=* \
1386   | --program-transform-n=* | --program-transform-=* \
1387   | --program-transform=* | --program-transfor=* \
1388   | --program-transfo=* | --program-transf=* \
1389   | --program-trans=* | --program-tran=* \
1390   | --progr-tra=* | --program-tr=* | --program-t=*)
1391     program_transform_name=$ac_optarg ;;
1392
1393   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1394     ac_prev=pdfdir ;;
1395   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1396     pdfdir=$ac_optarg ;;
1397
1398   -psdir | --psdir | --psdi | --psd | --ps)
1399     ac_prev=psdir ;;
1400   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1401     psdir=$ac_optarg ;;
1402
1403   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1404   | -silent | --silent | --silen | --sile | --sil)
1405     silent=yes ;;
1406
1407   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1408     ac_prev=sbindir ;;
1409   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1410   | --sbi=* | --sb=*)
1411     sbindir=$ac_optarg ;;
1412
1413   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1414   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1415   | --sharedst | --shareds | --shared | --share | --shar \
1416   | --sha | --sh)
1417     ac_prev=sharedstatedir ;;
1418   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1419   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1420   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1421   | --sha=* | --sh=*)
1422     sharedstatedir=$ac_optarg ;;
1423
1424   -site | --site | --sit)
1425     ac_prev=site ;;
1426   -site=* | --site=* | --sit=*)
1427     site=$ac_optarg ;;
1428
1429   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1430     ac_prev=srcdir ;;
1431   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1432     srcdir=$ac_optarg ;;
1433
1434   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1435   | --syscon | --sysco | --sysc | --sys | --sy)
1436     ac_prev=sysconfdir ;;
1437   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1438   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1439     sysconfdir=$ac_optarg ;;
1440
1441   -target | --target | --targe | --targ | --tar | --ta | --t)
1442     ac_prev=target_alias ;;
1443   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1444     target_alias=$ac_optarg ;;
1445
1446   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1447     verbose=yes ;;
1448
1449   -version | --version | --versio | --versi | --vers | -V)
1450     ac_init_version=: ;;
1451
1452   -with-* | --with-*)
1453     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1454     # Reject names that are not valid shell variable names.
1455     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1457    { (exit 1); exit 1; }; }
1458     ac_useropt_orig=$ac_useropt
1459     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460     case $ac_user_opts in
1461       *"
1462 "with_$ac_useropt"
1463 "*) ;;
1464       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1465          ac_unrecognized_sep=', ';;
1466     esac
1467     eval with_$ac_useropt=\$ac_optarg ;;
1468
1469   -without-* | --without-*)
1470     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1471     # Reject names that are not valid shell variable names.
1472     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1473       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1474    { (exit 1); exit 1; }; }
1475     ac_useropt_orig=$ac_useropt
1476     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477     case $ac_user_opts in
1478       *"
1479 "with_$ac_useropt"
1480 "*) ;;
1481       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1482          ac_unrecognized_sep=', ';;
1483     esac
1484     eval with_$ac_useropt=no ;;
1485
1486   --x)
1487     # Obsolete; use --with-x.
1488     with_x=yes ;;
1489
1490   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1491   | --x-incl | --x-inc | --x-in | --x-i)
1492     ac_prev=x_includes ;;
1493   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1494   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1495     x_includes=$ac_optarg ;;
1496
1497   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1498   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1499     ac_prev=x_libraries ;;
1500   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1501   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1502     x_libraries=$ac_optarg ;;
1503
1504   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1505 Try \`$0 --help' for more information." >&2
1506    { (exit 1); exit 1; }; }
1507     ;;
1508
1509   *=*)
1510     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1511     # Reject names that are not valid shell variable names.
1512     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1513       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1514    { (exit 1); exit 1; }; }
1515     eval $ac_envvar=\$ac_optarg
1516     export $ac_envvar ;;
1517
1518   *)
1519     # FIXME: should be removed in autoconf 3.0.
1520     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1521     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1522       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1523     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1524     ;;
1525
1526   esac
1527 done
1528
1529 if test -n "$ac_prev"; then
1530   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1531   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1532    { (exit 1); exit 1; }; }
1533 fi
1534
1535 if test -n "$ac_unrecognized_opts"; then
1536   case $enable_option_checking in
1537     no) ;;
1538     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1539    { (exit 1); exit 1; }; } ;;
1540     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1541   esac
1542 fi
1543
1544 # Check all directory arguments for consistency.
1545 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1546                 datadir sysconfdir sharedstatedir localstatedir includedir \
1547                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1548                 libdir localedir mandir
1549 do
1550   eval ac_val=\$$ac_var
1551   # Remove trailing slashes.
1552   case $ac_val in
1553     */ )
1554       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1555       eval $ac_var=\$ac_val;;
1556   esac
1557   # Be sure to have absolute directory names.
1558   case $ac_val in
1559     [\\/$]* | ?:[\\/]* )  continue;;
1560     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1561   esac
1562   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1563    { (exit 1); exit 1; }; }
1564 done
1565
1566 # There might be people who depend on the old broken behavior: `$host'
1567 # used to hold the argument of --host etc.
1568 # FIXME: To remove some day.
1569 build=$build_alias
1570 host=$host_alias
1571 target=$target_alias
1572
1573 # FIXME: To remove some day.
1574 if test "x$host_alias" != x; then
1575   if test "x$build_alias" = x; then
1576     cross_compiling=maybe
1577     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1578     If a cross compiler is detected then cross compile mode will be used." >&2
1579   elif test "x$build_alias" != "x$host_alias"; then
1580     cross_compiling=yes
1581   fi
1582 fi
1583
1584 ac_tool_prefix=
1585 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1586
1587 test "$silent" = yes && exec 6>/dev/null
1588
1589
1590 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1591 ac_ls_di=`ls -di .` &&
1592 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1593   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1594    { (exit 1); exit 1; }; }
1595 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1596   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1597    { (exit 1); exit 1; }; }
1598
1599
1600 # Find the source files, if location was not specified.
1601 if test -z "$srcdir"; then
1602   ac_srcdir_defaulted=yes
1603   # Try the directory containing this script, then the parent directory.
1604   ac_confdir=`$as_dirname -- "$as_myself" ||
1605 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1606          X"$as_myself" : 'X\(//\)[^/]' \| \
1607          X"$as_myself" : 'X\(//\)$' \| \
1608          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1609 $as_echo X"$as_myself" |
1610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1611             s//\1/
1612             q
1613           }
1614           /^X\(\/\/\)[^/].*/{
1615             s//\1/
1616             q
1617           }
1618           /^X\(\/\/\)$/{
1619             s//\1/
1620             q
1621           }
1622           /^X\(\/\).*/{
1623             s//\1/
1624             q
1625           }
1626           s/.*/./; q'`
1627   srcdir=$ac_confdir
1628   if test ! -r "$srcdir/$ac_unique_file"; then
1629     srcdir=..
1630   fi
1631 else
1632   ac_srcdir_defaulted=no
1633 fi
1634 if test ! -r "$srcdir/$ac_unique_file"; then
1635   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1636   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1637    { (exit 1); exit 1; }; }
1638 fi
1639 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1640 ac_abs_confdir=`(
1641         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1642    { (exit 1); exit 1; }; }
1643         pwd)`
1644 # When building in place, set srcdir=.
1645 if test "$ac_abs_confdir" = "$ac_pwd"; then
1646   srcdir=.
1647 fi
1648 # Remove unnecessary trailing slashes from srcdir.
1649 # Double slashes in file names in object file debugging info
1650 # mess up M-x gdb in Emacs.
1651 case $srcdir in
1652 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1653 esac
1654 for ac_var in $ac_precious_vars; do
1655   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1656   eval ac_env_${ac_var}_value=\$${ac_var}
1657   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1658   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1659 done
1660
1661 #
1662 # Report the --help message.
1663 #
1664 if test "$ac_init_help" = "long"; then
1665   # Omit some internal or obsolete options to make the list less imposing.
1666   # This message is too long to be a string in the A/UX 3.1 sh.
1667   cat <<_ACEOF
1668 \`configure' configures util-linux-ng 2.16.2 to adapt to many kinds of systems.
1669
1670 Usage: $0 [OPTION]... [VAR=VALUE]...
1671
1672 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1673 VAR=VALUE.  See below for descriptions of some of the useful variables.
1674
1675 Defaults for the options are specified in brackets.
1676
1677 Configuration:
1678   -h, --help              display this help and exit
1679       --help=short        display options specific to this package
1680       --help=recursive    display the short help of all the included packages
1681   -V, --version           display version information and exit
1682   -q, --quiet, --silent   do not print \`checking...' messages
1683       --cache-file=FILE   cache test results in FILE [disabled]
1684   -C, --config-cache      alias for \`--cache-file=config.cache'
1685   -n, --no-create         do not create output files
1686       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1687
1688 Installation directories:
1689   --prefix=PREFIX         install architecture-independent files in PREFIX
1690                           [$ac_default_prefix]
1691   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1692                           [PREFIX]
1693
1694 By default, \`make install' will install all the files in
1695 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1696 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1697 for instance \`--prefix=\$HOME'.
1698
1699 For better control, use the options below.
1700
1701 Fine tuning of the installation directories:
1702   --bindir=DIR            user executables [EPREFIX/bin]
1703   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1704   --libexecdir=DIR        program executables [EPREFIX/libexec]
1705   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1706   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1707   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1708   --libdir=DIR            object code libraries [EPREFIX/lib]
1709   --includedir=DIR        C header files [PREFIX/include]
1710   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1711   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1712   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1713   --infodir=DIR           info documentation [DATAROOTDIR/info]
1714   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1715   --mandir=DIR            man documentation [DATAROOTDIR/man]
1716   --docdir=DIR            documentation root [DATAROOTDIR/doc/util-linux-ng]
1717   --htmldir=DIR           html documentation [DOCDIR]
1718   --dvidir=DIR            dvi documentation [DOCDIR]
1719   --pdfdir=DIR            pdf documentation [DOCDIR]
1720   --psdir=DIR             ps documentation [DOCDIR]
1721 _ACEOF
1722
1723   cat <<\_ACEOF
1724
1725 Program names:
1726   --program-prefix=PREFIX            prepend PREFIX to installed program names
1727   --program-suffix=SUFFIX            append SUFFIX to installed program names
1728   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1729
1730 System types:
1731   --build=BUILD     configure for building on BUILD [guessed]
1732   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1733 _ACEOF
1734 fi
1735
1736 if test -n "$ac_init_help"; then
1737   case $ac_init_help in
1738      short | recursive ) echo "Configuration of util-linux-ng 2.16.2:";;
1739    esac
1740   cat <<\_ACEOF
1741
1742 Optional Features:
1743   --disable-option-checking  ignore unrecognized --enable/--with options
1744   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1745   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1746   --disable-dependency-tracking  speeds up one-time build
1747   --enable-dependency-tracking   do not reject slow dependency extractors
1748   --enable-shared[=PKGS]  build shared libraries [default=yes]
1749   --enable-static[=PKGS]  build static libraries [default=yes]
1750   --enable-fast-install[=PKGS]
1751                           optimize for fast installation [default=yes]
1752   --disable-libtool-lock  avoid locking (might break parallel builds)
1753   --disable-largefile     omit support for large files
1754   --enable-static-programs=LIST
1755                           link static the programs in LIST (comma-separated,
1756                           supported for losetup, mount, umount, fdisk, sfdisk,
1757                           blkid)
1758   --disable-tls           disable use of thread local support
1759   --disable-mount         do not build mount utilities
1760   --disable-fsck          do not build fsck
1761   --disable-libuuid       do not build libuuid and uuid utilities
1762   --disable-uuidd         do not build the uuid daemon
1763   --disable-libblkid      do not build libblkid and blkid utilities
1764   --disable-nls           do not use Native Language Support
1765   --disable-rpath         do not hardcode runtime library paths
1766   --enable-arch           do build arch
1767   --disable-agetty        do not build agetty
1768   --disable-cramfs        do not build fsck.cramfs, mkfs.cramfs
1769   --disable-switch_root   do not build switch_root
1770   --enable-elvtune        build elvtune (only works with 2.2 and 2.4 kernels)
1771   --enable-init           build simpleinit, shutdown, initctl
1772   --enable-kill           build kill
1773   --enable-last           build last
1774   --enable-mesg           build mesg
1775   --enable-partx          build addpart, delpart, partx
1776   --enable-raw            build raw
1777   --enable-rdev           build rdev on i386
1778   --disable-rename        do not build rename
1779   --enable-reset          build reset
1780   --enable-login-utils    build chfn, chsh, login, newgrp, vipw
1781   --disable-schedutils    do not build chrt, ionice, teskset
1782   --disable-wall          do not build wall
1783   --enable-write          build write
1784   --disable-chsh-only-listed
1785                           chsh: allow shells not in /etc/shells
1786   --enable-login-chown-vcs
1787                           let login chown /dev/vcsN
1788   --enable-login-stat-mail
1789                           let login stat() the mailbox
1790   --disable-pg-bell       let pg not ring the bell on invalid keys
1791   --disable-require-password
1792                           do not require the user to enter the password in
1793                           chfn and chsh
1794   --disable-use-tty-group do not install wall and write setgid tty
1795   --disable-makeinstall-chown
1796                           do not do chown-like operations during "make
1797                           install"
1798
1799 Optional Packages:
1800   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1801   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1802   --with-pic              try to use only PIC/non-PIC objects [default=use
1803                           both]
1804   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1805   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1806   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1807   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1808   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1809   --without-libintl-prefix     don't search for libintl in includedir and libdir
1810   --with-ncurses          build with non-wide ncurses, default is wide version
1811                           (--without-ncurses disables all ncurses(w) support)
1812   --with-slang            compile cfdisk with slang
1813   --without-pam           compile login-utils without PAM support
1814   --with-selinux          compile with SELinux support
1815   --with-audit            compile with audit support
1816
1817 Some influential environment variables:
1818   CC          C compiler command
1819   CFLAGS      C compiler flags
1820   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1821               nonstandard directory <lib dir>
1822   LIBS        libraries to pass to the linker, e.g. -l<library>
1823   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1824               you have headers in a nonstandard directory <include dir>
1825   CPP         C preprocessor
1826   PKG_CONFIG  path to pkg-config utility
1827   UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1828   UUID_LIBS   linker flags for UUID, overriding pkg-config
1829   BLKID_CFLAGS
1830               C compiler flags for BLKID, overriding pkg-config
1831   BLKID_LIBS  linker flags for BLKID, overriding pkg-config
1832   BLKID_LIBS_STATIC
1833               -l options for linking statically with blkid
1834   SUID_CFLAGS CFLAGS used for binaries which are usually with the suid bit
1835   SUID_LDFLAGS
1836               LDFLAGS used for binaries which are usually with the suid bit
1837
1838 Use these variables to override the choices made by `configure' or to help
1839 it to find libraries and programs with nonstandard names/locations.
1840
1841 Report bugs to <kzak@redhat.com>.
1842 _ACEOF
1843 ac_status=$?
1844 fi
1845
1846 if test "$ac_init_help" = "recursive"; then
1847   # If there are subdirs, report their specific --help.
1848   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1849     test -d "$ac_dir" ||
1850       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1851       continue
1852     ac_builddir=.
1853
1854 case "$ac_dir" in
1855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1856 *)
1857   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1858   # A ".." for each directory in $ac_dir_suffix.
1859   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1860   case $ac_top_builddir_sub in
1861   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1862   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1863   esac ;;
1864 esac
1865 ac_abs_top_builddir=$ac_pwd
1866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1867 # for backward compatibility:
1868 ac_top_builddir=$ac_top_build_prefix
1869
1870 case $srcdir in
1871   .)  # We are building in place.
1872     ac_srcdir=.
1873     ac_top_srcdir=$ac_top_builddir_sub
1874     ac_abs_top_srcdir=$ac_pwd ;;
1875   [\\/]* | ?:[\\/]* )  # Absolute name.
1876     ac_srcdir=$srcdir$ac_dir_suffix;
1877     ac_top_srcdir=$srcdir
1878     ac_abs_top_srcdir=$srcdir ;;
1879   *) # Relative name.
1880     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1881     ac_top_srcdir=$ac_top_build_prefix$srcdir
1882     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1883 esac
1884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1885
1886     cd "$ac_dir" || { ac_status=$?; continue; }
1887     # Check for guested configure.
1888     if test -f "$ac_srcdir/configure.gnu"; then
1889       echo &&
1890       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891     elif test -f "$ac_srcdir/configure"; then
1892       echo &&
1893       $SHELL "$ac_srcdir/configure" --help=recursive
1894     else
1895       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1896     fi || ac_status=$?
1897     cd "$ac_pwd" || { ac_status=$?; break; }
1898   done
1899 fi
1900
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1903   cat <<\_ACEOF
1904 util-linux-ng configure 2.16.2
1905 generated by GNU Autoconf 2.63
1906
1907 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1908 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1909 This configure script is free software; the Free Software Foundation
1910 gives unlimited permission to copy, distribute and modify it.
1911 _ACEOF
1912   exit
1913 fi
1914 cat >config.log <<_ACEOF
1915 This file contains any messages produced by compilers while
1916 running configure, to aid debugging if configure makes a mistake.
1917
1918 It was created by util-linux-ng $as_me 2.16.2, which was
1919 generated by GNU Autoconf 2.63.  Invocation command line was
1920
1921   $ $0 $@
1922
1923 _ACEOF
1924 exec 5>>config.log
1925 {
1926 cat <<_ASUNAME
1927 ## --------- ##
1928 ## Platform. ##
1929 ## --------- ##
1930
1931 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1936
1937 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1939
1940 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1941 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1942 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1944 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1945 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1946 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1947
1948 _ASUNAME
1949
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953   IFS=$as_save_IFS
1954   test -z "$as_dir" && as_dir=.
1955   $as_echo "PATH: $as_dir"
1956 done
1957 IFS=$as_save_IFS
1958
1959 } >&5
1960
1961 cat >&5 <<_ACEOF
1962
1963
1964 ## ----------- ##
1965 ## Core tests. ##
1966 ## ----------- ##
1967
1968 _ACEOF
1969
1970
1971 # Keep a trace of the command line.
1972 # Strip out --no-create and --no-recursion so they do not pile up.
1973 # Strip out --silent because we don't want to record it for future runs.
1974 # Also quote any args containing shell meta-characters.
1975 # Make two passes to allow for proper duplicate-argument suppression.
1976 ac_configure_args=
1977 ac_configure_args0=
1978 ac_configure_args1=
1979 ac_must_keep_next=false
1980 for ac_pass in 1 2
1981 do
1982   for ac_arg
1983   do
1984     case $ac_arg in
1985     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987     | -silent | --silent | --silen | --sile | --sil)
1988       continue ;;
1989     *\'*)
1990       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991     esac
1992     case $ac_pass in
1993     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1994     2)
1995       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1996       if test $ac_must_keep_next = true; then
1997         ac_must_keep_next=false # Got value, back to normal.
1998       else
1999         case $ac_arg in
2000           *=* | --config-cache | -C | -disable-* | --disable-* \
2001           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003           | -with-* | --with-* | -without-* | --without-* | --x)
2004             case "$ac_configure_args0 " in
2005               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006             esac
2007             ;;
2008           -* ) ac_must_keep_next=true ;;
2009         esac
2010       fi
2011       ac_configure_args="$ac_configure_args '$ac_arg'"
2012       ;;
2013     esac
2014   done
2015 done
2016 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2017 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2018
2019 # When interrupted or exit'd, cleanup temporary files, and complete
2020 # config.log.  We remove comments because anyway the quotes in there
2021 # would cause problems or look ugly.
2022 # WARNING: Use '\'' to represent an apostrophe within the trap.
2023 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2024 trap 'exit_status=$?
2025   # Save into config.log some information that might help in debugging.
2026   {
2027     echo
2028
2029     cat <<\_ASBOX
2030 ## ---------------- ##
2031 ## Cache variables. ##
2032 ## ---------------- ##
2033 _ASBOX
2034     echo
2035     # The following way of writing the cache mishandles newlines in values,
2036 (
2037   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2038     eval ac_val=\$$ac_var
2039     case $ac_val in #(
2040     *${as_nl}*)
2041       case $ac_var in #(
2042       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2044       esac
2045       case $ac_var in #(
2046       _ | IFS | as_nl) ;; #(
2047       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2048       *) $as_unset $ac_var ;;
2049       esac ;;
2050     esac
2051   done
2052   (set) 2>&1 |
2053     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2054     *${as_nl}ac_space=\ *)
2055       sed -n \
2056         "s/'\''/'\''\\\\'\'''\''/g;
2057           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2058       ;; #(
2059     *)
2060       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2061       ;;
2062     esac |
2063     sort
2064 )
2065     echo
2066
2067     cat <<\_ASBOX
2068 ## ----------------- ##
2069 ## Output variables. ##
2070 ## ----------------- ##
2071 _ASBOX
2072     echo
2073     for ac_var in $ac_subst_vars
2074     do
2075       eval ac_val=\$$ac_var
2076       case $ac_val in
2077       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078       esac
2079       $as_echo "$ac_var='\''$ac_val'\''"
2080     done | sort
2081     echo
2082
2083     if test -n "$ac_subst_files"; then
2084       cat <<\_ASBOX
2085 ## ------------------- ##
2086 ## File substitutions. ##
2087 ## ------------------- ##
2088 _ASBOX
2089       echo
2090       for ac_var in $ac_subst_files
2091       do
2092         eval ac_val=\$$ac_var
2093         case $ac_val in
2094         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095         esac
2096         $as_echo "$ac_var='\''$ac_val'\''"
2097       done | sort
2098       echo
2099     fi
2100
2101     if test -s confdefs.h; then
2102       cat <<\_ASBOX
2103 ## ----------- ##
2104 ## confdefs.h. ##
2105 ## ----------- ##
2106 _ASBOX
2107       echo
2108       cat confdefs.h
2109       echo
2110     fi
2111     test "$ac_signal" != 0 &&
2112       $as_echo "$as_me: caught signal $ac_signal"
2113     $as_echo "$as_me: exit $exit_status"
2114   } >&5
2115   rm -f core *.core core.conftest.* &&
2116     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117     exit $exit_status
2118 ' 0
2119 for ac_signal in 1 2 13 15; do
2120   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2121 done
2122 ac_signal=0
2123
2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2125 rm -f -r conftest* confdefs.h
2126
2127 # Predefined preprocessor variables.
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 _ACEOF
2132
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2136 _ACEOF
2137
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2141 _ACEOF
2142
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_STRING "$PACKAGE_STRING"
2146 _ACEOF
2147
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151 _ACEOF
2152
2153
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2156 ac_site_file1=NONE
2157 ac_site_file2=NONE
2158 if test -n "$CONFIG_SITE"; then
2159   ac_site_file1=$CONFIG_SITE
2160 elif test "x$prefix" != xNONE; then
2161   ac_site_file1=$prefix/share/config.site
2162   ac_site_file2=$prefix/etc/config.site
2163 else
2164   ac_site_file1=$ac_default_prefix/share/config.site
2165   ac_site_file2=$ac_default_prefix/etc/config.site
2166 fi
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2168 do
2169   test "x$ac_site_file" = xNONE && continue
2170   if test -r "$ac_site_file"; then
2171     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173     sed 's/^/| /' "$ac_site_file" >&5
2174     . "$ac_site_file"
2175   fi
2176 done
2177
2178 if test -r "$cache_file"; then
2179   # Some versions of bash will fail to source /dev/null (special
2180   # files actually), so we avoid doing that.
2181   if test -f "$cache_file"; then
2182     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2184     case $cache_file in
2185       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186       *)                      . "./$cache_file";;
2187     esac
2188   fi
2189 else
2190   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192   >$cache_file
2193 fi
2194
2195 # Check that the precious variables saved in the cache have kept the same
2196 # value.
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200   eval ac_new_set=\$ac_env_${ac_var}_set
2201   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202   eval ac_new_val=\$ac_env_${ac_var}_value
2203   case $ac_old_set,$ac_new_set in
2204     set,)
2205       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207       ac_cache_corrupted=: ;;
2208     ,set)
2209       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211       ac_cache_corrupted=: ;;
2212     ,);;
2213     *)
2214       if test "x$ac_old_val" != "x$ac_new_val"; then
2215         # differences in whitespace do not lead to failure.
2216         ac_old_val_w=`echo x $ac_old_val`
2217         ac_new_val_w=`echo x $ac_new_val`
2218         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221           ac_cache_corrupted=:
2222         else
2223           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225           eval $ac_var=\$ac_old_val
2226         fi
2227         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2228 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2229         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2231       fi;;
2232   esac
2233   # Pass precious variables to config.status.
2234   if test "$ac_new_set" = set; then
2235     case $ac_new_val in
2236     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237     *) ac_arg=$ac_var=$ac_new_val ;;
2238     esac
2239     case " $ac_configure_args " in
2240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2241       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2242     esac
2243   fi
2244 done
2245 if $ac_cache_corrupted; then
2246   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2251 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2252    { (exit 1); exit 1; }; }
2253 fi
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279 ac_ext=c
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284
2285
2286
2287
2288
2289 ac_aux_dir=
2290 for ac_dir in config "$srcdir"/config; do
2291   if test -f "$ac_dir/install-sh"; then
2292     ac_aux_dir=$ac_dir
2293     ac_install_sh="$ac_aux_dir/install-sh -c"
2294     break
2295   elif test -f "$ac_dir/install.sh"; then
2296     ac_aux_dir=$ac_dir
2297     ac_install_sh="$ac_aux_dir/install.sh -c"
2298     break
2299   elif test -f "$ac_dir/shtool"; then
2300     ac_aux_dir=$ac_dir
2301     ac_install_sh="$ac_aux_dir/shtool install -c"
2302     break
2303   fi
2304 done
2305 if test -z "$ac_aux_dir"; then
2306   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2307 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2308    { (exit 1); exit 1; }; }
2309 fi
2310
2311 # These three variables are undocumented and unsupported,
2312 # and are intended to be withdrawn in a future Autoconf release.
2313 # They can cause serious problems if a builder's source tree is in a directory
2314 # whose full name contains unusual characters.
2315 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2316 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2317 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2318
2319
2320
2321
2322 am__api_version='1.11'
2323
2324 # Find a good install program.  We prefer a C program (faster),
2325 # so one script is as good as another.  But avoid the broken or
2326 # incompatible versions:
2327 # SysV /etc/install, /usr/sbin/install
2328 # SunOS /usr/etc/install
2329 # IRIX /sbin/install
2330 # AIX /bin/install
2331 # AmigaOS /C/install, which installs bootblocks on floppy discs
2332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335 # OS/2's system install, which has a completely different semantic
2336 # ./install, which can be erroneously created by make from ./install.sh.
2337 # Reject install programs that cannot install multiple files.
2338 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2340 if test -z "$INSTALL"; then
2341 if test "${ac_cv_path_install+set}" = set; then
2342   $as_echo_n "(cached) " >&6
2343 else
2344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349   # Account for people who put trailing slashes in PATH elements.
2350 case $as_dir/ in
2351   ./ | .// | /cC/* | \
2352   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2354   /usr/ucb/* ) ;;
2355   *)
2356     # OSF1 and SCO ODT 3.0 have their own names for install.
2357     # Don't use installbsd from OSF since it installs stuff as root
2358     # by default.
2359     for ac_prog in ginstall scoinst install; do
2360       for ac_exec_ext in '' $ac_executable_extensions; do
2361         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2362           if test $ac_prog = install &&
2363             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364             # AIX install.  It has an incompatible calling convention.
2365             :
2366           elif test $ac_prog = install &&
2367             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368             # program-specific install script used by HP pwplus--don't use.
2369             :
2370           else
2371             rm -rf conftest.one conftest.two conftest.dir
2372             echo one > conftest.one
2373             echo two > conftest.two
2374             mkdir conftest.dir
2375             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376               test -s conftest.one && test -s conftest.two &&
2377               test -s conftest.dir/conftest.one &&
2378               test -s conftest.dir/conftest.two
2379             then
2380               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381               break 3
2382             fi
2383           fi
2384         fi
2385       done
2386     done
2387     ;;
2388 esac
2389
2390 done
2391 IFS=$as_save_IFS
2392
2393 rm -rf conftest.one conftest.two conftest.dir
2394
2395 fi
2396   if test "${ac_cv_path_install+set}" = set; then
2397     INSTALL=$ac_cv_path_install
2398   else
2399     # As a last resort, use the slow shell script.  Don't cache a
2400     # value for INSTALL within a source directory, because that will
2401     # break other packages using the cache if that directory is
2402     # removed, or if the value is a relative name.
2403     INSTALL=$ac_install_sh
2404   fi
2405 fi
2406 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2407 $as_echo "$INSTALL" >&6; }
2408
2409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410 # It thinks the first close brace ends the variable substitution.
2411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2412
2413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2414
2415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2416
2417 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2418 $as_echo_n "checking whether build environment is sane... " >&6; }
2419 # Just in case
2420 sleep 1
2421 echo timestamp > conftest.file
2422 # Reject unsafe characters in $srcdir or the absolute working directory
2423 # name.  Accept space and tab only in the latter.
2424 am_lf='
2425 '
2426 case `pwd` in
2427   *[\\\"\#\$\&\'\`$am_lf]*)
2428     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2429 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2430    { (exit 1); exit 1; }; };;
2431 esac
2432 case $srcdir in
2433   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2434     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2435 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2436    { (exit 1); exit 1; }; };;
2437 esac
2438
2439 # Do `set' in a subshell so we don't clobber the current shell's
2440 # arguments.  Must try -L first in case configure is actually a
2441 # symlink; some systems play weird games with the mod time of symlinks
2442 # (eg FreeBSD returns the mod time of the symlink's containing
2443 # directory).
2444 if (
2445    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446    if test "$*" = "X"; then
2447       # -L didn't work.
2448       set X `ls -t "$srcdir/configure" conftest.file`
2449    fi
2450    rm -f conftest.file
2451    if test "$*" != "X $srcdir/configure conftest.file" \
2452       && test "$*" != "X conftest.file $srcdir/configure"; then
2453
2454       # If neither matched, then we have a broken ls.  This can happen
2455       # if, for instance, CONFIG_SHELL is bash and it inherits a
2456       # broken ls alias from the environment.  This has actually
2457       # happened.  Such a system could not be considered "sane".
2458       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2459 alias in your environment" >&5
2460 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2461 alias in your environment" >&2;}
2462    { (exit 1); exit 1; }; }
2463    fi
2464
2465    test "$2" = conftest.file
2466    )
2467 then
2468    # Ok.
2469    :
2470 else
2471    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2472 Check your system clock" >&5
2473 $as_echo "$as_me: error: newly created file is older than distributed files!
2474 Check your system clock" >&2;}
2475    { (exit 1); exit 1; }; }
2476 fi
2477 { $as_echo "$as_me:$LINENO: result: yes" >&5
2478 $as_echo "yes" >&6; }
2479 test "$program_prefix" != NONE &&
2480   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2481 # Use a double $ so make ignores it.
2482 test "$program_suffix" != NONE &&
2483   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2484 # Double any \ or $.
2485 # By default was `s,x,x', remove it if useless.
2486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2488
2489 # expand $ac_aux_dir to an absolute path
2490 am_aux_dir=`cd $ac_aux_dir && pwd`
2491
2492 if test x"${MISSING+set}" != xset; then
2493   case $am_aux_dir in
2494   *\ * | *\     *)
2495     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2496   *)
2497     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2498   esac
2499 fi
2500 # Use eval to expand $SHELL
2501 if eval "$MISSING --run true"; then
2502   am_missing_run="$MISSING --run "
2503 else
2504   am_missing_run=
2505   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2506 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2507 fi
2508
2509 if test x"${install_sh}" != xset; then
2510   case $am_aux_dir in
2511   *\ * | *\     *)
2512     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2513   *)
2514     install_sh="\${SHELL} $am_aux_dir/install-sh"
2515   esac
2516 fi
2517
2518 # Installed binaries are usually stripped using `strip' when the user
2519 # run `make install-strip'.  However `strip' might not be the right
2520 # tool to use in cross-compilation environments, therefore Automake
2521 # will honor the `STRIP' environment variable to overrule this program.
2522 if test "$cross_compiling" != no; then
2523   if test -n "$ac_tool_prefix"; then
2524   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2525 set dummy ${ac_tool_prefix}strip; ac_word=$2
2526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if test "${ac_cv_prog_STRIP+set}" = set; then
2529   $as_echo_n "(cached) " >&6
2530 else
2531   if test -n "$STRIP"; then
2532   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   for ac_exec_ext in '' $ac_executable_extensions; do
2540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2542     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543     break 2
2544   fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 STRIP=$ac_cv_prog_STRIP
2552 if test -n "$STRIP"; then
2553   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2554 $as_echo "$STRIP" >&6; }
2555 else
2556   { $as_echo "$as_me:$LINENO: result: no" >&5
2557 $as_echo "no" >&6; }
2558 fi
2559
2560
2561 fi
2562 if test -z "$ac_cv_prog_STRIP"; then
2563   ac_ct_STRIP=$STRIP
2564   # Extract the first word of "strip", so it can be a program name with args.
2565 set dummy strip; ac_word=$2
2566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2569   $as_echo_n "(cached) " >&6
2570 else
2571   if test -n "$ac_ct_STRIP"; then
2572   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579   for ac_exec_ext in '' $ac_executable_extensions; do
2580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581     ac_cv_prog_ac_ct_STRIP="strip"
2582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2592 if test -n "$ac_ct_STRIP"; then
2593   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2594 $as_echo "$ac_ct_STRIP" >&6; }
2595 else
2596   { $as_echo "$as_me:$LINENO: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600   if test "x$ac_ct_STRIP" = x; then
2601     STRIP=":"
2602   else
2603     case $cross_compiling:$ac_tool_warned in
2604 yes:)
2605 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609     STRIP=$ac_ct_STRIP
2610   fi
2611 else
2612   STRIP="$ac_cv_prog_STRIP"
2613 fi
2614
2615 fi
2616 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2617
2618 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2619 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2620 if test -z "$MKDIR_P"; then
2621   if test "${ac_cv_path_mkdir+set}" = set; then
2622   $as_echo_n "(cached) " >&6
2623 else
2624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629   for ac_prog in mkdir gmkdir; do
2630          for ac_exec_ext in '' $ac_executable_extensions; do
2631            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2632            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2633              'mkdir (GNU coreutils) '* | \
2634              'mkdir (coreutils) '* | \
2635              'mkdir (fileutils) '4.1*)
2636                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2637                break 3;;
2638            esac
2639          done
2640        done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645
2646   if test "${ac_cv_path_mkdir+set}" = set; then
2647     MKDIR_P="$ac_cv_path_mkdir -p"
2648   else
2649     # As a last resort, use the slow shell script.  Don't cache a
2650     # value for MKDIR_P within a source directory, because that will
2651     # break other packages using the cache if that directory is
2652     # removed, or if the value is a relative name.
2653     test -d ./--version && rmdir ./--version
2654     MKDIR_P="$ac_install_sh -d"
2655   fi
2656 fi
2657 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2658 $as_echo "$MKDIR_P" >&6; }
2659
2660 mkdir_p="$MKDIR_P"
2661 case $mkdir_p in
2662   [\\/$]* | ?:[\\/]*) ;;
2663   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2664 esac
2665
2666 for ac_prog in gawk mawk nawk awk
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_AWK+set}" = set; then
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$AWK"; then
2676   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683   for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_AWK="$ac_prog"
2686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 AWK=$ac_cv_prog_AWK
2696 if test -n "$AWK"; then
2697   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2699 else
2700   { $as_echo "$as_me:$LINENO: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705   test -n "$AWK" && break
2706 done
2707
2708 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2710 set x ${MAKE-make}
2711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2712 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2713   $as_echo_n "(cached) " >&6
2714 else
2715   cat >conftest.make <<\_ACEOF
2716 SHELL = /bin/sh
2717 all:
2718         @echo '@@@%%%=$(MAKE)=@@@%%%'
2719 _ACEOF
2720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2722   *@@@%%%=?*=@@@%%%*)
2723     eval ac_cv_prog_make_${ac_make}_set=yes;;
2724   *)
2725     eval ac_cv_prog_make_${ac_make}_set=no;;
2726 esac
2727 rm -f conftest.make
2728 fi
2729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2730   { $as_echo "$as_me:$LINENO: result: yes" >&5
2731 $as_echo "yes" >&6; }
2732   SET_MAKE=
2733 else
2734   { $as_echo "$as_me:$LINENO: result: no" >&5
2735 $as_echo "no" >&6; }
2736   SET_MAKE="MAKE=${MAKE-make}"
2737 fi
2738
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2742   am__leading_dot=.
2743 else
2744   am__leading_dot=_
2745 fi
2746 rmdir .tst 2>/dev/null
2747
2748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2749   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2750   # is not polluted with repeated "-I."
2751   am__isrc=' -I$(srcdir)'
2752   # test to see if srcdir already configured
2753   if test -f $srcdir/config.status; then
2754     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2755 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2756    { (exit 1); exit 1; }; }
2757   fi
2758 fi
2759
2760 # test whether we have cygpath
2761 if test -z "$CYGPATH_W"; then
2762   if (cygpath --version) >/dev/null 2>/dev/null; then
2763     CYGPATH_W='cygpath -w'
2764   else
2765     CYGPATH_W=echo
2766   fi
2767 fi
2768
2769
2770 # Define the identity of the package.
2771  PACKAGE='util-linux-ng'
2772  VERSION='2.16.2'
2773
2774
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE "$PACKAGE"
2777 _ACEOF
2778
2779
2780 cat >>confdefs.h <<_ACEOF
2781 #define VERSION "$VERSION"
2782 _ACEOF
2783
2784 # Some tools Automake needs.
2785
2786 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2787
2788
2789 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2790
2791
2792 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2793
2794
2795 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2796
2797
2798 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2799
2800 # We need awk for the "check" target.  The system "awk" is bad on
2801 # some platforms.
2802 # Always define AMTAR for backward compatibility.
2803
2804 AMTAR=${AMTAR-"${am_missing_run}tar"}
2805
2806 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817 PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
2818 PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
2819                                               | awk -F- '{print $1}')
2820 PACKAGE_VERSION_RELEASE=0
2821
2822 LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
2823 LIBBLKID_DATE="10-Feb-2009"
2824 LIBBLKID_LT_MAJOR=1
2825 LIBBLKID_LT_MINOR=1
2826 LIBBLKID_LT_MICRO=0
2827 LIBBLKID_VERSION_INFO=`expr $LIBBLKID_LT_MAJOR + $LIBBLKID_LT_MINOR`:$LIBBLKID_LT_MICRO:$LIBBLKID_LT_MINOR
2828
2829 LIBUUID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
2830 LIBUUID_LT_MAJOR=1
2831 LIBUUID_LT_MINOR=3
2832 LIBUUID_LT_MICRO=0
2833 LIBUUID_VERSION_INFO=`expr $LIBUUID_LT_MAJOR + $LIBUUID_LT_MINOR`:$LIBUUID_LT_MICRO:$LIBUUID_LT_MINOR
2834
2835 # Check whether exec_prefix=/usr:
2836 case $exec_prefix:$prefix in
2837 NONE:NONE | NONE:/usr | /usr:*)
2838   { $as_echo "$as_me:$LINENO: Default --exec-prefix detected." >&5
2839 $as_echo "$as_me: Default --exec-prefix detected." >&6;}
2840   case $bindir in
2841   '${exec_prefix}/bin') bindir=/bin
2842     { $as_echo "$as_me:$LINENO:   --bindir defaults to /bin" >&5
2843 $as_echo "$as_me:   --bindir defaults to /bin" >&6;} ;;
2844   esac
2845   case $sbindir in
2846   '${exec_prefix}/sbin') sbindir=/sbin
2847     { $as_echo "$as_me:$LINENO:   --sbindir defaults to /sbin" >&5
2848 $as_echo "$as_me:   --sbindir defaults to /sbin" >&6;} ;;
2849   esac
2850   case $libdir in
2851   '${exec_prefix}/lib') libdir=/lib
2852     { $as_echo "$as_me:$LINENO:   --libdir defaults to /lib" >&5
2853 $as_echo "$as_me:   --libdir defaults to /lib" >&6;} ;;
2854   esac ;;
2855 esac
2856
2857 libdirname=`basename "$libdir"`
2858
2859
2860 # The original default values of {bin,sbin,lib}dir
2861 usrbin_execdir='${exec_prefix}/bin'
2862
2863
2864 usrsbin_execdir='${exec_prefix}/sbin'
2865
2866
2867 usrlib_execdir='${exec_prefix}/'$libdirname
2868
2869
2870
2871 DEPDIR="${am__leading_dot}deps"
2872
2873 ac_config_commands="$ac_config_commands depfiles"
2874
2875
2876 am_make=${MAKE-make}
2877 cat > confinc << 'END'
2878 am__doit:
2879         @echo this is the am__doit target
2880 .PHONY: am__doit
2881 END
2882 # If we don't find an include directive, just comment out the code.
2883 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2884 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2885 am__include="#"
2886 am__quote=
2887 _am_result=none
2888 # First try GNU make style include.
2889 echo "include confinc" > confmf
2890 # Ignore all kinds of additional output from `make'.
2891 case `$am_make -s -f confmf 2> /dev/null` in #(
2892 *the\ am__doit\ target*)
2893   am__include=include
2894   am__quote=
2895   _am_result=GNU
2896   ;;
2897 esac
2898 # Now try BSD make style include.
2899 if test "$am__include" = "#"; then
2900    echo '.include "confinc"' > confmf
2901    case `$am_make -s -f confmf 2> /dev/null` in #(
2902    *the\ am__doit\ target*)
2903      am__include=.include
2904      am__quote="\""
2905      _am_result=BSD
2906      ;;
2907    esac
2908 fi
2909
2910
2911 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2912 $as_echo "$_am_result" >&6; }
2913 rm -f confinc confmf
2914
2915 # Check whether --enable-dependency-tracking was given.
2916 if test "${enable_dependency_tracking+set}" = set; then
2917   enableval=$enable_dependency_tracking;
2918 fi
2919
2920 if test "x$enable_dependency_tracking" != xno; then
2921   am_depcomp="$ac_aux_dir/depcomp"
2922   AMDEPBACKSLASH='\'
2923 fi
2924  if test "x$enable_dependency_tracking" != xno; then
2925   AMDEP_TRUE=
2926   AMDEP_FALSE='#'
2927 else
2928   AMDEP_TRUE='#'
2929   AMDEP_FALSE=
2930 fi
2931
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then
2944   $as_echo_n "(cached) " >&6
2945 else
2946   if test -n "$CC"; then
2947   ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971   { $as_echo "$as_me:$LINENO: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$ac_cv_prog_CC"; then
2978   ac_ct_CC=$CC
2979   # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984   $as_echo_n "(cached) " >&6
2985 else
2986   if test -n "$ac_ct_CC"; then
2987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994   for ac_exec_ext in '' $ac_executable_extensions; do
2995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996     ac_cv_prog_ac_ct_CC="gcc"
2997     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3010 else
3011   { $as_echo "$as_me:$LINENO: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015   if test "x$ac_ct_CC" = x; then
3016     CC=""
3017   else
3018     case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024     CC=$ac_ct_CC
3025   fi
3026 else
3027   CC="$ac_cv_prog_CC"
3028 fi
3029
3030 if test -z "$CC"; then
3031           if test -n "$ac_tool_prefix"; then
3032     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}cc; ac_word=$2
3034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then
3037   $as_echo_n "(cached) " >&6
3038 else
3039   if test -n "$CC"; then
3040   ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   for ac_exec_ext in '' $ac_executable_extensions; do
3048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049     ac_cv_prog_CC="${ac_tool_prefix}cc"
3050     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064   { $as_echo "$as_me:$LINENO: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069   fi
3070 fi
3071 if test -z "$CC"; then
3072   # Extract the first word of "cc", so it can be a program name with args.
3073 set dummy cc; ac_word=$2
3074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$CC"; then
3080   ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082   ac_prog_rejected=no
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086   IFS=$as_save_IFS
3087   test -z "$as_dir" && as_dir=.
3088   for ac_exec_ext in '' $ac_executable_extensions; do
3089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091        ac_prog_rejected=yes
3092        continue
3093      fi
3094     ac_cv_prog_CC="cc"
3095     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 if test $ac_prog_rejected = yes; then
3103   # We found a bogon in the path, so make sure we never use it.
3104   set dummy $ac_cv_prog_CC
3105   shift
3106   if test $# != 0; then
3107     # We chose a different compiler from the bogus one.
3108     # However, it has the same basename, so the bogon will be chosen
3109     # first if we set CC to just the basename; use the full file name.
3110     shift
3111     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112   fi
3113 fi
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121   { $as_echo "$as_me:$LINENO: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 fi
3127 if test -z "$CC"; then
3128   if test -n "$ac_tool_prefix"; then
3129   for ac_prog in cl.exe
3130   do
3131     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$CC"; then
3139   ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146   for ac_exec_ext in '' $ac_executable_extensions; do
3147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163   { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168     test -n "$CC" && break
3169   done
3170 fi
3171 if test -z "$CC"; then
3172   ac_ct_CC=$CC
3173   for ac_prog in cl.exe
3174 do
3175   # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3180   $as_echo_n "(cached) " >&6
3181 else
3182   if test -n "$ac_ct_CC"; then
3183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190   for ac_exec_ext in '' $ac_executable_extensions; do
3191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192     ac_cv_prog_ac_ct_CC="$ac_prog"
3193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207   { $as_echo "$as_me:$LINENO: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212   test -n "$ac_ct_CC" && break
3213 done
3214
3215   if test "x$ac_ct_CC" = x; then
3216     CC=""
3217   else
3218     case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224     CC=$ac_ct_CC
3225   fi
3226 fi
3227
3228 fi
3229
3230
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237    { (exit 1); exit 1; }; }; }
3238
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 set X $ac_compile
3242 ac_compiler=$2
3243 { (ac_try="$ac_compiler --version >&5"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250   (eval "$ac_compiler --version >&5") 2>&5
3251   ac_status=$?
3252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compiler -v >&5") 2>&5
3262   ac_status=$?
3263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272   (eval "$ac_compiler -V >&5") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303
3304 ac_rmfiles=
3305 for ac_file in $ac_files
3306 do
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310   esac
3311 done
3312 rm -f $ac_rmfiles
3313
3314 if { (ac_try="$ac_link_default"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321   (eval "$ac_link_default") 2>&5
3322   ac_status=$?
3323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; then
3325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3331 do
3332   test -f "$ac_file" || continue
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335         ;;
3336     [ab].out )
3337         # We found the default executable, but exeext='' is most
3338         # certainly right.
3339         break;;
3340     *.* )
3341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342         then :; else
3343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344         fi
3345         # We set ac_cv_exeext here because the later test for it is not
3346         # safe: cross compilers may not add the suffix if given an `-o'
3347         # argument, so we may need to know it at that point already.
3348         # Even if this section looks crufty: it has the advantage of
3349         # actually working.
3350         break;;
3351     * )
3352         break;;
3353   esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
3357 else
3358   ac_file=''
3359 fi
3360
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364   $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373    { (exit 77); exit 77; }; }; }
3374 fi
3375
3376 ac_exeext=$ac_cv_exeext
3377
3378 # Check that the compiler produces executables we can run.  If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385   if { ac_try='./$ac_file'
3386   { (case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409    { (exit 1); exit 1; }; }; }
3410     fi
3411   fi
3412 fi
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run.  If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3424
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; then
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458    { (exit 1); exit 1; }; }; }
3459 fi
3460
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3464
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3467 ac_exeext=$EXEEXT
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471   $as_echo_n "(cached) " >&6
3472 else
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496   (eval "$ac_compile") 2>&5
3497   ac_status=$?
3498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; then
3500   for ac_file in conftest.o conftest.obj conftest.*; do
3501   test -f "$ac_file" || continue;
3502   case $ac_file in
3503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505        break;;
3506   esac
3507 done
3508 else
3509   $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518    { (exit 1); exit 1; }; }; }
3519 fi
3520
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522 fi
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530   $as_echo_n "(cached) " >&6
3531 else
3532   cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542 #ifndef __GNUC__
3543        choke me
3544 #endif
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558   (eval "$ac_compile") 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } && {
3565          test -z "$ac_c_werror_flag" ||
3566          test ! -s conftest.err
3567        } && test -s conftest.$ac_objext; then
3568   ac_compiler_gnu=yes
3569 else
3570   $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573         ac_compiler_gnu=no
3574 fi
3575
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578
3579 fi
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3583   GCC=yes
3584 else
3585   GCC=
3586 fi
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_save_c_werror_flag=$ac_c_werror_flag
3595    ac_c_werror_flag=yes
3596    ac_cv_prog_cc_g=no
3597    CFLAGS="-g"
3598    cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621   (eval "$ac_compile") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } && {
3628          test -z "$ac_c_werror_flag" ||
3629          test ! -s conftest.err
3630        } && test -s conftest.$ac_objext; then
3631   ac_cv_prog_cc_g=yes
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636         CFLAGS=""
3637       cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h.  */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h.  */
3643
3644 int
3645 main ()
3646 {
3647
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660   (eval "$ac_compile") 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } && {
3667          test -z "$ac_c_werror_flag" ||
3668          test ! -s conftest.err
3669        } && test -s conftest.$ac_objext; then
3670   :
3671 else
3672   $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675         ac_c_werror_flag=$ac_save_c_werror_flag
3676          CFLAGS="-g"
3677          cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700   (eval "$ac_compile") 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } && {
3707          test -z "$ac_c_werror_flag" ||
3708          test ! -s conftest.err
3709        } && test -s conftest.$ac_objext; then
3710   ac_cv_prog_cc_g=yes
3711 else
3712   $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715
3716 fi
3717
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725    ac_c_werror_flag=$ac_save_c_werror_flag
3726 fi
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730   CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732   if test "$GCC" = yes; then
3733     CFLAGS="-g -O2"
3734   else
3735     CFLAGS="-g"
3736   fi
3737 else
3738   if test "$GCC" = yes; then
3739     CFLAGS="-O2"
3740   else
3741     CFLAGS=
3742   fi
3743 fi
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747   $as_echo_n "(cached) " >&6
3748 else
3749   ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765      char **p;
3766      int i;
3767 {
3768   return p[i];
3769 }
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3771 {
3772   char *s;
3773   va_list v;
3774   va_start (v,p);
3775   s = g (p, va_arg (v,int));
3776   va_end (v);
3777   return s;
3778 }
3779
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3781    function prototypes and stuff, but not '\xHH' hex character constants.
3782    These don't provoke an error unfortunately, instead are silently treated
3783    as 'x'.  The following induces an error, until -std is added to get
3784    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3785    array size at least.  It's necessary to write '\x00'==0 to get something
3786    that's true only with -std.  */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790    inside strings and character constants.  */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3800 int
3801 main ()
3802 {
3803 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 do
3811   CC="$ac_save_CC $ac_arg"
3812   rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820   (eval "$ac_compile") 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } && {
3827          test -z "$ac_c_werror_flag" ||
3828          test ! -s conftest.err
3829        } && test -s conftest.$ac_objext; then
3830   ac_cv_prog_cc_c89=$ac_arg
3831 else
3832   $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835
3836 fi
3837
3838 rm -f core conftest.err conftest.$ac_objext
3839   test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3843
3844 fi
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3847   x)
3848     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3850   xno)
3851     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3853   *)
3854     CC="$CC $ac_cv_prog_cc_c89"
3855     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3858
3859
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
3866 depcc="$CC"   am_compiler_list=
3867
3868 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3869 $as_echo_n "checking dependency style of $depcc... " >&6; }
3870 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3871   $as_echo_n "(cached) " >&6
3872 else
3873   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874   # We make a subdir and do the tests there.  Otherwise we can end up
3875   # making bogus files that we don't know about and never remove.  For
3876   # instance it was reported that on HP-UX the gcc test will end up
3877   # making a dummy file named `D' -- because `-MD' means `put the output
3878   # in D'.
3879   mkdir conftest.dir
3880   # Copy depcomp to subdir because otherwise we won't find it if we're
3881   # using a relative directory.
3882   cp "$am_depcomp" conftest.dir
3883   cd conftest.dir
3884   # We will build objects and dependencies in a subdirectory because
3885   # it helps to detect inapplicable dependency modes.  For instance
3886   # both Tru64's cc and ICC support -MD to output dependencies as a
3887   # side effect of compilation, but ICC will put the dependencies in
3888   # the current directory while Tru64 will put them in the object
3889   # directory.
3890   mkdir sub
3891
3892   am_cv_CC_dependencies_compiler_type=none
3893   if test "$am_compiler_list" = ""; then
3894      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895   fi
3896   am__universal=false
3897   case " $depcc " in #(
3898      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899      esac
3900
3901   for depmode in $am_compiler_list; do
3902     # Setup a source with many dependencies, because some compilers
3903     # like to wrap large dependency lists on column 80 (with \), and
3904     # we should not choose a depcomp mode which is confused by this.
3905     #
3906     # We need to recreate these files for each test, as the compiler may
3907     # overwrite some of them when testing with obscure command lines.
3908     # This happens at least with the AIX C compiler.
3909     : > sub/conftest.c
3910     for i in 1 2 3 4 5 6; do
3911       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3913       # Solaris 8's {/usr,}/bin/sh.
3914       touch sub/conftst$i.h
3915     done
3916     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917
3918     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3919     # mode.  It turns out that the SunPro C++ compiler does not properly
3920     # handle `-M -o', and we need to detect this.  Also, some Intel
3921     # versions had trouble with output in subdirs
3922     am__obj=sub/conftest.${OBJEXT-o}
3923     am__minus_obj="-o $am__obj"
3924     case $depmode in
3925     gcc)
3926       # This depmode causes a compiler race in universal mode.
3927       test "$am__universal" = false || continue
3928       ;;
3929     nosideeffect)
3930       # after this tag, mechanisms are not by side-effect, so they'll
3931       # only be used when explicitly requested
3932       if test "x$enable_dependency_tracking" = xyes; then
3933         continue
3934       else
3935         break
3936       fi
3937       ;;
3938     msvisualcpp | msvcmsys)
3939       # This compiler won't grok `-c -o', but also, the minuso test has
3940       # not run yet.  These depmodes are late enough in the game, and
3941       # so weak that their functioning should not be impacted.
3942       am__obj=conftest.${OBJEXT-o}
3943       am__minus_obj=
3944       ;;
3945     none) break ;;
3946     esac
3947     if depmode=$depmode \
3948        source=sub/conftest.c object=$am__obj \
3949        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951          >/dev/null 2>conftest.err &&
3952        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956       # icc doesn't choke on unknown options, it will just issue warnings
3957       # or remarks (even with -Werror).  So we grep stderr for any message
3958       # that says an option was ignored or not supported.
3959       # When given -MP, icc 7.0 and 7.1 complain thusly:
3960       #   icc: Command line warning: ignoring option '-M'; no argument required
3961       # The diagnosis changed in icc 8.0:
3962       #   icc: Command line remark: option '-MP' not supported
3963       if (grep 'ignoring option' conftest.err ||
3964           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965         am_cv_CC_dependencies_compiler_type=$depmode
3966         break
3967       fi
3968     fi
3969   done
3970
3971   cd ..
3972   rm -rf conftest.dir
3973 else
3974   am_cv_CC_dependencies_compiler_type=none
3975 fi
3976
3977 fi
3978 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3979 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981
3982  if
3983   test "x$enable_dependency_tracking" != xno \
3984   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985   am__fastdepCC_TRUE=
3986   am__fastdepCC_FALSE='#'
3987 else
3988   am__fastdepCC_TRUE='#'
3989   am__fastdepCC_FALSE=
3990 fi
3991
3992
3993    case $ac_cv_prog_cc_stdc in
3994   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3995   *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3996 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3997 if test "${ac_cv_prog_cc_c99+set}" = set; then
3998   $as_echo_n "(cached) " >&6
3999 else
4000   ac_cv_prog_cc_c99=no
4001 ac_save_CC=$CC
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 #include <stdarg.h>
4009 #include <stdbool.h>
4010 #include <stdlib.h>
4011 #include <wchar.h>
4012 #include <stdio.h>
4013
4014 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4015 #define debug(...) fprintf (stderr, __VA_ARGS__)
4016 #define showlist(...) puts (#__VA_ARGS__)
4017 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4018 static void
4019 test_varargs_macros (void)
4020 {
4021   int x = 1234;
4022   int y = 5678;
4023   debug ("Flag");
4024   debug ("X = %d\n", x);
4025   showlist (The first, second, and third items.);
4026   report (x>y, "x is %d but y is %d", x, y);
4027 }
4028
4029 // Check long long types.
4030 #define BIG64 18446744073709551615ull
4031 #define BIG32 4294967295ul
4032 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4033 #if !BIG_OK
4034   your preprocessor is broken;
4035 #endif
4036 #if BIG_OK
4037 #else
4038   your preprocessor is broken;
4039 #endif
4040 static long long int bignum = -9223372036854775807LL;
4041 static unsigned long long int ubignum = BIG64;
4042
4043 struct incomplete_array
4044 {
4045   int datasize;
4046   double data[];
4047 };
4048
4049 struct named_init {
4050   int number;
4051   const wchar_t *name;
4052   double average;
4053 };
4054
4055 typedef const char *ccp;
4056
4057 static inline int
4058 test_restrict (ccp restrict text)
4059 {
4060   // See if C++-style comments work.
4061   // Iterate through items via the restricted pointer.
4062   // Also check for declarations in for loops.
4063   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4064     continue;
4065   return 0;
4066 }
4067
4068 // Check varargs and va_copy.
4069 static void
4070 test_varargs (const char *format, ...)
4071 {
4072   va_list args;
4073   va_start (args, format);
4074   va_list args_copy;
4075   va_copy (args_copy, args);
4076
4077   const char *str;
4078   int number;
4079   float fnumber;
4080
4081   while (*format)
4082     {
4083       switch (*format++)
4084         {
4085         case 's': // string
4086           str = va_arg (args_copy, const char *);
4087           break;
4088         case 'd': // int
4089           number = va_arg (args_copy, int);
4090           break;
4091         case 'f': // float
4092           fnumber = va_arg (args_copy, double);
4093           break;
4094         default:
4095           break;
4096         }
4097     }
4098   va_end (args_copy);
4099   va_end (args);
4100 }
4101
4102 int
4103 main ()
4104 {
4105
4106   // Check bool.
4107   _Bool success = false;
4108
4109   // Check restrict.
4110   if (test_restrict ("String literal") == 0)
4111     success = true;
4112   char *restrict newvar = "Another string";
4113
4114   // Check varargs.
4115   test_varargs ("s, d' f .", "string", 65, 34.234);
4116   test_varargs_macros ();
4117
4118   // Check flexible array members.
4119   struct incomplete_array *ia =
4120     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4121   ia->datasize = 10;
4122   for (int i = 0; i < ia->datasize; ++i)
4123     ia->data[i] = i * 1.234;
4124
4125   // Check named initializers.
4126   struct named_init ni = {
4127     .number = 34,
4128     .name = L"Test wide string",
4129     .average = 543.34343,
4130   };
4131
4132   ni.number = 58;
4133
4134   int dynamic_array[ni.number];
4135   dynamic_array[ni.number - 1] = 543;
4136
4137   // work around unused variable warnings
4138   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4139           || dynamic_array[ni.number - 1] != 543);
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4146 do
4147   CC="$ac_save_CC $ac_arg"
4148   rm -f conftest.$ac_objext
4149 if { (ac_try="$ac_compile"
4150 case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4155 $as_echo "$ac_try_echo") >&5
4156   (eval "$ac_compile") 2>conftest.er1
4157   ac_status=$?
4158   grep -v '^ *+' conftest.er1 >conftest.err
4159   rm -f conftest.er1
4160   cat conftest.err >&5
4161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } && {
4163          test -z "$ac_c_werror_flag" ||
4164          test ! -s conftest.err
4165        } && test -s conftest.$ac_objext; then
4166   ac_cv_prog_cc_c99=$ac_arg
4167 else
4168   $as_echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171
4172 fi
4173
4174 rm -f core conftest.err conftest.$ac_objext
4175   test "x$ac_cv_prog_cc_c99" != "xno" && break
4176 done
4177 rm -f conftest.$ac_ext
4178 CC=$ac_save_CC
4179
4180 fi
4181 # AC_CACHE_VAL
4182 case "x$ac_cv_prog_cc_c99" in
4183   x)
4184     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4186   xno)
4187     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4189   *)
4190     CC="$CC $ac_cv_prog_cc_c99"
4191     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4192 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4193 esac
4194 if test "x$ac_cv_prog_cc_c99" != xno; then
4195   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4196 else
4197   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then
4200   $as_echo_n "(cached) " >&6
4201 else
4202   ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <stdarg.h>
4211 #include <stdio.h>
4212 #include <sys/types.h>
4213 #include <sys/stat.h>
4214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4215 struct buf { int x; };
4216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217 static char *e (p, i)
4218      char **p;
4219      int i;
4220 {
4221   return p[i];
4222 }
4223 static char *f (char * (*g) (char **, int), char **p, ...)
4224 {
4225   char *s;
4226   va_list v;
4227   va_start (v,p);
4228   s = g (p, va_arg (v,int));
4229   va_end (v);
4230   return s;
4231 }
4232
4233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4234    function prototypes and stuff, but not '\xHH' hex character constants.
4235    These don't provoke an error unfortunately, instead are silently treated
4236    as 'x'.  The following induces an error, until -std is added to get
4237    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4238    array size at least.  It's necessary to write '\x00'==0 to get something
4239    that's true only with -std.  */
4240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4241
4242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243    inside strings and character constants.  */
4244 #define FOO(x) 'x'
4245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4246
4247 int test (int i, double x);
4248 struct s1 {int (*f) (int a);};
4249 struct s2 {int (*f) (double a);};
4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 int argc;
4252 char **argv;
4253 int
4254 main ()
4255 {
4256 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4263 do
4264   CC="$ac_save_CC $ac_arg"
4265   rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4272 $as_echo "$ac_try_echo") >&5
4273   (eval "$ac_compile") 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } && {
4280          test -z "$ac_c_werror_flag" ||
4281          test ! -s conftest.err
4282        } && test -s conftest.$ac_objext; then
4283   ac_cv_prog_cc_c89=$ac_arg
4284 else
4285   $as_echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288
4289 fi
4290
4291 rm -f core conftest.err conftest.$ac_objext
4292   test "x$ac_cv_prog_cc_c89" != "xno" && break
4293 done
4294 rm -f conftest.$ac_ext
4295 CC=$ac_save_CC
4296
4297 fi
4298 # AC_CACHE_VAL
4299 case "x$ac_cv_prog_cc_c89" in
4300   x)
4301     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4302 $as_echo "none needed" >&6; } ;;
4303   xno)
4304     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4305 $as_echo "unsupported" >&6; } ;;
4306   *)
4307     CC="$CC $ac_cv_prog_cc_c89"
4308     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310 esac
4311 if test "x$ac_cv_prog_cc_c89" != xno; then
4312   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4313 else
4314   ac_cv_prog_cc_stdc=no
4315 fi
4316
4317
4318 fi
4319
4320  ;;
4321 esac
4322   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4323 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4324   if test "${ac_cv_prog_cc_stdc+set}" = set; then
4325   $as_echo_n "(cached) " >&6
4326 fi
4327
4328   case $ac_cv_prog_cc_stdc in
4329   no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4331   '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4332 $as_echo "none needed" >&6; } ;;
4333   *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4334 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4335 esac
4336
4337
4338
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4345 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4346 # On Suns, sometimes $CPP names a directory.
4347 if test -n "$CPP" && test -d "$CPP"; then
4348   CPP=
4349 fi
4350 if test -z "$CPP"; then
4351   if test "${ac_cv_prog_CPP+set}" = set; then
4352   $as_echo_n "(cached) " >&6
4353 else
4354       # Double quotes because CPP needs to be expanded
4355     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4356     do
4357       ac_preproc_ok=false
4358 for ac_c_preproc_warn_flag in '' yes
4359 do
4360   # Use a header file that comes with gcc, so configuring glibc
4361   # with a fresh cross-compiler works.
4362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363   # <limits.h> exists even on freestanding compilers.
4364   # On the NeXT, cc -E runs the code through the compiler's parser,
4365   # not just through cpp. "Syntax error" is here to catch this case.
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377                      Syntax error
4378 _ACEOF
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4380 case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385 $as_echo "$ac_try_echo") >&5
4386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } >/dev/null && {
4393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4394          test ! -s conftest.err
4395        }; then
4396   :
4397 else
4398   $as_echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401   # Broken: fails on valid input.
4402 continue
4403 fi
4404
4405 rm -f conftest.err conftest.$ac_ext
4406
4407   # OK, works on sane cases.  Now check whether nonexistent headers
4408   # can be detected and how.
4409   cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 #include <ac_nonexistent.h>
4416 _ACEOF
4417 if { (ac_try="$ac_cpp conftest.$ac_ext"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4423 $as_echo "$ac_try_echo") >&5
4424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } >/dev/null && {
4431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4432          test ! -s conftest.err
4433        }; then
4434   # Broken: success on invalid input.
4435 continue
4436 else
4437   $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440   # Passes both tests.
4441 ac_preproc_ok=:
4442 break
4443 fi
4444
4445 rm -f conftest.err conftest.$ac_ext
4446
4447 done
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then
4451   break
4452 fi
4453
4454     done
4455     ac_cv_prog_CPP=$CPP
4456
4457 fi
4458   CPP=$ac_cv_prog_CPP
4459 else
4460   ac_cv_prog_CPP=$CPP
4461 fi
4462 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4463 $as_echo "$CPP" >&6; }
4464 ac_preproc_ok=false
4465 for ac_c_preproc_warn_flag in '' yes
4466 do
4467   # Use a header file that comes with gcc, so configuring glibc
4468   # with a fresh cross-compiler works.
4469   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4470   # <limits.h> exists even on freestanding compilers.
4471   # On the NeXT, cc -E runs the code through the compiler's parser,
4472   # not just through cpp. "Syntax error" is here to catch this case.
4473   cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h.  */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h.  */
4479 #ifdef __STDC__
4480 # include <limits.h>
4481 #else
4482 # include <assert.h>
4483 #endif
4484                      Syntax error
4485 _ACEOF
4486 if { (ac_try="$ac_cpp conftest.$ac_ext"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } >/dev/null && {
4500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501          test ! -s conftest.err
4502        }; then
4503   :
4504 else
4505   $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508   # Broken: fails on valid input.
4509 continue
4510 fi
4511
4512 rm -f conftest.err conftest.$ac_ext
4513
4514   # OK, works on sane cases.  Now check whether nonexistent headers
4515   # can be detected and how.
4516   cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522 #include <ac_nonexistent.h>
4523 _ACEOF
4524 if { (ac_try="$ac_cpp conftest.$ac_ext"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530 $as_echo "$ac_try_echo") >&5
4531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } >/dev/null && {
4538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4539          test ! -s conftest.err
4540        }; then
4541   # Broken: success on invalid input.
4542 continue
4543 else
4544   $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547   # Passes both tests.
4548 ac_preproc_ok=:
4549 break
4550 fi
4551
4552 rm -f conftest.err conftest.$ac_ext
4553
4554 done
4555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4556 rm -f conftest.err conftest.$ac_ext
4557 if $ac_preproc_ok; then
4558   :
4559 else
4560   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4563 See \`config.log' for more details." >&5
4564 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details." >&2;}
4566    { (exit 1); exit 1; }; }; }
4567 fi
4568
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4575
4576 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then
4579   $as_echo_n "(cached) " >&6
4580 else
4581   if test -z "$GREP"; then
4582   ac_path_GREP_found=false
4583   # Loop through the user's path and test for each of PROGNAME-LIST
4584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589   for ac_prog in grep ggrep; do
4590     for ac_exec_ext in '' $ac_executable_extensions; do
4591       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593 # Check for GNU ac_path_GREP and select it if it is found.
4594   # Check for GNU $ac_path_GREP
4595 case `"$ac_path_GREP" --version 2>&1` in
4596 *GNU*)
4597   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598 *)
4599   ac_count=0
4600   $as_echo_n 0123456789 >"conftest.in"
4601   while :
4602   do
4603     cat "conftest.in" "conftest.in" >"conftest.tmp"
4604     mv "conftest.tmp" "conftest.in"
4605     cp "conftest.in" "conftest.nl"
4606     $as_echo 'GREP' >> "conftest.nl"
4607     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609     ac_count=`expr $ac_count + 1`
4610     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611       # Best one so far, save it but keep looking for a better one
4612       ac_cv_path_GREP="$ac_path_GREP"
4613       ac_path_GREP_max=$ac_count
4614     fi
4615     # 10*(2^10) chars as input seems more than enough
4616     test $ac_count -gt 10 && break
4617   done
4618   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4620
4621       $ac_path_GREP_found && break 3
4622     done
4623   done
4624 done
4625 IFS=$as_save_IFS
4626   if test -z "$ac_cv_path_GREP"; then
4627     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4628 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4629    { (exit 1); exit 1; }; }
4630   fi
4631 else
4632   ac_cv_path_GREP=$GREP
4633 fi
4634
4635 fi
4636 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4637 $as_echo "$ac_cv_path_GREP" >&6; }
4638  GREP="$ac_cv_path_GREP"
4639
4640
4641 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4642 $as_echo_n "checking for egrep... " >&6; }
4643 if test "${ac_cv_path_EGREP+set}" = set; then
4644   $as_echo_n "(cached) " >&6
4645 else
4646   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4647    then ac_cv_path_EGREP="$GREP -E"
4648    else
4649      if test -z "$EGREP"; then
4650   ac_path_EGREP_found=false
4651   # Loop through the user's path and test for each of PROGNAME-LIST
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_prog in egrep; do
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4660       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4661 # Check for GNU ac_path_EGREP and select it if it is found.
4662   # Check for GNU $ac_path_EGREP
4663 case `"$ac_path_EGREP" --version 2>&1` in
4664 *GNU*)
4665   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4666 *)
4667   ac_count=0
4668   $as_echo_n 0123456789 >"conftest.in"
4669   while :
4670   do
4671     cat "conftest.in" "conftest.in" >"conftest.tmp"
4672     mv "conftest.tmp" "conftest.in"
4673     cp "conftest.in" "conftest.nl"
4674     $as_echo 'EGREP' >> "conftest.nl"
4675     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677     ac_count=`expr $ac_count + 1`
4678     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4679       # Best one so far, save it but keep looking for a better one
4680       ac_cv_path_EGREP="$ac_path_EGREP"
4681       ac_path_EGREP_max=$ac_count
4682     fi
4683     # 10*(2^10) chars as input seems more than enough
4684     test $ac_count -gt 10 && break
4685   done
4686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4687 esac
4688
4689       $ac_path_EGREP_found && break 3
4690     done
4691   done
4692 done
4693 IFS=$as_save_IFS
4694   if test -z "$ac_cv_path_EGREP"; then
4695     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4696 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4697    { (exit 1); exit 1; }; }
4698   fi
4699 else
4700   ac_cv_path_EGREP=$EGREP
4701 fi
4702
4703    fi
4704 fi
4705 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4706 $as_echo "$ac_cv_path_EGREP" >&6; }
4707  EGREP="$ac_cv_path_EGREP"
4708
4709
4710 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4711 $as_echo_n "checking for ANSI C header files... " >&6; }
4712 if test "${ac_cv_header_stdc+set}" = set; then
4713   $as_echo_n "(cached) " >&6
4714 else
4715   cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721 #include <stdlib.h>
4722 #include <stdarg.h>
4723 #include <string.h>
4724 #include <float.h>
4725
4726 int
4727 main ()
4728 {
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4741 $as_echo "$ac_try_echo") >&5
4742   (eval "$ac_compile") 2>conftest.er1
4743   ac_status=$?
4744   grep -v '^ *+' conftest.er1 >conftest.err
4745   rm -f conftest.er1
4746   cat conftest.err >&5
4747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } && {
4749          test -z "$ac_c_werror_flag" ||
4750          test ! -s conftest.err
4751        } && test -s conftest.$ac_objext; then
4752   ac_cv_header_stdc=yes
4753 else
4754   $as_echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757         ac_cv_header_stdc=no
4758 fi
4759
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761
4762 if test $ac_cv_header_stdc = yes; then
4763   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4764   cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 #include <string.h>
4771
4772 _ACEOF
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774   $EGREP "memchr" >/dev/null 2>&1; then
4775   :
4776 else
4777   ac_cv_header_stdc=no
4778 fi
4779 rm -f conftest*
4780
4781 fi
4782
4783 if test $ac_cv_header_stdc = yes; then
4784   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4785   cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h.  */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h.  */
4791 #include <stdlib.h>
4792
4793 _ACEOF
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795   $EGREP "free" >/dev/null 2>&1; then
4796   :
4797 else
4798   ac_cv_header_stdc=no
4799 fi
4800 rm -f conftest*
4801
4802 fi
4803
4804 if test $ac_cv_header_stdc = yes; then
4805   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4806   if test "$cross_compiling" = yes; then
4807   :
4808 else
4809   cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #include <ctype.h>
4816 #include <stdlib.h>
4817 #if ((' ' & 0x0FF) == 0x020)
4818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4820 #else
4821 # define ISLOWER(c) \
4822                    (('a' <= (c) && (c) <= 'i') \
4823                      || ('j' <= (c) && (c) <= 'r') \
4824                      || ('s' <= (c) && (c) <= 'z'))
4825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4826 #endif
4827
4828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4829 int
4830 main ()
4831 {
4832   int i;
4833   for (i = 0; i < 256; i++)
4834     if (XOR (islower (i), ISLOWER (i))
4835         || toupper (i) != TOUPPER (i))
4836       return 2;
4837   return 0;
4838 }
4839 _ACEOF
4840 rm -f conftest$ac_exeext
4841 if { (ac_try="$ac_link"
4842 case "(($ac_try" in
4843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844   *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848   (eval "$ac_link") 2>&5
4849   ac_status=$?
4850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4852   { (case "(($ac_try" in
4853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854   *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858   (eval "$ac_try") 2>&5
4859   ac_status=$?
4860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; }; then
4862   :
4863 else
4864   $as_echo "$as_me: program exited with status $ac_status" >&5
4865 $as_echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ( exit $ac_status )
4869 ac_cv_header_stdc=no
4870 fi
4871 rm -rf conftest.dSYM
4872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4873 fi
4874
4875
4876 fi
4877 fi
4878 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4879 $as_echo "$ac_cv_header_stdc" >&6; }
4880 if test $ac_cv_header_stdc = yes; then
4881
4882 cat >>confdefs.h <<\_ACEOF
4883 #define STDC_HEADERS 1
4884 _ACEOF
4885
4886 fi
4887
4888 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4899                   inttypes.h stdint.h unistd.h
4900 do
4901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4903 $as_echo_n "checking for $ac_header... " >&6; }
4904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4905   $as_echo_n "(cached) " >&6
4906 else
4907   cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 $ac_includes_default
4914
4915 #include <$ac_header>
4916 _ACEOF
4917 rm -f conftest.$ac_objext
4918 if { (ac_try="$ac_compile"
4919 case "(($ac_try" in
4920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921   *) ac_try_echo=$ac_try;;
4922 esac
4923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4924 $as_echo "$ac_try_echo") >&5
4925   (eval "$ac_compile") 2>conftest.er1
4926   ac_status=$?
4927   grep -v '^ *+' conftest.er1 >conftest.err
4928   rm -f conftest.er1
4929   cat conftest.err >&5
4930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); } && {
4932          test -z "$ac_c_werror_flag" ||
4933          test ! -s conftest.err
4934        } && test -s conftest.$ac_objext; then
4935   eval "$as_ac_Header=yes"
4936 else
4937   $as_echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940         eval "$as_ac_Header=no"
4941 fi
4942
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 ac_res=`eval 'as_val=${'$as_ac_Header'}
4946                  $as_echo "$as_val"'`
4947                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4948 $as_echo "$ac_res" >&6; }
4949 as_val=`eval 'as_val=${'$as_ac_Header'}
4950                  $as_echo "$as_val"'`
4951    if test "x$as_val" = x""yes; then
4952   cat >>confdefs.h <<_ACEOF
4953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954 _ACEOF
4955
4956 fi
4957
4958 done
4959
4960
4961
4962   if test "${ac_cv_header_minix_config_h+set}" = set; then
4963   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4964 $as_echo_n "checking for minix/config.h... " >&6; }
4965 if test "${ac_cv_header_minix_config_h+set}" = set; then
4966   $as_echo_n "(cached) " >&6
4967 fi
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4969 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4970 else
4971   # Is the header compilable?
4972 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4973 $as_echo_n "checking minix/config.h usability... " >&6; }
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 $ac_includes_default
4981 #include <minix/config.h>
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (ac_try="$ac_compile"
4985 case "(($ac_try" in
4986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987   *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991   (eval "$ac_compile") 2>conftest.er1
4992   ac_status=$?
4993   grep -v '^ *+' conftest.er1 >conftest.err
4994   rm -f conftest.er1
4995   cat conftest.err >&5
4996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } && {
4998          test -z "$ac_c_werror_flag" ||
4999          test ! -s conftest.err
5000        } && test -s conftest.$ac_objext; then
5001   ac_header_compiler=yes
5002 else
5003   $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006         ac_header_compiler=no
5007 fi
5008
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5011 $as_echo "$ac_header_compiler" >&6; }
5012
5013 # Is the header present?
5014 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5015 $as_echo_n "checking minix/config.h presence... " >&6; }
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 #include <minix/config.h>
5023 _ACEOF
5024 if { (ac_try="$ac_cpp conftest.$ac_ext"
5025 case "(($ac_try" in
5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027   *) ac_try_echo=$ac_try;;
5028 esac
5029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5030 $as_echo "$ac_try_echo") >&5
5031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5032   ac_status=$?
5033   grep -v '^ *+' conftest.er1 >conftest.err
5034   rm -f conftest.er1
5035   cat conftest.err >&5
5036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } >/dev/null && {
5038          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5039          test ! -s conftest.err
5040        }; then
5041   ac_header_preproc=yes
5042 else
5043   $as_echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046   ac_header_preproc=no
5047 fi
5048
5049 rm -f conftest.err conftest.$ac_ext
5050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5051 $as_echo "$ac_header_preproc" >&6; }
5052
5053 # So?  What about this header?
5054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5055   yes:no: )
5056     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5057 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5058     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5059 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5060     ac_header_preproc=yes
5061     ;;
5062   no:yes:* )
5063     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5064 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5065     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5066 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5067     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5068 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5069     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5070 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5071     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5072 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5073     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5074 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5075     ( cat <<\_ASBOX
5076 ## ------------------------------ ##
5077 ## Report this to kzak@redhat.com ##
5078 ## ------------------------------ ##
5079 _ASBOX
5080      ) | sed "s/^/$as_me: WARNING:     /" >&2
5081     ;;
5082 esac
5083 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5084 $as_echo_n "checking for minix/config.h... " >&6; }
5085 if test "${ac_cv_header_minix_config_h+set}" = set; then
5086   $as_echo_n "(cached) " >&6
5087 else
5088   ac_cv_header_minix_config_h=$ac_header_preproc
5089 fi
5090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5091 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5092
5093 fi
5094 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5095   MINIX=yes
5096 else
5097   MINIX=
5098 fi
5099
5100
5101   if test "$MINIX" = yes; then
5102
5103 cat >>confdefs.h <<\_ACEOF
5104 #define _POSIX_SOURCE 1
5105 _ACEOF
5106
5107
5108 cat >>confdefs.h <<\_ACEOF
5109 #define _POSIX_1_SOURCE 2
5110 _ACEOF
5111
5112
5113 cat >>confdefs.h <<\_ACEOF
5114 #define _MINIX 1
5115 _ACEOF
5116
5117   fi
5118
5119
5120
5121   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5122 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5123 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5124   $as_echo_n "(cached) " >&6
5125 else
5126   cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132
5133 #         define __EXTENSIONS__ 1
5134           $ac_includes_default
5135 int
5136 main ()
5137 {
5138
5139   ;
5140   return 0;
5141 }
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (ac_try="$ac_compile"
5145 case "(($ac_try" in
5146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147   *) ac_try_echo=$ac_try;;
5148 esac
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151   (eval "$ac_compile") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } && {
5158          test -z "$ac_c_werror_flag" ||
5159          test ! -s conftest.err
5160        } && test -s conftest.$ac_objext; then
5161   ac_cv_safe_to_define___extensions__=yes
5162 else
5163   $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166         ac_cv_safe_to_define___extensions__=no
5167 fi
5168
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 fi
5171 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5172 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5173   test $ac_cv_safe_to_define___extensions__ = yes &&
5174     cat >>confdefs.h <<\_ACEOF
5175 #define __EXTENSIONS__ 1
5176 _ACEOF
5177
5178   cat >>confdefs.h <<\_ACEOF
5179 #define _ALL_SOURCE 1
5180 _ACEOF
5181
5182   cat >>confdefs.h <<\_ACEOF
5183 #define _GNU_SOURCE 1
5184 _ACEOF
5185
5186   cat >>confdefs.h <<\_ACEOF
5187 #define _POSIX_PTHREAD_SEMANTICS 1
5188 _ACEOF
5189
5190   cat >>confdefs.h <<\_ACEOF
5191 #define _TANDEM_SOURCE 1
5192 _ACEOF
5193
5194
5195 # Make sure we can run config.sub.
5196 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5197   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5198 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5199    { (exit 1); exit 1; }; }
5200
5201 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5202 $as_echo_n "checking build system type... " >&6; }
5203 if test "${ac_cv_build+set}" = set; then
5204   $as_echo_n "(cached) " >&6
5205 else
5206   ac_build_alias=$build_alias
5207 test "x$ac_build_alias" = x &&
5208   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5209 test "x$ac_build_alias" = x &&
5210   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5211 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5212    { (exit 1); exit 1; }; }
5213 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5214   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5215 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5216    { (exit 1); exit 1; }; }
5217
5218 fi
5219 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5220 $as_echo "$ac_cv_build" >&6; }
5221 case $ac_cv_build in
5222 *-*-*) ;;
5223 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5224 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5225    { (exit 1); exit 1; }; };;
5226 esac
5227 build=$ac_cv_build
5228 ac_save_IFS=$IFS; IFS='-'
5229 set x $ac_cv_build
5230 shift
5231 build_cpu=$1
5232 build_vendor=$2
5233 shift; shift
5234 # Remember, the first character of IFS is used to create $*,
5235 # except with old shells:
5236 build_os=$*
5237 IFS=$ac_save_IFS
5238 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5239
5240
5241 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5242 $as_echo_n "checking host system type... " >&6; }
5243 if test "${ac_cv_host+set}" = set; then
5244   $as_echo_n "(cached) " >&6
5245 else
5246   if test "x$host_alias" = x; then
5247   ac_cv_host=$ac_cv_build
5248 else
5249   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5250     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5251 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5252    { (exit 1); exit 1; }; }
5253 fi
5254
5255 fi
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5257 $as_echo "$ac_cv_host" >&6; }
5258 case $ac_cv_host in
5259 *-*-*) ;;
5260 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5261 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5262    { (exit 1); exit 1; }; };;
5263 esac
5264 host=$ac_cv_host
5265 ac_save_IFS=$IFS; IFS='-'
5266 set x $ac_cv_host
5267 shift
5268 host_cpu=$1
5269 host_vendor=$2
5270 shift; shift
5271 # Remember, the first character of IFS is used to create $*,
5272 # except with old shells:
5273 host_os=$*
5274 IFS=$ac_save_IFS
5275 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5276
5277
5278
5279  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5280 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5281 if test "${ac_cv_c_bigendian+set}" = set; then
5282   $as_echo_n "(cached) " >&6
5283 else
5284   ac_cv_c_bigendian=unknown
5285     # See if we're dealing with a universal compiler.
5286     cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292 #ifndef __APPLE_CC__
5293                not a universal capable compiler
5294              #endif
5295              typedef int dummy;
5296
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5300 case "(($ac_try" in
5301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302   *) ac_try_echo=$ac_try;;
5303 esac
5304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5305 $as_echo "$ac_try_echo") >&5
5306   (eval "$ac_compile") 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } && {
5313          test -z "$ac_c_werror_flag" ||
5314          test ! -s conftest.err
5315        } && test -s conftest.$ac_objext; then
5316
5317         # Check for potential -arch flags.  It is not universal unless
5318         # there are some -arch flags.  Note that *ppc* also matches
5319         # ppc64.  This check is also rather less than ideal.
5320         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
5321           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
5322         esac
5323 else
5324   $as_echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327
5328 fi
5329
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331     if test $ac_cv_c_bigendian = unknown; then
5332       # See if sys/param.h defines the BYTE_ORDER macro.
5333       cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339 #include <sys/types.h>
5340              #include <sys/param.h>
5341
5342 int
5343 main ()
5344 {
5345 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5346                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5347                      && LITTLE_ENDIAN)
5348               bogus endian macros
5349              #endif
5350
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5357 case "(($ac_try" in
5358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359   *) ac_try_echo=$ac_try;;
5360 esac
5361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5362 $as_echo "$ac_try_echo") >&5
5363   (eval "$ac_compile") 2>conftest.er1
5364   ac_status=$?
5365   grep -v '^ *+' conftest.er1 >conftest.err
5366   rm -f conftest.er1
5367   cat conftest.err >&5
5368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } && {
5370          test -z "$ac_c_werror_flag" ||
5371          test ! -s conftest.err
5372        } && test -s conftest.$ac_objext; then
5373   # It does; now see whether it defined to BIG_ENDIAN or not.
5374          cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 #include <sys/types.h>
5381                 #include <sys/param.h>
5382
5383 int
5384 main ()
5385 {
5386 #if BYTE_ORDER != BIG_ENDIAN
5387                  not big endian
5388                 #endif
5389
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398   *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402   (eval "$ac_compile") 2>conftest.er1
5403   ac_status=$?
5404   grep -v '^ *+' conftest.er1 >conftest.err
5405   rm -f conftest.er1
5406   cat conftest.err >&5
5407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } && {
5409          test -z "$ac_c_werror_flag" ||
5410          test ! -s conftest.err
5411        } && test -s conftest.$ac_objext; then
5412   ac_cv_c_bigendian=yes
5413 else
5414   $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417         ac_cv_c_bigendian=no
5418 fi
5419
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 else
5422   $as_echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425
5426 fi
5427
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429     fi
5430     if test $ac_cv_c_bigendian = unknown; then
5431       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5432       cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 #include <limits.h>
5439
5440 int
5441 main ()
5442 {
5443 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5444               bogus endian macros
5445              #endif
5446
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5453 case "(($ac_try" in
5454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455   *) ac_try_echo=$ac_try;;
5456 esac
5457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5458 $as_echo "$ac_try_echo") >&5
5459   (eval "$ac_compile") 2>conftest.er1
5460   ac_status=$?
5461   grep -v '^ *+' conftest.er1 >conftest.err
5462   rm -f conftest.er1
5463   cat conftest.err >&5
5464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } && {
5466          test -z "$ac_c_werror_flag" ||
5467          test ! -s conftest.err
5468        } && test -s conftest.$ac_objext; then
5469   # It does; now see whether it defined to _BIG_ENDIAN or not.
5470          cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476 #include <limits.h>
5477
5478 int
5479 main ()
5480 {
5481 #ifndef _BIG_ENDIAN
5482                  not big endian
5483                 #endif
5484
5485   ;
5486   return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493   *) ac_try_echo=$ac_try;;
5494 esac
5495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5496 $as_echo "$ac_try_echo") >&5
5497   (eval "$ac_compile") 2>conftest.er1
5498   ac_status=$?
5499   grep -v '^ *+' conftest.er1 >conftest.err
5500   rm -f conftest.er1
5501   cat conftest.err >&5
5502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); } && {
5504          test -z "$ac_c_werror_flag" ||
5505          test ! -s conftest.err
5506        } && test -s conftest.$ac_objext; then
5507   ac_cv_c_bigendian=yes
5508 else
5509   $as_echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512         ac_cv_c_bigendian=no
5513 fi
5514
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 else
5517   $as_echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520
5521 fi
5522
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524     fi
5525     if test $ac_cv_c_bigendian = unknown; then
5526       # Compile a test program.
5527       if test "$cross_compiling" = yes; then
5528   # Try to guess by grepping values from an object file.
5529          cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h.  */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h.  */
5535 short int ascii_mm[] =
5536                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5537                 short int ascii_ii[] =
5538                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5539                 int use_ascii (int i) {
5540                   return ascii_mm[i] + ascii_ii[i];
5541                 }
5542                 short int ebcdic_ii[] =
5543                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5544                 short int ebcdic_mm[] =
5545                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5546                 int use_ebcdic (int i) {
5547                   return ebcdic_mm[i] + ebcdic_ii[i];
5548                 }
5549                 extern int foo;
5550
5551 int
5552 main ()
5553 {
5554 return use_ascii (foo) == use_ebcdic (foo);
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5566 $as_echo "$ac_try_echo") >&5
5567   (eval "$ac_compile") 2>conftest.er1
5568   ac_status=$?
5569   grep -v '^ *+' conftest.er1 >conftest.err
5570   rm -f conftest.er1
5571   cat conftest.err >&5
5572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } && {
5574          test -z "$ac_c_werror_flag" ||
5575          test ! -s conftest.err
5576        } && test -s conftest.$ac_objext; then
5577   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5578               ac_cv_c_bigendian=yes
5579             fi
5580             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5581               if test "$ac_cv_c_bigendian" = unknown; then
5582                 ac_cv_c_bigendian=no
5583               else
5584                 # finding both strings is unlikely to happen, but who knows?
5585                 ac_cv_c_bigendian=unknown
5586               fi
5587             fi
5588 else
5589   $as_echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 else
5597   cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 $ac_includes_default
5604 int
5605 main ()
5606 {
5607
5608              /* Are we little or big endian?  From Harbison&Steele.  */
5609              union
5610              {
5611                long int l;
5612                char c[sizeof (long int)];
5613              } u;
5614              u.l = 1;
5615              return u.c[sizeof (long int) - 1] == 1;
5616
5617   ;
5618   return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5623 case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5628 $as_echo "$ac_try_echo") >&5
5629   (eval "$ac_link") 2>&5
5630   ac_status=$?
5631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5633   { (case "(($ac_try" in
5634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635   *) ac_try_echo=$ac_try;;
5636 esac
5637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5638 $as_echo "$ac_try_echo") >&5
5639   (eval "$ac_try") 2>&5
5640   ac_status=$?
5641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; }; then
5643   ac_cv_c_bigendian=no
5644 else
5645   $as_echo "$as_me: program exited with status $ac_status" >&5
5646 $as_echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649 ( exit $ac_status )
5650 ac_cv_c_bigendian=yes
5651 fi
5652 rm -rf conftest.dSYM
5653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5654 fi
5655
5656
5657     fi
5658 fi
5659 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5660 $as_echo "$ac_cv_c_bigendian" >&6; }
5661  case $ac_cv_c_bigendian in #(
5662    yes)
5663      cat >>confdefs.h <<\_ACEOF
5664 #define WORDS_BIGENDIAN 1
5665 _ACEOF
5666 ;; #(
5667    no)
5668       ;; #(
5669    universal)
5670
5671 cat >>confdefs.h <<\_ACEOF
5672 #define AC_APPLE_UNIVERSAL_BUILD 1
5673 _ACEOF
5674
5675      ;; #(
5676    *)
5677      { { $as_echo "$as_me:$LINENO: error: unknown endianness
5678  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5679 $as_echo "$as_me: error: unknown endianness
5680  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5681    { (exit 1); exit 1; }; } ;;
5682  esac
5683
5684
5685 case `pwd` in
5686   *\ * | *\     *)
5687     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5688 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5689 esac
5690
5691
5692
5693 macro_version='2.2.6'
5694 macro_revision='1.3012'
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 ltmain="$ac_aux_dir/ltmain.sh"
5709
5710 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5711 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5712 if test "${ac_cv_path_SED+set}" = set; then
5713   $as_echo_n "(cached) " >&6
5714 else
5715             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5716      for ac_i in 1 2 3 4 5 6 7; do
5717        ac_script="$ac_script$as_nl$ac_script"
5718      done
5719      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5720      $as_unset ac_script || ac_script=
5721      if test -z "$SED"; then
5722   ac_path_SED_found=false
5723   # Loop through the user's path and test for each of PROGNAME-LIST
5724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729   for ac_prog in sed gsed; do
5730     for ac_exec_ext in '' $ac_executable_extensions; do
5731       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5732       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5733 # Check for GNU ac_path_SED and select it if it is found.
5734   # Check for GNU $ac_path_SED
5735 case `"$ac_path_SED" --version 2>&1` in
5736 *GNU*)
5737   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5738 *)
5739   ac_count=0
5740   $as_echo_n 0123456789 >"conftest.in"
5741   while :
5742   do
5743     cat "conftest.in" "conftest.in" >"conftest.tmp"
5744     mv "conftest.tmp" "conftest.in"
5745     cp "conftest.in" "conftest.nl"
5746     $as_echo '' >> "conftest.nl"
5747     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5749     ac_count=`expr $ac_count + 1`
5750     if test $ac_count -gt ${ac_path_SED_max-0}; then
5751       # Best one so far, save it but keep looking for a better one
5752       ac_cv_path_SED="$ac_path_SED"
5753       ac_path_SED_max=$ac_count
5754     fi
5755     # 10*(2^10) chars as input seems more than enough
5756     test $ac_count -gt 10 && break
5757   done
5758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5759 esac
5760
5761       $ac_path_SED_found && break 3
5762     done
5763   done
5764 done
5765 IFS=$as_save_IFS
5766   if test -z "$ac_cv_path_SED"; then
5767     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5768 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5769    { (exit 1); exit 1; }; }
5770   fi
5771 else
5772   ac_cv_path_SED=$SED
5773 fi
5774
5775 fi
5776 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5777 $as_echo "$ac_cv_path_SED" >&6; }
5778  SED="$ac_cv_path_SED"
5779   rm -f conftest.sed
5780
5781 test -z "$SED" && SED=sed
5782 Xsed="$SED -e 1s/^X//"
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5795 $as_echo_n "checking for fgrep... " >&6; }
5796 if test "${ac_cv_path_FGREP+set}" = set; then
5797   $as_echo_n "(cached) " >&6
5798 else
5799   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5800    then ac_cv_path_FGREP="$GREP -F"
5801    else
5802      if test -z "$FGREP"; then
5803   ac_path_FGREP_found=false
5804   # Loop through the user's path and test for each of PROGNAME-LIST
5805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_prog in fgrep; do
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5813       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5814 # Check for GNU ac_path_FGREP and select it if it is found.
5815   # Check for GNU $ac_path_FGREP
5816 case `"$ac_path_FGREP" --version 2>&1` in
5817 *GNU*)
5818   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5819 *)
5820   ac_count=0
5821   $as_echo_n 0123456789 >"conftest.in"
5822   while :
5823   do
5824     cat "conftest.in" "conftest.in" >"conftest.tmp"
5825     mv "conftest.tmp" "conftest.in"
5826     cp "conftest.in" "conftest.nl"
5827     $as_echo 'FGREP' >> "conftest.nl"
5828     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5829     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5830     ac_count=`expr $ac_count + 1`
5831     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5832       # Best one so far, save it but keep looking for a better one
5833       ac_cv_path_FGREP="$ac_path_FGREP"
5834       ac_path_FGREP_max=$ac_count
5835     fi
5836     # 10*(2^10) chars as input seems more than enough
5837     test $ac_count -gt 10 && break
5838   done
5839   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5840 esac
5841
5842       $ac_path_FGREP_found && break 3
5843     done
5844   done
5845 done
5846 IFS=$as_save_IFS
5847   if test -z "$ac_cv_path_FGREP"; then
5848     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5849 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5850    { (exit 1); exit 1; }; }
5851   fi
5852 else
5853   ac_cv_path_FGREP=$FGREP
5854 fi
5855
5856    fi
5857 fi
5858 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5859 $as_echo "$ac_cv_path_FGREP" >&6; }
5860  FGREP="$ac_cv_path_FGREP"
5861
5862
5863 test -z "$GREP" && GREP=grep
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883 # Check whether --with-gnu-ld was given.
5884 if test "${with_gnu_ld+set}" = set; then
5885   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5886 else
5887   with_gnu_ld=no
5888 fi
5889
5890 ac_prog=ld
5891 if test "$GCC" = yes; then
5892   # Check if gcc -print-prog-name=ld gives a path.
5893   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5894 $as_echo_n "checking for ld used by $CC... " >&6; }
5895   case $host in
5896   *-*-mingw*)
5897     # gcc leaves a trailing carriage return which upsets mingw
5898     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5899   *)
5900     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5901   esac
5902   case $ac_prog in
5903     # Accept absolute paths.
5904     [\\/]* | ?:[\\/]*)
5905       re_direlt='/[^/][^/]*/\.\./'
5906       # Canonicalize the pathname of ld
5907       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5908       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5909         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5910       done
5911       test -z "$LD" && LD="$ac_prog"
5912       ;;
5913   "")
5914     # If it fails, then pretend we aren't using GCC.
5915     ac_prog=ld
5916     ;;
5917   *)
5918     # If it is relative, then search for the first ld in PATH.
5919     with_gnu_ld=unknown
5920     ;;
5921   esac
5922 elif test "$with_gnu_ld" = yes; then
5923   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5924 $as_echo_n "checking for GNU ld... " >&6; }
5925 else
5926   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5927 $as_echo_n "checking for non-GNU ld... " >&6; }
5928 fi
5929 if test "${lt_cv_path_LD+set}" = set; then
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -z "$LD"; then
5933   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5934   for ac_dir in $PATH; do
5935     IFS="$lt_save_ifs"
5936     test -z "$ac_dir" && ac_dir=.
5937     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5938       lt_cv_path_LD="$ac_dir/$ac_prog"
5939       # Check to see if the program is GNU ld.  I'd rather use --version,
5940       # but apparently some variants of GNU ld only accept -v.
5941       # Break only if it was the GNU/non-GNU ld that we prefer.
5942       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5943       *GNU* | *'with BFD'*)
5944         test "$with_gnu_ld" != no && break
5945         ;;
5946       *)
5947         test "$with_gnu_ld" != yes && break
5948         ;;
5949       esac
5950     fi
5951   done
5952   IFS="$lt_save_ifs"
5953 else
5954   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5955 fi
5956 fi
5957
5958 LD="$lt_cv_path_LD"
5959 if test -n "$LD"; then
5960   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5961 $as_echo "$LD" >&6; }
5962 else
5963   { $as_echo "$as_me:$LINENO: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5967 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5968    { (exit 1); exit 1; }; }
5969 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5971 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5972   $as_echo_n "(cached) " >&6
5973 else
5974   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5975 case `$LD -v 2>&1 </dev/null` in
5976 *GNU* | *'with BFD'*)
5977   lt_cv_prog_gnu_ld=yes
5978   ;;
5979 *)
5980   lt_cv_prog_gnu_ld=no
5981   ;;
5982 esac
5983 fi
5984 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5986 with_gnu_ld=$lt_cv_prog_gnu_ld
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5997 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5998 if test "${lt_cv_path_NM+set}" = set; then
5999   $as_echo_n "(cached) " >&6
6000 else
6001   if test -n "$NM"; then
6002   # Let the user override the test.
6003   lt_cv_path_NM="$NM"
6004 else
6005   lt_nm_to_check="${ac_tool_prefix}nm"
6006   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6007     lt_nm_to_check="$lt_nm_to_check nm"
6008   fi
6009   for lt_tmp_nm in $lt_nm_to_check; do
6010     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6011     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6012       IFS="$lt_save_ifs"
6013       test -z "$ac_dir" && ac_dir=.
6014       tmp_nm="$ac_dir/$lt_tmp_nm"
6015       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6016         # Check to see if the nm accepts a BSD-compat flag.
6017         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6018         #   nm: unknown option "B" ignored
6019         # Tru64's nm complains that /dev/null is an invalid object file
6020         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6021         */dev/null* | *'Invalid file or object type'*)
6022           lt_cv_path_NM="$tmp_nm -B"
6023           break
6024           ;;
6025         *)
6026           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6027           */dev/null*)
6028             lt_cv_path_NM="$tmp_nm -p"
6029             break
6030             ;;
6031           *)
6032             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6033             continue # so that we can try to find one that supports BSD flags
6034             ;;
6035           esac
6036           ;;
6037         esac
6038       fi
6039     done
6040     IFS="$lt_save_ifs"
6041   done
6042   : ${lt_cv_path_NM=no}
6043 fi
6044 fi
6045 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6046 $as_echo "$lt_cv_path_NM" >&6; }
6047 if test "$lt_cv_path_NM" != "no"; then
6048   NM="$lt_cv_path_NM"
6049 else
6050   # Didn't find any BSD compatible name lister, look for dumpbin.
6051   if test -n "$ac_tool_prefix"; then
6052   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6053   do
6054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -n "$DUMPBIN"; then
6062   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 DUMPBIN=$ac_cv_prog_DUMPBIN
6082 if test -n "$DUMPBIN"; then
6083   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6084 $as_echo "$DUMPBIN" >&6; }
6085 else
6086   { $as_echo "$as_me:$LINENO: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090
6091     test -n "$DUMPBIN" && break
6092   done
6093 fi
6094 if test -z "$DUMPBIN"; then
6095   ac_ct_DUMPBIN=$DUMPBIN
6096   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6097 do
6098   # Extract the first word of "$ac_prog", so it can be a program name with args.
6099 set dummy $ac_prog; ac_word=$2
6100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -n "$ac_ct_DUMPBIN"; then
6106   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113   for ac_exec_ext in '' $ac_executable_extensions; do
6114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6116     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6126 if test -n "$ac_ct_DUMPBIN"; then
6127   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6128 $as_echo "$ac_ct_DUMPBIN" >&6; }
6129 else
6130   { $as_echo "$as_me:$LINENO: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135   test -n "$ac_ct_DUMPBIN" && break
6136 done
6137
6138   if test "x$ac_ct_DUMPBIN" = x; then
6139     DUMPBIN=":"
6140   else
6141     case $cross_compiling:$ac_tool_warned in
6142 yes:)
6143 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147     DUMPBIN=$ac_ct_DUMPBIN
6148   fi
6149 fi
6150
6151
6152   if test "$DUMPBIN" != ":"; then
6153     NM="$DUMPBIN"
6154   fi
6155 fi
6156 test -z "$NM" && NM=nm
6157
6158
6159
6160
6161
6162
6163 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6164 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6165 if test "${lt_cv_nm_interface+set}" = set; then
6166   $as_echo_n "(cached) " >&6
6167 else
6168   lt_cv_nm_interface="BSD nm"
6169   echo "int some_variable = 0;" > conftest.$ac_ext
6170   (eval echo "\"\$as_me:6170: $ac_compile\"" >&5)
6171   (eval "$ac_compile" 2>conftest.err)
6172   cat conftest.err >&5
6173   (eval echo "\"\$as_me:6173: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6174   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6175   cat conftest.err >&5
6176   (eval echo "\"\$as_me:6176: output\"" >&5)
6177   cat conftest.out >&5
6178   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6179     lt_cv_nm_interface="MS dumpbin"
6180   fi
6181   rm -f conftest*
6182 fi
6183 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6184 $as_echo "$lt_cv_nm_interface" >&6; }
6185
6186 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6187 $as_echo_n "checking whether ln -s works... " >&6; }
6188 LN_S=$as_ln_s
6189 if test "$LN_S" = "ln -s"; then
6190   { $as_echo "$as_me:$LINENO: result: yes" >&5
6191 $as_echo "yes" >&6; }
6192 else
6193   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6194 $as_echo "no, using $LN_S" >&6; }
6195 fi
6196
6197 # find the maximum length of command line arguments
6198 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6199 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6200 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6201   $as_echo_n "(cached) " >&6
6202 else
6203     i=0
6204   teststring="ABCD"
6205
6206   case $build_os in
6207   msdosdjgpp*)
6208     # On DJGPP, this test can blow up pretty badly due to problems in libc
6209     # (any single argument exceeding 2000 bytes causes a buffer overrun
6210     # during glob expansion).  Even if it were fixed, the result of this
6211     # check would be larger than it should be.
6212     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6213     ;;
6214
6215   gnu*)
6216     # Under GNU Hurd, this test is not required because there is
6217     # no limit to the length of command line arguments.
6218     # Libtool will interpret -1 as no limit whatsoever
6219     lt_cv_sys_max_cmd_len=-1;
6220     ;;
6221
6222   cygwin* | mingw* | cegcc*)
6223     # On Win9x/ME, this test blows up -- it succeeds, but takes
6224     # about 5 minutes as the teststring grows exponentially.
6225     # Worse, since 9x/ME are not pre-emptively multitasking,
6226     # you end up with a "frozen" computer, even though with patience
6227     # the test eventually succeeds (with a max line length of 256k).
6228     # Instead, let's just punt: use the minimum linelength reported by
6229     # all of the supported platforms: 8192 (on NT/2K/XP).
6230     lt_cv_sys_max_cmd_len=8192;
6231     ;;
6232
6233   amigaos*)
6234     # On AmigaOS with pdksh, this test takes hours, literally.
6235     # So we just punt and use a minimum line length of 8192.
6236     lt_cv_sys_max_cmd_len=8192;
6237     ;;
6238
6239   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6240     # This has been around since 386BSD, at least.  Likely further.
6241     if test -x /sbin/sysctl; then
6242       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6243     elif test -x /usr/sbin/sysctl; then
6244       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6245     else
6246       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6247     fi
6248     # And add a safety zone
6249     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251     ;;
6252
6253   interix*)
6254     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6255     lt_cv_sys_max_cmd_len=196608
6256     ;;
6257
6258   osf*)
6259     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6260     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6261     # nice to cause kernel panics so lets avoid the loop below.
6262     # First set a reasonable default.
6263     lt_cv_sys_max_cmd_len=16384
6264     #
6265     if test -x /sbin/sysconfig; then
6266       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6267         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6268       esac
6269     fi
6270     ;;
6271   sco3.2v5*)
6272     lt_cv_sys_max_cmd_len=102400
6273     ;;
6274   sysv5* | sco5v6* | sysv4.2uw2*)
6275     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6276     if test -n "$kargmax"; then
6277       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6278     else
6279       lt_cv_sys_max_cmd_len=32768
6280     fi
6281     ;;
6282   *)
6283     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6284     if test -n "$lt_cv_sys_max_cmd_len"; then
6285       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6286       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6287     else
6288       # Make teststring a little bigger before we do anything with it.
6289       # a 1K string should be a reasonable start.
6290       for i in 1 2 3 4 5 6 7 8 ; do
6291         teststring=$teststring$teststring
6292       done
6293       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6294       # If test is not a shell built-in, we'll probably end up computing a
6295       # maximum length that is only half of the actual maximum length, but
6296       # we can't tell.
6297       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6298                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6299               test $i != 17 # 1/2 MB should be enough
6300       do
6301         i=`expr $i + 1`
6302         teststring=$teststring$teststring
6303       done
6304       # Only check the string length outside the loop.
6305       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6306       teststring=
6307       # Add a significant safety factor because C++ compilers can tack on
6308       # massive amounts of additional arguments before passing them to the
6309       # linker.  It appears as though 1/2 is a usable value.
6310       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6311     fi
6312     ;;
6313   esac
6314
6315 fi
6316
6317 if test -n $lt_cv_sys_max_cmd_len ; then
6318   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6319 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6320 else
6321   { $as_echo "$as_me:$LINENO: result: none" >&5
6322 $as_echo "none" >&6; }
6323 fi
6324 max_cmd_len=$lt_cv_sys_max_cmd_len
6325
6326
6327
6328
6329
6330
6331 : ${CP="cp -f"}
6332 : ${MV="mv -f"}
6333 : ${RM="rm -f"}
6334
6335 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6336 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6337 # Try some XSI features
6338 xsi_shell=no
6339 ( _lt_dummy="a/b/c"
6340   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6341       = c,a/b,, \
6342     && eval 'test $(( 1 + 1 )) -eq 2 \
6343     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6344   && xsi_shell=yes
6345 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6346 $as_echo "$xsi_shell" >&6; }
6347
6348
6349 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6350 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6351 lt_shell_append=no
6352 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6353     >/dev/null 2>&1 \
6354   && lt_shell_append=yes
6355 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6356 $as_echo "$lt_shell_append" >&6; }
6357
6358
6359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6360   lt_unset=unset
6361 else
6362   lt_unset=false
6363 fi
6364
6365
6366
6367
6368
6369 # test EBCDIC or ASCII
6370 case `echo X|tr X '\101'` in
6371  A) # ASCII based system
6372     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6373   lt_SP2NL='tr \040 \012'
6374   lt_NL2SP='tr \015\012 \040\040'
6375   ;;
6376  *) # EBCDIC based system
6377   lt_SP2NL='tr \100 \n'
6378   lt_NL2SP='tr \r\n \100\100'
6379   ;;
6380 esac
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6391 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6392 if test "${lt_cv_ld_reload_flag+set}" = set; then
6393   $as_echo_n "(cached) " >&6
6394 else
6395   lt_cv_ld_reload_flag='-r'
6396 fi
6397 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6398 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6399 reload_flag=$lt_cv_ld_reload_flag
6400 case $reload_flag in
6401 "" | " "*) ;;
6402 *) reload_flag=" $reload_flag" ;;
6403 esac
6404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6405 case $host_os in
6406   darwin*)
6407     if test "$GCC" = yes; then
6408       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6409     else
6410       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6411     fi
6412     ;;
6413 esac
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 if test -n "$ac_tool_prefix"; then
6424   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6425 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6429   $as_echo_n "(cached) " >&6
6430 else
6431   if test -n "$OBJDUMP"; then
6432   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6442     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 OBJDUMP=$ac_cv_prog_OBJDUMP
6452 if test -n "$OBJDUMP"; then
6453   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6454 $as_echo "$OBJDUMP" >&6; }
6455 else
6456   { $as_echo "$as_me:$LINENO: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460
6461 fi
6462 if test -z "$ac_cv_prog_OBJDUMP"; then
6463   ac_ct_OBJDUMP=$OBJDUMP
6464   # Extract the first word of "objdump", so it can be a program name with args.
6465 set dummy objdump; ac_word=$2
6466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6469   $as_echo_n "(cached) " >&6
6470 else
6471   if test -n "$ac_ct_OBJDUMP"; then
6472   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477   IFS=$as_save_IFS
6478   test -z "$as_dir" && as_dir=.
6479   for ac_exec_ext in '' $ac_executable_extensions; do
6480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6482     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483     break 2
6484   fi
6485 done
6486 done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6492 if test -n "$ac_ct_OBJDUMP"; then
6493   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6494 $as_echo "$ac_ct_OBJDUMP" >&6; }
6495 else
6496   { $as_echo "$as_me:$LINENO: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500   if test "x$ac_ct_OBJDUMP" = x; then
6501     OBJDUMP="false"
6502   else
6503     case $cross_compiling:$ac_tool_warned in
6504 yes:)
6505 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned=yes ;;
6508 esac
6509     OBJDUMP=$ac_ct_OBJDUMP
6510   fi
6511 else
6512   OBJDUMP="$ac_cv_prog_OBJDUMP"
6513 fi
6514
6515 test -z "$OBJDUMP" && OBJDUMP=objdump
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6526 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6527 if test "${lt_cv_deplibs_check_method+set}" = set; then
6528   $as_echo_n "(cached) " >&6
6529 else
6530   lt_cv_file_magic_cmd='$MAGIC_CMD'
6531 lt_cv_file_magic_test_file=
6532 lt_cv_deplibs_check_method='unknown'
6533 # Need to set the preceding variable on all platforms that support
6534 # interlibrary dependencies.
6535 # 'none' -- dependencies not supported.
6536 # `unknown' -- same as none, but documents that we really don't know.
6537 # 'pass_all' -- all dependencies passed with no checks.
6538 # 'test_compile' -- check by making test program.
6539 # 'file_magic [[regex]]' -- check by looking for files in library path
6540 # which responds to the $file_magic_cmd with a given extended regex.
6541 # If you have `file' or equivalent on your system and you're not sure
6542 # whether `pass_all' will *always* work, you probably want this one.
6543
6544 case $host_os in
6545 aix[4-9]*)
6546   lt_cv_deplibs_check_method=pass_all
6547   ;;
6548
6549 beos*)
6550   lt_cv_deplibs_check_method=pass_all
6551   ;;
6552
6553 bsdi[45]*)
6554   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6555   lt_cv_file_magic_cmd='/usr/bin/file -L'
6556   lt_cv_file_magic_test_file=/shlib/libc.so
6557   ;;
6558
6559 cygwin*)
6560   # func_win32_libid is a shell function defined in ltmain.sh
6561   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6562   lt_cv_file_magic_cmd='func_win32_libid'
6563   ;;
6564
6565 mingw* | pw32*)
6566   # Base MSYS/MinGW do not provide the 'file' command needed by
6567   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6568   # unless we find 'file', for example because we are cross-compiling.
6569   if ( file / ) >/dev/null 2>&1; then
6570     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6571     lt_cv_file_magic_cmd='func_win32_libid'
6572   else
6573     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6574     lt_cv_file_magic_cmd='$OBJDUMP -f'
6575   fi
6576   ;;
6577
6578 cegcc)
6579   # use the weaker test based on 'objdump'. See mingw*.
6580   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6581   lt_cv_file_magic_cmd='$OBJDUMP -f'
6582   ;;
6583
6584 darwin* | rhapsody*)
6585   lt_cv_deplibs_check_method=pass_all
6586   ;;
6587
6588 freebsd* | dragonfly*)
6589   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6590     case $host_cpu in
6591     i*86 )
6592       # Not sure whether the presence of OpenBSD here was a mistake.
6593       # Let's accept both of them until this is cleared up.
6594       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6595       lt_cv_file_magic_cmd=/usr/bin/file
6596       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6597       ;;
6598     esac
6599   else
6600     lt_cv_deplibs_check_method=pass_all
6601   fi
6602   ;;
6603
6604 gnu*)
6605   lt_cv_deplibs_check_method=pass_all
6606   ;;
6607
6608 hpux10.20* | hpux11*)
6609   lt_cv_file_magic_cmd=/usr/bin/file
6610   case $host_cpu in
6611   ia64*)
6612     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6613     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6614     ;;
6615   hppa*64*)
6616     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6617     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6618     ;;
6619   *)
6620     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6621     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6622     ;;
6623   esac
6624   ;;
6625
6626 interix[3-9]*)
6627   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6628   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6629   ;;
6630
6631 irix5* | irix6* | nonstopux*)
6632   case $LD in
6633   *-32|*"-32 ") libmagic=32-bit;;
6634   *-n32|*"-n32 ") libmagic=N32;;
6635   *-64|*"-64 ") libmagic=64-bit;;
6636   *) libmagic=never-match;;
6637   esac
6638   lt_cv_deplibs_check_method=pass_all
6639   ;;
6640
6641 # This must be Linux ELF.
6642 linux* | k*bsd*-gnu)
6643   lt_cv_deplibs_check_method=pass_all
6644   ;;
6645
6646 netbsd*)
6647   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6648     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6649   else
6650     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6651   fi
6652   ;;
6653
6654 newos6*)
6655   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6656   lt_cv_file_magic_cmd=/usr/bin/file
6657   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6658   ;;
6659
6660 *nto* | *qnx*)
6661   lt_cv_deplibs_check_method=pass_all
6662   ;;
6663
6664 openbsd*)
6665   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6666     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6667   else
6668     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6669   fi
6670   ;;
6671
6672 osf3* | osf4* | osf5*)
6673   lt_cv_deplibs_check_method=pass_all
6674   ;;
6675
6676 rdos*)
6677   lt_cv_deplibs_check_method=pass_all
6678   ;;
6679
6680 solaris*)
6681   lt_cv_deplibs_check_method=pass_all
6682   ;;
6683
6684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6685   lt_cv_deplibs_check_method=pass_all
6686   ;;
6687
6688 sysv4 | sysv4.3*)
6689   case $host_vendor in
6690   motorola)
6691     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]'
6692     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6693     ;;
6694   ncr)
6695     lt_cv_deplibs_check_method=pass_all
6696     ;;
6697   sequent)
6698     lt_cv_file_magic_cmd='/bin/file'
6699     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6700     ;;
6701   sni)
6702     lt_cv_file_magic_cmd='/bin/file'
6703     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6704     lt_cv_file_magic_test_file=/lib/libc.so
6705     ;;
6706   siemens)
6707     lt_cv_deplibs_check_method=pass_all
6708     ;;
6709   pc)
6710     lt_cv_deplibs_check_method=pass_all
6711     ;;
6712   esac
6713   ;;
6714
6715 tpf*)
6716   lt_cv_deplibs_check_method=pass_all
6717   ;;
6718 esac
6719
6720 fi
6721 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6722 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6723 file_magic_cmd=$lt_cv_file_magic_cmd
6724 deplibs_check_method=$lt_cv_deplibs_check_method
6725 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738 if test -n "$ac_tool_prefix"; then
6739   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}ar; ac_word=$2
6741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_AR+set}" = set; then
6744   $as_echo_n "(cached) " >&6
6745 else
6746   if test -n "$AR"; then
6747   ac_cv_prog_AR="$AR" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_prog_AR="${ac_tool_prefix}ar"
6757     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 AR=$ac_cv_prog_AR
6767 if test -n "$AR"; then
6768   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6769 $as_echo "$AR" >&6; }
6770 else
6771   { $as_echo "$as_me:$LINENO: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775
6776 fi
6777 if test -z "$ac_cv_prog_AR"; then
6778   ac_ct_AR=$AR
6779   # Extract the first word of "ar", so it can be a program name with args.
6780 set dummy ar; ac_word=$2
6781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$ac_ct_AR"; then
6787   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_prog_ac_ct_AR="ar"
6797     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6807 if test -n "$ac_ct_AR"; then
6808   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6809 $as_echo "$ac_ct_AR" >&6; }
6810 else
6811   { $as_echo "$as_me:$LINENO: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815   if test "x$ac_ct_AR" = x; then
6816     AR="false"
6817   else
6818     case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824     AR=$ac_ct_AR
6825   fi
6826 else
6827   AR="$ac_cv_prog_AR"
6828 fi
6829
6830 test -z "$AR" && AR=ar
6831 test -z "$AR_FLAGS" && AR_FLAGS=cru
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 if test -n "$ac_tool_prefix"; then
6844   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}strip; ac_word=$2
6846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_STRIP+set}" = set; then
6849   $as_echo_n "(cached) " >&6
6850 else
6851   if test -n "$STRIP"; then
6852   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6862     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 STRIP=$ac_cv_prog_STRIP
6872 if test -n "$STRIP"; then
6873   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6874 $as_echo "$STRIP" >&6; }
6875 else
6876   { $as_echo "$as_me:$LINENO: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880
6881 fi
6882 if test -z "$ac_cv_prog_STRIP"; then
6883   ac_ct_STRIP=$STRIP
6884   # Extract the first word of "strip", so it can be a program name with args.
6885 set dummy strip; ac_word=$2
6886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6889   $as_echo_n "(cached) " >&6
6890 else
6891   if test -n "$ac_ct_STRIP"; then
6892   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899   for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_prog_ac_ct_STRIP="strip"
6902     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6912 if test -n "$ac_ct_STRIP"; then
6913   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6914 $as_echo "$ac_ct_STRIP" >&6; }
6915 else
6916   { $as_echo "$as_me:$LINENO: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920   if test "x$ac_ct_STRIP" = x; then
6921     STRIP=":"
6922   else
6923     case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929     STRIP=$ac_ct_STRIP
6930   fi
6931 else
6932   STRIP="$ac_cv_prog_STRIP"
6933 fi
6934
6935 test -z "$STRIP" && STRIP=:
6936
6937
6938
6939
6940
6941
6942 if test -n "$ac_tool_prefix"; then
6943   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_RANLIB+set}" = set; then
6948   $as_echo_n "(cached) " >&6
6949 else
6950   if test -n "$RANLIB"; then
6951   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   for ac_exec_ext in '' $ac_executable_extensions; do
6959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 RANLIB=$ac_cv_prog_RANLIB
6971 if test -n "$RANLIB"; then
6972   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6973 $as_echo "$RANLIB" >&6; }
6974 else
6975   { $as_echo "$as_me:$LINENO: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979
6980 fi
6981 if test -z "$ac_cv_prog_RANLIB"; then
6982   ac_ct_RANLIB=$RANLIB
6983   # Extract the first word of "ranlib", so it can be a program name with args.
6984 set dummy ranlib; ac_word=$2
6985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6988   $as_echo_n "(cached) " >&6
6989 else
6990   if test -n "$ac_ct_RANLIB"; then
6991   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_prog_ac_ct_RANLIB="ranlib"
7001     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7013 $as_echo "$ac_ct_RANLIB" >&6; }
7014 else
7015   { $as_echo "$as_me:$LINENO: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019   if test "x$ac_ct_RANLIB" = x; then
7020     RANLIB=":"
7021   else
7022     case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7027 esac
7028     RANLIB=$ac_ct_RANLIB
7029   fi
7030 else
7031   RANLIB="$ac_cv_prog_RANLIB"
7032 fi
7033
7034 test -z "$RANLIB" && RANLIB=:
7035
7036
7037
7038
7039
7040
7041 # Determine commands to create old-style static archives.
7042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7043 old_postinstall_cmds='chmod 644 $oldlib'
7044 old_postuninstall_cmds=
7045
7046 if test -n "$RANLIB"; then
7047   case $host_os in
7048   openbsd*)
7049     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7050     ;;
7051   *)
7052     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7053     ;;
7054   esac
7055   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7056 fi
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091 # If no C compiler was specified, use CC.
7092 LTCC=${LTCC-"$CC"}
7093
7094 # If no C compiler flags were specified, use CFLAGS.
7095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7096
7097 # Allow CC to be a program name with arguments.
7098 compiler=$CC
7099
7100
7101 # Check for command to grab the raw symbol name followed by C symbol from nm.
7102 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7103 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7104 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7105   $as_echo_n "(cached) " >&6
7106 else
7107
7108 # These are sane defaults that work on at least a few old systems.
7109 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7110
7111 # Character class describing NM global symbol codes.
7112 symcode='[BCDEGRST]'
7113
7114 # Regexp to match symbols that can be accessed directly from C.
7115 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7116
7117 # Define system-specific variables.
7118 case $host_os in
7119 aix*)
7120   symcode='[BCDT]'
7121   ;;
7122 cygwin* | mingw* | pw32* | cegcc*)
7123   symcode='[ABCDGISTW]'
7124   ;;
7125 hpux*)
7126   if test "$host_cpu" = ia64; then
7127     symcode='[ABCDEGRST]'
7128   fi
7129   ;;
7130 irix* | nonstopux*)
7131   symcode='[BCDEGRST]'
7132   ;;
7133 osf*)
7134   symcode='[BCDEGQRST]'
7135   ;;
7136 solaris*)
7137   symcode='[BDRT]'
7138   ;;
7139 sco3.2v5*)
7140   symcode='[DT]'
7141   ;;
7142 sysv4.2uw2*)
7143   symcode='[DT]'
7144   ;;
7145 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7146   symcode='[ABDT]'
7147   ;;
7148 sysv4)
7149   symcode='[DFNSTU]'
7150   ;;
7151 esac
7152
7153 # If we're using GNU nm, then use its standard symbol codes.
7154 case `$NM -V 2>&1` in
7155 *GNU* | *'with BFD'*)
7156   symcode='[ABCDGIRSTW]' ;;
7157 esac
7158
7159 # Transform an extracted symbol line into a proper C declaration.
7160 # Some systems (esp. on ia64) link data and code symbols differently,
7161 # so use this general approach.
7162 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7163
7164 # Transform an extracted symbol line into symbol name and symbol address
7165 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7166 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'"
7167
7168 # Handle CRLF in mingw tool chain
7169 opt_cr=
7170 case $build_os in
7171 mingw*)
7172   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7173   ;;
7174 esac
7175
7176 # Try without a prefix underscore, then with it.
7177 for ac_symprfx in "" "_"; do
7178
7179   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7180   symxfrm="\\1 $ac_symprfx\\2 \\2"
7181
7182   # Write the raw and C identifiers.
7183   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7184     # Fake it for dumpbin and say T for any non-static function
7185     # and D for any global variable.
7186     # Also find C++ and __fastcall symbols from MSVC++,
7187     # which start with @ or ?.
7188     lt_cv_sys_global_symbol_pipe="$AWK '"\
7189 "     {last_section=section; section=\$ 3};"\
7190 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7191 "     \$ 0!~/External *\|/{next};"\
7192 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7193 "     {if(hide[section]) next};"\
7194 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7195 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7196 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7197 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7198 "     ' prfx=^$ac_symprfx"
7199   else
7200     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7201   fi
7202
7203   # Check to see that the pipe works correctly.
7204   pipe_works=no
7205
7206   rm -f conftest*
7207   cat > conftest.$ac_ext <<_LT_EOF
7208 #ifdef __cplusplus
7209 extern "C" {
7210 #endif
7211 char nm_test_var;
7212 void nm_test_func(void);
7213 void nm_test_func(void){}
7214 #ifdef __cplusplus
7215 }
7216 #endif
7217 int main(){nm_test_var='a';nm_test_func();return(0);}
7218 _LT_EOF
7219
7220   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221   (eval $ac_compile) 2>&5
7222   ac_status=$?
7223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); }; then
7225     # Now try to grab the symbols.
7226     nlist=conftest.nm
7227     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7228   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7229   ac_status=$?
7230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); } && test -s "$nlist"; then
7232       # Try sorting and uniquifying the output.
7233       if sort "$nlist" | uniq > "$nlist"T; then
7234         mv -f "$nlist"T "$nlist"
7235       else
7236         rm -f "$nlist"T
7237       fi
7238
7239       # Make sure that we snagged all the symbols we need.
7240       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7241         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7242           cat <<_LT_EOF > conftest.$ac_ext
7243 #ifdef __cplusplus
7244 extern "C" {
7245 #endif
7246
7247 _LT_EOF
7248           # Now generate the symbol file.
7249           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7250
7251           cat <<_LT_EOF >> conftest.$ac_ext
7252
7253 /* The mapping between symbol names and symbols.  */
7254 const struct {
7255   const char *name;
7256   void       *address;
7257 }
7258 lt__PROGRAM__LTX_preloaded_symbols[] =
7259 {
7260   { "@PROGRAM@", (void *) 0 },
7261 _LT_EOF
7262           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7263           cat <<\_LT_EOF >> conftest.$ac_ext
7264   {0, (void *) 0}
7265 };
7266
7267 /* This works around a problem in FreeBSD linker */
7268 #ifdef FREEBSD_WORKAROUND
7269 static const void *lt_preloaded_setup() {
7270   return lt__PROGRAM__LTX_preloaded_symbols;
7271 }
7272 #endif
7273
7274 #ifdef __cplusplus
7275 }
7276 #endif
7277 _LT_EOF
7278           # Now try linking the two files.
7279           mv conftest.$ac_objext conftstm.$ac_objext
7280           lt_save_LIBS="$LIBS"
7281           lt_save_CFLAGS="$CFLAGS"
7282           LIBS="conftstm.$ac_objext"
7283           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7284           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285   (eval $ac_link) 2>&5
7286   ac_status=$?
7287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7289             pipe_works=yes
7290           fi
7291           LIBS="$lt_save_LIBS"
7292           CFLAGS="$lt_save_CFLAGS"
7293         else
7294           echo "cannot find nm_test_func in $nlist" >&5
7295         fi
7296       else
7297         echo "cannot find nm_test_var in $nlist" >&5
7298       fi
7299     else
7300       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7301     fi
7302   else
7303     echo "$progname: failed program was:" >&5
7304     cat conftest.$ac_ext >&5
7305   fi
7306   rm -rf conftest* conftst*
7307
7308   # Do not use the global_symbol_pipe unless it works.
7309   if test "$pipe_works" = yes; then
7310     break
7311   else
7312     lt_cv_sys_global_symbol_pipe=
7313   fi
7314 done
7315
7316 fi
7317
7318 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7319   lt_cv_sys_global_symbol_to_cdecl=
7320 fi
7321 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7322   { $as_echo "$as_me:$LINENO: result: failed" >&5
7323 $as_echo "failed" >&6; }
7324 else
7325   { $as_echo "$as_me:$LINENO: result: ok" >&5
7326 $as_echo "ok" >&6; }
7327 fi
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 # Check whether --enable-libtool-lock was given.
7351 if test "${enable_libtool_lock+set}" = set; then
7352   enableval=$enable_libtool_lock;
7353 fi
7354
7355 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7356
7357 # Some flags need to be propagated to the compiler or linker for good
7358 # libtool support.
7359 case $host in
7360 ia64-*-hpux*)
7361   # Find out which ABI we are using.
7362   echo 'int i;' > conftest.$ac_ext
7363   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364   (eval $ac_compile) 2>&5
7365   ac_status=$?
7366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); }; then
7368     case `/usr/bin/file conftest.$ac_objext` in
7369       *ELF-32*)
7370         HPUX_IA64_MODE="32"
7371         ;;
7372       *ELF-64*)
7373         HPUX_IA64_MODE="64"
7374         ;;
7375     esac
7376   fi
7377   rm -rf conftest*
7378   ;;
7379 *-*-irix6*)
7380   # Find out which ABI we are using.
7381   echo '#line 7381 "configure"' > conftest.$ac_ext
7382   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383   (eval $ac_compile) 2>&5
7384   ac_status=$?
7385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); }; then
7387     if test "$lt_cv_prog_gnu_ld" = yes; then
7388       case `/usr/bin/file conftest.$ac_objext` in
7389         *32-bit*)
7390           LD="${LD-ld} -melf32bsmip"
7391           ;;
7392         *N32*)
7393           LD="${LD-ld} -melf32bmipn32"
7394           ;;
7395         *64-bit*)
7396           LD="${LD-ld} -melf64bmip"
7397         ;;
7398       esac
7399     else
7400       case `/usr/bin/file conftest.$ac_objext` in
7401         *32-bit*)
7402           LD="${LD-ld} -32"
7403           ;;
7404         *N32*)
7405           LD="${LD-ld} -n32"
7406           ;;
7407         *64-bit*)
7408           LD="${LD-ld} -64"
7409           ;;
7410       esac
7411     fi
7412   fi
7413   rm -rf conftest*
7414   ;;
7415
7416 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7417 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7418   # Find out which ABI we are using.
7419   echo 'int i;' > conftest.$ac_ext
7420   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421   (eval $ac_compile) 2>&5
7422   ac_status=$?
7423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); }; then
7425     case `/usr/bin/file conftest.o` in
7426       *32-bit*)
7427         case $host in
7428           x86_64-*kfreebsd*-gnu)
7429             LD="${LD-ld} -m elf_i386_fbsd"
7430             ;;
7431           x86_64-*linux*)
7432             LD="${LD-ld} -m elf_i386"
7433             ;;
7434           ppc64-*linux*|powerpc64-*linux*)
7435             LD="${LD-ld} -m elf32ppclinux"
7436             ;;
7437           s390x-*linux*)
7438             LD="${LD-ld} -m elf_s390"
7439             ;;
7440           sparc64-*linux*)
7441             LD="${LD-ld} -m elf32_sparc"
7442             ;;
7443         esac
7444         ;;
7445       *64-bit*)
7446         case $host in
7447           x86_64-*kfreebsd*-gnu)
7448             LD="${LD-ld} -m elf_x86_64_fbsd"
7449             ;;
7450           x86_64-*linux*)
7451             LD="${LD-ld} -m elf_x86_64"
7452             ;;
7453           ppc*-*linux*|powerpc*-*linux*)
7454             LD="${LD-ld} -m elf64ppc"
7455             ;;
7456           s390*-*linux*|s390*-*tpf*)
7457             LD="${LD-ld} -m elf64_s390"
7458             ;;
7459           sparc*-*linux*)
7460             LD="${LD-ld} -m elf64_sparc"
7461             ;;
7462         esac
7463         ;;
7464     esac
7465   fi
7466   rm -rf conftest*
7467   ;;
7468
7469 *-*-sco3.2v5*)
7470   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7471   SAVE_CFLAGS="$CFLAGS"
7472   CFLAGS="$CFLAGS -belf"
7473   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7474 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7475 if test "${lt_cv_cc_needs_belf+set}" = set; then
7476   $as_echo_n "(cached) " >&6
7477 else
7478   ac_ext=c
7479 ac_cpp='$CPP $CPPFLAGS'
7480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483
7484      cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h.  */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h.  */
7490
7491 int
7492 main ()
7493 {
7494
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7501 case "(($ac_try" in
7502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503   *) ac_try_echo=$ac_try;;
7504 esac
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507   (eval "$ac_link") 2>conftest.er1
7508   ac_status=$?
7509   grep -v '^ *+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } && {
7514          test -z "$ac_c_werror_flag" ||
7515          test ! -s conftest.err
7516        } && test -s conftest$ac_exeext && {
7517          test "$cross_compiling" = yes ||
7518          $as_test_x conftest$ac_exeext
7519        }; then
7520   lt_cv_cc_needs_belf=yes
7521 else
7522   $as_echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525         lt_cv_cc_needs_belf=no
7526 fi
7527
7528 rm -rf conftest.dSYM
7529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7530       conftest$ac_exeext conftest.$ac_ext
7531      ac_ext=c
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536
7537 fi
7538 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7539 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7540   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7541     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7542     CFLAGS="$SAVE_CFLAGS"
7543   fi
7544   ;;
7545 sparc*-*solaris*)
7546   # Find out which ABI we are using.
7547   echo 'int i;' > conftest.$ac_ext
7548   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7549   (eval $ac_compile) 2>&5
7550   ac_status=$?
7551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }; then
7553     case `/usr/bin/file conftest.o` in
7554     *64-bit*)
7555       case $lt_cv_prog_gnu_ld in
7556       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7557       *)
7558         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7559           LD="${LD-ld} -64"
7560         fi
7561         ;;
7562       esac
7563       ;;
7564     esac
7565   fi
7566   rm -rf conftest*
7567   ;;
7568 esac
7569
7570 need_locks="$enable_libtool_lock"
7571
7572
7573   case $host_os in
7574     rhapsody* | darwin*)
7575     if test -n "$ac_tool_prefix"; then
7576   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7581   $as_echo_n "(cached) " >&6
7582 else
7583   if test -n "$DSYMUTIL"; then
7584   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591   for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7594     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7604 if test -n "$DSYMUTIL"; then
7605   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7606 $as_echo "$DSYMUTIL" >&6; }
7607 else
7608   { $as_echo "$as_me:$LINENO: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613 fi
7614 if test -z "$ac_cv_prog_DSYMUTIL"; then
7615   ac_ct_DSYMUTIL=$DSYMUTIL
7616   # Extract the first word of "dsymutil", so it can be a program name with args.
7617 set dummy dsymutil; ac_word=$2
7618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7621   $as_echo_n "(cached) " >&6
7622 else
7623   if test -n "$ac_ct_DSYMUTIL"; then
7624   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7644 if test -n "$ac_ct_DSYMUTIL"; then
7645   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7646 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7647 else
7648   { $as_echo "$as_me:$LINENO: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652   if test "x$ac_ct_DSYMUTIL" = x; then
7653     DSYMUTIL=":"
7654   else
7655     case $cross_compiling:$ac_tool_warned in
7656 yes:)
7657 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7660 esac
7661     DSYMUTIL=$ac_ct_DSYMUTIL
7662   fi
7663 else
7664   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7665 fi
7666
7667     if test -n "$ac_tool_prefix"; then
7668   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$NMEDIT"; then
7676   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683   for ac_exec_ext in '' $ac_executable_extensions; do
7684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 NMEDIT=$ac_cv_prog_NMEDIT
7696 if test -n "$NMEDIT"; then
7697   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7698 $as_echo "$NMEDIT" >&6; }
7699 else
7700   { $as_echo "$as_me:$LINENO: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704
7705 fi
7706 if test -z "$ac_cv_prog_NMEDIT"; then
7707   ac_ct_NMEDIT=$NMEDIT
7708   # Extract the first word of "nmedit", so it can be a program name with args.
7709 set dummy nmedit; ac_word=$2
7710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7713   $as_echo_n "(cached) " >&6
7714 else
7715   if test -n "$ac_ct_NMEDIT"; then
7716   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723   for ac_exec_ext in '' $ac_executable_extensions; do
7724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7726     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730 done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7736 if test -n "$ac_ct_NMEDIT"; then
7737   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7738 $as_echo "$ac_ct_NMEDIT" >&6; }
7739 else
7740   { $as_echo "$as_me:$LINENO: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744   if test "x$ac_ct_NMEDIT" = x; then
7745     NMEDIT=":"
7746   else
7747     case $cross_compiling:$ac_tool_warned in
7748 yes:)
7749 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7752 esac
7753     NMEDIT=$ac_ct_NMEDIT
7754   fi
7755 else
7756   NMEDIT="$ac_cv_prog_NMEDIT"
7757 fi
7758
7759     if test -n "$ac_tool_prefix"; then
7760   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_prog_LIPO+set}" = set; then
7765   $as_echo_n "(cached) " >&6
7766 else
7767   if test -n "$LIPO"; then
7768   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775   for ac_exec_ext in '' $ac_executable_extensions; do
7776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782 done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 LIPO=$ac_cv_prog_LIPO
7788 if test -n "$LIPO"; then
7789   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7790 $as_echo "$LIPO" >&6; }
7791 else
7792   { $as_echo "$as_me:$LINENO: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796
7797 fi
7798 if test -z "$ac_cv_prog_LIPO"; then
7799   ac_ct_LIPO=$LIPO
7800   # Extract the first word of "lipo", so it can be a program name with args.
7801 set dummy lipo; ac_word=$2
7802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7805   $as_echo_n "(cached) " >&6
7806 else
7807   if test -n "$ac_ct_LIPO"; then
7808   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815   for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_prog_ac_ct_LIPO="lipo"
7818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7828 if test -n "$ac_ct_LIPO"; then
7829   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7830 $as_echo "$ac_ct_LIPO" >&6; }
7831 else
7832   { $as_echo "$as_me:$LINENO: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836   if test "x$ac_ct_LIPO" = x; then
7837     LIPO=":"
7838   else
7839     case $cross_compiling:$ac_tool_warned in
7840 yes:)
7841 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843 ac_tool_warned=yes ;;
7844 esac
7845     LIPO=$ac_ct_LIPO
7846   fi
7847 else
7848   LIPO="$ac_cv_prog_LIPO"
7849 fi
7850
7851     if test -n "$ac_tool_prefix"; then
7852   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}otool; ac_word=$2
7854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_OTOOL+set}" = set; then
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$OTOOL"; then
7860   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867   for ac_exec_ext in '' $ac_executable_extensions; do
7868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7870     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 OTOOL=$ac_cv_prog_OTOOL
7880 if test -n "$OTOOL"; then
7881   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7882 $as_echo "$OTOOL" >&6; }
7883 else
7884   { $as_echo "$as_me:$LINENO: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889 fi
7890 if test -z "$ac_cv_prog_OTOOL"; then
7891   ac_ct_OTOOL=$OTOOL
7892   # Extract the first word of "otool", so it can be a program name with args.
7893 set dummy otool; ac_word=$2
7894 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7897   $as_echo_n "(cached) " >&6
7898 else
7899   if test -n "$ac_ct_OTOOL"; then
7900   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907   for ac_exec_ext in '' $ac_executable_extensions; do
7908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909     ac_cv_prog_ac_ct_OTOOL="otool"
7910     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7920 if test -n "$ac_ct_OTOOL"; then
7921   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7922 $as_echo "$ac_ct_OTOOL" >&6; }
7923 else
7924   { $as_echo "$as_me:$LINENO: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928   if test "x$ac_ct_OTOOL" = x; then
7929     OTOOL=":"
7930   else
7931     case $cross_compiling:$ac_tool_warned in
7932 yes:)
7933 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7936 esac
7937     OTOOL=$ac_ct_OTOOL
7938   fi
7939 else
7940   OTOOL="$ac_cv_prog_OTOOL"
7941 fi
7942
7943     if test -n "$ac_tool_prefix"; then
7944   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7945 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7949   $as_echo_n "(cached) " >&6
7950 else
7951   if test -n "$OTOOL64"; then
7952   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959   for ac_exec_ext in '' $ac_executable_extensions; do
7960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966 done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 OTOOL64=$ac_cv_prog_OTOOL64
7972 if test -n "$OTOOL64"; then
7973   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7974 $as_echo "$OTOOL64" >&6; }
7975 else
7976   { $as_echo "$as_me:$LINENO: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980
7981 fi
7982 if test -z "$ac_cv_prog_OTOOL64"; then
7983   ac_ct_OTOOL64=$OTOOL64
7984   # Extract the first word of "otool64", so it can be a program name with args.
7985 set dummy otool64; ac_word=$2
7986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7989   $as_echo_n "(cached) " >&6
7990 else
7991   if test -n "$ac_ct_OTOOL64"; then
7992   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7996 do
7997   IFS=$as_save_IFS
7998   test -z "$as_dir" && as_dir=.
7999   for ac_exec_ext in '' $ac_executable_extensions; do
8000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001     ac_cv_prog_ac_ct_OTOOL64="otool64"
8002     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003     break 2
8004   fi
8005 done
8006 done
8007 IFS=$as_save_IFS
8008
8009 fi
8010 fi
8011 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8012 if test -n "$ac_ct_OTOOL64"; then
8013   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8014 $as_echo "$ac_ct_OTOOL64" >&6; }
8015 else
8016   { $as_echo "$as_me:$LINENO: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019
8020   if test "x$ac_ct_OTOOL64" = x; then
8021     OTOOL64=":"
8022   else
8023     case $cross_compiling:$ac_tool_warned in
8024 yes:)
8025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027 ac_tool_warned=yes ;;
8028 esac
8029     OTOOL64=$ac_ct_OTOOL64
8030   fi
8031 else
8032   OTOOL64="$ac_cv_prog_OTOOL64"
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8062 $as_echo_n "checking for -single_module linker flag... " >&6; }
8063 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8064   $as_echo_n "(cached) " >&6
8065 else
8066   lt_cv_apple_cc_single_mod=no
8067       if test -z "${LT_MULTI_MODULE}"; then
8068         # By default we will add the -single_module flag. You can override
8069         # by either setting the environment variable LT_MULTI_MODULE
8070         # non-empty at configure time, or by adding -multi_module to the
8071         # link flags.
8072         rm -rf libconftest.dylib*
8073         echo "int foo(void){return 1;}" > conftest.c
8074         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8075 -dynamiclib -Wl,-single_module conftest.c" >&5
8076         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8077           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8078         _lt_result=$?
8079         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8080           lt_cv_apple_cc_single_mod=yes
8081         else
8082           cat conftest.err >&5
8083         fi
8084         rm -rf libconftest.dylib*
8085         rm -f conftest.*
8086       fi
8087 fi
8088 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8089 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8090     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8091 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8092 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8093   $as_echo_n "(cached) " >&6
8094 else
8095   lt_cv_ld_exported_symbols_list=no
8096       save_LDFLAGS=$LDFLAGS
8097       echo "_main" > conftest.sym
8098       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8099       cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105
8106 int
8107 main ()
8108 {
8109
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (ac_try="$ac_link"
8116 case "(($ac_try" in
8117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118   *) ac_try_echo=$ac_try;;
8119 esac
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122   (eval "$ac_link") 2>conftest.er1
8123   ac_status=$?
8124   grep -v '^ *+' conftest.er1 >conftest.err
8125   rm -f conftest.er1
8126   cat conftest.err >&5
8127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } && {
8129          test -z "$ac_c_werror_flag" ||
8130          test ! -s conftest.err
8131        } && test -s conftest$ac_exeext && {
8132          test "$cross_compiling" = yes ||
8133          $as_test_x conftest$ac_exeext
8134        }; then
8135   lt_cv_ld_exported_symbols_list=yes
8136 else
8137   $as_echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140         lt_cv_ld_exported_symbols_list=no
8141 fi
8142
8143 rm -rf conftest.dSYM
8144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8145       conftest$ac_exeext conftest.$ac_ext
8146         LDFLAGS="$save_LDFLAGS"
8147
8148 fi
8149 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8150 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8151     case $host_os in
8152     rhapsody* | darwin1.[012])
8153       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8154     darwin1.*)
8155       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8156     darwin*) # darwin 5.x on
8157       # if running on 10.5 or later, the deployment target defaults
8158       # to the OS version, if on x86, and 10.4, the deployment
8159       # target defaults to 10.4. Don't you love it?
8160       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8161         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8162           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8163         10.[012]*)
8164           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8165         10.*)
8166           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8167       esac
8168     ;;
8169   esac
8170     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8171       _lt_dar_single_mod='$single_module'
8172     fi
8173     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8174       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8175     else
8176       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8177     fi
8178     if test "$DSYMUTIL" != ":"; then
8179       _lt_dsymutil='~$DSYMUTIL $lib || :'
8180     else
8181       _lt_dsymutil=
8182     fi
8183     ;;
8184   esac
8185
8186
8187 for ac_header in dlfcn.h
8188 do
8189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8191 $as_echo_n "checking for $ac_header... " >&6; }
8192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8193   $as_echo_n "(cached) " >&6
8194 else
8195   cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h.  */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h.  */
8201 $ac_includes_default
8202
8203 #include <$ac_header>
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8212 $as_echo "$ac_try_echo") >&5
8213   (eval "$ac_compile") 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } && {
8220          test -z "$ac_c_werror_flag" ||
8221          test ! -s conftest.err
8222        } && test -s conftest.$ac_objext; then
8223   eval "$as_ac_Header=yes"
8224 else
8225   $as_echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228         eval "$as_ac_Header=no"
8229 fi
8230
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 fi
8233 ac_res=`eval 'as_val=${'$as_ac_Header'}
8234                  $as_echo "$as_val"'`
8235                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8236 $as_echo "$ac_res" >&6; }
8237 as_val=`eval 'as_val=${'$as_ac_Header'}
8238                  $as_echo "$as_val"'`
8239    if test "x$as_val" = x""yes; then
8240   cat >>confdefs.h <<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248
8249
8250 # Set options
8251
8252
8253
8254         enable_dlopen=no
8255
8256
8257   enable_win32_dll=no
8258
8259
8260             # Check whether --enable-shared was given.
8261 if test "${enable_shared+set}" = set; then
8262   enableval=$enable_shared; p=${PACKAGE-default}
8263     case $enableval in
8264     yes) enable_shared=yes ;;
8265     no) enable_shared=no ;;
8266     *)
8267       enable_shared=no
8268       # Look at the argument we got.  We use all the common list separators.
8269       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270       for pkg in $enableval; do
8271         IFS="$lt_save_ifs"
8272         if test "X$pkg" = "X$p"; then
8273           enable_shared=yes
8274         fi
8275       done
8276       IFS="$lt_save_ifs"
8277       ;;
8278     esac
8279 else
8280   enable_shared=yes
8281 fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291   # Check whether --enable-static was given.
8292 if test "${enable_static+set}" = set; then
8293   enableval=$enable_static; p=${PACKAGE-default}
8294     case $enableval in
8295     yes) enable_static=yes ;;
8296     no) enable_static=no ;;
8297     *)
8298      enable_static=no
8299       # Look at the argument we got.  We use all the common list separators.
8300       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8301       for pkg in $enableval; do
8302         IFS="$lt_save_ifs"
8303         if test "X$pkg" = "X$p"; then
8304           enable_static=yes
8305         fi
8306       done
8307       IFS="$lt_save_ifs"
8308       ;;
8309     esac
8310 else
8311   enable_static=yes
8312 fi
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323 # Check whether --with-pic was given.
8324 if test "${with_pic+set}" = set; then
8325   withval=$with_pic; pic_mode="$withval"
8326 else
8327   pic_mode=default
8328 fi
8329
8330
8331 test -z "$pic_mode" && pic_mode=default
8332
8333
8334
8335
8336
8337
8338
8339   # Check whether --enable-fast-install was given.
8340 if test "${enable_fast_install+set}" = set; then
8341   enableval=$enable_fast_install; p=${PACKAGE-default}
8342     case $enableval in
8343     yes) enable_fast_install=yes ;;
8344     no) enable_fast_install=no ;;
8345     *)
8346       enable_fast_install=no
8347       # Look at the argument we got.  We use all the common list separators.
8348       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349       for pkg in $enableval; do
8350         IFS="$lt_save_ifs"
8351         if test "X$pkg" = "X$p"; then
8352           enable_fast_install=yes
8353         fi
8354       done
8355       IFS="$lt_save_ifs"
8356       ;;
8357     esac
8358 else
8359   enable_fast_install=yes
8360 fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 # This can be used to rebuild libtool when needed
8373 LIBTOOL_DEPS="$ltmain"
8374
8375 # Always use our own libtool.
8376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402 test -z "$LN_S" && LN_S="ln -s"
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417 if test -n "${ZSH_VERSION+set}" ; then
8418    setopt NO_GLOB_SUBST
8419 fi
8420
8421 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8422 $as_echo_n "checking for objdir... " >&6; }
8423 if test "${lt_cv_objdir+set}" = set; then
8424   $as_echo_n "(cached) " >&6
8425 else
8426   rm -f .libs 2>/dev/null
8427 mkdir .libs 2>/dev/null
8428 if test -d .libs; then
8429   lt_cv_objdir=.libs
8430 else
8431   # MS-DOS does not allow filenames that begin with a dot.
8432   lt_cv_objdir=_libs
8433 fi
8434 rmdir .libs 2>/dev/null
8435 fi
8436 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8437 $as_echo "$lt_cv_objdir" >&6; }
8438 objdir=$lt_cv_objdir
8439
8440
8441
8442
8443
8444 cat >>confdefs.h <<_ACEOF
8445 #define LT_OBJDIR "$lt_cv_objdir/"
8446 _ACEOF
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464 case $host_os in
8465 aix3*)
8466   # AIX sometimes has problems with the GCC collect2 program.  For some
8467   # reason, if we set the COLLECT_NAMES environment variable, the problems
8468   # vanish in a puff of smoke.
8469   if test "X${COLLECT_NAMES+set}" != Xset; then
8470     COLLECT_NAMES=
8471     export COLLECT_NAMES
8472   fi
8473   ;;
8474 esac
8475
8476 # Sed substitution that helps us do robust quoting.  It backslashifies
8477 # metacharacters that are still active within double-quoted strings.
8478 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8479
8480 # Same as above, but do not quote variable references.
8481 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8482
8483 # Sed substitution to delay expansion of an escaped shell variable in a
8484 # double_quote_subst'ed string.
8485 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8486
8487 # Sed substitution to delay expansion of an escaped single quote.
8488 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8489
8490 # Sed substitution to avoid accidental globbing in evaled expressions
8491 no_glob_subst='s/\*/\\\*/g'
8492
8493 # Global variables:
8494 ofile=libtool
8495 can_build_shared=yes
8496
8497 # All known linkers require a `.a' archive for static linking (except MSVC,
8498 # which needs '.lib').
8499 libext=a
8500
8501 with_gnu_ld="$lt_cv_prog_gnu_ld"
8502
8503 old_CC="$CC"
8504 old_CFLAGS="$CFLAGS"
8505
8506 # Set sane defaults for various variables
8507 test -z "$CC" && CC=cc
8508 test -z "$LTCC" && LTCC=$CC
8509 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8510 test -z "$LD" && LD=ld
8511 test -z "$ac_objext" && ac_objext=o
8512
8513 for cc_temp in $compiler""; do
8514   case $cc_temp in
8515     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8516     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8517     \-*) ;;
8518     *) break;;
8519   esac
8520 done
8521 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8522
8523
8524 # Only perform the check for file, if the check method requires it
8525 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8526 case $deplibs_check_method in
8527 file_magic*)
8528   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8529     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8530 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8532   $as_echo_n "(cached) " >&6
8533 else
8534   case $MAGIC_CMD in
8535 [\\/*] |  ?:[\\/]*)
8536   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8537   ;;
8538 *)
8539   lt_save_MAGIC_CMD="$MAGIC_CMD"
8540   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8541   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8542   for ac_dir in $ac_dummy; do
8543     IFS="$lt_save_ifs"
8544     test -z "$ac_dir" && ac_dir=.
8545     if test -f $ac_dir/${ac_tool_prefix}file; then
8546       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8547       if test -n "$file_magic_test_file"; then
8548         case $deplibs_check_method in
8549         "file_magic "*)
8550           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8551           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8552           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8553             $EGREP "$file_magic_regex" > /dev/null; then
8554             :
8555           else
8556             cat <<_LT_EOF 1>&2
8557
8558 *** Warning: the command libtool uses to detect shared libraries,
8559 *** $file_magic_cmd, produces output that libtool cannot recognize.
8560 *** The result is that libtool may fail to recognize shared libraries
8561 *** as such.  This will affect the creation of libtool libraries that
8562 *** depend on shared libraries, but programs linked with such libtool
8563 *** libraries will work regardless of this problem.  Nevertheless, you
8564 *** may want to report the problem to your system manager and/or to
8565 *** bug-libtool@gnu.org
8566
8567 _LT_EOF
8568           fi ;;
8569         esac
8570       fi
8571       break
8572     fi
8573   done
8574   IFS="$lt_save_ifs"
8575   MAGIC_CMD="$lt_save_MAGIC_CMD"
8576   ;;
8577 esac
8578 fi
8579
8580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8581 if test -n "$MAGIC_CMD"; then
8582   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8583 $as_echo "$MAGIC_CMD" >&6; }
8584 else
8585   { $as_echo "$as_me:$LINENO: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589
8590
8591
8592
8593 if test -z "$lt_cv_path_MAGIC_CMD"; then
8594   if test -n "$ac_tool_prefix"; then
8595     { $as_echo "$as_me:$LINENO: checking for file" >&5
8596 $as_echo_n "checking for file... " >&6; }
8597 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8598   $as_echo_n "(cached) " >&6
8599 else
8600   case $MAGIC_CMD in
8601 [\\/*] |  ?:[\\/]*)
8602   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8603   ;;
8604 *)
8605   lt_save_MAGIC_CMD="$MAGIC_CMD"
8606   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8607   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8608   for ac_dir in $ac_dummy; do
8609     IFS="$lt_save_ifs"
8610     test -z "$ac_dir" && ac_dir=.
8611     if test -f $ac_dir/file; then
8612       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8613       if test -n "$file_magic_test_file"; then
8614         case $deplibs_check_method in
8615         "file_magic "*)
8616           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8617           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8618           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8619             $EGREP "$file_magic_regex" > /dev/null; then
8620             :
8621           else
8622             cat <<_LT_EOF 1>&2
8623
8624 *** Warning: the command libtool uses to detect shared libraries,
8625 *** $file_magic_cmd, produces output that libtool cannot recognize.
8626 *** The result is that libtool may fail to recognize shared libraries
8627 *** as such.  This will affect the creation of libtool libraries that
8628 *** depend on shared libraries, but programs linked with such libtool
8629 *** libraries will work regardless of this problem.  Nevertheless, you
8630 *** may want to report the problem to your system manager and/or to
8631 *** bug-libtool@gnu.org
8632
8633 _LT_EOF
8634           fi ;;
8635         esac
8636       fi
8637       break
8638     fi
8639   done
8640   IFS="$lt_save_ifs"
8641   MAGIC_CMD="$lt_save_MAGIC_CMD"
8642   ;;
8643 esac
8644 fi
8645
8646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8647 if test -n "$MAGIC_CMD"; then
8648   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8649 $as_echo "$MAGIC_CMD" >&6; }
8650 else
8651   { $as_echo "$as_me:$LINENO: result: no" >&5
8652 $as_echo "no" >&6; }
8653 fi
8654
8655
8656   else
8657     MAGIC_CMD=:
8658   fi
8659 fi
8660
8661   fi
8662   ;;
8663 esac
8664
8665 # Use C for the default configuration in the libtool script
8666
8667 lt_save_CC="$CC"
8668 ac_ext=c
8669 ac_cpp='$CPP $CPPFLAGS'
8670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8673
8674
8675 # Source file extension for C test sources.
8676 ac_ext=c
8677
8678 # Object file extension for compiled C test sources.
8679 objext=o
8680 objext=$objext
8681
8682 # Code to be used in simple compile tests
8683 lt_simple_compile_test_code="int some_variable = 0;"
8684
8685 # Code to be used in simple link tests
8686 lt_simple_link_test_code='int main(){return(0);}'
8687
8688
8689
8690
8691
8692
8693
8694 # If no C compiler was specified, use CC.
8695 LTCC=${LTCC-"$CC"}
8696
8697 # If no C compiler flags were specified, use CFLAGS.
8698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8699
8700 # Allow CC to be a program name with arguments.
8701 compiler=$CC
8702
8703 # Save the default compiler, since it gets overwritten when the other
8704 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8705 compiler_DEFAULT=$CC
8706
8707 # save warnings/boilerplate of simple test code
8708 ac_outfile=conftest.$ac_objext
8709 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8711 _lt_compiler_boilerplate=`cat conftest.err`
8712 $RM conftest*
8713
8714 ac_outfile=conftest.$ac_objext
8715 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8717 _lt_linker_boilerplate=`cat conftest.err`
8718 $RM -r conftest*
8719
8720
8721 ## CAVEAT EMPTOR:
8722 ## There is no encapsulation within the following macros, do not change
8723 ## the running order or otherwise move them around unless you know exactly
8724 ## what you are doing...
8725 if test -n "$compiler"; then
8726
8727 lt_prog_compiler_no_builtin_flag=
8728
8729 if test "$GCC" = yes; then
8730   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8731
8732   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8735   $as_echo_n "(cached) " >&6
8736 else
8737   lt_cv_prog_compiler_rtti_exceptions=no
8738    ac_outfile=conftest.$ac_objext
8739    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740    lt_compiler_flag="-fno-rtti -fno-exceptions"
8741    # Insert the option either (1) after the last *FLAGS variable, or
8742    # (2) before a word containing "conftest.", or (3) at the end.
8743    # Note that $ac_compile itself does not contain backslashes and begins
8744    # with a dollar sign (not a hyphen), so the echo should work correctly.
8745    # The option is referenced via a variable to avoid confusing sed.
8746    lt_compile=`echo "$ac_compile" | $SED \
8747    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749    -e 's:$: $lt_compiler_flag:'`
8750    (eval echo "\"\$as_me:8750: $lt_compile\"" >&5)
8751    (eval "$lt_compile" 2>conftest.err)
8752    ac_status=$?
8753    cat conftest.err >&5
8754    echo "$as_me:8754: \$? = $ac_status" >&5
8755    if (exit $ac_status) && test -s "$ac_outfile"; then
8756      # The compiler can only warn and ignore the option if not recognized
8757      # So say no if there are warnings other than the usual output.
8758      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8759      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761        lt_cv_prog_compiler_rtti_exceptions=yes
8762      fi
8763    fi
8764    $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8768 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8771     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8772 else
8773     :
8774 fi
8775
8776 fi
8777
8778
8779
8780
8781
8782
8783   lt_prog_compiler_wl=
8784 lt_prog_compiler_pic=
8785 lt_prog_compiler_static=
8786
8787 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8788 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8789
8790   if test "$GCC" = yes; then
8791     lt_prog_compiler_wl='-Wl,'
8792     lt_prog_compiler_static='-static'
8793
8794     case $host_os in
8795       aix*)
8796       # All AIX code is PIC.
8797       if test "$host_cpu" = ia64; then
8798         # AIX 5 now supports IA64 processor
8799         lt_prog_compiler_static='-Bstatic'
8800       fi
8801       ;;
8802
8803     amigaos*)
8804       case $host_cpu in
8805       powerpc)
8806             # see comment about AmigaOS4 .so support
8807             lt_prog_compiler_pic='-fPIC'
8808         ;;
8809       m68k)
8810             # FIXME: we need at least 68020 code to build shared libraries, but
8811             # adding the `-m68020' flag to GCC prevents building anything better,
8812             # like `-m68040'.
8813             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8814         ;;
8815       esac
8816       ;;
8817
8818     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8819       # PIC is the default for these OSes.
8820       ;;
8821
8822     mingw* | cygwin* | pw32* | os2* | cegcc*)
8823       # This hack is so that the source file can tell whether it is being
8824       # built for inclusion in a dll (and should export symbols for example).
8825       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8826       # (--disable-auto-import) libraries
8827       lt_prog_compiler_pic='-DDLL_EXPORT'
8828       ;;
8829
8830     darwin* | rhapsody*)
8831       # PIC is the default on this platform
8832       # Common symbols not allowed in MH_DYLIB files
8833       lt_prog_compiler_pic='-fno-common'
8834       ;;
8835
8836     hpux*)
8837       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8838       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8839       # sets the default TLS model and affects inlining.
8840       case $host_cpu in
8841       hppa*64*)
8842         # +Z the default
8843         ;;
8844       *)
8845         lt_prog_compiler_pic='-fPIC'
8846         ;;
8847       esac
8848       ;;
8849
8850     interix[3-9]*)
8851       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8852       # Instead, we relocate shared libraries at runtime.
8853       ;;
8854
8855     msdosdjgpp*)
8856       # Just because we use GCC doesn't mean we suddenly get shared libraries
8857       # on systems that don't support them.
8858       lt_prog_compiler_can_build_shared=no
8859       enable_shared=no
8860       ;;
8861
8862     *nto* | *qnx*)
8863       # QNX uses GNU C++, but need to define -shared option too, otherwise
8864       # it will coredump.
8865       lt_prog_compiler_pic='-fPIC -shared'
8866       ;;
8867
8868     sysv4*MP*)
8869       if test -d /usr/nec; then
8870         lt_prog_compiler_pic=-Kconform_pic
8871       fi
8872       ;;
8873
8874     *)
8875       lt_prog_compiler_pic='-fPIC'
8876       ;;
8877     esac
8878   else
8879     # PORTME Check for flag to pass linker flags through the system compiler.
8880     case $host_os in
8881     aix*)
8882       lt_prog_compiler_wl='-Wl,'
8883       if test "$host_cpu" = ia64; then
8884         # AIX 5 now supports IA64 processor
8885         lt_prog_compiler_static='-Bstatic'
8886       else
8887         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8888       fi
8889       ;;
8890
8891     mingw* | cygwin* | pw32* | os2* | cegcc*)
8892       # This hack is so that the source file can tell whether it is being
8893       # built for inclusion in a dll (and should export symbols for example).
8894       lt_prog_compiler_pic='-DDLL_EXPORT'
8895       ;;
8896
8897     hpux9* | hpux10* | hpux11*)
8898       lt_prog_compiler_wl='-Wl,'
8899       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8900       # not for PA HP-UX.
8901       case $host_cpu in
8902       hppa*64*|ia64*)
8903         # +Z the default
8904         ;;
8905       *)
8906         lt_prog_compiler_pic='+Z'
8907         ;;
8908       esac
8909       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8910       lt_prog_compiler_static='${wl}-a ${wl}archive'
8911       ;;
8912
8913     irix5* | irix6* | nonstopux*)
8914       lt_prog_compiler_wl='-Wl,'
8915       # PIC (with -KPIC) is the default.
8916       lt_prog_compiler_static='-non_shared'
8917       ;;
8918
8919     linux* | k*bsd*-gnu)
8920       case $cc_basename in
8921       # old Intel for x86_64 which still supported -KPIC.
8922       ecc*)
8923         lt_prog_compiler_wl='-Wl,'
8924         lt_prog_compiler_pic='-KPIC'
8925         lt_prog_compiler_static='-static'
8926         ;;
8927       # icc used to be incompatible with GCC.
8928       # ICC 10 doesn't accept -KPIC any more.
8929       icc* | ifort*)
8930         lt_prog_compiler_wl='-Wl,'
8931         lt_prog_compiler_pic='-fPIC'
8932         lt_prog_compiler_static='-static'
8933         ;;
8934       # Lahey Fortran 8.1.
8935       lf95*)
8936         lt_prog_compiler_wl='-Wl,'
8937         lt_prog_compiler_pic='--shared'
8938         lt_prog_compiler_static='--static'
8939         ;;
8940       pgcc* | pgf77* | pgf90* | pgf95*)
8941         # Portland Group compilers (*not* the Pentium gcc compiler,
8942         # which looks to be a dead project)
8943         lt_prog_compiler_wl='-Wl,'
8944         lt_prog_compiler_pic='-fpic'
8945         lt_prog_compiler_static='-Bstatic'
8946         ;;
8947       ccc*)
8948         lt_prog_compiler_wl='-Wl,'
8949         # All Alpha code is PIC.
8950         lt_prog_compiler_static='-non_shared'
8951         ;;
8952       xl*)
8953         # IBM XL C 8.0/Fortran 10.1 on PPC
8954         lt_prog_compiler_wl='-Wl,'
8955         lt_prog_compiler_pic='-qpic'
8956         lt_prog_compiler_static='-qstaticlink'
8957         ;;
8958       *)
8959         case `$CC -V 2>&1 | sed 5q` in
8960         *Sun\ C*)
8961           # Sun C 5.9
8962           lt_prog_compiler_pic='-KPIC'
8963           lt_prog_compiler_static='-Bstatic'
8964           lt_prog_compiler_wl='-Wl,'
8965           ;;
8966         *Sun\ F*)
8967           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8968           lt_prog_compiler_pic='-KPIC'
8969           lt_prog_compiler_static='-Bstatic'
8970           lt_prog_compiler_wl=''
8971           ;;
8972         esac
8973         ;;
8974       esac
8975       ;;
8976
8977     newsos6)
8978       lt_prog_compiler_pic='-KPIC'
8979       lt_prog_compiler_static='-Bstatic'
8980       ;;
8981
8982     *nto* | *qnx*)
8983       # QNX uses GNU C++, but need to define -shared option too, otherwise
8984       # it will coredump.
8985       lt_prog_compiler_pic='-fPIC -shared'
8986       ;;
8987
8988     osf3* | osf4* | osf5*)
8989       lt_prog_compiler_wl='-Wl,'
8990       # All OSF/1 code is PIC.
8991       lt_prog_compiler_static='-non_shared'
8992       ;;
8993
8994     rdos*)
8995       lt_prog_compiler_static='-non_shared'
8996       ;;
8997
8998     solaris*)
8999       lt_prog_compiler_pic='-KPIC'
9000       lt_prog_compiler_static='-Bstatic'
9001       case $cc_basename in
9002       f77* | f90* | f95*)
9003         lt_prog_compiler_wl='-Qoption ld ';;
9004       *)
9005         lt_prog_compiler_wl='-Wl,';;
9006       esac
9007       ;;
9008
9009     sunos4*)
9010       lt_prog_compiler_wl='-Qoption ld '
9011       lt_prog_compiler_pic='-PIC'
9012       lt_prog_compiler_static='-Bstatic'
9013       ;;
9014
9015     sysv4 | sysv4.2uw2* | sysv4.3*)
9016       lt_prog_compiler_wl='-Wl,'
9017       lt_prog_compiler_pic='-KPIC'
9018       lt_prog_compiler_static='-Bstatic'
9019       ;;
9020
9021     sysv4*MP*)
9022       if test -d /usr/nec ;then
9023         lt_prog_compiler_pic='-Kconform_pic'
9024         lt_prog_compiler_static='-Bstatic'
9025       fi
9026       ;;
9027
9028     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9029       lt_prog_compiler_wl='-Wl,'
9030       lt_prog_compiler_pic='-KPIC'
9031       lt_prog_compiler_static='-Bstatic'
9032       ;;
9033
9034     unicos*)
9035       lt_prog_compiler_wl='-Wl,'
9036       lt_prog_compiler_can_build_shared=no
9037       ;;
9038
9039     uts4*)
9040       lt_prog_compiler_pic='-pic'
9041       lt_prog_compiler_static='-Bstatic'
9042       ;;
9043
9044     *)
9045       lt_prog_compiler_can_build_shared=no
9046       ;;
9047     esac
9048   fi
9049
9050 case $host_os in
9051   # For platforms which do not support PIC, -DPIC is meaningless:
9052   *djgpp*)
9053     lt_prog_compiler_pic=
9054     ;;
9055   *)
9056     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9057     ;;
9058 esac
9059 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9060 $as_echo "$lt_prog_compiler_pic" >&6; }
9061
9062
9063
9064
9065
9066
9067 #
9068 # Check to make sure the PIC flag actually works.
9069 #
9070 if test -n "$lt_prog_compiler_pic"; then
9071   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9072 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9073 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9074   $as_echo_n "(cached) " >&6
9075 else
9076   lt_cv_prog_compiler_pic_works=no
9077    ac_outfile=conftest.$ac_objext
9078    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9080    # Insert the option either (1) after the last *FLAGS variable, or
9081    # (2) before a word containing "conftest.", or (3) at the end.
9082    # Note that $ac_compile itself does not contain backslashes and begins
9083    # with a dollar sign (not a hyphen), so the echo should work correctly.
9084    # The option is referenced via a variable to avoid confusing sed.
9085    lt_compile=`echo "$ac_compile" | $SED \
9086    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088    -e 's:$: $lt_compiler_flag:'`
9089    (eval echo "\"\$as_me:9089: $lt_compile\"" >&5)
9090    (eval "$lt_compile" 2>conftest.err)
9091    ac_status=$?
9092    cat conftest.err >&5
9093    echo "$as_me:9093: \$? = $ac_status" >&5
9094    if (exit $ac_status) && test -s "$ac_outfile"; then
9095      # The compiler can only warn and ignore the option if not recognized
9096      # So say no if there are warnings other than the usual output.
9097      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9098      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9100        lt_cv_prog_compiler_pic_works=yes
9101      fi
9102    fi
9103    $RM conftest*
9104
9105 fi
9106 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9107 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9108
9109 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9110     case $lt_prog_compiler_pic in
9111      "" | " "*) ;;
9112      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9113      esac
9114 else
9115     lt_prog_compiler_pic=
9116      lt_prog_compiler_can_build_shared=no
9117 fi
9118
9119 fi
9120
9121
9122
9123
9124
9125
9126 #
9127 # Check to make sure the static flag actually works.
9128 #
9129 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9130 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9131 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9132 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9133   $as_echo_n "(cached) " >&6
9134 else
9135   lt_cv_prog_compiler_static_works=no
9136    save_LDFLAGS="$LDFLAGS"
9137    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9138    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9139    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9140      # The linker can only warn and ignore the option if not recognized
9141      # So say no if there are warnings
9142      if test -s conftest.err; then
9143        # Append any errors to the config.log.
9144        cat conftest.err 1>&5
9145        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9146        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9147        if diff conftest.exp conftest.er2 >/dev/null; then
9148          lt_cv_prog_compiler_static_works=yes
9149        fi
9150      else
9151        lt_cv_prog_compiler_static_works=yes
9152      fi
9153    fi
9154    $RM -r conftest*
9155    LDFLAGS="$save_LDFLAGS"
9156
9157 fi
9158 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9159 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9160
9161 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9162     :
9163 else
9164     lt_prog_compiler_static=
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9174 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9175 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9176   $as_echo_n "(cached) " >&6
9177 else
9178   lt_cv_prog_compiler_c_o=no
9179    $RM -r conftest 2>/dev/null
9180    mkdir conftest
9181    cd conftest
9182    mkdir out
9183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9184
9185    lt_compiler_flag="-o out/conftest2.$ac_objext"
9186    # Insert the option either (1) after the last *FLAGS variable, or
9187    # (2) before a word containing "conftest.", or (3) at the end.
9188    # Note that $ac_compile itself does not contain backslashes and begins
9189    # with a dollar sign (not a hyphen), so the echo should work correctly.
9190    lt_compile=`echo "$ac_compile" | $SED \
9191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9193    -e 's:$: $lt_compiler_flag:'`
9194    (eval echo "\"\$as_me:9194: $lt_compile\"" >&5)
9195    (eval "$lt_compile" 2>out/conftest.err)
9196    ac_status=$?
9197    cat out/conftest.err >&5
9198    echo "$as_me:9198: \$? = $ac_status" >&5
9199    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9200    then
9201      # The compiler can only warn and ignore the option if not recognized
9202      # So say no if there are warnings
9203      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9204      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9205      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9206        lt_cv_prog_compiler_c_o=yes
9207      fi
9208    fi
9209    chmod u+w . 2>&5
9210    $RM conftest*
9211    # SGI C++ compiler will create directory out/ii_files/ for
9212    # template instantiation
9213    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9214    $RM out/* && rmdir out
9215    cd ..
9216    $RM -r conftest
9217    $RM conftest*
9218
9219 fi
9220 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9221 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9222
9223
9224
9225
9226
9227
9228   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9229 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9230 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9231   $as_echo_n "(cached) " >&6
9232 else
9233   lt_cv_prog_compiler_c_o=no
9234    $RM -r conftest 2>/dev/null
9235    mkdir conftest
9236    cd conftest
9237    mkdir out
9238    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9239
9240    lt_compiler_flag="-o out/conftest2.$ac_objext"
9241    # Insert the option either (1) after the last *FLAGS variable, or
9242    # (2) before a word containing "conftest.", or (3) at the end.
9243    # Note that $ac_compile itself does not contain backslashes and begins
9244    # with a dollar sign (not a hyphen), so the echo should work correctly.
9245    lt_compile=`echo "$ac_compile" | $SED \
9246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9248    -e 's:$: $lt_compiler_flag:'`
9249    (eval echo "\"\$as_me:9249: $lt_compile\"" >&5)
9250    (eval "$lt_compile" 2>out/conftest.err)
9251    ac_status=$?
9252    cat out/conftest.err >&5
9253    echo "$as_me:9253: \$? = $ac_status" >&5
9254    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9255    then
9256      # The compiler can only warn and ignore the option if not recognized
9257      # So say no if there are warnings
9258      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9259      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9260      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9261        lt_cv_prog_compiler_c_o=yes
9262      fi
9263    fi
9264    chmod u+w . 2>&5
9265    $RM conftest*
9266    # SGI C++ compiler will create directory out/ii_files/ for
9267    # template instantiation
9268    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9269    $RM out/* && rmdir out
9270    cd ..
9271    $RM -r conftest
9272    $RM conftest*
9273
9274 fi
9275 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9276 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9277
9278
9279
9280
9281 hard_links="nottested"
9282 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9283   # do not overwrite the value of need_locks provided by the user
9284   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9285 $as_echo_n "checking if we can lock with hard links... " >&6; }
9286   hard_links=yes
9287   $RM conftest*
9288   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9289   touch conftest.a
9290   ln conftest.a conftest.b 2>&5 || hard_links=no
9291   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9292   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9293 $as_echo "$hard_links" >&6; }
9294   if test "$hard_links" = no; then
9295     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9296 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9297     need_locks=warn
9298   fi
9299 else
9300   need_locks=no
9301 fi
9302
9303
9304
9305
9306
9307
9308   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9309 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9310
9311   runpath_var=
9312   allow_undefined_flag=
9313   always_export_symbols=no
9314   archive_cmds=
9315   archive_expsym_cmds=
9316   compiler_needs_object=no
9317   enable_shared_with_static_runtimes=no
9318   export_dynamic_flag_spec=
9319   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9320   hardcode_automatic=no
9321   hardcode_direct=no
9322   hardcode_direct_absolute=no
9323   hardcode_libdir_flag_spec=
9324   hardcode_libdir_flag_spec_ld=
9325   hardcode_libdir_separator=
9326   hardcode_minus_L=no
9327   hardcode_shlibpath_var=unsupported
9328   inherit_rpath=no
9329   link_all_deplibs=unknown
9330   module_cmds=
9331   module_expsym_cmds=
9332   old_archive_from_new_cmds=
9333   old_archive_from_expsyms_cmds=
9334   thread_safe_flag_spec=
9335   whole_archive_flag_spec=
9336   # include_expsyms should be a list of space-separated symbols to be *always*
9337   # included in the symbol list
9338   include_expsyms=
9339   # exclude_expsyms can be an extended regexp of symbols to exclude
9340   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9341   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9342   # as well as any symbol that contains `d'.
9343   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9344   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9345   # platforms (ab)use it in PIC code, but their linkers get confused if
9346   # the symbol is explicitly referenced.  Since portable code cannot
9347   # rely on this symbol name, it's probably fine to never include it in
9348   # preloaded symbol tables.
9349   # Exclude shared library initialization/finalization symbols.
9350   extract_expsyms_cmds=
9351
9352   case $host_os in
9353   cygwin* | mingw* | pw32* | cegcc*)
9354     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9355     # When not using gcc, we currently assume that we are using
9356     # Microsoft Visual C++.
9357     if test "$GCC" != yes; then
9358       with_gnu_ld=no
9359     fi
9360     ;;
9361   interix*)
9362     # we just hope/assume this is gcc and not c89 (= MSVC++)
9363     with_gnu_ld=yes
9364     ;;
9365   openbsd*)
9366     with_gnu_ld=no
9367     ;;
9368   esac
9369
9370   ld_shlibs=yes
9371   if test "$with_gnu_ld" = yes; then
9372     # If archive_cmds runs LD, not CC, wlarc should be empty
9373     wlarc='${wl}'
9374
9375     # Set some defaults for GNU ld with shared library support. These
9376     # are reset later if shared libraries are not supported. Putting them
9377     # here allows them to be overridden if necessary.
9378     runpath_var=LD_RUN_PATH
9379     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380     export_dynamic_flag_spec='${wl}--export-dynamic'
9381     # ancient GNU ld didn't support --whole-archive et. al.
9382     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9383       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9384     else
9385       whole_archive_flag_spec=
9386     fi
9387     supports_anon_versioning=no
9388     case `$LD -v 2>&1` in
9389       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9390       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9391       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9392       *\ 2.11.*) ;; # other 2.11 versions
9393       *) supports_anon_versioning=yes ;;
9394     esac
9395
9396     # See if GNU ld supports shared libraries.
9397     case $host_os in
9398     aix[3-9]*)
9399       # On AIX/PPC, the GNU linker is very broken
9400       if test "$host_cpu" != ia64; then
9401         ld_shlibs=no
9402         cat <<_LT_EOF 1>&2
9403
9404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9405 *** to be unable to reliably create shared libraries on AIX.
9406 *** Therefore, libtool is disabling shared libraries support.  If you
9407 *** really care for shared libraries, you may want to modify your PATH
9408 *** so that a non-GNU linker is found, and then restart.
9409
9410 _LT_EOF
9411       fi
9412       ;;
9413
9414     amigaos*)
9415       case $host_cpu in
9416       powerpc)
9417             # see comment about AmigaOS4 .so support
9418             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419             archive_expsym_cmds=''
9420         ;;
9421       m68k)
9422             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)'
9423             hardcode_libdir_flag_spec='-L$libdir'
9424             hardcode_minus_L=yes
9425         ;;
9426       esac
9427       ;;
9428
9429     beos*)
9430       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9431         allow_undefined_flag=unsupported
9432         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9433         # support --undefined.  This deserves some investigation.  FIXME
9434         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435       else
9436         ld_shlibs=no
9437       fi
9438       ;;
9439
9440     cygwin* | mingw* | pw32* | cegcc*)
9441       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9442       # as there is no search path for DLLs.
9443       hardcode_libdir_flag_spec='-L$libdir'
9444       allow_undefined_flag=unsupported
9445       always_export_symbols=no
9446       enable_shared_with_static_runtimes=yes
9447       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9448
9449       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9450         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9451         # If the export-symbols file already is a .def file (1st line
9452         # is EXPORTS), use it as is; otherwise, prepend...
9453         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9454           cp $export_symbols $output_objdir/$soname.def;
9455         else
9456           echo EXPORTS > $output_objdir/$soname.def;
9457           cat $export_symbols >> $output_objdir/$soname.def;
9458         fi~
9459         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9460       else
9461         ld_shlibs=no
9462       fi
9463       ;;
9464
9465     interix[3-9]*)
9466       hardcode_direct=no
9467       hardcode_shlibpath_var=no
9468       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9469       export_dynamic_flag_spec='${wl}-E'
9470       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9471       # Instead, shared libraries are loaded at an image base (0x10000000 by
9472       # default) and relocated if they conflict, which is a slow very memory
9473       # consuming and fragmenting process.  To avoid this, we pick a random,
9474       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9475       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9476       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9477       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'
9478       ;;
9479
9480     gnu* | linux* | tpf* | k*bsd*-gnu)
9481       tmp_diet=no
9482       if test "$host_os" = linux-dietlibc; then
9483         case $cc_basename in
9484           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9485         esac
9486       fi
9487       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9488          && test "$tmp_diet" = no
9489       then
9490         tmp_addflag=
9491         tmp_sharedflag='-shared'
9492         case $cc_basename,$host_cpu in
9493         pgcc*)                          # Portland Group C compiler
9494           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9495           tmp_addflag=' $pic_flag'
9496           ;;
9497         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9498           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9499           tmp_addflag=' $pic_flag -Mnomain' ;;
9500         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9501           tmp_addflag=' -i_dynamic' ;;
9502         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9503           tmp_addflag=' -i_dynamic -nofor_main' ;;
9504         ifc* | ifort*)                  # Intel Fortran compiler
9505           tmp_addflag=' -nofor_main' ;;
9506         lf95*)                          # Lahey Fortran 8.1
9507           whole_archive_flag_spec=
9508           tmp_sharedflag='--shared' ;;
9509         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9510           tmp_sharedflag='-qmkshrobj'
9511           tmp_addflag= ;;
9512         esac
9513         case `$CC -V 2>&1 | sed 5q` in
9514         *Sun\ C*)                       # Sun C 5.9
9515           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9516           compiler_needs_object=yes
9517           tmp_sharedflag='-G' ;;
9518         *Sun\ F*)                       # Sun Fortran 8.3
9519           tmp_sharedflag='-G' ;;
9520         esac
9521         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522
9523         if test "x$supports_anon_versioning" = xyes; then
9524           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9525             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9526             echo "local: *; };" >> $output_objdir/$libname.ver~
9527             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9528         fi
9529
9530         case $cc_basename in
9531         xlf*)
9532           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9533           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9534           hardcode_libdir_flag_spec=
9535           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9536           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9537           if test "x$supports_anon_versioning" = xyes; then
9538             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9539               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9540               echo "local: *; };" >> $output_objdir/$libname.ver~
9541               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9542           fi
9543           ;;
9544         esac
9545       else
9546         ld_shlibs=no
9547       fi
9548       ;;
9549
9550     netbsd*)
9551       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9553         wlarc=
9554       else
9555         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9557       fi
9558       ;;
9559
9560     solaris*)
9561       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9562         ld_shlibs=no
9563         cat <<_LT_EOF 1>&2
9564
9565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9566 *** create shared libraries on Solaris systems.  Therefore, libtool
9567 *** is disabling shared libraries support.  We urge you to upgrade GNU
9568 *** binutils to release 2.9.1 or newer.  Another option is to modify
9569 *** your PATH or compiler configuration so that the native linker is
9570 *** used, and then restart.
9571
9572 _LT_EOF
9573       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9576       else
9577         ld_shlibs=no
9578       fi
9579       ;;
9580
9581     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9582       case `$LD -v 2>&1` in
9583         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9588 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9589 *** is disabling shared libraries support.  We urge you to upgrade GNU
9590 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595         ;;
9596         *)
9597           # For security reasons, it is highly recommended that you always
9598           # use absolute paths for naming shared libraries, and exclude the
9599           # DT_RUNPATH tag from executables and libraries.  But doing so
9600           # requires that you compile everything twice, which is a pain.
9601           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605           else
9606             ld_shlibs=no
9607           fi
9608         ;;
9609       esac
9610       ;;
9611
9612     sunos4*)
9613       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9614       wlarc=
9615       hardcode_direct=yes
9616       hardcode_shlibpath_var=no
9617       ;;
9618
9619     *)
9620       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9623       else
9624         ld_shlibs=no
9625       fi
9626       ;;
9627     esac
9628
9629     if test "$ld_shlibs" = no; then
9630       runpath_var=
9631       hardcode_libdir_flag_spec=
9632       export_dynamic_flag_spec=
9633       whole_archive_flag_spec=
9634     fi
9635   else
9636     # PORTME fill in a description of your system's linker (not GNU ld)
9637     case $host_os in
9638     aix3*)
9639       allow_undefined_flag=unsupported
9640       always_export_symbols=yes
9641       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'
9642       # Note: this linker hardcodes the directories in LIBPATH if there
9643       # are no directories specified by -L.
9644       hardcode_minus_L=yes
9645       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9646         # Neither direct hardcoding nor static linking is supported with a
9647         # broken collect2.
9648         hardcode_direct=unsupported
9649       fi
9650       ;;
9651
9652     aix[4-9]*)
9653       if test "$host_cpu" = ia64; then
9654         # On IA64, the linker does run time linking by default, so we don't
9655         # have to do anything special.
9656         aix_use_runtimelinking=no
9657         exp_sym_flag='-Bexport'
9658         no_entry_flag=""
9659       else
9660         # If we're using GNU nm, then we don't want the "-C" option.
9661         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9662         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9663           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9664         else
9665           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'
9666         fi
9667         aix_use_runtimelinking=no
9668
9669         # Test if we are trying to use run time linking or normal
9670         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9671         # need to do runtime linking.
9672         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9673           for ld_flag in $LDFLAGS; do
9674           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9675             aix_use_runtimelinking=yes
9676             break
9677           fi
9678           done
9679           ;;
9680         esac
9681
9682         exp_sym_flag='-bexport'
9683         no_entry_flag='-bnoentry'
9684       fi
9685
9686       # When large executables or shared objects are built, AIX ld can
9687       # have problems creating the table of contents.  If linking a library
9688       # or program results in "error TOC overflow" add -mminimal-toc to
9689       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9690       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9691
9692       archive_cmds=''
9693       hardcode_direct=yes
9694       hardcode_direct_absolute=yes
9695       hardcode_libdir_separator=':'
9696       link_all_deplibs=yes
9697       file_list_spec='${wl}-f,'
9698
9699       if test "$GCC" = yes; then
9700         case $host_os in aix4.[012]|aix4.[012].*)
9701         # We only want to do this on AIX 4.2 and lower, the check
9702         # below for broken collect2 doesn't work under 4.3+
9703           collect2name=`${CC} -print-prog-name=collect2`
9704           if test -f "$collect2name" &&
9705            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9706           then
9707           # We have reworked collect2
9708           :
9709           else
9710           # We have old collect2
9711           hardcode_direct=unsupported
9712           # It fails to find uninstalled libraries when the uninstalled
9713           # path is not listed in the libpath.  Setting hardcode_minus_L
9714           # to unsupported forces relinking
9715           hardcode_minus_L=yes
9716           hardcode_libdir_flag_spec='-L$libdir'
9717           hardcode_libdir_separator=
9718           fi
9719           ;;
9720         esac
9721         shared_flag='-shared'
9722         if test "$aix_use_runtimelinking" = yes; then
9723           shared_flag="$shared_flag "'${wl}-G'
9724         fi
9725       else
9726         # not using gcc
9727         if test "$host_cpu" = ia64; then
9728         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9729         # chokes on -Wl,-G. The following line is correct:
9730           shared_flag='-G'
9731         else
9732           if test "$aix_use_runtimelinking" = yes; then
9733             shared_flag='${wl}-G'
9734           else
9735             shared_flag='${wl}-bM:SRE'
9736           fi
9737         fi
9738       fi
9739
9740       export_dynamic_flag_spec='${wl}-bexpall'
9741       # It seems that -bexpall does not export symbols beginning with
9742       # underscore (_), so it is better to generate a list of symbols to export.
9743       always_export_symbols=yes
9744       if test "$aix_use_runtimelinking" = yes; then
9745         # Warning - without using the other runtime loading flags (-brtl),
9746         # -berok will link without error, but may produce a broken library.
9747         allow_undefined_flag='-berok'
9748         # Determine the default libpath from the value encoded in an
9749         # empty executable.
9750         cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756
9757 int
9758 main ()
9759 {
9760
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772 $as_echo "$ac_try_echo") >&5
9773   (eval "$ac_link") 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } && {
9780          test -z "$ac_c_werror_flag" ||
9781          test ! -s conftest.err
9782        } && test -s conftest$ac_exeext && {
9783          test "$cross_compiling" = yes ||
9784          $as_test_x conftest$ac_exeext
9785        }; then
9786
9787 lt_aix_libpath_sed='
9788     /Import File Strings/,/^$/ {
9789         /^0/ {
9790             s/^0  *\(.*\)$/\1/
9791             p
9792         }
9793     }'
9794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$aix_libpath"; then
9797   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 fi
9799 else
9800   $as_echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803
9804 fi
9805
9806 rm -rf conftest.dSYM
9807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808       conftest$ac_exeext conftest.$ac_ext
9809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9810
9811         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9812         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9813       else
9814         if test "$host_cpu" = ia64; then
9815           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9816           allow_undefined_flag="-z nodefs"
9817           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"
9818         else
9819          # Determine the default libpath from the value encoded in an
9820          # empty executable.
9821          cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827
9828 int
9829 main ()
9830 {
9831
9832   ;
9833   return 0;
9834 }
9835 _ACEOF
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (ac_try="$ac_link"
9838 case "(($ac_try" in
9839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840   *) ac_try_echo=$ac_try;;
9841 esac
9842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9843 $as_echo "$ac_try_echo") >&5
9844   (eval "$ac_link") 2>conftest.er1
9845   ac_status=$?
9846   grep -v '^ *+' conftest.er1 >conftest.err
9847   rm -f conftest.er1
9848   cat conftest.err >&5
9849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } && {
9851          test -z "$ac_c_werror_flag" ||
9852          test ! -s conftest.err
9853        } && test -s conftest$ac_exeext && {
9854          test "$cross_compiling" = yes ||
9855          $as_test_x conftest$ac_exeext
9856        }; then
9857
9858 lt_aix_libpath_sed='
9859     /Import File Strings/,/^$/ {
9860         /^0/ {
9861             s/^0  *\(.*\)$/\1/
9862             p
9863         }
9864     }'
9865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9866 # Check for a 64-bit object if we didn't find anything.
9867 if test -z "$aix_libpath"; then
9868   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9869 fi
9870 else
9871   $as_echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874
9875 fi
9876
9877 rm -rf conftest.dSYM
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879       conftest$ac_exeext conftest.$ac_ext
9880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9881
9882          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9883           # Warning - without using the other run time loading flags,
9884           # -berok will link without error, but may produce a broken library.
9885           no_undefined_flag=' ${wl}-bernotok'
9886           allow_undefined_flag=' ${wl}-berok'
9887           # Exported symbols can be pulled into shared objects from archives
9888           whole_archive_flag_spec='$convenience'
9889           archive_cmds_need_lc=yes
9890           # This is similar to how AIX traditionally builds its shared libraries.
9891           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'
9892         fi
9893       fi
9894       ;;
9895
9896     amigaos*)
9897       case $host_cpu in
9898       powerpc)
9899             # see comment about AmigaOS4 .so support
9900             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901             archive_expsym_cmds=''
9902         ;;
9903       m68k)
9904             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)'
9905             hardcode_libdir_flag_spec='-L$libdir'
9906             hardcode_minus_L=yes
9907         ;;
9908       esac
9909       ;;
9910
9911     bsdi[45]*)
9912       export_dynamic_flag_spec=-rdynamic
9913       ;;
9914
9915     cygwin* | mingw* | pw32* | cegcc*)
9916       # When not using gcc, we currently assume that we are using
9917       # Microsoft Visual C++.
9918       # hardcode_libdir_flag_spec is actually meaningless, as there is
9919       # no search path for DLLs.
9920       hardcode_libdir_flag_spec=' '
9921       allow_undefined_flag=unsupported
9922       # Tell ltmain to make .lib files, not .a files.
9923       libext=lib
9924       # Tell ltmain to make .dll files, not .so files.
9925       shrext_cmds=".dll"
9926       # FIXME: Setting linknames here is a bad hack.
9927       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9928       # The linker will automatically build a .lib file if we build a DLL.
9929       old_archive_from_new_cmds='true'
9930       # FIXME: Should let the user specify the lib program.
9931       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9932       fix_srcfile_path='`cygpath -w "$srcfile"`'
9933       enable_shared_with_static_runtimes=yes
9934       ;;
9935
9936     darwin* | rhapsody*)
9937
9938
9939   archive_cmds_need_lc=no
9940   hardcode_direct=no
9941   hardcode_automatic=yes
9942   hardcode_shlibpath_var=unsupported
9943   whole_archive_flag_spec=''
9944   link_all_deplibs=yes
9945   allow_undefined_flag="$_lt_dar_allow_undefined"
9946   case $cc_basename in
9947      ifort*) _lt_dar_can_shared=yes ;;
9948      *) _lt_dar_can_shared=$GCC ;;
9949   esac
9950   if test "$_lt_dar_can_shared" = "yes"; then
9951     output_verbose_link_cmd=echo
9952     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9953     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9954     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}"
9955     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}"
9956
9957   else
9958   ld_shlibs=no
9959   fi
9960
9961       ;;
9962
9963     dgux*)
9964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965       hardcode_libdir_flag_spec='-L$libdir'
9966       hardcode_shlibpath_var=no
9967       ;;
9968
9969     freebsd1*)
9970       ld_shlibs=no
9971       ;;
9972
9973     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9974     # support.  Future versions do this automatically, but an explicit c++rt0.o
9975     # does not break anything, and helps significantly (at the cost of a little
9976     # extra space).
9977     freebsd2.2*)
9978       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9979       hardcode_libdir_flag_spec='-R$libdir'
9980       hardcode_direct=yes
9981       hardcode_shlibpath_var=no
9982       ;;
9983
9984     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9985     freebsd2*)
9986       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9987       hardcode_direct=yes
9988       hardcode_minus_L=yes
9989       hardcode_shlibpath_var=no
9990       ;;
9991
9992     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9993     freebsd* | dragonfly*)
9994       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9995       hardcode_libdir_flag_spec='-R$libdir'
9996       hardcode_direct=yes
9997       hardcode_shlibpath_var=no
9998       ;;
9999
10000     hpux9*)
10001       if test "$GCC" = yes; then
10002         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10003       else
10004         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'
10005       fi
10006       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10007       hardcode_libdir_separator=:
10008       hardcode_direct=yes
10009
10010       # hardcode_minus_L: Not really in the search PATH,
10011       # but as the default location of the library.
10012       hardcode_minus_L=yes
10013       export_dynamic_flag_spec='${wl}-E'
10014       ;;
10015
10016     hpux10*)
10017       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10018         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019       else
10020         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10021       fi
10022       if test "$with_gnu_ld" = no; then
10023         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10024         hardcode_libdir_flag_spec_ld='+b $libdir'
10025         hardcode_libdir_separator=:
10026         hardcode_direct=yes
10027         hardcode_direct_absolute=yes
10028         export_dynamic_flag_spec='${wl}-E'
10029         # hardcode_minus_L: Not really in the search PATH,
10030         # but as the default location of the library.
10031         hardcode_minus_L=yes
10032       fi
10033       ;;
10034
10035     hpux11*)
10036       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10037         case $host_cpu in
10038         hppa*64*)
10039           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10040           ;;
10041         ia64*)
10042           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10043           ;;
10044         *)
10045           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10046           ;;
10047         esac
10048       else
10049         case $host_cpu in
10050         hppa*64*)
10051           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052           ;;
10053         ia64*)
10054           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10055           ;;
10056         *)
10057           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058           ;;
10059         esac
10060       fi
10061       if test "$with_gnu_ld" = no; then
10062         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063         hardcode_libdir_separator=:
10064
10065         case $host_cpu in
10066         hppa*64*|ia64*)
10067           hardcode_direct=no
10068           hardcode_shlibpath_var=no
10069           ;;
10070         *)
10071           hardcode_direct=yes
10072           hardcode_direct_absolute=yes
10073           export_dynamic_flag_spec='${wl}-E'
10074
10075           # hardcode_minus_L: Not really in the search PATH,
10076           # but as the default location of the library.
10077           hardcode_minus_L=yes
10078           ;;
10079         esac
10080       fi
10081       ;;
10082
10083     irix5* | irix6* | nonstopux*)
10084       if test "$GCC" = yes; then
10085         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10086         # Try to use the -exported_symbol ld option, if it does not
10087         # work, assume that -exports_file does not work either and
10088         # implicitly export all symbols.
10089         save_LDFLAGS="$LDFLAGS"
10090         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10091         cat >conftest.$ac_ext <<_ACEOF
10092 int foo(void) {}
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10101 $as_echo "$ac_try_echo") >&5
10102   (eval "$ac_link") 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } && {
10109          test -z "$ac_c_werror_flag" ||
10110          test ! -s conftest.err
10111        } && test -s conftest$ac_exeext && {
10112          test "$cross_compiling" = yes ||
10113          $as_test_x conftest$ac_exeext
10114        }; then
10115   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10116
10117 else
10118   $as_echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121
10122 fi
10123
10124 rm -rf conftest.dSYM
10125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10126       conftest$ac_exeext conftest.$ac_ext
10127         LDFLAGS="$save_LDFLAGS"
10128       else
10129         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10130         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10131       fi
10132       archive_cmds_need_lc='no'
10133       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10134       hardcode_libdir_separator=:
10135       inherit_rpath=yes
10136       link_all_deplibs=yes
10137       ;;
10138
10139     netbsd*)
10140       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10142       else
10143         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10144       fi
10145       hardcode_libdir_flag_spec='-R$libdir'
10146       hardcode_direct=yes
10147       hardcode_shlibpath_var=no
10148       ;;
10149
10150     newsos6)
10151       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152       hardcode_direct=yes
10153       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154       hardcode_libdir_separator=:
10155       hardcode_shlibpath_var=no
10156       ;;
10157
10158     *nto* | *qnx*)
10159       ;;
10160
10161     openbsd*)
10162       if test -f /usr/libexec/ld.so; then
10163         hardcode_direct=yes
10164         hardcode_shlibpath_var=no
10165         hardcode_direct_absolute=yes
10166         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10167           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10169           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10170           export_dynamic_flag_spec='${wl}-E'
10171         else
10172           case $host_os in
10173            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10174              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10175              hardcode_libdir_flag_spec='-R$libdir'
10176              ;;
10177            *)
10178              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10179              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10180              ;;
10181           esac
10182         fi
10183       else
10184         ld_shlibs=no
10185       fi
10186       ;;
10187
10188     os2*)
10189       hardcode_libdir_flag_spec='-L$libdir'
10190       hardcode_minus_L=yes
10191       allow_undefined_flag=unsupported
10192       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'
10193       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10194       ;;
10195
10196     osf3*)
10197       if test "$GCC" = yes; then
10198         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10199         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10200       else
10201         allow_undefined_flag=' -expect_unresolved \*'
10202         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10203       fi
10204       archive_cmds_need_lc='no'
10205       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10206       hardcode_libdir_separator=:
10207       ;;
10208
10209     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10210       if test "$GCC" = yes; then
10211         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10212         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10213         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10214       else
10215         allow_undefined_flag=' -expect_unresolved \*'
10216         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10217         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~
10218         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10219
10220         # Both c and cxx compiler support -rpath directly
10221         hardcode_libdir_flag_spec='-rpath $libdir'
10222       fi
10223       archive_cmds_need_lc='no'
10224       hardcode_libdir_separator=:
10225       ;;
10226
10227     solaris*)
10228       no_undefined_flag=' -z defs'
10229       if test "$GCC" = yes; then
10230         wlarc='${wl}'
10231         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10233           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10234       else
10235         case `$CC -V 2>&1` in
10236         *"Compilers 5.0"*)
10237           wlarc=''
10238           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10240           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10241           ;;
10242         *)
10243           wlarc='${wl}'
10244           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10245           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10246           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10247           ;;
10248         esac
10249       fi
10250       hardcode_libdir_flag_spec='-R$libdir'
10251       hardcode_shlibpath_var=no
10252       case $host_os in
10253       solaris2.[0-5] | solaris2.[0-5].*) ;;
10254       *)
10255         # The compiler driver will combine and reorder linker options,
10256         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10257         # but is careful enough not to reorder.
10258         # Supported since Solaris 2.6 (maybe 2.5.1?)
10259         if test "$GCC" = yes; then
10260           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10261         else
10262           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10263         fi
10264         ;;
10265       esac
10266       link_all_deplibs=yes
10267       ;;
10268
10269     sunos4*)
10270       if test "x$host_vendor" = xsequent; then
10271         # Use $CC to link under sequent, because it throws in some extra .o
10272         # files that make .init and .fini sections work.
10273         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10274       else
10275         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10276       fi
10277       hardcode_libdir_flag_spec='-L$libdir'
10278       hardcode_direct=yes
10279       hardcode_minus_L=yes
10280       hardcode_shlibpath_var=no
10281       ;;
10282
10283     sysv4)
10284       case $host_vendor in
10285         sni)
10286           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287           hardcode_direct=yes # is this really true???
10288         ;;
10289         siemens)
10290           ## LD is ld it makes a PLAMLIB
10291           ## CC just makes a GrossModule.
10292           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10293           reload_cmds='$CC -r -o $output$reload_objs'
10294           hardcode_direct=no
10295         ;;
10296         motorola)
10297           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10299         ;;
10300       esac
10301       runpath_var='LD_RUN_PATH'
10302       hardcode_shlibpath_var=no
10303       ;;
10304
10305     sysv4.3*)
10306       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307       hardcode_shlibpath_var=no
10308       export_dynamic_flag_spec='-Bexport'
10309       ;;
10310
10311     sysv4*MP*)
10312       if test -d /usr/nec; then
10313         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10314         hardcode_shlibpath_var=no
10315         runpath_var=LD_RUN_PATH
10316         hardcode_runpath_var=yes
10317         ld_shlibs=yes
10318       fi
10319       ;;
10320
10321     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10322       no_undefined_flag='${wl}-z,text'
10323       archive_cmds_need_lc=no
10324       hardcode_shlibpath_var=no
10325       runpath_var='LD_RUN_PATH'
10326
10327       if test "$GCC" = yes; then
10328         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330       else
10331         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10332         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333       fi
10334       ;;
10335
10336     sysv5* | sco3.2v5* | sco5v6*)
10337       # Note: We can NOT use -z defs as we might desire, because we do not
10338       # link with -lc, and that would cause any symbols used from libc to
10339       # always be unresolved, which means just about no library would
10340       # ever link correctly.  If we're not using GNU ld we use -z text
10341       # though, which does catch some bad symbols but isn't as heavy-handed
10342       # as -z defs.
10343       no_undefined_flag='${wl}-z,text'
10344       allow_undefined_flag='${wl}-z,nodefs'
10345       archive_cmds_need_lc=no
10346       hardcode_shlibpath_var=no
10347       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10348       hardcode_libdir_separator=':'
10349       link_all_deplibs=yes
10350       export_dynamic_flag_spec='${wl}-Bexport'
10351       runpath_var='LD_RUN_PATH'
10352
10353       if test "$GCC" = yes; then
10354         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356       else
10357         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359       fi
10360       ;;
10361
10362     uts4*)
10363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364       hardcode_libdir_flag_spec='-L$libdir'
10365       hardcode_shlibpath_var=no
10366       ;;
10367
10368     *)
10369       ld_shlibs=no
10370       ;;
10371     esac
10372
10373     if test x$host_vendor = xsni; then
10374       case $host in
10375       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10376         export_dynamic_flag_spec='${wl}-Blargedynsym'
10377         ;;
10378       esac
10379     fi
10380   fi
10381
10382 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10383 $as_echo "$ld_shlibs" >&6; }
10384 test "$ld_shlibs" = no && can_build_shared=no
10385
10386 with_gnu_ld=$with_gnu_ld
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402 #
10403 # Do we need to explicitly link libc?
10404 #
10405 case "x$archive_cmds_need_lc" in
10406 x|xyes)
10407   # Assume -lc should be added
10408   archive_cmds_need_lc=yes
10409
10410   if test "$enable_shared" = yes && test "$GCC" = yes; then
10411     case $archive_cmds in
10412     *'~'*)
10413       # FIXME: we may have to deal with multi-command sequences.
10414       ;;
10415     '$CC '*)
10416       # Test whether the compiler implicitly links with -lc since on some
10417       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10418       # to ld, don't add -lc before -lgcc.
10419       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10420 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10421       $RM conftest*
10422       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10423
10424       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425   (eval $ac_compile) 2>&5
10426   ac_status=$?
10427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } 2>conftest.err; then
10429         soname=conftest
10430         lib=conftest
10431         libobjs=conftest.$ac_objext
10432         deplibs=
10433         wl=$lt_prog_compiler_wl
10434         pic_flag=$lt_prog_compiler_pic
10435         compiler_flags=-v
10436         linker_flags=-v
10437         verstring=
10438         output_objdir=.
10439         libname=conftest
10440         lt_save_allow_undefined_flag=$allow_undefined_flag
10441         allow_undefined_flag=
10442         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10443   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10444   ac_status=$?
10445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }
10447         then
10448           archive_cmds_need_lc=no
10449         else
10450           archive_cmds_need_lc=yes
10451         fi
10452         allow_undefined_flag=$lt_save_allow_undefined_flag
10453       else
10454         cat conftest.err 1>&5
10455       fi
10456       $RM conftest*
10457       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10458 $as_echo "$archive_cmds_need_lc" >&6; }
10459       ;;
10460     esac
10461   fi
10462   ;;
10463 esac
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10622 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10623
10624 if test "$GCC" = yes; then
10625   case $host_os in
10626     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10627     *) lt_awk_arg="/^libraries:/" ;;
10628   esac
10629   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10630   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10631     # if the path contains ";" then we assume it to be the separator
10632     # otherwise default to the standard path separator (i.e. ":") - it is
10633     # assumed that no part of a normal pathname contains ";" but that should
10634     # okay in the real world where ";" in dirpaths is itself problematic.
10635     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10636   else
10637     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10638   fi
10639   # Ok, now we have the path, separated by spaces, we can step through it
10640   # and add multilib dir if necessary.
10641   lt_tmp_lt_search_path_spec=
10642   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10643   for lt_sys_path in $lt_search_path_spec; do
10644     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10645       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10646     else
10647       test -d "$lt_sys_path" && \
10648         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10649     fi
10650   done
10651   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10652 BEGIN {RS=" "; FS="/|\n";} {
10653   lt_foo="";
10654   lt_count=0;
10655   for (lt_i = NF; lt_i > 0; lt_i--) {
10656     if ($lt_i != "" && $lt_i != ".") {
10657       if ($lt_i == "..") {
10658         lt_count++;
10659       } else {
10660         if (lt_count == 0) {
10661           lt_foo="/" $lt_i lt_foo;
10662         } else {
10663           lt_count--;
10664         }
10665       }
10666     }
10667   }
10668   if (lt_foo != "") { lt_freq[lt_foo]++; }
10669   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10670 }'`
10671   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10672 else
10673   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10674 fi
10675 library_names_spec=
10676 libname_spec='lib$name'
10677 soname_spec=
10678 shrext_cmds=".so"
10679 postinstall_cmds=
10680 postuninstall_cmds=
10681 finish_cmds=
10682 finish_eval=
10683 shlibpath_var=
10684 shlibpath_overrides_runpath=unknown
10685 version_type=none
10686 dynamic_linker="$host_os ld.so"
10687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10688 need_lib_prefix=unknown
10689 hardcode_into_libs=no
10690
10691 # when you set need_version to no, make sure it does not cause -set_version
10692 # flags to be left without arguments
10693 need_version=unknown
10694
10695 case $host_os in
10696 aix3*)
10697   version_type=linux
10698   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10699   shlibpath_var=LIBPATH
10700
10701   # AIX 3 has no versioning support, so we append a major version to the name.
10702   soname_spec='${libname}${release}${shared_ext}$major'
10703   ;;
10704
10705 aix[4-9]*)
10706   version_type=linux
10707   need_lib_prefix=no
10708   need_version=no
10709   hardcode_into_libs=yes
10710   if test "$host_cpu" = ia64; then
10711     # AIX 5 supports IA64
10712     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10713     shlibpath_var=LD_LIBRARY_PATH
10714   else
10715     # With GCC up to 2.95.x, collect2 would create an import file
10716     # for dependence libraries.  The import file would start with
10717     # the line `#! .'.  This would cause the generated library to
10718     # depend on `.', always an invalid library.  This was fixed in
10719     # development snapshots of GCC prior to 3.0.
10720     case $host_os in
10721       aix4 | aix4.[01] | aix4.[01].*)
10722       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10723            echo ' yes '
10724            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10725         :
10726       else
10727         can_build_shared=no
10728       fi
10729       ;;
10730     esac
10731     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10732     # soname into executable. Probably we can add versioning support to
10733     # collect2, so additional links can be useful in future.
10734     if test "$aix_use_runtimelinking" = yes; then
10735       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10736       # instead of lib<name>.a to let people know that these are not
10737       # typical AIX shared libraries.
10738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739     else
10740       # We preserve .a as extension for shared libraries through AIX4.2
10741       # and later when we are not doing run time linking.
10742       library_names_spec='${libname}${release}.a $libname.a'
10743       soname_spec='${libname}${release}${shared_ext}$major'
10744     fi
10745     shlibpath_var=LIBPATH
10746   fi
10747   ;;
10748
10749 amigaos*)
10750   case $host_cpu in
10751   powerpc)
10752     # Since July 2007 AmigaOS4 officially supports .so libraries.
10753     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755     ;;
10756   m68k)
10757     library_names_spec='$libname.ixlibrary $libname.a'
10758     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10759     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10760     ;;
10761   esac
10762   ;;
10763
10764 beos*)
10765   library_names_spec='${libname}${shared_ext}'
10766   dynamic_linker="$host_os ld.so"
10767   shlibpath_var=LIBRARY_PATH
10768   ;;
10769
10770 bsdi[45]*)
10771   version_type=linux
10772   need_version=no
10773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774   soname_spec='${libname}${release}${shared_ext}$major'
10775   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10778   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10779   # the default ld.so.conf also contains /usr/contrib/lib and
10780   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10781   # libtool to hard-code these into programs
10782   ;;
10783
10784 cygwin* | mingw* | pw32* | cegcc*)
10785   version_type=windows
10786   shrext_cmds=".dll"
10787   need_version=no
10788   need_lib_prefix=no
10789
10790   case $GCC,$host_os in
10791   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10792     library_names_spec='$libname.dll.a'
10793     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10794     postinstall_cmds='base_file=`basename \${file}`~
10795       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10796       dldir=$destdir/`dirname \$dlpath`~
10797       test -d \$dldir || mkdir -p \$dldir~
10798       $install_prog $dir/$dlname \$dldir/$dlname~
10799       chmod a+x \$dldir/$dlname~
10800       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10801         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10802       fi'
10803     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10804       dlpath=$dir/\$dldll~
10805        $RM \$dlpath'
10806     shlibpath_overrides_runpath=yes
10807
10808     case $host_os in
10809     cygwin*)
10810       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10811       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10812       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10813       ;;
10814     mingw* | cegcc*)
10815       # MinGW DLLs use traditional 'lib' prefix
10816       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10818       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10819         # It is most probably a Windows format PATH printed by
10820         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10821         # path with ; separators, and with drive letters. We can handle the
10822         # drive letters (cygwin fileutils understands them), so leave them,
10823         # especially as we might pass files found there to a mingw objdump,
10824         # which wouldn't understand a cygwinified path. Ahh.
10825         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10826       else
10827         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10828       fi
10829       ;;
10830     pw32*)
10831       # pw32 DLLs use 'pw' prefix rather than 'lib'
10832       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10833       ;;
10834     esac
10835     ;;
10836
10837   *)
10838     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10839     ;;
10840   esac
10841   dynamic_linker='Win32 ld.exe'
10842   # FIXME: first we should search . and the directory the executable is in
10843   shlibpath_var=PATH
10844   ;;
10845
10846 darwin* | rhapsody*)
10847   dynamic_linker="$host_os dyld"
10848   version_type=darwin
10849   need_lib_prefix=no
10850   need_version=no
10851   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10852   soname_spec='${libname}${release}${major}$shared_ext'
10853   shlibpath_overrides_runpath=yes
10854   shlibpath_var=DYLD_LIBRARY_PATH
10855   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10856
10857   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10858   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10859   ;;
10860
10861 dgux*)
10862   version_type=linux
10863   need_lib_prefix=no
10864   need_version=no
10865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10866   soname_spec='${libname}${release}${shared_ext}$major'
10867   shlibpath_var=LD_LIBRARY_PATH
10868   ;;
10869
10870 freebsd1*)
10871   dynamic_linker=no
10872   ;;
10873
10874 freebsd* | dragonfly*)
10875   # DragonFly does not have aout.  When/if they implement a new
10876   # versioning mechanism, adjust this.
10877   if test -x /usr/bin/objformat; then
10878     objformat=`/usr/bin/objformat`
10879   else
10880     case $host_os in
10881     freebsd[123]*) objformat=aout ;;
10882     *) objformat=elf ;;
10883     esac
10884   fi
10885   version_type=freebsd-$objformat
10886   case $version_type in
10887     freebsd-elf*)
10888       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10889       need_version=no
10890       need_lib_prefix=no
10891       ;;
10892     freebsd-*)
10893       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10894       need_version=yes
10895       ;;
10896   esac
10897   shlibpath_var=LD_LIBRARY_PATH
10898   case $host_os in
10899   freebsd2*)
10900     shlibpath_overrides_runpath=yes
10901     ;;
10902   freebsd3.[01]* | freebsdelf3.[01]*)
10903     shlibpath_overrides_runpath=yes
10904     hardcode_into_libs=yes
10905     ;;
10906   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10907   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10908     shlibpath_overrides_runpath=no
10909     hardcode_into_libs=yes
10910     ;;
10911   *) # from 4.6 on, and DragonFly
10912     shlibpath_overrides_runpath=yes
10913     hardcode_into_libs=yes
10914     ;;
10915   esac
10916   ;;
10917
10918 gnu*)
10919   version_type=linux
10920   need_lib_prefix=no
10921   need_version=no
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10923   soname_spec='${libname}${release}${shared_ext}$major'
10924   shlibpath_var=LD_LIBRARY_PATH
10925   hardcode_into_libs=yes
10926   ;;
10927
10928 hpux9* | hpux10* | hpux11*)
10929   # Give a soname corresponding to the major version so that dld.sl refuses to
10930   # link against other versions.
10931   version_type=sunos
10932   need_lib_prefix=no
10933   need_version=no
10934   case $host_cpu in
10935   ia64*)
10936     shrext_cmds='.so'
10937     hardcode_into_libs=yes
10938     dynamic_linker="$host_os dld.so"
10939     shlibpath_var=LD_LIBRARY_PATH
10940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942     soname_spec='${libname}${release}${shared_ext}$major'
10943     if test "X$HPUX_IA64_MODE" = X32; then
10944       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945     else
10946       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10947     fi
10948     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10949     ;;
10950   hppa*64*)
10951     shrext_cmds='.sl'
10952     hardcode_into_libs=yes
10953     dynamic_linker="$host_os dld.sl"
10954     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10955     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957     soname_spec='${libname}${release}${shared_ext}$major'
10958     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10959     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10960     ;;
10961   *)
10962     shrext_cmds='.sl'
10963     dynamic_linker="$host_os dld.sl"
10964     shlibpath_var=SHLIB_PATH
10965     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967     soname_spec='${libname}${release}${shared_ext}$major'
10968     ;;
10969   esac
10970   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10971   postinstall_cmds='chmod 555 $lib'
10972   ;;
10973
10974 interix[3-9]*)
10975   version_type=linux
10976   need_lib_prefix=no
10977   need_version=no
10978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10979   soname_spec='${libname}${release}${shared_ext}$major'
10980   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10981   shlibpath_var=LD_LIBRARY_PATH
10982   shlibpath_overrides_runpath=no
10983   hardcode_into_libs=yes
10984   ;;
10985
10986 irix5* | irix6* | nonstopux*)
10987   case $host_os in
10988     nonstopux*) version_type=nonstopux ;;
10989     *)
10990         if test "$lt_cv_prog_gnu_ld" = yes; then
10991                 version_type=linux
10992         else
10993                 version_type=irix
10994         fi ;;
10995   esac
10996   need_lib_prefix=no
10997   need_version=no
10998   soname_spec='${libname}${release}${shared_ext}$major'
10999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11000   case $host_os in
11001   irix5* | nonstopux*)
11002     libsuff= shlibsuff=
11003     ;;
11004   *)
11005     case $LD in # libtool.m4 will add one of these switches to LD
11006     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11007       libsuff= shlibsuff= libmagic=32-bit;;
11008     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11009       libsuff=32 shlibsuff=N32 libmagic=N32;;
11010     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11011       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11012     *) libsuff= shlibsuff= libmagic=never-match;;
11013     esac
11014     ;;
11015   esac
11016   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11017   shlibpath_overrides_runpath=no
11018   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11019   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11020   hardcode_into_libs=yes
11021   ;;
11022
11023 # No shared lib support for Linux oldld, aout, or coff.
11024 linux*oldld* | linux*aout* | linux*coff*)
11025   dynamic_linker=no
11026   ;;
11027
11028 # This must be Linux ELF.
11029 linux* | k*bsd*-gnu)
11030   version_type=linux
11031   need_lib_prefix=no
11032   need_version=no
11033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034   soname_spec='${libname}${release}${shared_ext}$major'
11035   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11036   shlibpath_var=LD_LIBRARY_PATH
11037   shlibpath_overrides_runpath=no
11038   # Some binutils ld are patched to set DT_RUNPATH
11039   save_LDFLAGS=$LDFLAGS
11040   save_libdir=$libdir
11041   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11042        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11043   cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h.  */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h.  */
11049
11050 int
11051 main ()
11052 {
11053
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066   (eval "$ac_link") 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } && {
11073          test -z "$ac_c_werror_flag" ||
11074          test ! -s conftest.err
11075        } && test -s conftest$ac_exeext && {
11076          test "$cross_compiling" = yes ||
11077          $as_test_x conftest$ac_exeext
11078        }; then
11079   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11080   shlibpath_overrides_runpath=yes
11081 fi
11082
11083 else
11084   $as_echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087
11088 fi
11089
11090 rm -rf conftest.dSYM
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092       conftest$ac_exeext conftest.$ac_ext
11093   LDFLAGS=$save_LDFLAGS
11094   libdir=$save_libdir
11095
11096   # This implies no fast_install, which is unacceptable.
11097   # Some rework will be needed to allow for fast_install
11098   # before this can be enabled.
11099   hardcode_into_libs=yes
11100
11101   # Add ABI-specific directories to the system library path.
11102   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11103
11104   # Append ld.so.conf contents to the search path
11105   if test -f /etc/ld.so.conf; then
11106     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;/^$/d' | tr '\n' ' '`
11107     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11108   fi
11109
11110   # We used to test for /lib/ld.so.1 and disable shared libraries on
11111   # powerpc, because MkLinux only supported shared libraries with the
11112   # GNU dynamic linker.  Since this was broken with cross compilers,
11113   # most powerpc-linux boxes support dynamic linking these days and
11114   # people can always --disable-shared, the test was removed, and we
11115   # assume the GNU/Linux dynamic linker is in use.
11116   dynamic_linker='GNU/Linux ld.so'
11117   ;;
11118
11119 netbsd*)
11120   version_type=sunos
11121   need_lib_prefix=no
11122   need_version=no
11123   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11126     dynamic_linker='NetBSD (a.out) ld.so'
11127   else
11128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11129     soname_spec='${libname}${release}${shared_ext}$major'
11130     dynamic_linker='NetBSD ld.elf_so'
11131   fi
11132   shlibpath_var=LD_LIBRARY_PATH
11133   shlibpath_overrides_runpath=yes
11134   hardcode_into_libs=yes
11135   ;;
11136
11137 newsos6)
11138   version_type=linux
11139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   shlibpath_overrides_runpath=yes
11142   ;;
11143
11144 *nto* | *qnx*)
11145   version_type=qnx
11146   need_lib_prefix=no
11147   need_version=no
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149   soname_spec='${libname}${release}${shared_ext}$major'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   shlibpath_overrides_runpath=no
11152   hardcode_into_libs=yes
11153   dynamic_linker='ldqnx.so'
11154   ;;
11155
11156 openbsd*)
11157   version_type=sunos
11158   sys_lib_dlsearch_path_spec="/usr/lib"
11159   need_lib_prefix=no
11160   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11161   case $host_os in
11162     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11163     *)                          need_version=no  ;;
11164   esac
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11169     case $host_os in
11170       openbsd2.[89] | openbsd2.[89].*)
11171         shlibpath_overrides_runpath=no
11172         ;;
11173       *)
11174         shlibpath_overrides_runpath=yes
11175         ;;
11176       esac
11177   else
11178     shlibpath_overrides_runpath=yes
11179   fi
11180   ;;
11181
11182 os2*)
11183   libname_spec='$name'
11184   shrext_cmds=".dll"
11185   need_lib_prefix=no
11186   library_names_spec='$libname${shared_ext} $libname.a'
11187   dynamic_linker='OS/2 ld.exe'
11188   shlibpath_var=LIBPATH
11189   ;;
11190
11191 osf3* | osf4* | osf5*)
11192   version_type=osf
11193   need_lib_prefix=no
11194   need_version=no
11195   soname_spec='${libname}${release}${shared_ext}$major'
11196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197   shlibpath_var=LD_LIBRARY_PATH
11198   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11199   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11200   ;;
11201
11202 rdos*)
11203   dynamic_linker=no
11204   ;;
11205
11206 solaris*)
11207   version_type=linux
11208   need_lib_prefix=no
11209   need_version=no
11210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211   soname_spec='${libname}${release}${shared_ext}$major'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   shlibpath_overrides_runpath=yes
11214   hardcode_into_libs=yes
11215   # ldd complains unless libraries are executable
11216   postinstall_cmds='chmod +x $lib'
11217   ;;
11218
11219 sunos4*)
11220   version_type=sunos
11221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=yes
11225   if test "$with_gnu_ld" = yes; then
11226     need_lib_prefix=no
11227   fi
11228   need_version=yes
11229   ;;
11230
11231 sysv4 | sysv4.3*)
11232   version_type=linux
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234   soname_spec='${libname}${release}${shared_ext}$major'
11235   shlibpath_var=LD_LIBRARY_PATH
11236   case $host_vendor in
11237     sni)
11238       shlibpath_overrides_runpath=no
11239       need_lib_prefix=no
11240       runpath_var=LD_RUN_PATH
11241       ;;
11242     siemens)
11243       need_lib_prefix=no
11244       ;;
11245     motorola)
11246       need_lib_prefix=no
11247       need_version=no
11248       shlibpath_overrides_runpath=no
11249       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11250       ;;
11251   esac
11252   ;;
11253
11254 sysv4*MP*)
11255   if test -d /usr/nec ;then
11256     version_type=linux
11257     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11258     soname_spec='$libname${shared_ext}.$major'
11259     shlibpath_var=LD_LIBRARY_PATH
11260   fi
11261   ;;
11262
11263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11264   version_type=freebsd-elf
11265   need_lib_prefix=no
11266   need_version=no
11267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11268   soname_spec='${libname}${release}${shared_ext}$major'
11269   shlibpath_var=LD_LIBRARY_PATH
11270   shlibpath_overrides_runpath=yes
11271   hardcode_into_libs=yes
11272   if test "$with_gnu_ld" = yes; then
11273     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11274   else
11275     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11276     case $host_os in
11277       sco3.2v5*)
11278         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11279         ;;
11280     esac
11281   fi
11282   sys_lib_dlsearch_path_spec='/usr/lib'
11283   ;;
11284
11285 tpf*)
11286   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11287   version_type=linux
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291   shlibpath_var=LD_LIBRARY_PATH
11292   shlibpath_overrides_runpath=no
11293   hardcode_into_libs=yes
11294   ;;
11295
11296 uts4*)
11297   version_type=linux
11298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299   soname_spec='${libname}${release}${shared_ext}$major'
11300   shlibpath_var=LD_LIBRARY_PATH
11301   ;;
11302
11303 *)
11304   dynamic_linker=no
11305   ;;
11306 esac
11307 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11308 $as_echo "$dynamic_linker" >&6; }
11309 test "$dynamic_linker" = no && can_build_shared=no
11310
11311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11312 if test "$GCC" = yes; then
11313   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11314 fi
11315
11316 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11317   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11318 fi
11319 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11320   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11321 fi
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11410 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11411 hardcode_action=
11412 if test -n "$hardcode_libdir_flag_spec" ||
11413    test -n "$runpath_var" ||
11414    test "X$hardcode_automatic" = "Xyes" ; then
11415
11416   # We can hardcode non-existent directories.
11417   if test "$hardcode_direct" != no &&
11418      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11419      # have to relink, otherwise we might link with an installed library
11420      # when we should be linking with a yet-to-be-installed one
11421      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11422      test "$hardcode_minus_L" != no; then
11423     # Linking always hardcodes the temporary library directory.
11424     hardcode_action=relink
11425   else
11426     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11427     hardcode_action=immediate
11428   fi
11429 else
11430   # We cannot hardcode anything, or else we can only hardcode existing
11431   # directories.
11432   hardcode_action=unsupported
11433 fi
11434 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11435 $as_echo "$hardcode_action" >&6; }
11436
11437 if test "$hardcode_action" = relink ||
11438    test "$inherit_rpath" = yes; then
11439   # Fast installation is not supported
11440   enable_fast_install=no
11441 elif test "$shlibpath_overrides_runpath" = yes ||
11442      test "$enable_shared" = no; then
11443   # Fast installation is not necessary
11444   enable_fast_install=needless
11445 fi
11446
11447
11448
11449
11450
11451
11452   if test "x$enable_dlopen" != xyes; then
11453   enable_dlopen=unknown
11454   enable_dlopen_self=unknown
11455   enable_dlopen_self_static=unknown
11456 else
11457   lt_cv_dlopen=no
11458   lt_cv_dlopen_libs=
11459
11460   case $host_os in
11461   beos*)
11462     lt_cv_dlopen="load_add_on"
11463     lt_cv_dlopen_libs=
11464     lt_cv_dlopen_self=yes
11465     ;;
11466
11467   mingw* | pw32* | cegcc*)
11468     lt_cv_dlopen="LoadLibrary"
11469     lt_cv_dlopen_libs=
11470     ;;
11471
11472   cygwin*)
11473     lt_cv_dlopen="dlopen"
11474     lt_cv_dlopen_libs=
11475     ;;
11476
11477   darwin*)
11478   # if libdl is installed we need to link against it
11479     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11480 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11482   $as_echo_n "(cached) " >&6
11483 else
11484   ac_check_lib_save_LIBS=$LIBS
11485 LIBS="-ldl  $LIBS"
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492
11493 /* Override any GCC internal prototype to avoid an error.
11494    Use char because int might match the return type of a GCC
11495    builtin and then its argument prototype would still apply.  */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char dlopen ();
11500 int
11501 main ()
11502 {
11503 return dlopen ();
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (ac_try="$ac_link"
11510 case "(($ac_try" in
11511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512   *) ac_try_echo=$ac_try;;
11513 esac
11514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11515 $as_echo "$ac_try_echo") >&5
11516   (eval "$ac_link") 2>conftest.er1
11517   ac_status=$?
11518   grep -v '^ *+' conftest.er1 >conftest.err
11519   rm -f conftest.er1
11520   cat conftest.err >&5
11521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); } && {
11523          test -z "$ac_c_werror_flag" ||
11524          test ! -s conftest.err
11525        } && test -s conftest$ac_exeext && {
11526          test "$cross_compiling" = yes ||
11527          $as_test_x conftest$ac_exeext
11528        }; then
11529   ac_cv_lib_dl_dlopen=yes
11530 else
11531   $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534         ac_cv_lib_dl_dlopen=no
11535 fi
11536
11537 rm -rf conftest.dSYM
11538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11539       conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11541 fi
11542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11543 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11544 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11545   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11546 else
11547
11548     lt_cv_dlopen="dyld"
11549     lt_cv_dlopen_libs=
11550     lt_cv_dlopen_self=yes
11551
11552 fi
11553
11554     ;;
11555
11556   *)
11557     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11558 $as_echo_n "checking for shl_load... " >&6; }
11559 if test "${ac_cv_func_shl_load+set}" = set; then
11560   $as_echo_n "(cached) " >&6
11561 else
11562   cat >conftest.$ac_ext <<_ACEOF
11563 /* confdefs.h.  */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h.  */
11568 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11570 #define shl_load innocuous_shl_load
11571
11572 /* System header to define __stub macros and hopefully few prototypes,
11573     which can conflict with char shl_load (); below.
11574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11575     <limits.h> exists even on freestanding compilers.  */
11576
11577 #ifdef __STDC__
11578 # include <limits.h>
11579 #else
11580 # include <assert.h>
11581 #endif
11582
11583 #undef shl_load
11584
11585 /* Override any GCC internal prototype to avoid an error.
11586    Use char because int might match the return type of a GCC
11587    builtin and then its argument prototype would still apply.  */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char shl_load ();
11592 /* The GNU C library defines this for functions which it implements
11593     to always fail with ENOSYS.  Some functions are actually named
11594     something starting with __ and the normal name is an alias.  */
11595 #if defined __stub_shl_load || defined __stub___shl_load
11596 choke me
11597 #endif
11598
11599 int
11600 main ()
11601 {
11602 return shl_load ();
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (ac_try="$ac_link"
11609 case "(($ac_try" in
11610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611   *) ac_try_echo=$ac_try;;
11612 esac
11613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614 $as_echo "$ac_try_echo") >&5
11615   (eval "$ac_link") 2>conftest.er1
11616   ac_status=$?
11617   grep -v '^ *+' conftest.er1 >conftest.err
11618   rm -f conftest.er1
11619   cat conftest.err >&5
11620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } && {
11622          test -z "$ac_c_werror_flag" ||
11623          test ! -s conftest.err
11624        } && test -s conftest$ac_exeext && {
11625          test "$cross_compiling" = yes ||
11626          $as_test_x conftest$ac_exeext
11627        }; then
11628   ac_cv_func_shl_load=yes
11629 else
11630   $as_echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633         ac_cv_func_shl_load=no
11634 fi
11635
11636 rm -rf conftest.dSYM
11637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11638       conftest$ac_exeext conftest.$ac_ext
11639 fi
11640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11641 $as_echo "$ac_cv_func_shl_load" >&6; }
11642 if test "x$ac_cv_func_shl_load" = x""yes; then
11643   lt_cv_dlopen="shl_load"
11644 else
11645   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11646 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11647 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11648   $as_echo_n "(cached) " >&6
11649 else
11650   ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-ldld  $LIBS"
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char shl_load ();
11666 int
11667 main ()
11668 {
11669 return shl_load ();
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11681 $as_echo "$ac_try_echo") >&5
11682   (eval "$ac_link") 2>conftest.er1
11683   ac_status=$?
11684   grep -v '^ *+' conftest.er1 >conftest.err
11685   rm -f conftest.er1
11686   cat conftest.err >&5
11687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } && {
11689          test -z "$ac_c_werror_flag" ||
11690          test ! -s conftest.err
11691        } && test -s conftest$ac_exeext && {
11692          test "$cross_compiling" = yes ||
11693          $as_test_x conftest$ac_exeext
11694        }; then
11695   ac_cv_lib_dld_shl_load=yes
11696 else
11697   $as_echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700         ac_cv_lib_dld_shl_load=no
11701 fi
11702
11703 rm -rf conftest.dSYM
11704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11705       conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11709 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11710 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11711   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11712 else
11713   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11714 $as_echo_n "checking for dlopen... " >&6; }
11715 if test "${ac_cv_func_dlopen+set}" = set; then
11716   $as_echo_n "(cached) " >&6
11717 else
11718   cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11726 #define dlopen innocuous_dlopen
11727
11728 /* System header to define __stub macros and hopefully few prototypes,
11729     which can conflict with char dlopen (); below.
11730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11731     <limits.h> exists even on freestanding compilers.  */
11732
11733 #ifdef __STDC__
11734 # include <limits.h>
11735 #else
11736 # include <assert.h>
11737 #endif
11738
11739 #undef dlopen
11740
11741 /* Override any GCC internal prototype to avoid an error.
11742    Use char because int might match the return type of a GCC
11743    builtin and then its argument prototype would still apply.  */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 char dlopen ();
11748 /* The GNU C library defines this for functions which it implements
11749     to always fail with ENOSYS.  Some functions are actually named
11750     something starting with __ and the normal name is an alias.  */
11751 #if defined __stub_dlopen || defined __stub___dlopen
11752 choke me
11753 #endif
11754
11755 int
11756 main ()
11757 {
11758 return dlopen ();
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (ac_try="$ac_link"
11765 case "(($ac_try" in
11766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767   *) ac_try_echo=$ac_try;;
11768 esac
11769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11770 $as_echo "$ac_try_echo") >&5
11771   (eval "$ac_link") 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } && {
11778          test -z "$ac_c_werror_flag" ||
11779          test ! -s conftest.err
11780        } && test -s conftest$ac_exeext && {
11781          test "$cross_compiling" = yes ||
11782          $as_test_x conftest$ac_exeext
11783        }; then
11784   ac_cv_func_dlopen=yes
11785 else
11786   $as_echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789         ac_cv_func_dlopen=no
11790 fi
11791
11792 rm -rf conftest.dSYM
11793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11794       conftest$ac_exeext conftest.$ac_ext
11795 fi
11796 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11797 $as_echo "$ac_cv_func_dlopen" >&6; }
11798 if test "x$ac_cv_func_dlopen" = x""yes; then
11799   lt_cv_dlopen="dlopen"
11800 else
11801   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11804   $as_echo_n "(cached) " >&6
11805 else
11806   ac_check_lib_save_LIBS=$LIBS
11807 LIBS="-ldl  $LIBS"
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h.  */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h.  */
11814
11815 /* Override any GCC internal prototype to avoid an error.
11816    Use char because int might match the return type of a GCC
11817    builtin and then its argument prototype would still apply.  */
11818 #ifdef __cplusplus
11819 extern "C"
11820 #endif
11821 char dlopen ();
11822 int
11823 main ()
11824 {
11825 return dlopen ();
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 rm -f conftest.$ac_objext conftest$ac_exeext
11831 if { (ac_try="$ac_link"
11832 case "(($ac_try" in
11833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834   *) ac_try_echo=$ac_try;;
11835 esac
11836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11837 $as_echo "$ac_try_echo") >&5
11838   (eval "$ac_link") 2>conftest.er1
11839   ac_status=$?
11840   grep -v '^ *+' conftest.er1 >conftest.err
11841   rm -f conftest.er1
11842   cat conftest.err >&5
11843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); } && {
11845          test -z "$ac_c_werror_flag" ||
11846          test ! -s conftest.err
11847        } && test -s conftest$ac_exeext && {
11848          test "$cross_compiling" = yes ||
11849          $as_test_x conftest$ac_exeext
11850        }; then
11851   ac_cv_lib_dl_dlopen=yes
11852 else
11853   $as_echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856         ac_cv_lib_dl_dlopen=no
11857 fi
11858
11859 rm -rf conftest.dSYM
11860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11861       conftest$ac_exeext conftest.$ac_ext
11862 LIBS=$ac_check_lib_save_LIBS
11863 fi
11864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11866 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11867   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11868 else
11869   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11870 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11871 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11872   $as_echo_n "(cached) " >&6
11873 else
11874   ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lsvld  $LIBS"
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882
11883 /* Override any GCC internal prototype to avoid an error.
11884    Use char because int might match the return type of a GCC
11885    builtin and then its argument prototype would still apply.  */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char dlopen ();
11890 int
11891 main ()
11892 {
11893 return dlopen ();
11894   ;
11895   return 0;
11896 }
11897 _ACEOF
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (ac_try="$ac_link"
11900 case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905 $as_echo "$ac_try_echo") >&5
11906   (eval "$ac_link") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } && {
11913          test -z "$ac_c_werror_flag" ||
11914          test ! -s conftest.err
11915        } && test -s conftest$ac_exeext && {
11916          test "$cross_compiling" = yes ||
11917          $as_test_x conftest$ac_exeext
11918        }; then
11919   ac_cv_lib_svld_dlopen=yes
11920 else
11921   $as_echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924         ac_cv_lib_svld_dlopen=no
11925 fi
11926
11927 rm -rf conftest.dSYM
11928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11929       conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11931 fi
11932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11933 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11934 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11935   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11936 else
11937   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11938 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11940   $as_echo_n "(cached) " >&6
11941 else
11942   ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-ldld  $LIBS"
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h.  */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h.  */
11950
11951 /* Override any GCC internal prototype to avoid an error.
11952    Use char because int might match the return type of a GCC
11953    builtin and then its argument prototype would still apply.  */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 char dld_link ();
11958 int
11959 main ()
11960 {
11961 return dld_link ();
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11973 $as_echo "$ac_try_echo") >&5
11974   (eval "$ac_link") 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } && {
11981          test -z "$ac_c_werror_flag" ||
11982          test ! -s conftest.err
11983        } && test -s conftest$ac_exeext && {
11984          test "$cross_compiling" = yes ||
11985          $as_test_x conftest$ac_exeext
11986        }; then
11987   ac_cv_lib_dld_dld_link=yes
11988 else
11989   $as_echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992         ac_cv_lib_dld_dld_link=no
11993 fi
11994
11995 rm -rf conftest.dSYM
11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997       conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
11999 fi
12000 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12001 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12002 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12003   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12004 fi
12005
12006
12007 fi
12008
12009
12010 fi
12011
12012
12013 fi
12014
12015
12016 fi
12017
12018
12019 fi
12020
12021     ;;
12022   esac
12023
12024   if test "x$lt_cv_dlopen" != xno; then
12025     enable_dlopen=yes
12026   else
12027     enable_dlopen=no
12028   fi
12029
12030   case $lt_cv_dlopen in
12031   dlopen)
12032     save_CPPFLAGS="$CPPFLAGS"
12033     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12034
12035     save_LDFLAGS="$LDFLAGS"
12036     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12037
12038     save_LIBS="$LIBS"
12039     LIBS="$lt_cv_dlopen_libs $LIBS"
12040
12041     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12042 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12043 if test "${lt_cv_dlopen_self+set}" = set; then
12044   $as_echo_n "(cached) " >&6
12045 else
12046           if test "$cross_compiling" = yes; then :
12047   lt_cv_dlopen_self=cross
12048 else
12049   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12050   lt_status=$lt_dlunknown
12051   cat > conftest.$ac_ext <<_LT_EOF
12052 #line 12052 "configure"
12053 #include "confdefs.h"
12054
12055 #if HAVE_DLFCN_H
12056 #include <dlfcn.h>
12057 #endif
12058
12059 #include <stdio.h>
12060
12061 #ifdef RTLD_GLOBAL
12062 #  define LT_DLGLOBAL           RTLD_GLOBAL
12063 #else
12064 #  ifdef DL_GLOBAL
12065 #    define LT_DLGLOBAL         DL_GLOBAL
12066 #  else
12067 #    define LT_DLGLOBAL         0
12068 #  endif
12069 #endif
12070
12071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12072    find out it does not work in some platform. */
12073 #ifndef LT_DLLAZY_OR_NOW
12074 #  ifdef RTLD_LAZY
12075 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12076 #  else
12077 #    ifdef DL_LAZY
12078 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12079 #    else
12080 #      ifdef RTLD_NOW
12081 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12082 #      else
12083 #        ifdef DL_NOW
12084 #          define LT_DLLAZY_OR_NOW      DL_NOW
12085 #        else
12086 #          define LT_DLLAZY_OR_NOW      0
12087 #        endif
12088 #      endif
12089 #    endif
12090 #  endif
12091 #endif
12092
12093 void fnord() { int i=42;}
12094 int main ()
12095 {
12096   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12097   int status = $lt_dlunknown;
12098
12099   if (self)
12100     {
12101       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12102       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12103       /* dlclose (self); */
12104     }
12105   else
12106     puts (dlerror ());
12107
12108   return status;
12109 }
12110 _LT_EOF
12111   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112   (eval $ac_link) 2>&5
12113   ac_status=$?
12114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12116     (./conftest; exit; ) >&5 2>/dev/null
12117     lt_status=$?
12118     case x$lt_status in
12119       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12120       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12121       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12122     esac
12123   else :
12124     # compilation failed
12125     lt_cv_dlopen_self=no
12126   fi
12127 fi
12128 rm -fr conftest*
12129
12130
12131 fi
12132 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12133 $as_echo "$lt_cv_dlopen_self" >&6; }
12134
12135     if test "x$lt_cv_dlopen_self" = xyes; then
12136       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12137       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12139 if test "${lt_cv_dlopen_self_static+set}" = set; then
12140   $as_echo_n "(cached) " >&6
12141 else
12142           if test "$cross_compiling" = yes; then :
12143   lt_cv_dlopen_self_static=cross
12144 else
12145   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12146   lt_status=$lt_dlunknown
12147   cat > conftest.$ac_ext <<_LT_EOF
12148 #line 12148 "configure"
12149 #include "confdefs.h"
12150
12151 #if HAVE_DLFCN_H
12152 #include <dlfcn.h>
12153 #endif
12154
12155 #include <stdio.h>
12156
12157 #ifdef RTLD_GLOBAL
12158 #  define LT_DLGLOBAL           RTLD_GLOBAL
12159 #else
12160 #  ifdef DL_GLOBAL
12161 #    define LT_DLGLOBAL         DL_GLOBAL
12162 #  else
12163 #    define LT_DLGLOBAL         0
12164 #  endif
12165 #endif
12166
12167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12168    find out it does not work in some platform. */
12169 #ifndef LT_DLLAZY_OR_NOW
12170 #  ifdef RTLD_LAZY
12171 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12172 #  else
12173 #    ifdef DL_LAZY
12174 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12175 #    else
12176 #      ifdef RTLD_NOW
12177 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12178 #      else
12179 #        ifdef DL_NOW
12180 #          define LT_DLLAZY_OR_NOW      DL_NOW
12181 #        else
12182 #          define LT_DLLAZY_OR_NOW      0
12183 #        endif
12184 #      endif
12185 #    endif
12186 #  endif
12187 #endif
12188
12189 void fnord() { int i=42;}
12190 int main ()
12191 {
12192   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12193   int status = $lt_dlunknown;
12194
12195   if (self)
12196     {
12197       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12198       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12199       /* dlclose (self); */
12200     }
12201   else
12202     puts (dlerror ());
12203
12204   return status;
12205 }
12206 _LT_EOF
12207   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208   (eval $ac_link) 2>&5
12209   ac_status=$?
12210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12212     (./conftest; exit; ) >&5 2>/dev/null
12213     lt_status=$?
12214     case x$lt_status in
12215       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12216       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12217       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12218     esac
12219   else :
12220     # compilation failed
12221     lt_cv_dlopen_self_static=no
12222   fi
12223 fi
12224 rm -fr conftest*
12225
12226
12227 fi
12228 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12229 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12230     fi
12231
12232     CPPFLAGS="$save_CPPFLAGS"
12233     LDFLAGS="$save_LDFLAGS"
12234     LIBS="$save_LIBS"
12235     ;;
12236   esac
12237
12238   case $lt_cv_dlopen_self in
12239   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12240   *) enable_dlopen_self=unknown ;;
12241   esac
12242
12243   case $lt_cv_dlopen_self_static in
12244   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12245   *) enable_dlopen_self_static=unknown ;;
12246   esac
12247 fi
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265 striplib=
12266 old_striplib=
12267 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12268 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12269 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12270   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12271   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12272   { $as_echo "$as_me:$LINENO: result: yes" >&5
12273 $as_echo "yes" >&6; }
12274 else
12275 # FIXME - insert some real tests, host_os isn't really good enough
12276   case $host_os in
12277   darwin*)
12278     if test -n "$STRIP" ; then
12279       striplib="$STRIP -x"
12280       old_striplib="$STRIP -S"
12281       { $as_echo "$as_me:$LINENO: result: yes" >&5
12282 $as_echo "yes" >&6; }
12283     else
12284       { $as_echo "$as_me:$LINENO: result: no" >&5
12285 $as_echo "no" >&6; }
12286     fi
12287     ;;
12288   *)
12289     { $as_echo "$as_me:$LINENO: result: no" >&5
12290 $as_echo "no" >&6; }
12291     ;;
12292   esac
12293 fi
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306   # Report which library types will actually be built
12307   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12308 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12309   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12310 $as_echo "$can_build_shared" >&6; }
12311
12312   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12313 $as_echo_n "checking whether to build shared libraries... " >&6; }
12314   test "$can_build_shared" = "no" && enable_shared=no
12315
12316   # On AIX, shared libraries and static libraries use the same namespace, and
12317   # are all built from PIC.
12318   case $host_os in
12319   aix3*)
12320     test "$enable_shared" = yes && enable_static=no
12321     if test -n "$RANLIB"; then
12322       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12323       postinstall_cmds='$RANLIB $lib'
12324     fi
12325     ;;
12326
12327   aix[4-9]*)
12328     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12329       test "$enable_shared" = yes && enable_static=no
12330     fi
12331     ;;
12332   esac
12333   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12334 $as_echo "$enable_shared" >&6; }
12335
12336   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12337 $as_echo_n "checking whether to build static libraries... " >&6; }
12338   # Make sure either enable_shared or enable_static is yes.
12339   test "$enable_shared" = yes || enable_static=yes
12340   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12341 $as_echo "$enable_static" >&6; }
12342
12343
12344
12345
12346 fi
12347 ac_ext=c
12348 ac_cpp='$CPP $CPPFLAGS'
12349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12352
12353 CC="$lt_save_CC"
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367         ac_config_commands="$ac_config_commands libtool"
12368
12369
12370
12371
12372 # Only expand once:
12373
12374
12375
12376
12377
12378 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12379         if test -n "$ac_tool_prefix"; then
12380   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12381 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12385   $as_echo_n "(cached) " >&6
12386 else
12387   case $PKG_CONFIG in
12388   [\\/]* | ?:[\\/]*)
12389   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12390   ;;
12391   *)
12392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12394 do
12395   IFS=$as_save_IFS
12396   test -z "$as_dir" && as_dir=.
12397   for ac_exec_ext in '' $ac_executable_extensions; do
12398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12399     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12400     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12401     break 2
12402   fi
12403 done
12404 done
12405 IFS=$as_save_IFS
12406
12407   ;;
12408 esac
12409 fi
12410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12411 if test -n "$PKG_CONFIG"; then
12412   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12413 $as_echo "$PKG_CONFIG" >&6; }
12414 else
12415   { $as_echo "$as_me:$LINENO: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418
12419
12420 fi
12421 if test -z "$ac_cv_path_PKG_CONFIG"; then
12422   ac_pt_PKG_CONFIG=$PKG_CONFIG
12423   # Extract the first word of "pkg-config", so it can be a program name with args.
12424 set dummy pkg-config; ac_word=$2
12425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12428   $as_echo_n "(cached) " >&6
12429 else
12430   case $ac_pt_PKG_CONFIG in
12431   [\\/]* | ?:[\\/]*)
12432   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12433   ;;
12434   *)
12435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12437 do
12438   IFS=$as_save_IFS
12439   test -z "$as_dir" && as_dir=.
12440   for ac_exec_ext in '' $ac_executable_extensions; do
12441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12442     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12443     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12444     break 2
12445   fi
12446 done
12447 done
12448 IFS=$as_save_IFS
12449
12450   ;;
12451 esac
12452 fi
12453 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12454 if test -n "$ac_pt_PKG_CONFIG"; then
12455   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12456 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12457 else
12458   { $as_echo "$as_me:$LINENO: result: no" >&5
12459 $as_echo "no" >&6; }
12460 fi
12461
12462   if test "x$ac_pt_PKG_CONFIG" = x; then
12463     PKG_CONFIG=""
12464   else
12465     case $cross_compiling:$ac_tool_warned in
12466 yes:)
12467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12469 ac_tool_warned=yes ;;
12470 esac
12471     PKG_CONFIG=$ac_pt_PKG_CONFIG
12472   fi
12473 else
12474   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12475 fi
12476
12477 fi
12478 if test -n "$PKG_CONFIG"; then
12479         _pkg_min_version=0.9.0
12480         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12481 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12482         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12483                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12484 $as_echo "yes" >&6; }
12485         else
12486                 { $as_echo "$as_me:$LINENO: result: no" >&5
12487 $as_echo "no" >&6; }
12488                 PKG_CONFIG=""
12489         fi
12490
12491 fi
12492
12493 linux_os=no
12494 case ${host_os} in
12495   *linux*)
12496     linux_os=yes
12497     ;;
12498 esac
12499  if test "x$linux_os" = xyes; then
12500   LINUX_TRUE=
12501   LINUX_FALSE='#'
12502 else
12503   LINUX_TRUE='#'
12504   LINUX_FALSE=
12505 fi
12506
12507
12508 # Extract the first word of "perl", so it can be a program name with args.
12509 set dummy perl; ac_word=$2
12510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if test "${ac_cv_path_PERL+set}" = set; then
12513   $as_echo_n "(cached) " >&6
12514 else
12515   case $PERL in
12516   [\\/]* | ?:[\\/]*)
12517   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12518   ;;
12519   *)
12520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $PATH
12522 do
12523   IFS=$as_save_IFS
12524   test -z "$as_dir" && as_dir=.
12525   for ac_exec_ext in '' $ac_executable_extensions; do
12526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12527     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12528     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12529     break 2
12530   fi
12531 done
12532 done
12533 IFS=$as_save_IFS
12534
12535   ;;
12536 esac
12537 fi
12538 PERL=$ac_cv_path_PERL
12539 if test -n "$PERL"; then
12540   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12541 $as_echo "$PERL" >&6; }
12542 else
12543   { $as_echo "$as_me:$LINENO: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547
12548 # Extract the first word of "blkid", so it can be a program name with args.
12549 set dummy blkid; ac_word=$2
12550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if test "${ac_cv_path_BLKID+set}" = set; then
12553   $as_echo_n "(cached) " >&6
12554 else
12555   case $BLKID in
12556   [\\/]* | ?:[\\/]*)
12557   ac_cv_path_BLKID="$BLKID" # Let the user override the test with a path.
12558   ;;
12559   *)
12560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 as_dummy="$PATH:/sbin"
12562 for as_dir in $as_dummy
12563 do
12564   IFS=$as_save_IFS
12565   test -z "$as_dir" && as_dir=.
12566   for ac_exec_ext in '' $ac_executable_extensions; do
12567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12568     ac_cv_path_BLKID="$as_dir/$ac_word$ac_exec_ext"
12569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12570     break 2
12571   fi
12572 done
12573 done
12574 IFS=$as_save_IFS
12575
12576   ;;
12577 esac
12578 fi
12579 BLKID=$ac_cv_path_BLKID
12580 if test -n "$BLKID"; then
12581   { $as_echo "$as_me:$LINENO: result: $BLKID" >&5
12582 $as_echo "$BLKID" >&6; }
12583 else
12584   { $as_echo "$as_me:$LINENO: result: no" >&5
12585 $as_echo "no" >&6; }
12586 fi
12587
12588
12589 # Extract the first word of "vol_id", so it can be a program name with args.
12590 set dummy vol_id; ac_word=$2
12591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_path_VOLID+set}" = set; then
12594   $as_echo_n "(cached) " >&6
12595 else
12596   case $VOLID in
12597   [\\/]* | ?:[\\/]*)
12598   ac_cv_path_VOLID="$VOLID" # Let the user override the test with a path.
12599   ;;
12600   *)
12601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 as_dummy="$PATH:/lib/udev"
12603 for as_dir in $as_dummy
12604 do
12605   IFS=$as_save_IFS
12606   test -z "$as_dir" && as_dir=.
12607   for ac_exec_ext in '' $ac_executable_extensions; do
12608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12609     ac_cv_path_VOLID="$as_dir/$ac_word$ac_exec_ext"
12610     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12611     break 2
12612   fi
12613 done
12614 done
12615 IFS=$as_save_IFS
12616
12617   ;;
12618 esac
12619 fi
12620 VOLID=$ac_cv_path_VOLID
12621 if test -n "$VOLID"; then
12622   { $as_echo "$as_me:$LINENO: result: $VOLID" >&5
12623 $as_echo "$VOLID" >&6; }
12624 else
12625   { $as_echo "$as_me:$LINENO: result: no" >&5
12626 $as_echo "no" >&6; }
12627 fi
12628
12629
12630
12631 # Check whether --enable-largefile was given.
12632 if test "${enable_largefile+set}" = set; then
12633   enableval=$enable_largefile;
12634 fi
12635
12636 if test "$enable_largefile" != no; then
12637
12638   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12639 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12640 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12641   $as_echo_n "(cached) " >&6
12642 else
12643   ac_cv_sys_largefile_CC=no
12644      if test "$GCC" != yes; then
12645        ac_save_CC=$CC
12646        while :; do
12647          # IRIX 6.2 and later do not support large files by default,
12648          # so use the C compiler's -n32 option if that helps.
12649          cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655 #include <sys/types.h>
12656  /* Check that off_t can represent 2**63 - 1 correctly.
12657     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12658     since some C++ compilers masquerading as C compilers
12659     incorrectly reject 9223372036854775807.  */
12660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12661   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12662                        && LARGE_OFF_T % 2147483647 == 1)
12663                       ? 1 : -1];
12664 int
12665 main ()
12666 {
12667
12668   ;
12669   return 0;
12670 }
12671 _ACEOF
12672          rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676   *) ac_try_echo=$ac_try;;
12677 esac
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680   (eval "$ac_compile") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } && {
12687          test -z "$ac_c_werror_flag" ||
12688          test ! -s conftest.err
12689        } && test -s conftest.$ac_objext; then
12690   break
12691 else
12692   $as_echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext
12699          CC="$CC -n32"
12700          rm -f conftest.$ac_objext
12701 if { (ac_try="$ac_compile"
12702 case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12707 $as_echo "$ac_try_echo") >&5
12708   (eval "$ac_compile") 2>conftest.er1
12709   ac_status=$?
12710   grep -v '^ *+' conftest.er1 >conftest.err
12711   rm -f conftest.er1
12712   cat conftest.err >&5
12713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } && {
12715          test -z "$ac_c_werror_flag" ||
12716          test ! -s conftest.err
12717        } && test -s conftest.$ac_objext; then
12718   ac_cv_sys_largefile_CC=' -n32'; break
12719 else
12720   $as_echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723
12724 fi
12725
12726 rm -f core conftest.err conftest.$ac_objext
12727          break
12728        done
12729        CC=$ac_save_CC
12730        rm -f conftest.$ac_ext
12731     fi
12732 fi
12733 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
12734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12735   if test "$ac_cv_sys_largefile_CC" != no; then
12736     CC=$CC$ac_cv_sys_largefile_CC
12737   fi
12738
12739   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12742   $as_echo_n "(cached) " >&6
12743 else
12744   while :; do
12745   cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751 #include <sys/types.h>
12752  /* Check that off_t can represent 2**63 - 1 correctly.
12753     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12754     since some C++ compilers masquerading as C compilers
12755     incorrectly reject 9223372036854775807.  */
12756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12757   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12758                        && LARGE_OFF_T % 2147483647 == 1)
12759                       ? 1 : -1];
12760 int
12761 main ()
12762 {
12763
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772   *) ac_try_echo=$ac_try;;
12773 esac
12774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775 $as_echo "$ac_try_echo") >&5
12776   (eval "$ac_compile") 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } && {
12783          test -z "$ac_c_werror_flag" ||
12784          test ! -s conftest.err
12785        } && test -s conftest.$ac_objext; then
12786   ac_cv_sys_file_offset_bits=no; break
12787 else
12788   $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791
12792 fi
12793
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795   cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 #define _FILE_OFFSET_BITS 64
12802 #include <sys/types.h>
12803  /* Check that off_t can represent 2**63 - 1 correctly.
12804     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12805     since some C++ compilers masquerading as C compilers
12806     incorrectly reject 9223372036854775807.  */
12807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12808   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12809                        && LARGE_OFF_T % 2147483647 == 1)
12810                       ? 1 : -1];
12811 int
12812 main ()
12813 {
12814
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (ac_try="$ac_compile"
12821 case "(($ac_try" in
12822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823   *) ac_try_echo=$ac_try;;
12824 esac
12825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12826 $as_echo "$ac_try_echo") >&5
12827   (eval "$ac_compile") 2>conftest.er1
12828   ac_status=$?
12829   grep -v '^ *+' conftest.er1 >conftest.err
12830   rm -f conftest.er1
12831   cat conftest.err >&5
12832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } && {
12834          test -z "$ac_c_werror_flag" ||
12835          test ! -s conftest.err
12836        } && test -s conftest.$ac_objext; then
12837   ac_cv_sys_file_offset_bits=64; break
12838 else
12839   $as_echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842
12843 fi
12844
12845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846   ac_cv_sys_file_offset_bits=unknown
12847   break
12848 done
12849 fi
12850 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
12851 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12852 case $ac_cv_sys_file_offset_bits in #(
12853   no | unknown) ;;
12854   *)
12855 cat >>confdefs.h <<_ACEOF
12856 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12857 _ACEOF
12858 ;;
12859 esac
12860 rm -rf conftest*
12861   if test $ac_cv_sys_file_offset_bits = unknown; then
12862     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
12863 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12864 if test "${ac_cv_sys_large_files+set}" = set; then
12865   $as_echo_n "(cached) " >&6
12866 else
12867   while :; do
12868   cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874 #include <sys/types.h>
12875  /* Check that off_t can represent 2**63 - 1 correctly.
12876     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12877     since some C++ compilers masquerading as C compilers
12878     incorrectly reject 9223372036854775807.  */
12879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12880   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12881                        && LARGE_OFF_T % 2147483647 == 1)
12882                       ? 1 : -1];
12883 int
12884 main ()
12885 {
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext
12892 if { (ac_try="$ac_compile"
12893 case "(($ac_try" in
12894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895   *) ac_try_echo=$ac_try;;
12896 esac
12897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12898 $as_echo "$ac_try_echo") >&5
12899   (eval "$ac_compile") 2>conftest.er1
12900   ac_status=$?
12901   grep -v '^ *+' conftest.er1 >conftest.err
12902   rm -f conftest.er1
12903   cat conftest.err >&5
12904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); } && {
12906          test -z "$ac_c_werror_flag" ||
12907          test ! -s conftest.err
12908        } && test -s conftest.$ac_objext; then
12909   ac_cv_sys_large_files=no; break
12910 else
12911   $as_echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914
12915 fi
12916
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918   cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924 #define _LARGE_FILES 1
12925 #include <sys/types.h>
12926  /* Check that off_t can represent 2**63 - 1 correctly.
12927     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12928     since some C++ compilers masquerading as C compilers
12929     incorrectly reject 9223372036854775807.  */
12930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12931   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12932                        && LARGE_OFF_T % 2147483647 == 1)
12933                       ? 1 : -1];
12934 int
12935 main ()
12936 {
12937
12938   ;
12939   return 0;
12940 }
12941 _ACEOF
12942 rm -f conftest.$ac_objext
12943 if { (ac_try="$ac_compile"
12944 case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950   (eval "$ac_compile") 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } && {
12957          test -z "$ac_c_werror_flag" ||
12958          test ! -s conftest.err
12959        } && test -s conftest.$ac_objext; then
12960   ac_cv_sys_large_files=1; break
12961 else
12962   $as_echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965
12966 fi
12967
12968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969   ac_cv_sys_large_files=unknown
12970   break
12971 done
12972 fi
12973 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12974 $as_echo "$ac_cv_sys_large_files" >&6; }
12975 case $ac_cv_sys_large_files in #(
12976   no | unknown) ;;
12977   *)
12978 cat >>confdefs.h <<_ACEOF
12979 #define _LARGE_FILES $ac_cv_sys_large_files
12980 _ACEOF
12981 ;;
12982 esac
12983 rm -rf conftest*
12984   fi
12985 fi
12986
12987
12988
12989
12990
12991 for ac_header in linux/compiler.h linux/blkpg.h linux/major.h
12992 do
12993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12995 $as_echo_n "checking for $ac_header... " >&6; }
12996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12997   $as_echo_n "(cached) " >&6
12998 else
12999   cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005
13006 #ifdef HAVE_LINUX_COMPILER_H
13007 #include <linux/compiler.h>
13008 #endif
13009
13010
13011 #include <$ac_header>
13012 _ACEOF
13013 rm -f conftest.$ac_objext
13014 if { (ac_try="$ac_compile"
13015 case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13020 $as_echo "$ac_try_echo") >&5
13021   (eval "$ac_compile") 2>conftest.er1
13022   ac_status=$?
13023   grep -v '^ *+' conftest.er1 >conftest.err
13024   rm -f conftest.er1
13025   cat conftest.err >&5
13026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); } && {
13028          test -z "$ac_c_werror_flag" ||
13029          test ! -s conftest.err
13030        } && test -s conftest.$ac_objext; then
13031   eval "$as_ac_Header=yes"
13032 else
13033   $as_echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13035
13036         eval "$as_ac_Header=no"
13037 fi
13038
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 fi
13041 ac_res=`eval 'as_val=${'$as_ac_Header'}
13042                  $as_echo "$as_val"'`
13043                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13044 $as_echo "$ac_res" >&6; }
13045 as_val=`eval 'as_val=${'$as_ac_Header'}
13046                  $as_echo "$as_val"'`
13047    if test "x$as_val" = x""yes; then
13048   cat >>confdefs.h <<_ACEOF
13049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13050 _ACEOF
13051
13052 fi
13053
13054 done
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091 for ac_header in err.h \
13092         errno.h \
13093         getopt.h \
13094         langinfo.h \
13095         linux/fd.h \
13096         linux/tiocl.h \
13097         linux/version.h \
13098         locale.h \
13099         stdint.h \
13100         inttypes.h \
13101         pty.h \
13102         mntent.h \
13103         net/if.h \
13104         net/if_dl.h \
13105         netinet/in.h \
13106         rpcsvc/nfs_prot.h \
13107         scsi/scsi.h \
13108         stdlib.h \
13109         sys/disk.h \
13110         sys/disklabel.h \
13111         sys/ioctl.h \
13112         sys/io.h \
13113         sys/time.h \
13114         sys/mkdev.h \
13115         sys/prctl.h \
13116         sys/queue.h \
13117         sys/sockio.h \
13118         sys/file.h \
13119         sys/ioctl.h \
13120         sys/stat.h \
13121         sys/types.h \
13122         sys/un.h \
13123         sys/user.h \
13124         sys/resource.h \
13125         unistd.h
13126 do
13127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13129   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13130 $as_echo_n "checking for $ac_header... " >&6; }
13131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132   $as_echo_n "(cached) " >&6
13133 fi
13134 ac_res=`eval 'as_val=${'$as_ac_Header'}
13135                  $as_echo "$as_val"'`
13136                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13137 $as_echo "$ac_res" >&6; }
13138 else
13139   # Is the header compilable?
13140 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13141 $as_echo_n "checking $ac_header usability... " >&6; }
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148 $ac_includes_default
13149 #include <$ac_header>
13150 _ACEOF
13151 rm -f conftest.$ac_objext
13152 if { (ac_try="$ac_compile"
13153 case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13158 $as_echo "$ac_try_echo") >&5
13159   (eval "$ac_compile") 2>conftest.er1
13160   ac_status=$?
13161   grep -v '^ *+' conftest.er1 >conftest.err
13162   rm -f conftest.er1
13163   cat conftest.err >&5
13164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } && {
13166          test -z "$ac_c_werror_flag" ||
13167          test ! -s conftest.err
13168        } && test -s conftest.$ac_objext; then
13169   ac_header_compiler=yes
13170 else
13171   $as_echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13173
13174         ac_header_compiler=no
13175 fi
13176
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13179 $as_echo "$ac_header_compiler" >&6; }
13180
13181 # Is the header present?
13182 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13183 $as_echo_n "checking $ac_header presence... " >&6; }
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h.  */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h.  */
13190 #include <$ac_header>
13191 _ACEOF
13192 if { (ac_try="$ac_cpp conftest.$ac_ext"
13193 case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198 $as_echo "$ac_try_echo") >&5
13199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13200   ac_status=$?
13201   grep -v '^ *+' conftest.er1 >conftest.err
13202   rm -f conftest.er1
13203   cat conftest.err >&5
13204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } >/dev/null && {
13206          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13207          test ! -s conftest.err
13208        }; then
13209   ac_header_preproc=yes
13210 else
13211   $as_echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214   ac_header_preproc=no
13215 fi
13216
13217 rm -f conftest.err conftest.$ac_ext
13218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 $as_echo "$ac_header_preproc" >&6; }
13220
13221 # So?  What about this header?
13222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13223   yes:no: )
13224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13225 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13228     ac_header_preproc=yes
13229     ;;
13230   no:yes:* )
13231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13232 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13234 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13236 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13238 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13242 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13243     ( cat <<\_ASBOX
13244 ## ------------------------------ ##
13245 ## Report this to kzak@redhat.com ##
13246 ## ------------------------------ ##
13247 _ASBOX
13248      ) | sed "s/^/$as_me: WARNING:     /" >&2
13249     ;;
13250 esac
13251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13252 $as_echo_n "checking for $ac_header... " >&6; }
13253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254   $as_echo_n "(cached) " >&6
13255 else
13256   eval "$as_ac_Header=\$ac_header_preproc"
13257 fi
13258 ac_res=`eval 'as_val=${'$as_ac_Header'}
13259                  $as_echo "$as_val"'`
13260                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13261 $as_echo "$ac_res" >&6; }
13262
13263 fi
13264 as_val=`eval 'as_val=${'$as_ac_Header'}
13265                  $as_echo "$as_val"'`
13266    if test "x$as_val" = x""yes; then
13267   cat >>confdefs.h <<_ACEOF
13268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13269 _ACEOF
13270
13271 fi
13272
13273 done
13274
13275
13276 for ac_header in linux/raw.h
13277 do
13278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13280   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13281 $as_echo_n "checking for $ac_header... " >&6; }
13282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13283   $as_echo_n "(cached) " >&6
13284 fi
13285 ac_res=`eval 'as_val=${'$as_ac_Header'}
13286                  $as_echo "$as_val"'`
13287                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13288 $as_echo "$ac_res" >&6; }
13289 else
13290   # Is the header compilable?
13291 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13292 $as_echo_n "checking $ac_header usability... " >&6; }
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299 $ac_includes_default
13300 #include <$ac_header>
13301 _ACEOF
13302 rm -f conftest.$ac_objext
13303 if { (ac_try="$ac_compile"
13304 case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13309 $as_echo "$ac_try_echo") >&5
13310   (eval "$ac_compile") 2>conftest.er1
13311   ac_status=$?
13312   grep -v '^ *+' conftest.er1 >conftest.err
13313   rm -f conftest.er1
13314   cat conftest.err >&5
13315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } && {
13317          test -z "$ac_c_werror_flag" ||
13318          test ! -s conftest.err
13319        } && test -s conftest.$ac_objext; then
13320   ac_header_compiler=yes
13321 else
13322   $as_echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325         ac_header_compiler=no
13326 fi
13327
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13330 $as_echo "$ac_header_compiler" >&6; }
13331
13332 # Is the header present?
13333 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13334 $as_echo_n "checking $ac_header presence... " >&6; }
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h.  */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h.  */
13341 #include <$ac_header>
13342 _ACEOF
13343 if { (ac_try="$ac_cpp conftest.$ac_ext"
13344 case "(($ac_try" in
13345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346   *) ac_try_echo=$ac_try;;
13347 esac
13348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13349 $as_echo "$ac_try_echo") >&5
13350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } >/dev/null && {
13357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13358          test ! -s conftest.err
13359        }; then
13360   ac_header_preproc=yes
13361 else
13362   $as_echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365   ac_header_preproc=no
13366 fi
13367
13368 rm -f conftest.err conftest.$ac_ext
13369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13370 $as_echo "$ac_header_preproc" >&6; }
13371
13372 # So?  What about this header?
13373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13374   yes:no: )
13375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13379     ac_header_preproc=yes
13380     ;;
13381   no:yes:* )
13382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13385 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13387 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13389 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13393 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13394     ( cat <<\_ASBOX
13395 ## ------------------------------ ##
13396 ## Report this to kzak@redhat.com ##
13397 ## ------------------------------ ##
13398 _ASBOX
13399      ) | sed "s/^/$as_me: WARNING:     /" >&2
13400     ;;
13401 esac
13402 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13403 $as_echo_n "checking for $ac_header... " >&6; }
13404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13405   $as_echo_n "(cached) " >&6
13406 else
13407   eval "$as_ac_Header=\$ac_header_preproc"
13408 fi
13409 ac_res=`eval 'as_val=${'$as_ac_Header'}
13410                  $as_echo "$as_val"'`
13411                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13412 $as_echo "$ac_res" >&6; }
13413
13414 fi
13415 as_val=`eval 'as_val=${'$as_ac_Header'}
13416                  $as_echo "$as_val"'`
13417    if test "x$as_val" = x""yes; then
13418   cat >>confdefs.h <<_ACEOF
13419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13420 _ACEOF
13421   if true; then
13422   HAVE_RAW_TRUE=
13423   HAVE_RAW_FALSE='#'
13424 else
13425   HAVE_RAW_TRUE='#'
13426   HAVE_RAW_FALSE=
13427 fi
13428
13429 else
13430    if false; then
13431   HAVE_RAW_TRUE=
13432   HAVE_RAW_FALSE='#'
13433 else
13434   HAVE_RAW_TRUE='#'
13435   HAVE_RAW_FALSE=
13436 fi
13437
13438 fi
13439
13440 done
13441
13442
13443 { $as_echo "$as_me:$LINENO: checking whether _NL_TIME_WEEK_1STDAY is declared" >&5
13444 $as_echo_n "checking whether _NL_TIME_WEEK_1STDAY is declared... " >&6; }
13445 if test "${ac_cv_have_decl__NL_TIME_WEEK_1STDAY+set}" = set; then
13446   $as_echo_n "(cached) " >&6
13447 else
13448   cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454 #include <langinfo.h>
13455
13456 int
13457 main ()
13458 {
13459 #ifndef _NL_TIME_WEEK_1STDAY
13460   (void) _NL_TIME_WEEK_1STDAY;
13461 #endif
13462
13463   ;
13464   return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471   *) ac_try_echo=$ac_try;;
13472 esac
13473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474 $as_echo "$ac_try_echo") >&5
13475   (eval "$ac_compile") 2>conftest.er1
13476   ac_status=$?
13477   grep -v '^ *+' conftest.er1 >conftest.err
13478   rm -f conftest.er1
13479   cat conftest.err >&5
13480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); } && {
13482          test -z "$ac_c_werror_flag" ||
13483          test ! -s conftest.err
13484        } && test -s conftest.$ac_objext; then
13485   ac_cv_have_decl__NL_TIME_WEEK_1STDAY=yes
13486 else
13487   $as_echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490         ac_cv_have_decl__NL_TIME_WEEK_1STDAY=no
13491 fi
13492
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 fi
13495 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__NL_TIME_WEEK_1STDAY" >&5
13496 $as_echo "$ac_cv_have_decl__NL_TIME_WEEK_1STDAY" >&6; }
13497 if test "x$ac_cv_have_decl__NL_TIME_WEEK_1STDAY" = x""yes; then
13498
13499 cat >>confdefs.h <<_ACEOF
13500 #define HAVE_DECL__NL_TIME_WEEK_1STDAY 1
13501 _ACEOF
13502
13503
13504 else
13505   cat >>confdefs.h <<_ACEOF
13506 #define HAVE_DECL__NL_TIME_WEEK_1STDAY 0
13507 _ACEOF
13508
13509
13510 fi
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536 for ac_func in inet_aton \
13537         fsync \
13538         getdomainname \
13539         get_current_dir_name \
13540         nanosleep \
13541         personality \
13542         updwtmp \
13543         jrand48 \
13544         lchown \
13545         llseek \
13546         lseek64 \
13547         strtoull \
13548         sysconf \
13549         getdtablesize \
13550         getrlimit \
13551         srandom \
13552         setresgid \
13553         setresuid \
13554         inotify_init \
13555         prctl \
13556         __secure_getenv \
13557         rpmatch
13558 do
13559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13560 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13561 $as_echo_n "checking for $ac_func... " >&6; }
13562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13563   $as_echo_n "(cached) " >&6
13564 else
13565   cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h.  */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h.  */
13571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13573 #define $ac_func innocuous_$ac_func
13574
13575 /* System header to define __stub macros and hopefully few prototypes,
13576     which can conflict with char $ac_func (); below.
13577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13578     <limits.h> exists even on freestanding compilers.  */
13579
13580 #ifdef __STDC__
13581 # include <limits.h>
13582 #else
13583 # include <assert.h>
13584 #endif
13585
13586 #undef $ac_func
13587
13588 /* Override any GCC internal prototype to avoid an error.
13589    Use char because int might match the return type of a GCC
13590    builtin and then its argument prototype would still apply.  */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char $ac_func ();
13595 /* The GNU C library defines this for functions which it implements
13596     to always fail with ENOSYS.  Some functions are actually named
13597     something starting with __ and the normal name is an alias.  */
13598 #if defined __stub_$ac_func || defined __stub___$ac_func
13599 choke me
13600 #endif
13601
13602 int
13603 main ()
13604 {
13605 return $ac_func ();
13606   ;
13607   return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614   *) ac_try_echo=$ac_try;;
13615 esac
13616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13617 $as_echo "$ac_try_echo") >&5
13618   (eval "$ac_link") 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } && {
13625          test -z "$ac_c_werror_flag" ||
13626          test ! -s conftest.err
13627        } && test -s conftest$ac_exeext && {
13628          test "$cross_compiling" = yes ||
13629          $as_test_x conftest$ac_exeext
13630        }; then
13631   eval "$as_ac_var=yes"
13632 else
13633   $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636         eval "$as_ac_var=no"
13637 fi
13638
13639 rm -rf conftest.dSYM
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641       conftest$ac_exeext conftest.$ac_ext
13642 fi
13643 ac_res=`eval 'as_val=${'$as_ac_var'}
13644                  $as_echo "$as_val"'`
13645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13646 $as_echo "$ac_res" >&6; }
13647 as_val=`eval 'as_val=${'$as_ac_var'}
13648                  $as_echo "$as_val"'`
13649    if test "x$as_val" = x""yes; then
13650   cat >>confdefs.h <<_ACEOF
13651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13652 _ACEOF
13653
13654 fi
13655 done
13656
13657 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13658 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13659 if test "${ac_cv_sys_largefile_source+set}" = set; then
13660   $as_echo_n "(cached) " >&6
13661 else
13662   while :; do
13663   cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 #include <sys/types.h> /* for off_t */
13670      #include <stdio.h>
13671 int
13672 main ()
13673 {
13674 int (*fp) (FILE *, off_t, int) = fseeko;
13675      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13676   ;
13677   return 0;
13678 }
13679 _ACEOF
13680 rm -f conftest.$ac_objext conftest$ac_exeext
13681 if { (ac_try="$ac_link"
13682 case "(($ac_try" in
13683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684   *) ac_try_echo=$ac_try;;
13685 esac
13686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13687 $as_echo "$ac_try_echo") >&5
13688   (eval "$ac_link") 2>conftest.er1
13689   ac_status=$?
13690   grep -v '^ *+' conftest.er1 >conftest.err
13691   rm -f conftest.er1
13692   cat conftest.err >&5
13693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } && {
13695          test -z "$ac_c_werror_flag" ||
13696          test ! -s conftest.err
13697        } && test -s conftest$ac_exeext && {
13698          test "$cross_compiling" = yes ||
13699          $as_test_x conftest$ac_exeext
13700        }; then
13701   ac_cv_sys_largefile_source=no; break
13702 else
13703   $as_echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706
13707 fi
13708
13709 rm -rf conftest.dSYM
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711       conftest$ac_exeext conftest.$ac_ext
13712   cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 #define _LARGEFILE_SOURCE 1
13719 #include <sys/types.h> /* for off_t */
13720      #include <stdio.h>
13721 int
13722 main ()
13723 {
13724 int (*fp) (FILE *, off_t, int) = fseeko;
13725      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13726   ;
13727   return 0;
13728 }
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (ac_try="$ac_link"
13732 case "(($ac_try" in
13733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734   *) ac_try_echo=$ac_try;;
13735 esac
13736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13737 $as_echo "$ac_try_echo") >&5
13738   (eval "$ac_link") 2>conftest.er1
13739   ac_status=$?
13740   grep -v '^ *+' conftest.er1 >conftest.err
13741   rm -f conftest.er1
13742   cat conftest.err >&5
13743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); } && {
13745          test -z "$ac_c_werror_flag" ||
13746          test ! -s conftest.err
13747        } && test -s conftest$ac_exeext && {
13748          test "$cross_compiling" = yes ||
13749          $as_test_x conftest$ac_exeext
13750        }; then
13751   ac_cv_sys_largefile_source=1; break
13752 else
13753   $as_echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756
13757 fi
13758
13759 rm -rf conftest.dSYM
13760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13761       conftest$ac_exeext conftest.$ac_ext
13762   ac_cv_sys_largefile_source=unknown
13763   break
13764 done
13765 fi
13766 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13767 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13768 case $ac_cv_sys_largefile_source in #(
13769   no | unknown) ;;
13770   *)
13771 cat >>confdefs.h <<_ACEOF
13772 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13773 _ACEOF
13774 ;;
13775 esac
13776 rm -rf conftest*
13777
13778 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13779 # in glibc 2.1.3, but that breaks too many other things.
13780 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13781 if test $ac_cv_sys_largefile_source != unknown; then
13782
13783 cat >>confdefs.h <<\_ACEOF
13784 #define HAVE_FSEEKO 1
13785 _ACEOF
13786
13787 fi
13788
13789
13790
13791
13792
13793 for ac_func in openat fstatat unlinkat
13794 do
13795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13797 $as_echo_n "checking for $ac_func... " >&6; }
13798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13799   $as_echo_n "(cached) " >&6
13800 else
13801   cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13809 #define $ac_func innocuous_$ac_func
13810
13811 /* System header to define __stub macros and hopefully few prototypes,
13812     which can conflict with char $ac_func (); below.
13813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13814     <limits.h> exists even on freestanding compilers.  */
13815
13816 #ifdef __STDC__
13817 # include <limits.h>
13818 #else
13819 # include <assert.h>
13820 #endif
13821
13822 #undef $ac_func
13823
13824 /* Override any GCC internal prototype to avoid an error.
13825    Use char because int might match the return type of a GCC
13826    builtin and then its argument prototype would still apply.  */
13827 #ifdef __cplusplus
13828 extern "C"
13829 #endif
13830 char $ac_func ();
13831 /* The GNU C library defines this for functions which it implements
13832     to always fail with ENOSYS.  Some functions are actually named
13833     something starting with __ and the normal name is an alias.  */
13834 #if defined __stub_$ac_func || defined __stub___$ac_func
13835 choke me
13836 #endif
13837
13838 int
13839 main ()
13840 {
13841 return $ac_func ();
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (ac_try="$ac_link"
13848 case "(($ac_try" in
13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850   *) ac_try_echo=$ac_try;;
13851 esac
13852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13853 $as_echo "$ac_try_echo") >&5
13854   (eval "$ac_link") 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } && {
13861          test -z "$ac_c_werror_flag" ||
13862          test ! -s conftest.err
13863        } && test -s conftest$ac_exeext && {
13864          test "$cross_compiling" = yes ||
13865          $as_test_x conftest$ac_exeext
13866        }; then
13867   eval "$as_ac_var=yes"
13868 else
13869   $as_echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872         eval "$as_ac_var=no"
13873 fi
13874
13875 rm -rf conftest.dSYM
13876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13877       conftest$ac_exeext conftest.$ac_ext
13878 fi
13879 ac_res=`eval 'as_val=${'$as_ac_var'}
13880                  $as_echo "$as_val"'`
13881                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13882 $as_echo "$ac_res" >&6; }
13883 as_val=`eval 'as_val=${'$as_ac_var'}
13884                  $as_echo "$as_val"'`
13885    if test "x$as_val" = x""yes; then
13886   cat >>confdefs.h <<_ACEOF
13887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13888 _ACEOF
13889  have_openat=yes
13890 else
13891   have_openat=no
13892 fi
13893 done
13894
13895
13896 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13897 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
13898 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13899   $as_echo_n "(cached) " >&6
13900 else
13901   cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907 #include <sys/types.h>
13908          #include <sys/socket.h>
13909
13910 int
13911 main ()
13912 {
13913 static struct sockaddr ac_aggr;
13914 if (ac_aggr.sa_len)
13915 return 0;
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 rm -f conftest.$ac_objext
13921 if { (ac_try="$ac_compile"
13922 case "(($ac_try" in
13923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924   *) ac_try_echo=$ac_try;;
13925 esac
13926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13927 $as_echo "$ac_try_echo") >&5
13928   (eval "$ac_compile") 2>conftest.er1
13929   ac_status=$?
13930   grep -v '^ *+' conftest.er1 >conftest.err
13931   rm -f conftest.er1
13932   cat conftest.err >&5
13933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } && {
13935          test -z "$ac_c_werror_flag" ||
13936          test ! -s conftest.err
13937        } && test -s conftest.$ac_objext; then
13938   ac_cv_member_struct_sockaddr_sa_len=yes
13939 else
13940   $as_echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13942
13943         cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949 #include <sys/types.h>
13950          #include <sys/socket.h>
13951
13952 int
13953 main ()
13954 {
13955 static struct sockaddr ac_aggr;
13956 if (sizeof ac_aggr.sa_len)
13957 return 0;
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966   *) ac_try_echo=$ac_try;;
13967 esac
13968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13969 $as_echo "$ac_try_echo") >&5
13970   (eval "$ac_compile") 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } && {
13977          test -z "$ac_c_werror_flag" ||
13978          test ! -s conftest.err
13979        } && test -s conftest.$ac_objext; then
13980   ac_cv_member_struct_sockaddr_sa_len=yes
13981 else
13982   $as_echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985         ac_cv_member_struct_sockaddr_sa_len=no
13986 fi
13987
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 fi
13990
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992 fi
13993 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13994 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
13995 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
13996
13997 cat >>confdefs.h <<_ACEOF
13998 #define HAVE_SA_LEN 1
13999 _ACEOF
14000
14001 fi
14002
14003
14004
14005
14006 # Check whether --enable-static-programs was given.
14007 if test "${enable_static_programs+set}" = set; then
14008   enableval=$enable_static_programs;
14009 fi
14010
14011
14012 case $enable_static_programs in
14013 yes) enable_static_programs=losetup,mount,umount,fdisk,sfdisk,blkid ;;
14014 no) enable_static_programs= ;;
14015 esac
14016
14017
14018   case ,$enable_static_programs, in
14019    *,losetup,*) static_losetup=yes ;;
14020   esac
14021    if test "x$static_losetup" = xyes; then
14022   HAVE_STATIC_LOSETUP_TRUE=
14023   HAVE_STATIC_LOSETUP_FALSE='#'
14024 else
14025   HAVE_STATIC_LOSETUP_TRUE='#'
14026   HAVE_STATIC_LOSETUP_FALSE=
14027 fi
14028
14029
14030   case ,$enable_static_programs, in
14031    *,mount,*) static_mount=yes ;;
14032   esac
14033    if test "x$static_mount" = xyes; then
14034   HAVE_STATIC_MOUNT_TRUE=
14035   HAVE_STATIC_MOUNT_FALSE='#'
14036 else
14037   HAVE_STATIC_MOUNT_TRUE='#'
14038   HAVE_STATIC_MOUNT_FALSE=
14039 fi
14040
14041
14042   case ,$enable_static_programs, in
14043    *,umount,*) static_umount=yes ;;
14044   esac
14045    if test "x$static_umount" = xyes; then
14046   HAVE_STATIC_UMOUNT_TRUE=
14047   HAVE_STATIC_UMOUNT_FALSE='#'
14048 else
14049   HAVE_STATIC_UMOUNT_TRUE='#'
14050   HAVE_STATIC_UMOUNT_FALSE=
14051 fi
14052
14053
14054   case ,$enable_static_programs, in
14055    *,fdisk,*) static_fdisk=yes ;;
14056   esac
14057    if test "x$static_fdisk" = xyes; then
14058   HAVE_STATIC_FDISK_TRUE=
14059   HAVE_STATIC_FDISK_FALSE='#'
14060 else
14061   HAVE_STATIC_FDISK_TRUE='#'
14062   HAVE_STATIC_FDISK_FALSE=
14063 fi
14064
14065
14066   case ,$enable_static_programs, in
14067    *,sfdisk,*) static_sfdisk=yes ;;
14068   esac
14069    if test "x$static_sfdisk" = xyes; then
14070   HAVE_STATIC_SFDISK_TRUE=
14071   HAVE_STATIC_SFDISK_FALSE='#'
14072 else
14073   HAVE_STATIC_SFDISK_TRUE='#'
14074   HAVE_STATIC_SFDISK_FALSE=
14075 fi
14076
14077
14078   case ,$enable_static_programs, in
14079    *,blkid,*) static_blkid=yes ;;
14080   esac
14081    if test "x$static_blkid" = xyes; then
14082   HAVE_STATIC_BLKID_TRUE=
14083   HAVE_STATIC_BLKID_FALSE='#'
14084 else
14085   HAVE_STATIC_BLKID_TRUE='#'
14086   HAVE_STATIC_BLKID_FALSE=
14087 fi
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100 # Check whether --enable-tls was given.
14101 if test "${enable_tls+set}" = set; then
14102   enableval=$enable_tls;
14103 else
14104   enable_tls=yes
14105
14106 fi
14107
14108 if test "x$enable_tls" = xyes; then
14109
14110   { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
14111 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
14112   if test "${ac_cv_tls+set}" = set; then
14113   $as_echo_n "(cached) " >&6
14114 else
14115
14116     ax_tls_keywords="__thread __declspec(thread) none"
14117     for ax_tls_keyword in $ax_tls_keywords; do
14118        case $ax_tls_keyword in
14119           none) ac_cv_tls=none ; break ;;
14120           *)
14121              cat >conftest.$ac_ext <<_ACEOF
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127 #include <stdlib.h>
14128                  static void
14129                  foo(void) {
14130                  static  $ax_tls_keyword  int bar;
14131                  exit(1);
14132                  }
14133 int
14134 main ()
14135 {
14136
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 rm -f conftest.$ac_objext
14142 if { (ac_try="$ac_compile"
14143 case "(($ac_try" in
14144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145   *) ac_try_echo=$ac_try;;
14146 esac
14147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14148 $as_echo "$ac_try_echo") >&5
14149   (eval "$ac_compile") 2>conftest.er1
14150   ac_status=$?
14151   grep -v '^ *+' conftest.er1 >conftest.err
14152   rm -f conftest.er1
14153   cat conftest.err >&5
14154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); } && {
14156          test -z "$ac_c_werror_flag" ||
14157          test ! -s conftest.err
14158        } && test -s conftest.$ac_objext; then
14159   ac_cv_tls=$ax_tls_keyword ; break
14160 else
14161   $as_echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164         ac_cv_tls=none
14165
14166 fi
14167
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169           esac
14170     done
14171
14172 fi
14173
14174
14175   if test "$ac_cv_tls" != "none"; then
14176
14177 cat >>confdefs.h <<_ACEOF
14178 #define TLS $ac_cv_tls
14179 _ACEOF
14180
14181   fi
14182   { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
14183 $as_echo "$ac_cv_tls" >&6; }
14184
14185 fi
14186
14187
14188 # Check whether --enable-mount was given.
14189 if test "${enable_mount+set}" = set; then
14190   enableval=$enable_mount;
14191 else
14192   enable_mount=check
14193
14194 fi
14195
14196 build_mount=yes
14197 if test "x$enable_mount" = xcheck; then
14198   if test "x$linux_os" = xno; then
14199     { $as_echo "$as_me:$LINENO: WARNING: non-linux system; do not build mount utilities" >&5
14200 $as_echo "$as_me: WARNING: non-linux system; do not build mount utilities" >&2;}
14201     build_mount=no
14202   fi
14203 elif test "x$enable_mount" = xno; then
14204     build_mount=no
14205 fi
14206  if test "x$build_mount" = xyes; then
14207   BUILD_MOUNT_TRUE=
14208   BUILD_MOUNT_FALSE='#'
14209 else
14210   BUILD_MOUNT_TRUE='#'
14211   BUILD_MOUNT_FALSE=
14212 fi
14213
14214
14215
14216 # Check whether --enable-fsck was given.
14217 if test "${enable_fsck+set}" = set; then
14218   enableval=$enable_fsck;
14219 else
14220   enable_fsck=yes
14221
14222 fi
14223
14224  if test "x$enable_fsck" = xyes; then
14225   BUILD_FSCK_TRUE=
14226   BUILD_FSCK_FALSE='#'
14227 else
14228   BUILD_FSCK_TRUE='#'
14229   BUILD_FSCK_FALSE=
14230 fi
14231
14232
14233
14234 # Check whether --enable-libuuid was given.
14235 if test "${enable_libuuid+set}" = set; then
14236   enableval=$enable_libuuid;
14237 else
14238   enable_libuuid=yes
14239
14240 fi
14241
14242
14243
14244  if test "x$enable_libuuid" = xyes; then
14245   BUILD_LIBUUID_TRUE=
14246   BUILD_LIBUUID_FALSE='#'
14247 else
14248   BUILD_LIBUUID_TRUE='#'
14249   BUILD_LIBUUID_FALSE=
14250 fi
14251
14252 have_uuid=yes
14253
14254 if test "x$enable_libuuid" = xno; then
14255   # Check for external (e2fsprogs) libuuid
14256
14257 pkg_failed=no
14258 { $as_echo "$as_me:$LINENO: checking for UUID" >&5
14259 $as_echo_n "checking for UUID... " >&6; }
14260
14261 if test -n "$UUID_CFLAGS"; then
14262     pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
14263  elif test -n "$PKG_CONFIG"; then
14264     if test -n "$PKG_CONFIG" && \
14265     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uuid\"") >&5
14266   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
14267   ac_status=$?
14268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; then
14270   pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
14271 else
14272   pkg_failed=yes
14273 fi
14274  else
14275     pkg_failed=untried
14276 fi
14277 if test -n "$UUID_LIBS"; then
14278     pkg_cv_UUID_LIBS="$UUID_LIBS"
14279  elif test -n "$PKG_CONFIG"; then
14280     if test -n "$PKG_CONFIG" && \
14281     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uuid\"") >&5
14282   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
14283   ac_status=$?
14284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; then
14286   pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
14287 else
14288   pkg_failed=yes
14289 fi
14290  else
14291     pkg_failed=untried
14292 fi
14293
14294
14295
14296 if test $pkg_failed = yes; then
14297
14298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14299         _pkg_short_errors_supported=yes
14300 else
14301         _pkg_short_errors_supported=no
14302 fi
14303         if test $_pkg_short_errors_supported = yes; then
14304                 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1`
14305         else
14306                 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1`
14307         fi
14308         # Put the nasty error message in config.log where it belongs
14309         echo "$UUID_PKG_ERRORS" >&5
14310
14311         { $as_echo "$as_me:$LINENO: result: no" >&5
14312 $as_echo "no" >&6; }
14313                 have_uuid=no
14314 elif test $pkg_failed = untried; then
14315         have_uuid=no
14316 else
14317         UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
14318         UUID_LIBS=$pkg_cv_UUID_LIBS
14319         { $as_echo "$as_me:$LINENO: result: yes" >&5
14320 $as_echo "yes" >&6; }
14321         have_uuid=yes
14322 fi
14323   if test "x$have_uuid" = xno; then
14324     # system without pkg-config or so, try classic check
14325     { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
14326 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
14327 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
14328   $as_echo_n "(cached) " >&6
14329 else
14330   ac_check_lib_save_LIBS=$LIBS
14331 LIBS="-luuid  $LIBS"
14332 cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338
14339 /* Override any GCC internal prototype to avoid an error.
14340    Use char because int might match the return type of a GCC
14341    builtin and then its argument prototype would still apply.  */
14342 #ifdef __cplusplus
14343 extern "C"
14344 #endif
14345 char uuid_is_null ();
14346 int
14347 main ()
14348 {
14349 return uuid_is_null ();
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355 if { (ac_try="$ac_link"
14356 case "(($ac_try" in
14357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358   *) ac_try_echo=$ac_try;;
14359 esac
14360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14361 $as_echo "$ac_try_echo") >&5
14362   (eval "$ac_link") 2>conftest.er1
14363   ac_status=$?
14364   grep -v '^ *+' conftest.er1 >conftest.err
14365   rm -f conftest.er1
14366   cat conftest.err >&5
14367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); } && {
14369          test -z "$ac_c_werror_flag" ||
14370          test ! -s conftest.err
14371        } && test -s conftest$ac_exeext && {
14372          test "$cross_compiling" = yes ||
14373          $as_test_x conftest$ac_exeext
14374        }; then
14375   ac_cv_lib_uuid_uuid_is_null=yes
14376 else
14377   $as_echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14379
14380         ac_cv_lib_uuid_uuid_is_null=no
14381 fi
14382
14383 rm -rf conftest.dSYM
14384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14385       conftest$ac_exeext conftest.$ac_ext
14386 LIBS=$ac_check_lib_save_LIBS
14387 fi
14388 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
14389 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
14390 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
14391   have_uuid=yes
14392 else
14393   have_uuid=no
14394 fi
14395
14396   fi
14397   if test "x$have_uuid" = xyes; then
14398
14399   old_CFLAGS="$CFLAGS"
14400   old_CPPFLAGS="$CPPFLAGS"
14401   old_LDFLAGS="$LDFLAGS"
14402   CFLAGS="$CFLAGS $UUID_CFLAGS"
14403   CPPFLAGS="$CPPFLAGS $UUID_CFLAGS"
14404   LDFLAGS="$LDFLAGS $UUID_LIBS"
14405
14406
14407
14408 for ac_header in uuid.h uuid/uuid.h
14409 do
14410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14412   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14413 $as_echo_n "checking for $ac_header... " >&6; }
14414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14415   $as_echo_n "(cached) " >&6
14416 fi
14417 ac_res=`eval 'as_val=${'$as_ac_Header'}
14418                  $as_echo "$as_val"'`
14419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14420 $as_echo "$ac_res" >&6; }
14421 else
14422   # Is the header compilable?
14423 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14424 $as_echo_n "checking $ac_header usability... " >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431 $ac_includes_default
14432 #include <$ac_header>
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14441 $as_echo "$ac_try_echo") >&5
14442   (eval "$ac_compile") 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } && {
14449          test -z "$ac_c_werror_flag" ||
14450          test ! -s conftest.err
14451        } && test -s conftest.$ac_objext; then
14452   ac_header_compiler=yes
14453 else
14454   $as_echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457         ac_header_compiler=no
14458 fi
14459
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14462 $as_echo "$ac_header_compiler" >&6; }
14463
14464 # Is the header present?
14465 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14466 $as_echo_n "checking $ac_header presence... " >&6; }
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h.  */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h.  */
14473 #include <$ac_header>
14474 _ACEOF
14475 if { (ac_try="$ac_cpp conftest.$ac_ext"
14476 case "(($ac_try" in
14477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478   *) ac_try_echo=$ac_try;;
14479 esac
14480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14481 $as_echo "$ac_try_echo") >&5
14482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14483   ac_status=$?
14484   grep -v '^ *+' conftest.er1 >conftest.err
14485   rm -f conftest.er1
14486   cat conftest.err >&5
14487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); } >/dev/null && {
14489          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14490          test ! -s conftest.err
14491        }; then
14492   ac_header_preproc=yes
14493 else
14494   $as_echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497   ac_header_preproc=no
14498 fi
14499
14500 rm -f conftest.err conftest.$ac_ext
14501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14502 $as_echo "$ac_header_preproc" >&6; }
14503
14504 # So?  What about this header?
14505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14506   yes:no: )
14507     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14508 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14509     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14511     ac_header_preproc=yes
14512     ;;
14513   no:yes:* )
14514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14515 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14516     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14517 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14518     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14519 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14521 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14522     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14524     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14525 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14526     ( cat <<\_ASBOX
14527 ## ------------------------------ ##
14528 ## Report this to kzak@redhat.com ##
14529 ## ------------------------------ ##
14530 _ASBOX
14531      ) | sed "s/^/$as_me: WARNING:     /" >&2
14532     ;;
14533 esac
14534 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14535 $as_echo_n "checking for $ac_header... " >&6; }
14536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14537   $as_echo_n "(cached) " >&6
14538 else
14539   eval "$as_ac_Header=\$ac_header_preproc"
14540 fi
14541 ac_res=`eval 'as_val=${'$as_ac_Header'}
14542                  $as_echo "$as_val"'`
14543                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14544 $as_echo "$ac_res" >&6; }
14545
14546 fi
14547 as_val=`eval 'as_val=${'$as_ac_Header'}
14548                  $as_echo "$as_val"'`
14549    if test "x$as_val" = x""yes; then
14550   cat >>confdefs.h <<_ACEOF
14551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14552 _ACEOF
14553  break
14554 fi
14555
14556 done
14557
14558
14559   CFLAGS="$old_CFLAGS"
14560   CPPFLAGS="$old_CPPFLAGS"
14561   LDFLAGS="$old_LDFLAGS"
14562
14563   fi
14564 else
14565   # internal library
14566
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_UUID_H 1
14569 _ACEOF
14570
14571 fi
14572
14573 if test "x$have_uuid" = xyes; then
14574
14575 cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_LIBUUID 1
14577 _ACEOF
14578
14579 else
14580   { $as_echo "$as_me:$LINENO: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&5
14581 $as_echo "$as_me: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&2;}
14582 fi
14583  if test "x$have_uuid" = xyes; then
14584   HAVE_UUID_TRUE=
14585   HAVE_UUID_FALSE='#'
14586 else
14587   HAVE_UUID_TRUE='#'
14588   HAVE_UUID_FALSE=
14589 fi
14590
14591 # default
14592 : ${UUID_LIBS='-luuid'}
14593
14594
14595 # Check whether --enable-uuidd was given.
14596 if test "${enable_uuidd+set}" = set; then
14597   enableval=$enable_uuidd;
14598 else
14599   enable_uuidd=auto
14600
14601 fi
14602
14603
14604 case "$enable_uuidd:$have_uuid" in
14605 yes:no)
14606   { { $as_echo "$as_me:$LINENO: error: cannot enable uuidd when libuuid is disabled" >&5
14607 $as_echo "$as_me: error: cannot enable uuidd when libuuid is disabled" >&2;}
14608    { (exit 1); exit 1; }; } ;;
14609 auto:*)
14610   enable_uuidd=$have_uuid ;;
14611 esac
14612 if test "x$enable_uuidd" = xyes; then
14613
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_UUIDD 1
14616 _ACEOF
14617
14618 fi
14619  if test "x$enable_uuidd" = xyes; then
14620   BUILD_UUIDD_TRUE=
14621   BUILD_UUIDD_FALSE='#'
14622 else
14623   BUILD_UUIDD_TRUE='#'
14624   BUILD_UUIDD_FALSE=
14625 fi
14626
14627
14628
14629 # Check whether --enable-libblkid was given.
14630 if test "${enable_libblkid+set}" = set; then
14631   enableval=$enable_libblkid;
14632 else
14633   enable_libblkid=yes
14634
14635 fi
14636
14637
14638
14639  if test "x$enable_libblkid" = xyes; then
14640   BUILD_LIBBLKID_TRUE=
14641   BUILD_LIBBLKID_FALSE='#'
14642 else
14643   BUILD_LIBBLKID_TRUE='#'
14644   BUILD_LIBBLKID_FALSE=
14645 fi
14646
14647
14648 cat >>confdefs.h <<_ACEOF
14649 #define LIBBLKID_VERSION "$LIBBLKID_VERSION"
14650 _ACEOF
14651
14652
14653 cat >>confdefs.h <<_ACEOF
14654 #define LIBBLKID_DATE "$LIBBLKID_DATE"
14655 _ACEOF
14656
14657 have_blkid=yes
14658
14659 if test "x$enable_libblkid" = xno; then
14660   if test "x$build_mount" = xyes || test "x$enable_fsck" = xyes; then
14661     # Check for external (e2fsprogs) libblkid
14662
14663 pkg_failed=no
14664 { $as_echo "$as_me:$LINENO: checking for BLKID" >&5
14665 $as_echo_n "checking for BLKID... " >&6; }
14666
14667 if test -n "$BLKID_CFLAGS"; then
14668     pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
14669  elif test -n "$PKG_CONFIG"; then
14670     if test -n "$PKG_CONFIG" && \
14671     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"blkid\"") >&5
14672   ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
14673   ac_status=$?
14674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; then
14676   pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
14677 else
14678   pkg_failed=yes
14679 fi
14680  else
14681     pkg_failed=untried
14682 fi
14683 if test -n "$BLKID_LIBS"; then
14684     pkg_cv_BLKID_LIBS="$BLKID_LIBS"
14685  elif test -n "$PKG_CONFIG"; then
14686     if test -n "$PKG_CONFIG" && \
14687     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"blkid\"") >&5
14688   ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
14689   ac_status=$?
14690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; then
14692   pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
14693 else
14694   pkg_failed=yes
14695 fi
14696  else
14697     pkg_failed=untried
14698 fi
14699
14700
14701
14702 if test $pkg_failed = yes; then
14703
14704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14705         _pkg_short_errors_supported=yes
14706 else
14707         _pkg_short_errors_supported=no
14708 fi
14709         if test $_pkg_short_errors_supported = yes; then
14710                 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "blkid" 2>&1`
14711         else
14712                 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors "blkid" 2>&1`
14713         fi
14714         # Put the nasty error message in config.log where it belongs
14715         echo "$BLKID_PKG_ERRORS" >&5
14716
14717         { $as_echo "$as_me:$LINENO: result: no" >&5
14718 $as_echo "no" >&6; }
14719                 have_blkid=no
14720 elif test $pkg_failed = untried; then
14721         have_blkid=no
14722 else
14723         BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
14724         BLKID_LIBS=$pkg_cv_BLKID_LIBS
14725         { $as_echo "$as_me:$LINENO: result: yes" >&5
14726 $as_echo "yes" >&6; }
14727         have_blkid=yes
14728 fi
14729     if test "x$have_blkid" = xno; then
14730       # system without pkg-config or so, try classic check
14731       { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
14732 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
14733 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
14734   $as_echo_n "(cached) " >&6
14735 else
14736   ac_check_lib_save_LIBS=$LIBS
14737 LIBS="-lblkid  $LIBS"
14738 cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744
14745 /* Override any GCC internal prototype to avoid an error.
14746    Use char because int might match the return type of a GCC
14747    builtin and then its argument prototype would still apply.  */
14748 #ifdef __cplusplus
14749 extern "C"
14750 #endif
14751 char blkid_get_cache ();
14752 int
14753 main ()
14754 {
14755 return blkid_get_cache ();
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (ac_try="$ac_link"
14762 case "(($ac_try" in
14763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764   *) ac_try_echo=$ac_try;;
14765 esac
14766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14767 $as_echo "$ac_try_echo") >&5
14768   (eval "$ac_link") 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } && {
14775          test -z "$ac_c_werror_flag" ||
14776          test ! -s conftest.err
14777        } && test -s conftest$ac_exeext && {
14778          test "$cross_compiling" = yes ||
14779          $as_test_x conftest$ac_exeext
14780        }; then
14781   ac_cv_lib_blkid_blkid_get_cache=yes
14782 else
14783   $as_echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786         ac_cv_lib_blkid_blkid_get_cache=no
14787 fi
14788
14789 rm -rf conftest.dSYM
14790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14791       conftest$ac_exeext conftest.$ac_ext
14792 LIBS=$ac_check_lib_save_LIBS
14793 fi
14794 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
14795 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
14796 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
14797   have_blkid=yes
14798 else
14799   have_blkid=no
14800 fi
14801
14802     fi
14803     if test "x$have_blkid" = xyes; then
14804
14805   old_CFLAGS="$CFLAGS"
14806   old_CPPFLAGS="$CPPFLAGS"
14807   old_LDFLAGS="$LDFLAGS"
14808   CFLAGS="$CFLAGS $BLKID_CFLAGS"
14809   CPPFLAGS="$CPPFLAGS $BLKID_CFLAGS"
14810   LDFLAGS="$LDFLAGS $BLKID_LIBS"
14811
14812
14813
14814 for ac_header in blkid.h blkid/blkid.h
14815 do
14816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14819 $as_echo_n "checking for $ac_header... " >&6; }
14820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821   $as_echo_n "(cached) " >&6
14822 fi
14823 ac_res=`eval 'as_val=${'$as_ac_Header'}
14824                  $as_echo "$as_val"'`
14825                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14826 $as_echo "$ac_res" >&6; }
14827 else
14828   # Is the header compilable?
14829 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14830 $as_echo_n "checking $ac_header usability... " >&6; }
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h.  */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h.  */
14837 $ac_includes_default
14838 #include <$ac_header>
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844   *) ac_try_echo=$ac_try;;
14845 esac
14846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848   (eval "$ac_compile") 2>conftest.er1
14849   ac_status=$?
14850   grep -v '^ *+' conftest.er1 >conftest.err
14851   rm -f conftest.er1
14852   cat conftest.err >&5
14853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); } && {
14855          test -z "$ac_c_werror_flag" ||
14856          test ! -s conftest.err
14857        } && test -s conftest.$ac_objext; then
14858   ac_header_compiler=yes
14859 else
14860   $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863         ac_header_compiler=no
14864 fi
14865
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14868 $as_echo "$ac_header_compiler" >&6; }
14869
14870 # Is the header present?
14871 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14872 $as_echo_n "checking $ac_header presence... " >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h.  */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h.  */
14879 #include <$ac_header>
14880 _ACEOF
14881 if { (ac_try="$ac_cpp conftest.$ac_ext"
14882 case "(($ac_try" in
14883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884   *) ac_try_echo=$ac_try;;
14885 esac
14886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14887 $as_echo "$ac_try_echo") >&5
14888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14889   ac_status=$?
14890   grep -v '^ *+' conftest.er1 >conftest.err
14891   rm -f conftest.er1
14892   cat conftest.err >&5
14893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } >/dev/null && {
14895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14896          test ! -s conftest.err
14897        }; then
14898   ac_header_preproc=yes
14899 else
14900   $as_echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903   ac_header_preproc=no
14904 fi
14905
14906 rm -f conftest.err conftest.$ac_ext
14907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 $as_echo "$ac_header_preproc" >&6; }
14909
14910 # So?  What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14912   yes:no: )
14913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14914 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14917     ac_header_preproc=yes
14918     ;;
14919   no:yes:* )
14920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14921 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14923 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14924     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14925 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14926     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14927 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14928     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14931 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14932     ( cat <<\_ASBOX
14933 ## ------------------------------ ##
14934 ## Report this to kzak@redhat.com ##
14935 ## ------------------------------ ##
14936 _ASBOX
14937      ) | sed "s/^/$as_me: WARNING:     /" >&2
14938     ;;
14939 esac
14940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 $as_echo_n "checking for $ac_header... " >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943   $as_echo_n "(cached) " >&6
14944 else
14945   eval "$as_ac_Header=\$ac_header_preproc"
14946 fi
14947 ac_res=`eval 'as_val=${'$as_ac_Header'}
14948                  $as_echo "$as_val"'`
14949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14950 $as_echo "$ac_res" >&6; }
14951
14952 fi
14953 as_val=`eval 'as_val=${'$as_ac_Header'}
14954                  $as_echo "$as_val"'`
14955    if test "x$as_val" = x""yes; then
14956   cat >>confdefs.h <<_ACEOF
14957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14958 _ACEOF
14959  break
14960 fi
14961
14962 done
14963
14964
14965   CFLAGS="$old_CFLAGS"
14966   CPPFLAGS="$old_CPPFLAGS"
14967   LDFLAGS="$old_LDFLAGS"
14968
14969     fi
14970     if test -n "$enable_static_programs"; then
14971       # TODO check only when mount of fsck are requested
14972
14973   if { ($as_echo "$as_me:$LINENO: pkg-config --exists --print-errors \"blkid\"") >&5
14974   (pkg-config --exists --print-errors "blkid") 2>&5
14975   ac_status=$?
14976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; then
14978     BLKID_LIBS_STATIC=`pkg-config --libs --static "blkid"`
14979   else
14980     { { $as_echo "$as_me:$LINENO: error: pkg-config description of blkid, needed for static build, is not available" >&5
14981 $as_echo "$as_me: error: pkg-config description of blkid, needed for static build, is not available" >&2;}
14982    { (exit 1); exit 1; }; }
14983   fi
14984
14985     fi
14986   fi
14987 else
14988   # internal library
14989
14990 cat >>confdefs.h <<\_ACEOF
14991 #define HAVE_BLKID_H 1
14992 _ACEOF
14993
14994
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_BLKID_EVALUATE_TAG 1
14997 _ACEOF
14998
14999 fi
15000
15001 if test "x$have_blkid" = xyes; then
15002
15003 cat >>confdefs.h <<\_ACEOF
15004 #define HAVE_LIBBLKID 1
15005 _ACEOF
15006
15007 else
15008   if test "x$build_mount" = xyes; then
15009     { { $as_echo "$as_me:$LINENO: error: libblkid is needed to build util-linux-ng mount" >&5
15010 $as_echo "$as_me: error: libblkid is needed to build util-linux-ng mount" >&2;}
15011    { (exit 1); exit 1; }; }
15012   fi
15013   if test "x$enable_fsck" = xyes; then
15014     { { $as_echo "$as_me:$LINENO: error: libblkid is needed to build util-linux-ng fsck" >&5
15015 $as_echo "$as_me: error: libblkid is needed to build util-linux-ng fsck" >&2;}
15016    { (exit 1); exit 1; }; }
15017   fi
15018 fi
15019  if test "x$have_blkid" = xyes; then
15020   HAVE_BLKID_TRUE=
15021   HAVE_BLKID_FALSE='#'
15022 else
15023   HAVE_BLKID_TRUE='#'
15024   HAVE_BLKID_FALSE=
15025 fi
15026
15027 # default
15028 : ${BLKID_LIBS='-lblkid -luuid'}
15029
15030
15031
15032
15033
15034
15035   have_util=yes
15036
15037 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15038 $as_echo_n "checking for openpty in -lutil... " >&6; }
15039 if test "${ac_cv_lib_util_openpty+set}" = set; then
15040   $as_echo_n "(cached) " >&6
15041 else
15042   ac_check_lib_save_LIBS=$LIBS
15043 LIBS="-lutil  $LIBS"
15044 cat >conftest.$ac_ext <<_ACEOF
15045 /* confdefs.h.  */
15046 _ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h.  */
15050
15051 /* Override any GCC internal prototype to avoid an error.
15052    Use char because int might match the return type of a GCC
15053    builtin and then its argument prototype would still apply.  */
15054 #ifdef __cplusplus
15055 extern "C"
15056 #endif
15057 char openpty ();
15058 int
15059 main ()
15060 {
15061 return openpty ();
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (ac_try="$ac_link"
15068 case "(($ac_try" in
15069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070   *) ac_try_echo=$ac_try;;
15071 esac
15072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15073 $as_echo "$ac_try_echo") >&5
15074   (eval "$ac_link") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
15078   cat conftest.err >&5
15079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } && {
15081          test -z "$ac_c_werror_flag" ||
15082          test ! -s conftest.err
15083        } && test -s conftest$ac_exeext && {
15084          test "$cross_compiling" = yes ||
15085          $as_test_x conftest$ac_exeext
15086        }; then
15087   ac_cv_lib_util_openpty=yes
15088 else
15089   $as_echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092         ac_cv_lib_util_openpty=no
15093 fi
15094
15095 rm -rf conftest.dSYM
15096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15097       conftest$ac_exeext conftest.$ac_ext
15098 LIBS=$ac_check_lib_save_LIBS
15099 fi
15100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15101 $as_echo "$ac_cv_lib_util_openpty" >&6; }
15102 if test "x$ac_cv_lib_util_openpty" = x""yes; then
15103   cat >>confdefs.h <<_ACEOF
15104 #define HAVE_LIBUTIL 1
15105 _ACEOF
15106
15107   LIBS="-lutil $LIBS"
15108
15109 else
15110   have_util=no
15111 fi
15112
15113    if test $have_util = yes; then
15114   HAVE_UTIL_TRUE=
15115   HAVE_UTIL_FALSE='#'
15116 else
15117   HAVE_UTIL_TRUE='#'
15118   HAVE_UTIL_FALSE=
15119 fi
15120
15121
15122
15123
15124   have_termcap=yes
15125
15126 { $as_echo "$as_me:$LINENO: checking for tgetnum in -ltermcap" >&5
15127 $as_echo_n "checking for tgetnum in -ltermcap... " >&6; }
15128 if test "${ac_cv_lib_termcap_tgetnum+set}" = set; then
15129   $as_echo_n "(cached) " >&6
15130 else
15131   ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-ltermcap  $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h.  */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h.  */
15139
15140 /* Override any GCC internal prototype to avoid an error.
15141    Use char because int might match the return type of a GCC
15142    builtin and then its argument prototype would still apply.  */
15143 #ifdef __cplusplus
15144 extern "C"
15145 #endif
15146 char tgetnum ();
15147 int
15148 main ()
15149 {
15150 return tgetnum ();
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15162 $as_echo "$ac_try_echo") >&5
15163   (eval "$ac_link") 2>conftest.er1
15164   ac_status=$?
15165   grep -v '^ *+' conftest.er1 >conftest.err
15166   rm -f conftest.er1
15167   cat conftest.err >&5
15168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } && {
15170          test -z "$ac_c_werror_flag" ||
15171          test ! -s conftest.err
15172        } && test -s conftest$ac_exeext && {
15173          test "$cross_compiling" = yes ||
15174          $as_test_x conftest$ac_exeext
15175        }; then
15176   ac_cv_lib_termcap_tgetnum=yes
15177 else
15178   $as_echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181         ac_cv_lib_termcap_tgetnum=no
15182 fi
15183
15184 rm -rf conftest.dSYM
15185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186       conftest$ac_exeext conftest.$ac_ext
15187 LIBS=$ac_check_lib_save_LIBS
15188 fi
15189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetnum" >&5
15190 $as_echo "$ac_cv_lib_termcap_tgetnum" >&6; }
15191 if test "x$ac_cv_lib_termcap_tgetnum" = x""yes; then
15192   cat >>confdefs.h <<_ACEOF
15193 #define HAVE_LIBTERMCAP 1
15194 _ACEOF
15195
15196   LIBS="-ltermcap $LIBS"
15197
15198 else
15199   have_termcap=no
15200 fi
15201
15202    if test $have_termcap = yes; then
15203   HAVE_TERMCAP_TRUE=
15204   HAVE_TERMCAP_FALSE='#'
15205 else
15206   HAVE_TERMCAP_TRUE='#'
15207   HAVE_TERMCAP_FALSE=
15208 fi
15209
15210
15211
15212
15213
15214         MKINSTALLDIRS=
15215   if test -n "$ac_aux_dir"; then
15216     case "$ac_aux_dir" in
15217       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15218       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15219     esac
15220   fi
15221   if test -z "$MKINSTALLDIRS"; then
15222     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15223   fi
15224
15225
15226
15227   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15228 $as_echo_n "checking whether NLS is requested... " >&6; }
15229     # Check whether --enable-nls was given.
15230 if test "${enable_nls+set}" = set; then
15231   enableval=$enable_nls; USE_NLS=$enableval
15232 else
15233   USE_NLS=yes
15234 fi
15235
15236   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
15237 $as_echo "$USE_NLS" >&6; }
15238
15239
15240
15241
15242
15243
15244 # Prepare PATH_SEPARATOR.
15245 # The user is always right.
15246 if test "${PATH_SEPARATOR+set}" != set; then
15247   echo "#! /bin/sh" >conf$$.sh
15248   echo  "exit 0"   >>conf$$.sh
15249   chmod +x conf$$.sh
15250   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15251     PATH_SEPARATOR=';'
15252   else
15253     PATH_SEPARATOR=:
15254   fi
15255   rm -f conf$$.sh
15256 fi
15257
15258 # Find out how to test for executable files. Don't use a zero-byte file,
15259 # as systems may use methods other than mode bits to determine executability.
15260 cat >conf$$.file <<_ASEOF
15261 #! /bin/sh
15262 exit 0
15263 _ASEOF
15264 chmod +x conf$$.file
15265 if test -x conf$$.file >/dev/null 2>&1; then
15266   ac_executable_p="test -x"
15267 else
15268   ac_executable_p="test -f"
15269 fi
15270 rm -f conf$$.file
15271
15272 # Extract the first word of "msgfmt", so it can be a program name with args.
15273 set dummy msgfmt; ac_word=$2
15274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15275 $as_echo_n "checking for $ac_word... " >&6; }
15276 if test "${ac_cv_path_MSGFMT+set}" = set; then
15277   $as_echo_n "(cached) " >&6
15278 else
15279   case "$MSGFMT" in
15280   [\\/]* | ?:[\\/]*)
15281     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15282     ;;
15283   *)
15284     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15285     for ac_dir in $PATH; do
15286       IFS="$ac_save_IFS"
15287       test -z "$ac_dir" && ac_dir=.
15288       for ac_exec_ext in '' $ac_executable_extensions; do
15289         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15290           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15291      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15292             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15293             break 2
15294           fi
15295         fi
15296       done
15297     done
15298     IFS="$ac_save_IFS"
15299   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15300     ;;
15301 esac
15302 fi
15303 MSGFMT="$ac_cv_path_MSGFMT"
15304 if test "$MSGFMT" != ":"; then
15305   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15306 $as_echo "$MSGFMT" >&6; }
15307 else
15308   { $as_echo "$as_me:$LINENO: result: no" >&5
15309 $as_echo "no" >&6; }
15310 fi
15311
15312   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15313 set dummy gmsgfmt; ac_word=$2
15314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15315 $as_echo_n "checking for $ac_word... " >&6; }
15316 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15317   $as_echo_n "(cached) " >&6
15318 else
15319   case $GMSGFMT in
15320   [\\/]* | ?:[\\/]*)
15321   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15322   ;;
15323   *)
15324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15325 for as_dir in $PATH
15326 do
15327   IFS=$as_save_IFS
15328   test -z "$as_dir" && as_dir=.
15329   for ac_exec_ext in '' $ac_executable_extensions; do
15330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15331     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15332     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15333     break 2
15334   fi
15335 done
15336 done
15337 IFS=$as_save_IFS
15338
15339   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15340   ;;
15341 esac
15342 fi
15343 GMSGFMT=$ac_cv_path_GMSGFMT
15344 if test -n "$GMSGFMT"; then
15345   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15346 $as_echo "$GMSGFMT" >&6; }
15347 else
15348   { $as_echo "$as_me:$LINENO: result: no" >&5
15349 $as_echo "no" >&6; }
15350 fi
15351
15352
15353
15354
15355 # Prepare PATH_SEPARATOR.
15356 # The user is always right.
15357 if test "${PATH_SEPARATOR+set}" != set; then
15358   echo "#! /bin/sh" >conf$$.sh
15359   echo  "exit 0"   >>conf$$.sh
15360   chmod +x conf$$.sh
15361   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15362     PATH_SEPARATOR=';'
15363   else
15364     PATH_SEPARATOR=:
15365   fi
15366   rm -f conf$$.sh
15367 fi
15368
15369 # Find out how to test for executable files. Don't use a zero-byte file,
15370 # as systems may use methods other than mode bits to determine executability.
15371 cat >conf$$.file <<_ASEOF
15372 #! /bin/sh
15373 exit 0
15374 _ASEOF
15375 chmod +x conf$$.file
15376 if test -x conf$$.file >/dev/null 2>&1; then
15377   ac_executable_p="test -x"
15378 else
15379   ac_executable_p="test -f"
15380 fi
15381 rm -f conf$$.file
15382
15383 # Extract the first word of "xgettext", so it can be a program name with args.
15384 set dummy xgettext; ac_word=$2
15385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15386 $as_echo_n "checking for $ac_word... " >&6; }
15387 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15388   $as_echo_n "(cached) " >&6
15389 else
15390   case "$XGETTEXT" in
15391   [\\/]* | ?:[\\/]*)
15392     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15393     ;;
15394   *)
15395     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15396     for ac_dir in $PATH; do
15397       IFS="$ac_save_IFS"
15398       test -z "$ac_dir" && ac_dir=.
15399       for ac_exec_ext in '' $ac_executable_extensions; do
15400         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15401           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15402      (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
15403             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15404             break 2
15405           fi
15406         fi
15407       done
15408     done
15409     IFS="$ac_save_IFS"
15410   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15411     ;;
15412 esac
15413 fi
15414 XGETTEXT="$ac_cv_path_XGETTEXT"
15415 if test "$XGETTEXT" != ":"; then
15416   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15417 $as_echo "$XGETTEXT" >&6; }
15418 else
15419   { $as_echo "$as_me:$LINENO: result: no" >&5
15420 $as_echo "no" >&6; }
15421 fi
15422
15423     rm -f messages.po
15424
15425
15426 # Prepare PATH_SEPARATOR.
15427 # The user is always right.
15428 if test "${PATH_SEPARATOR+set}" != set; then
15429   echo "#! /bin/sh" >conf$$.sh
15430   echo  "exit 0"   >>conf$$.sh
15431   chmod +x conf$$.sh
15432   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15433     PATH_SEPARATOR=';'
15434   else
15435     PATH_SEPARATOR=:
15436   fi
15437   rm -f conf$$.sh
15438 fi
15439
15440 # Find out how to test for executable files. Don't use a zero-byte file,
15441 # as systems may use methods other than mode bits to determine executability.
15442 cat >conf$$.file <<_ASEOF
15443 #! /bin/sh
15444 exit 0
15445 _ASEOF
15446 chmod +x conf$$.file
15447 if test -x conf$$.file >/dev/null 2>&1; then
15448   ac_executable_p="test -x"
15449 else
15450   ac_executable_p="test -f"
15451 fi
15452 rm -f conf$$.file
15453
15454 # Extract the first word of "msgmerge", so it can be a program name with args.
15455 set dummy msgmerge; ac_word=$2
15456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15457 $as_echo_n "checking for $ac_word... " >&6; }
15458 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15459   $as_echo_n "(cached) " >&6
15460 else
15461   case "$MSGMERGE" in
15462   [\\/]* | ?:[\\/]*)
15463     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15464     ;;
15465   *)
15466     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15467     for ac_dir in $PATH; do
15468       IFS="$ac_save_IFS"
15469       test -z "$ac_dir" && ac_dir=.
15470       for ac_exec_ext in '' $ac_executable_extensions; do
15471         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15472           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15473             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15474             break 2
15475           fi
15476         fi
15477       done
15478     done
15479     IFS="$ac_save_IFS"
15480   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15481     ;;
15482 esac
15483 fi
15484 MSGMERGE="$ac_cv_path_MSGMERGE"
15485 if test "$MSGMERGE" != ":"; then
15486   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15487 $as_echo "$MSGMERGE" >&6; }
15488 else
15489   { $as_echo "$as_me:$LINENO: result: no" >&5
15490 $as_echo "no" >&6; }
15491 fi
15492
15493
15494       if test "$GMSGFMT" != ":"; then
15495             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15496        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15497       : ;
15498     else
15499       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15500       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15501 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15502       GMSGFMT=":"
15503     fi
15504   fi
15505
15506       if test "$XGETTEXT" != ":"; then
15507             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15508        (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
15509       : ;
15510     else
15511       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15512 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15513       XGETTEXT=":"
15514     fi
15515         rm -f messages.po
15516   fi
15517
15518   ac_config_commands="$ac_config_commands default-1"
15519
15520
15521
15522       if test "X$prefix" = "XNONE"; then
15523     acl_final_prefix="$ac_default_prefix"
15524   else
15525     acl_final_prefix="$prefix"
15526   fi
15527   if test "X$exec_prefix" = "XNONE"; then
15528     acl_final_exec_prefix='${prefix}'
15529   else
15530     acl_final_exec_prefix="$exec_prefix"
15531   fi
15532   acl_save_prefix="$prefix"
15533   prefix="$acl_final_prefix"
15534   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15535   prefix="$acl_save_prefix"
15536
15537
15538 # Check whether --with-gnu-ld was given.
15539 if test "${with_gnu_ld+set}" = set; then
15540   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15541 else
15542   with_gnu_ld=no
15543 fi
15544
15545 # Prepare PATH_SEPARATOR.
15546 # The user is always right.
15547 if test "${PATH_SEPARATOR+set}" != set; then
15548   echo "#! /bin/sh" >conf$$.sh
15549   echo  "exit 0"   >>conf$$.sh
15550   chmod +x conf$$.sh
15551   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15552     PATH_SEPARATOR=';'
15553   else
15554     PATH_SEPARATOR=:
15555   fi
15556   rm -f conf$$.sh
15557 fi
15558 ac_prog=ld
15559 if test "$GCC" = yes; then
15560   # Check if gcc -print-prog-name=ld gives a path.
15561   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15562 $as_echo_n "checking for ld used by GCC... " >&6; }
15563   case $host in
15564   *-*-mingw*)
15565     # gcc leaves a trailing carriage return which upsets mingw
15566     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15567   *)
15568     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15569   esac
15570   case $ac_prog in
15571     # Accept absolute paths.
15572     [\\/]* | [A-Za-z]:[\\/]*)
15573       re_direlt='/[^/][^/]*/\.\./'
15574       # Canonicalize the path of ld
15575       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15576       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15577         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15578       done
15579       test -z "$LD" && LD="$ac_prog"
15580       ;;
15581   "")
15582     # If it fails, then pretend we aren't using GCC.
15583     ac_prog=ld
15584     ;;
15585   *)
15586     # If it is relative, then search for the first ld in PATH.
15587     with_gnu_ld=unknown
15588     ;;
15589   esac
15590 elif test "$with_gnu_ld" = yes; then
15591   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15592 $as_echo_n "checking for GNU ld... " >&6; }
15593 else
15594   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15595 $as_echo_n "checking for non-GNU ld... " >&6; }
15596 fi
15597 if test "${acl_cv_path_LD+set}" = set; then
15598   $as_echo_n "(cached) " >&6
15599 else
15600   if test -z "$LD"; then
15601   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15602   for ac_dir in $PATH; do
15603     test -z "$ac_dir" && ac_dir=.
15604     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15605       acl_cv_path_LD="$ac_dir/$ac_prog"
15606       # Check to see if the program is GNU ld.  I'd rather use --version,
15607       # but apparently some GNU ld's only accept -v.
15608       # Break only if it was the GNU/non-GNU ld that we prefer.
15609       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15610       *GNU* | *'with BFD'*)
15611         test "$with_gnu_ld" != no && break ;;
15612       *)
15613         test "$with_gnu_ld" != yes && break ;;
15614       esac
15615     fi
15616   done
15617   IFS="$ac_save_ifs"
15618 else
15619   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15620 fi
15621 fi
15622
15623 LD="$acl_cv_path_LD"
15624 if test -n "$LD"; then
15625   { $as_echo "$as_me:$LINENO: result: $LD" >&5
15626 $as_echo "$LD" >&6; }
15627 else
15628   { $as_echo "$as_me:$LINENO: result: no" >&5
15629 $as_echo "no" >&6; }
15630 fi
15631 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15632 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15633    { (exit 1); exit 1; }; }
15634 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15635 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15636 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15637   $as_echo_n "(cached) " >&6
15638 else
15639   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15640 case `$LD -v 2>&1 </dev/null` in
15641 *GNU* | *'with BFD'*)
15642   acl_cv_prog_gnu_ld=yes ;;
15643 *)
15644   acl_cv_prog_gnu_ld=no ;;
15645 esac
15646 fi
15647 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15648 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15649 with_gnu_ld=$acl_cv_prog_gnu_ld
15650
15651
15652
15653                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15654 $as_echo_n "checking for shared library run path origin... " >&6; }
15655 if test "${acl_cv_rpath+set}" = set; then
15656   $as_echo_n "(cached) " >&6
15657 else
15658
15659     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15660     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15661     . ./conftest.sh
15662     rm -f ./conftest.sh
15663     acl_cv_rpath=done
15664
15665 fi
15666 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15667 $as_echo "$acl_cv_rpath" >&6; }
15668   wl="$acl_cv_wl"
15669   libext="$acl_cv_libext"
15670   shlibext="$acl_cv_shlibext"
15671   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15672   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15673   hardcode_direct="$acl_cv_hardcode_direct"
15674   hardcode_minus_L="$acl_cv_hardcode_minus_L"
15675     # Check whether --enable-rpath was given.
15676 if test "${enable_rpath+set}" = set; then
15677   enableval=$enable_rpath; :
15678 else
15679   enable_rpath=yes
15680 fi
15681
15682
15683
15684
15685
15686
15687
15688
15689     use_additional=yes
15690
15691   acl_save_prefix="$prefix"
15692   prefix="$acl_final_prefix"
15693   acl_save_exec_prefix="$exec_prefix"
15694   exec_prefix="$acl_final_exec_prefix"
15695
15696     eval additional_includedir=\"$includedir\"
15697     eval additional_libdir=\"$libdir\"
15698
15699   exec_prefix="$acl_save_exec_prefix"
15700   prefix="$acl_save_prefix"
15701
15702
15703 # Check whether --with-libiconv-prefix was given.
15704 if test "${with_libiconv_prefix+set}" = set; then
15705   withval=$with_libiconv_prefix;
15706     if test "X$withval" = "Xno"; then
15707       use_additional=no
15708     else
15709       if test "X$withval" = "X"; then
15710
15711   acl_save_prefix="$prefix"
15712   prefix="$acl_final_prefix"
15713   acl_save_exec_prefix="$exec_prefix"
15714   exec_prefix="$acl_final_exec_prefix"
15715
15716           eval additional_includedir=\"$includedir\"
15717           eval additional_libdir=\"$libdir\"
15718
15719   exec_prefix="$acl_save_exec_prefix"
15720   prefix="$acl_save_prefix"
15721
15722       else
15723         additional_includedir="$withval/include"
15724         additional_libdir="$withval/lib"
15725       fi
15726     fi
15727
15728 fi
15729
15730       LIBICONV=
15731   LTLIBICONV=
15732   INCICONV=
15733   rpathdirs=
15734   ltrpathdirs=
15735   names_already_handled=
15736   names_next_round='iconv '
15737   while test -n "$names_next_round"; do
15738     names_this_round="$names_next_round"
15739     names_next_round=
15740     for name in $names_this_round; do
15741       already_handled=
15742       for n in $names_already_handled; do
15743         if test "$n" = "$name"; then
15744           already_handled=yes
15745           break
15746         fi
15747       done
15748       if test -z "$already_handled"; then
15749         names_already_handled="$names_already_handled $name"
15750                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15751         eval value=\"\$HAVE_LIB$uppername\"
15752         if test -n "$value"; then
15753           if test "$value" = yes; then
15754             eval value=\"\$LIB$uppername\"
15755             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15756             eval value=\"\$LTLIB$uppername\"
15757             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15758           else
15759                                     :
15760           fi
15761         else
15762                               found_dir=
15763           found_la=
15764           found_so=
15765           found_a=
15766           if test $use_additional = yes; then
15767             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15768               found_dir="$additional_libdir"
15769               found_so="$additional_libdir/lib$name.$shlibext"
15770               if test -f "$additional_libdir/lib$name.la"; then
15771                 found_la="$additional_libdir/lib$name.la"
15772               fi
15773             else
15774               if test -f "$additional_libdir/lib$name.$libext"; then
15775                 found_dir="$additional_libdir"
15776                 found_a="$additional_libdir/lib$name.$libext"
15777                 if test -f "$additional_libdir/lib$name.la"; then
15778                   found_la="$additional_libdir/lib$name.la"
15779                 fi
15780               fi
15781             fi
15782           fi
15783           if test "X$found_dir" = "X"; then
15784             for x in $LDFLAGS $LTLIBICONV; do
15785
15786   acl_save_prefix="$prefix"
15787   prefix="$acl_final_prefix"
15788   acl_save_exec_prefix="$exec_prefix"
15789   exec_prefix="$acl_final_exec_prefix"
15790   eval x=\"$x\"
15791   exec_prefix="$acl_save_exec_prefix"
15792   prefix="$acl_save_prefix"
15793
15794               case "$x" in
15795                 -L*)
15796                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15797                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15798                     found_dir="$dir"
15799                     found_so="$dir/lib$name.$shlibext"
15800                     if test -f "$dir/lib$name.la"; then
15801                       found_la="$dir/lib$name.la"
15802                     fi
15803                   else
15804                     if test -f "$dir/lib$name.$libext"; then
15805                       found_dir="$dir"
15806                       found_a="$dir/lib$name.$libext"
15807                       if test -f "$dir/lib$name.la"; then
15808                         found_la="$dir/lib$name.la"
15809                       fi
15810                     fi
15811                   fi
15812                   ;;
15813               esac
15814               if test "X$found_dir" != "X"; then
15815                 break
15816               fi
15817             done
15818           fi
15819           if test "X$found_dir" != "X"; then
15820                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15821             if test "X$found_so" != "X"; then
15822                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15823                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15824               else
15825                                                                                 haveit=
15826                 for x in $ltrpathdirs; do
15827                   if test "X$x" = "X$found_dir"; then
15828                     haveit=yes
15829                     break
15830                   fi
15831                 done
15832                 if test -z "$haveit"; then
15833                   ltrpathdirs="$ltrpathdirs $found_dir"
15834                 fi
15835                                 if test "$hardcode_direct" = yes; then
15836                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15837                 else
15838                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15839                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15840                                                             haveit=
15841                     for x in $rpathdirs; do
15842                       if test "X$x" = "X$found_dir"; then
15843                         haveit=yes
15844                         break
15845                       fi
15846                     done
15847                     if test -z "$haveit"; then
15848                       rpathdirs="$rpathdirs $found_dir"
15849                     fi
15850                   else
15851                                                                                 haveit=
15852                     for x in $LDFLAGS $LIBICONV; do
15853
15854   acl_save_prefix="$prefix"
15855   prefix="$acl_final_prefix"
15856   acl_save_exec_prefix="$exec_prefix"
15857   exec_prefix="$acl_final_exec_prefix"
15858   eval x=\"$x\"
15859   exec_prefix="$acl_save_exec_prefix"
15860   prefix="$acl_save_prefix"
15861
15862                       if test "X$x" = "X-L$found_dir"; then
15863                         haveit=yes
15864                         break
15865                       fi
15866                     done
15867                     if test -z "$haveit"; then
15868                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15869                     fi
15870                     if test "$hardcode_minus_L" != no; then
15871                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15872                     else
15873                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15874                     fi
15875                   fi
15876                 fi
15877               fi
15878             else
15879               if test "X$found_a" != "X"; then
15880                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15881               else
15882                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15883               fi
15884             fi
15885                         additional_includedir=
15886             case "$found_dir" in
15887               */lib | */lib/)
15888                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15889                 additional_includedir="$basedir/include"
15890                 ;;
15891             esac
15892             if test "X$additional_includedir" != "X"; then
15893                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15894                 haveit=
15895                 if test "X$additional_includedir" = "X/usr/local/include"; then
15896                   if test -n "$GCC"; then
15897                     case $host_os in
15898                       linux*) haveit=yes;;
15899                     esac
15900                   fi
15901                 fi
15902                 if test -z "$haveit"; then
15903                   for x in $CPPFLAGS $INCICONV; do
15904
15905   acl_save_prefix="$prefix"
15906   prefix="$acl_final_prefix"
15907   acl_save_exec_prefix="$exec_prefix"
15908   exec_prefix="$acl_final_exec_prefix"
15909   eval x=\"$x\"
15910   exec_prefix="$acl_save_exec_prefix"
15911   prefix="$acl_save_prefix"
15912
15913                     if test "X$x" = "X-I$additional_includedir"; then
15914                       haveit=yes
15915                       break
15916                     fi
15917                   done
15918                   if test -z "$haveit"; then
15919                     if test -d "$additional_includedir"; then
15920                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15921                     fi
15922                   fi
15923                 fi
15924               fi
15925             fi
15926                         if test -n "$found_la"; then
15927                                                         save_libdir="$libdir"
15928               case "$found_la" in
15929                 */* | *\\*) . "$found_la" ;;
15930                 *) . "./$found_la" ;;
15931               esac
15932               libdir="$save_libdir"
15933                             for dep in $dependency_libs; do
15934                 case "$dep" in
15935                   -L*)
15936                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15937                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
15938                       haveit=
15939                       if test "X$additional_libdir" = "X/usr/local/lib"; then
15940                         if test -n "$GCC"; then
15941                           case $host_os in
15942                             linux*) haveit=yes;;
15943                           esac
15944                         fi
15945                       fi
15946                       if test -z "$haveit"; then
15947                         haveit=
15948                         for x in $LDFLAGS $LIBICONV; do
15949
15950   acl_save_prefix="$prefix"
15951   prefix="$acl_final_prefix"
15952   acl_save_exec_prefix="$exec_prefix"
15953   exec_prefix="$acl_final_exec_prefix"
15954   eval x=\"$x\"
15955   exec_prefix="$acl_save_exec_prefix"
15956   prefix="$acl_save_prefix"
15957
15958                           if test "X$x" = "X-L$additional_libdir"; then
15959                             haveit=yes
15960                             break
15961                           fi
15962                         done
15963                         if test -z "$haveit"; then
15964                           if test -d "$additional_libdir"; then
15965                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15966                           fi
15967                         fi
15968                         haveit=
15969                         for x in $LDFLAGS $LTLIBICONV; 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-L$additional_libdir"; then
15980                             haveit=yes
15981                             break
15982                           fi
15983                         done
15984                         if test -z "$haveit"; then
15985                           if test -d "$additional_libdir"; then
15986                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15987                           fi
15988                         fi
15989                       fi
15990                     fi
15991                     ;;
15992                   -R*)
15993                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15994                     if test "$enable_rpath" != no; then
15995                                                                   haveit=
15996                       for x in $rpathdirs; do
15997                         if test "X$x" = "X$dir"; then
15998                           haveit=yes
15999                           break
16000                         fi
16001                       done
16002                       if test -z "$haveit"; then
16003                         rpathdirs="$rpathdirs $dir"
16004                       fi
16005                                                                   haveit=
16006                       for x in $ltrpathdirs; do
16007                         if test "X$x" = "X$dir"; then
16008                           haveit=yes
16009                           break
16010                         fi
16011                       done
16012                       if test -z "$haveit"; then
16013                         ltrpathdirs="$ltrpathdirs $dir"
16014                       fi
16015                     fi
16016                     ;;
16017                   -l*)
16018                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16019                     ;;
16020                   *.la)
16021                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16022                     ;;
16023                   *)
16024                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16025                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16026                     ;;
16027                 esac
16028               done
16029             fi
16030           else
16031                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16032             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16033           fi
16034         fi
16035       fi
16036     done
16037   done
16038   if test "X$rpathdirs" != "X"; then
16039     if test -n "$hardcode_libdir_separator"; then
16040                         alldirs=
16041       for found_dir in $rpathdirs; do
16042         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16043       done
16044             acl_save_libdir="$libdir"
16045       libdir="$alldirs"
16046       eval flag=\"$hardcode_libdir_flag_spec\"
16047       libdir="$acl_save_libdir"
16048       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16049     else
16050             for found_dir in $rpathdirs; do
16051         acl_save_libdir="$libdir"
16052         libdir="$found_dir"
16053         eval flag=\"$hardcode_libdir_flag_spec\"
16054         libdir="$acl_save_libdir"
16055         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16056       done
16057     fi
16058   fi
16059   if test "X$ltrpathdirs" != "X"; then
16060             for found_dir in $ltrpathdirs; do
16061       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16062     done
16063   fi
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16083 $as_echo_n "checking whether NLS is requested... " >&6; }
16084     # Check whether --enable-nls was given.
16085 if test "${enable_nls+set}" = set; then
16086   enableval=$enable_nls; USE_NLS=$enableval
16087 else
16088   USE_NLS=yes
16089 fi
16090
16091   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16092 $as_echo "$USE_NLS" >&6; }
16093
16094
16095
16096
16097   LIBINTL=
16098   LTLIBINTL=
16099   POSUB=
16100
16101     if test "$USE_NLS" = "yes"; then
16102     gt_use_preinstalled_gnugettext=no
16103
16104
16105
16106
16107
16108
16109         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
16110 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16111 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
16112   $as_echo_n "(cached) " >&6
16113 else
16114   cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 #include <libintl.h>
16121 extern int _nl_msg_cat_cntr;
16122 extern int *_nl_domain_bindings;
16123 int
16124 main ()
16125 {
16126 bindtextdomain ("", "");
16127 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16128   ;
16129   return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136   *) ac_try_echo=$ac_try;;
16137 esac
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140   (eval "$ac_link") 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } && {
16147          test -z "$ac_c_werror_flag" ||
16148          test ! -s conftest.err
16149        } && test -s conftest$ac_exeext && {
16150          test "$cross_compiling" = yes ||
16151          $as_test_x conftest$ac_exeext
16152        }; then
16153   gt_cv_func_gnugettext1_libc=yes
16154 else
16155   $as_echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158         gt_cv_func_gnugettext1_libc=no
16159 fi
16160
16161 rm -rf conftest.dSYM
16162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16163       conftest$ac_exeext conftest.$ac_ext
16164 fi
16165 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16166 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16167
16168         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16169
16170
16171
16172
16173
16174           am_save_CPPFLAGS="$CPPFLAGS"
16175
16176   for element in $INCICONV; do
16177     haveit=
16178     for x in $CPPFLAGS; do
16179
16180   acl_save_prefix="$prefix"
16181   prefix="$acl_final_prefix"
16182   acl_save_exec_prefix="$exec_prefix"
16183   exec_prefix="$acl_final_exec_prefix"
16184   eval x=\"$x\"
16185   exec_prefix="$acl_save_exec_prefix"
16186   prefix="$acl_save_prefix"
16187
16188       if test "X$x" = "X$element"; then
16189         haveit=yes
16190         break
16191       fi
16192     done
16193     if test -z "$haveit"; then
16194       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16195     fi
16196   done
16197
16198
16199   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
16200 $as_echo_n "checking for iconv... " >&6; }
16201 if test "${am_cv_func_iconv+set}" = set; then
16202   $as_echo_n "(cached) " >&6
16203 else
16204
16205     am_cv_func_iconv="no, consider installing GNU libiconv"
16206     am_cv_lib_iconv=no
16207     cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 #include <stdlib.h>
16214 #include <iconv.h>
16215 int
16216 main ()
16217 {
16218 iconv_t cd = iconv_open("","");
16219        iconv(cd,NULL,NULL,NULL,NULL);
16220        iconv_close(cd);
16221   ;
16222   return 0;
16223 }
16224 _ACEOF
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16232 $as_echo "$ac_try_echo") >&5
16233   (eval "$ac_link") 2>conftest.er1
16234   ac_status=$?
16235   grep -v '^ *+' conftest.er1 >conftest.err
16236   rm -f conftest.er1
16237   cat conftest.err >&5
16238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); } && {
16240          test -z "$ac_c_werror_flag" ||
16241          test ! -s conftest.err
16242        } && test -s conftest$ac_exeext && {
16243          test "$cross_compiling" = yes ||
16244          $as_test_x conftest$ac_exeext
16245        }; then
16246   am_cv_func_iconv=yes
16247 else
16248   $as_echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251
16252 fi
16253
16254 rm -rf conftest.dSYM
16255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16256       conftest$ac_exeext conftest.$ac_ext
16257     if test "$am_cv_func_iconv" != yes; then
16258       am_save_LIBS="$LIBS"
16259       LIBS="$LIBS $LIBICONV"
16260       cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266 #include <stdlib.h>
16267 #include <iconv.h>
16268 int
16269 main ()
16270 {
16271 iconv_t cd = iconv_open("","");
16272          iconv(cd,NULL,NULL,NULL,NULL);
16273          iconv_close(cd);
16274   ;
16275   return 0;
16276 }
16277 _ACEOF
16278 rm -f conftest.$ac_objext conftest$ac_exeext
16279 if { (ac_try="$ac_link"
16280 case "(($ac_try" in
16281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282   *) ac_try_echo=$ac_try;;
16283 esac
16284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16285 $as_echo "$ac_try_echo") >&5
16286   (eval "$ac_link") 2>conftest.er1
16287   ac_status=$?
16288   grep -v '^ *+' conftest.er1 >conftest.err
16289   rm -f conftest.er1
16290   cat conftest.err >&5
16291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } && {
16293          test -z "$ac_c_werror_flag" ||
16294          test ! -s conftest.err
16295        } && test -s conftest$ac_exeext && {
16296          test "$cross_compiling" = yes ||
16297          $as_test_x conftest$ac_exeext
16298        }; then
16299   am_cv_lib_iconv=yes
16300         am_cv_func_iconv=yes
16301 else
16302   $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305
16306 fi
16307
16308 rm -rf conftest.dSYM
16309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16310       conftest$ac_exeext conftest.$ac_ext
16311       LIBS="$am_save_LIBS"
16312     fi
16313
16314 fi
16315 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16316 $as_echo "$am_cv_func_iconv" >&6; }
16317   if test "$am_cv_func_iconv" = yes; then
16318
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_ICONV 1
16321 _ACEOF
16322
16323   fi
16324   if test "$am_cv_lib_iconv" = yes; then
16325     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16326 $as_echo_n "checking how to link with libiconv... " >&6; }
16327     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
16328 $as_echo "$LIBICONV" >&6; }
16329   else
16330             CPPFLAGS="$am_save_CPPFLAGS"
16331     LIBICONV=
16332     LTLIBICONV=
16333   fi
16334
16335
16336
16337
16338
16339
16340     use_additional=yes
16341
16342   acl_save_prefix="$prefix"
16343   prefix="$acl_final_prefix"
16344   acl_save_exec_prefix="$exec_prefix"
16345   exec_prefix="$acl_final_exec_prefix"
16346
16347     eval additional_includedir=\"$includedir\"
16348     eval additional_libdir=\"$libdir\"
16349
16350   exec_prefix="$acl_save_exec_prefix"
16351   prefix="$acl_save_prefix"
16352
16353
16354 # Check whether --with-libintl-prefix was given.
16355 if test "${with_libintl_prefix+set}" = set; then
16356   withval=$with_libintl_prefix;
16357     if test "X$withval" = "Xno"; then
16358       use_additional=no
16359     else
16360       if test "X$withval" = "X"; then
16361
16362   acl_save_prefix="$prefix"
16363   prefix="$acl_final_prefix"
16364   acl_save_exec_prefix="$exec_prefix"
16365   exec_prefix="$acl_final_exec_prefix"
16366
16367           eval additional_includedir=\"$includedir\"
16368           eval additional_libdir=\"$libdir\"
16369
16370   exec_prefix="$acl_save_exec_prefix"
16371   prefix="$acl_save_prefix"
16372
16373       else
16374         additional_includedir="$withval/include"
16375         additional_libdir="$withval/lib"
16376       fi
16377     fi
16378
16379 fi
16380
16381       LIBINTL=
16382   LTLIBINTL=
16383   INCINTL=
16384   rpathdirs=
16385   ltrpathdirs=
16386   names_already_handled=
16387   names_next_round='intl '
16388   while test -n "$names_next_round"; do
16389     names_this_round="$names_next_round"
16390     names_next_round=
16391     for name in $names_this_round; do
16392       already_handled=
16393       for n in $names_already_handled; do
16394         if test "$n" = "$name"; then
16395           already_handled=yes
16396           break
16397         fi
16398       done
16399       if test -z "$already_handled"; then
16400         names_already_handled="$names_already_handled $name"
16401                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16402         eval value=\"\$HAVE_LIB$uppername\"
16403         if test -n "$value"; then
16404           if test "$value" = yes; then
16405             eval value=\"\$LIB$uppername\"
16406             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16407             eval value=\"\$LTLIB$uppername\"
16408             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16409           else
16410                                     :
16411           fi
16412         else
16413                               found_dir=
16414           found_la=
16415           found_so=
16416           found_a=
16417           if test $use_additional = yes; then
16418             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16419               found_dir="$additional_libdir"
16420               found_so="$additional_libdir/lib$name.$shlibext"
16421               if test -f "$additional_libdir/lib$name.la"; then
16422                 found_la="$additional_libdir/lib$name.la"
16423               fi
16424             else
16425               if test -f "$additional_libdir/lib$name.$libext"; then
16426                 found_dir="$additional_libdir"
16427                 found_a="$additional_libdir/lib$name.$libext"
16428                 if test -f "$additional_libdir/lib$name.la"; then
16429                   found_la="$additional_libdir/lib$name.la"
16430                 fi
16431               fi
16432             fi
16433           fi
16434           if test "X$found_dir" = "X"; then
16435             for x in $LDFLAGS $LTLIBINTL; do
16436
16437   acl_save_prefix="$prefix"
16438   prefix="$acl_final_prefix"
16439   acl_save_exec_prefix="$exec_prefix"
16440   exec_prefix="$acl_final_exec_prefix"
16441   eval x=\"$x\"
16442   exec_prefix="$acl_save_exec_prefix"
16443   prefix="$acl_save_prefix"
16444
16445               case "$x" in
16446                 -L*)
16447                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16448                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16449                     found_dir="$dir"
16450                     found_so="$dir/lib$name.$shlibext"
16451                     if test -f "$dir/lib$name.la"; then
16452                       found_la="$dir/lib$name.la"
16453                     fi
16454                   else
16455                     if test -f "$dir/lib$name.$libext"; then
16456                       found_dir="$dir"
16457                       found_a="$dir/lib$name.$libext"
16458                       if test -f "$dir/lib$name.la"; then
16459                         found_la="$dir/lib$name.la"
16460                       fi
16461                     fi
16462                   fi
16463                   ;;
16464               esac
16465               if test "X$found_dir" != "X"; then
16466                 break
16467               fi
16468             done
16469           fi
16470           if test "X$found_dir" != "X"; then
16471                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16472             if test "X$found_so" != "X"; then
16473                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16474                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16475               else
16476                                                                                 haveit=
16477                 for x in $ltrpathdirs; do
16478                   if test "X$x" = "X$found_dir"; then
16479                     haveit=yes
16480                     break
16481                   fi
16482                 done
16483                 if test -z "$haveit"; then
16484                   ltrpathdirs="$ltrpathdirs $found_dir"
16485                 fi
16486                                 if test "$hardcode_direct" = yes; then
16487                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16488                 else
16489                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16490                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16491                                                             haveit=
16492                     for x in $rpathdirs; do
16493                       if test "X$x" = "X$found_dir"; then
16494                         haveit=yes
16495                         break
16496                       fi
16497                     done
16498                     if test -z "$haveit"; then
16499                       rpathdirs="$rpathdirs $found_dir"
16500                     fi
16501                   else
16502                                                                                 haveit=
16503                     for x in $LDFLAGS $LIBINTL; do
16504
16505   acl_save_prefix="$prefix"
16506   prefix="$acl_final_prefix"
16507   acl_save_exec_prefix="$exec_prefix"
16508   exec_prefix="$acl_final_exec_prefix"
16509   eval x=\"$x\"
16510   exec_prefix="$acl_save_exec_prefix"
16511   prefix="$acl_save_prefix"
16512
16513                       if test "X$x" = "X-L$found_dir"; then
16514                         haveit=yes
16515                         break
16516                       fi
16517                     done
16518                     if test -z "$haveit"; then
16519                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16520                     fi
16521                     if test "$hardcode_minus_L" != no; then
16522                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16523                     else
16524                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16525                     fi
16526                   fi
16527                 fi
16528               fi
16529             else
16530               if test "X$found_a" != "X"; then
16531                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16532               else
16533                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16534               fi
16535             fi
16536                         additional_includedir=
16537             case "$found_dir" in
16538               */lib | */lib/)
16539                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16540                 additional_includedir="$basedir/include"
16541                 ;;
16542             esac
16543             if test "X$additional_includedir" != "X"; then
16544                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16545                 haveit=
16546                 if test "X$additional_includedir" = "X/usr/local/include"; then
16547                   if test -n "$GCC"; then
16548                     case $host_os in
16549                       linux*) haveit=yes;;
16550                     esac
16551                   fi
16552                 fi
16553                 if test -z "$haveit"; then
16554                   for x in $CPPFLAGS $INCINTL; do
16555
16556   acl_save_prefix="$prefix"
16557   prefix="$acl_final_prefix"
16558   acl_save_exec_prefix="$exec_prefix"
16559   exec_prefix="$acl_final_exec_prefix"
16560   eval x=\"$x\"
16561   exec_prefix="$acl_save_exec_prefix"
16562   prefix="$acl_save_prefix"
16563
16564                     if test "X$x" = "X-I$additional_includedir"; then
16565                       haveit=yes
16566                       break
16567                     fi
16568                   done
16569                   if test -z "$haveit"; then
16570                     if test -d "$additional_includedir"; then
16571                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16572                     fi
16573                   fi
16574                 fi
16575               fi
16576             fi
16577                         if test -n "$found_la"; then
16578                                                         save_libdir="$libdir"
16579               case "$found_la" in
16580                 */* | *\\*) . "$found_la" ;;
16581                 *) . "./$found_la" ;;
16582               esac
16583               libdir="$save_libdir"
16584                             for dep in $dependency_libs; do
16585                 case "$dep" in
16586                   -L*)
16587                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16588                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16589                       haveit=
16590                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16591                         if test -n "$GCC"; then
16592                           case $host_os in
16593                             linux*) haveit=yes;;
16594                           esac
16595                         fi
16596                       fi
16597                       if test -z "$haveit"; then
16598                         haveit=
16599                         for x in $LDFLAGS $LIBINTL; do
16600
16601   acl_save_prefix="$prefix"
16602   prefix="$acl_final_prefix"
16603   acl_save_exec_prefix="$exec_prefix"
16604   exec_prefix="$acl_final_exec_prefix"
16605   eval x=\"$x\"
16606   exec_prefix="$acl_save_exec_prefix"
16607   prefix="$acl_save_prefix"
16608
16609                           if test "X$x" = "X-L$additional_libdir"; then
16610                             haveit=yes
16611                             break
16612                           fi
16613                         done
16614                         if test -z "$haveit"; then
16615                           if test -d "$additional_libdir"; then
16616                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16617                           fi
16618                         fi
16619                         haveit=
16620                         for x in $LDFLAGS $LTLIBINTL; do
16621
16622   acl_save_prefix="$prefix"
16623   prefix="$acl_final_prefix"
16624   acl_save_exec_prefix="$exec_prefix"
16625   exec_prefix="$acl_final_exec_prefix"
16626   eval x=\"$x\"
16627   exec_prefix="$acl_save_exec_prefix"
16628   prefix="$acl_save_prefix"
16629
16630                           if test "X$x" = "X-L$additional_libdir"; then
16631                             haveit=yes
16632                             break
16633                           fi
16634                         done
16635                         if test -z "$haveit"; then
16636                           if test -d "$additional_libdir"; then
16637                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16638                           fi
16639                         fi
16640                       fi
16641                     fi
16642                     ;;
16643                   -R*)
16644                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16645                     if test "$enable_rpath" != no; then
16646                                                                   haveit=
16647                       for x in $rpathdirs; do
16648                         if test "X$x" = "X$dir"; then
16649                           haveit=yes
16650                           break
16651                         fi
16652                       done
16653                       if test -z "$haveit"; then
16654                         rpathdirs="$rpathdirs $dir"
16655                       fi
16656                                                                   haveit=
16657                       for x in $ltrpathdirs; do
16658                         if test "X$x" = "X$dir"; then
16659                           haveit=yes
16660                           break
16661                         fi
16662                       done
16663                       if test -z "$haveit"; then
16664                         ltrpathdirs="$ltrpathdirs $dir"
16665                       fi
16666                     fi
16667                     ;;
16668                   -l*)
16669                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16670                     ;;
16671                   *.la)
16672                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16673                     ;;
16674                   *)
16675                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16676                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16677                     ;;
16678                 esac
16679               done
16680             fi
16681           else
16682                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16683             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16684           fi
16685         fi
16686       fi
16687     done
16688   done
16689   if test "X$rpathdirs" != "X"; then
16690     if test -n "$hardcode_libdir_separator"; then
16691                         alldirs=
16692       for found_dir in $rpathdirs; do
16693         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16694       done
16695             acl_save_libdir="$libdir"
16696       libdir="$alldirs"
16697       eval flag=\"$hardcode_libdir_flag_spec\"
16698       libdir="$acl_save_libdir"
16699       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16700     else
16701             for found_dir in $rpathdirs; do
16702         acl_save_libdir="$libdir"
16703         libdir="$found_dir"
16704         eval flag=\"$hardcode_libdir_flag_spec\"
16705         libdir="$acl_save_libdir"
16706         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16707       done
16708     fi
16709   fi
16710   if test "X$ltrpathdirs" != "X"; then
16711             for found_dir in $ltrpathdirs; do
16712       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16713     done
16714   fi
16715
16716           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
16717 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16718 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
16719   $as_echo_n "(cached) " >&6
16720 else
16721   gt_save_CPPFLAGS="$CPPFLAGS"
16722             CPPFLAGS="$CPPFLAGS $INCINTL"
16723             gt_save_LIBS="$LIBS"
16724             LIBS="$LIBS $LIBINTL"
16725                         cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h.  */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h.  */
16731 #include <libintl.h>
16732 extern int _nl_msg_cat_cntr;
16733 extern
16734 #ifdef __cplusplus
16735 "C"
16736 #endif
16737 const char *_nl_expand_alias ();
16738 int
16739 main ()
16740 {
16741 bindtextdomain ("", "");
16742 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751   *) ac_try_echo=$ac_try;;
16752 esac
16753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16754 $as_echo "$ac_try_echo") >&5
16755   (eval "$ac_link") 2>conftest.er1
16756   ac_status=$?
16757   grep -v '^ *+' conftest.er1 >conftest.err
16758   rm -f conftest.er1
16759   cat conftest.err >&5
16760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } && {
16762          test -z "$ac_c_werror_flag" ||
16763          test ! -s conftest.err
16764        } && test -s conftest$ac_exeext && {
16765          test "$cross_compiling" = yes ||
16766          $as_test_x conftest$ac_exeext
16767        }; then
16768   gt_cv_func_gnugettext1_libintl=yes
16769 else
16770   $as_echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16772
16773         gt_cv_func_gnugettext1_libintl=no
16774 fi
16775
16776 rm -rf conftest.dSYM
16777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16778       conftest$ac_exeext conftest.$ac_ext
16779                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16780               LIBS="$LIBS $LIBICONV"
16781               cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h.  */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h.  */
16787 #include <libintl.h>
16788 extern int _nl_msg_cat_cntr;
16789 extern
16790 #ifdef __cplusplus
16791 "C"
16792 #endif
16793 const char *_nl_expand_alias ();
16794 int
16795 main ()
16796 {
16797 bindtextdomain ("", "");
16798 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16810 $as_echo "$ac_try_echo") >&5
16811   (eval "$ac_link") 2>conftest.er1
16812   ac_status=$?
16813   grep -v '^ *+' conftest.er1 >conftest.err
16814   rm -f conftest.er1
16815   cat conftest.err >&5
16816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); } && {
16818          test -z "$ac_c_werror_flag" ||
16819          test ! -s conftest.err
16820        } && test -s conftest$ac_exeext && {
16821          test "$cross_compiling" = yes ||
16822          $as_test_x conftest$ac_exeext
16823        }; then
16824   LIBINTL="$LIBINTL $LIBICONV"
16825                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16826                 gt_cv_func_gnugettext1_libintl=yes
16827
16828 else
16829   $as_echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832
16833 fi
16834
16835 rm -rf conftest.dSYM
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837       conftest$ac_exeext conftest.$ac_ext
16838             fi
16839             CPPFLAGS="$gt_save_CPPFLAGS"
16840             LIBS="$gt_save_LIBS"
16841 fi
16842 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
16843 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
16844         fi
16845
16846                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16847            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16848                 && test "$PACKAGE" != gettext-runtime \
16849                 && test "$PACKAGE" != gettext-tools; }; then
16850           gt_use_preinstalled_gnugettext=yes
16851         else
16852                     LIBINTL=
16853           LTLIBINTL=
16854           INCINTL=
16855         fi
16856
16857
16858
16859     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16860        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16861
16862 cat >>confdefs.h <<\_ACEOF
16863 #define ENABLE_NLS 1
16864 _ACEOF
16865
16866     else
16867       USE_NLS=no
16868     fi
16869   fi
16870
16871   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
16872 $as_echo_n "checking whether to use NLS... " >&6; }
16873   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16874 $as_echo "$USE_NLS" >&6; }
16875   if test "$USE_NLS" = "yes"; then
16876     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
16877 $as_echo_n "checking where the gettext function comes from... " >&6; }
16878     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16879       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16880         gt_source="external libintl"
16881       else
16882         gt_source="libc"
16883       fi
16884     else
16885       gt_source="included intl directory"
16886     fi
16887     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
16888 $as_echo "$gt_source" >&6; }
16889   fi
16890
16891   if test "$USE_NLS" = "yes"; then
16892
16893     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16894       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16895         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
16896 $as_echo_n "checking how to link with libintl... " >&6; }
16897         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
16898 $as_echo "$LIBINTL" >&6; }
16899
16900   for element in $INCINTL; do
16901     haveit=
16902     for x in $CPPFLAGS; do
16903
16904   acl_save_prefix="$prefix"
16905   prefix="$acl_final_prefix"
16906   acl_save_exec_prefix="$exec_prefix"
16907   exec_prefix="$acl_final_exec_prefix"
16908   eval x=\"$x\"
16909   exec_prefix="$acl_save_exec_prefix"
16910   prefix="$acl_save_prefix"
16911
16912       if test "X$x" = "X$element"; then
16913         haveit=yes
16914         break
16915       fi
16916     done
16917     if test -z "$haveit"; then
16918       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16919     fi
16920   done
16921
16922       fi
16923
16924
16925 cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_GETTEXT 1
16927 _ACEOF
16928
16929
16930 cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_DCGETTEXT 1
16932 _ACEOF
16933
16934     fi
16935
16936         POSUB=po
16937   fi
16938
16939
16940
16941     INTLLIBS="$LIBINTL"
16942
16943
16944
16945
16946
16947
16948 if test -d "$srcdir/po"
16949 then
16950     ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
16951 else
16952     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"
16953 fi
16954
16955
16956 # Check whether --with-ncurses was given.
16957 if test "${with_ncurses+set}" = set; then
16958   withval=$with_ncurses;
16959 else
16960   with_ncurses=auto
16961
16962 fi
16963
16964  if false; then
16965   HAVE_NCURSES_TRUE=
16966   HAVE_NCURSES_FALSE='#'
16967 else
16968   HAVE_NCURSES_TRUE='#'
16969   HAVE_NCURSES_FALSE=
16970 fi
16971
16972
16973 if test "x$with_ncurses" != xno; then
16974   have_ncurses=no
16975
16976
16977 for ac_header in ncurses.h ncurses/ncurses.h
16978 do
16979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16981   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16982 $as_echo_n "checking for $ac_header... " >&6; }
16983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16984   $as_echo_n "(cached) " >&6
16985 fi
16986 ac_res=`eval 'as_val=${'$as_ac_Header'}
16987                  $as_echo "$as_val"'`
16988                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16989 $as_echo "$ac_res" >&6; }
16990 else
16991   # Is the header compilable?
16992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16993 $as_echo_n "checking $ac_header usability... " >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000 $ac_includes_default
17001 #include <$ac_header>
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011   (eval "$ac_compile") 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } && {
17018          test -z "$ac_c_werror_flag" ||
17019          test ! -s conftest.err
17020        } && test -s conftest.$ac_objext; then
17021   ac_header_compiler=yes
17022 else
17023   $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026         ac_header_compiler=no
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17031 $as_echo "$ac_header_compiler" >&6; }
17032
17033 # Is the header present?
17034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17035 $as_echo_n "checking $ac_header presence... " >&6; }
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 #include <$ac_header>
17043 _ACEOF
17044 if { (ac_try="$ac_cpp conftest.$ac_ext"
17045 case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17050 $as_echo "$ac_try_echo") >&5
17051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17052   ac_status=$?
17053   grep -v '^ *+' conftest.er1 >conftest.err
17054   rm -f conftest.er1
17055   cat conftest.err >&5
17056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } >/dev/null && {
17058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17059          test ! -s conftest.err
17060        }; then
17061   ac_header_preproc=yes
17062 else
17063   $as_echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066   ac_header_preproc=no
17067 fi
17068
17069 rm -f conftest.err conftest.$ac_ext
17070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17071 $as_echo "$ac_header_preproc" >&6; }
17072
17073 # So?  What about this header?
17074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17075   yes:no: )
17076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17080     ac_header_preproc=yes
17081     ;;
17082   no:yes:* )
17083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17086 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17090 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17095     ( cat <<\_ASBOX
17096 ## ------------------------------ ##
17097 ## Report this to kzak@redhat.com ##
17098 ## ------------------------------ ##
17099 _ASBOX
17100      ) | sed "s/^/$as_me: WARNING:     /" >&2
17101     ;;
17102 esac
17103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17104 $as_echo_n "checking for $ac_header... " >&6; }
17105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17106   $as_echo_n "(cached) " >&6
17107 else
17108   eval "$as_ac_Header=\$ac_header_preproc"
17109 fi
17110 ac_res=`eval 'as_val=${'$as_ac_Header'}
17111                  $as_echo "$as_val"'`
17112                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17113 $as_echo "$ac_res" >&6; }
17114
17115 fi
17116 as_val=`eval 'as_val=${'$as_ac_Header'}
17117                  $as_echo "$as_val"'`
17118    if test "x$as_val" = x""yes; then
17119   cat >>confdefs.h <<_ACEOF
17120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17121 _ACEOF
17122
17123     if test "x$with_ncurses" = xauto; then
17124
17125
17126   have_ncurses=yes
17127
17128 { $as_echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
17129 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
17130 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
17131   $as_echo_n "(cached) " >&6
17132 else
17133   ac_check_lib_save_LIBS=$LIBS
17134 LIBS="-lncursesw  $LIBS"
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h.  */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h.  */
17141
17142 /* Override any GCC internal prototype to avoid an error.
17143    Use char because int might match the return type of a GCC
17144    builtin and then its argument prototype would still apply.  */
17145 #ifdef __cplusplus
17146 extern "C"
17147 #endif
17148 char initscr ();
17149 int
17150 main ()
17151 {
17152 return initscr ();
17153   ;
17154   return 0;
17155 }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17164 $as_echo "$ac_try_echo") >&5
17165   (eval "$ac_link") 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } && {
17172          test -z "$ac_c_werror_flag" ||
17173          test ! -s conftest.err
17174        } && test -s conftest$ac_exeext && {
17175          test "$cross_compiling" = yes ||
17176          $as_test_x conftest$ac_exeext
17177        }; then
17178   ac_cv_lib_ncursesw_initscr=yes
17179 else
17180   $as_echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183         ac_cv_lib_ncursesw_initscr=no
17184 fi
17185
17186 rm -rf conftest.dSYM
17187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17188       conftest$ac_exeext conftest.$ac_ext
17189 LIBS=$ac_check_lib_save_LIBS
17190 fi
17191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
17192 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
17193 if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then
17194   cat >>confdefs.h <<_ACEOF
17195 #define HAVE_LIBNCURSESW 1
17196 _ACEOF
17197
17198   LIBS="-lncursesw $LIBS"
17199
17200 else
17201   have_ncurses=no
17202 fi
17203
17204    if test $have_ncurses = yes; then
17205   HAVE_NCURSES_TRUE=
17206   HAVE_NCURSES_FALSE='#'
17207 else
17208   HAVE_NCURSES_TRUE='#'
17209   HAVE_NCURSES_FALSE=
17210 fi
17211
17212
17213       if test "x$have_ncurses" = xyes; then
17214         NCURSES_LIBS="-lncursesw"
17215       fi
17216     fi
17217     if test "x$have_ncurses" = xno; then
17218
17219
17220   have_ncurses=yes
17221
17222 { $as_echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
17223 $as_echo_n "checking for initscr in -lncurses... " >&6; }
17224 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
17225   $as_echo_n "(cached) " >&6
17226 else
17227   ac_check_lib_save_LIBS=$LIBS
17228 LIBS="-lncurses  $LIBS"
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235
17236 /* Override any GCC internal prototype to avoid an error.
17237    Use char because int might match the return type of a GCC
17238    builtin and then its argument prototype would still apply.  */
17239 #ifdef __cplusplus
17240 extern "C"
17241 #endif
17242 char initscr ();
17243 int
17244 main ()
17245 {
17246 return initscr ();
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259   (eval "$ac_link") 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } && {
17266          test -z "$ac_c_werror_flag" ||
17267          test ! -s conftest.err
17268        } && test -s conftest$ac_exeext && {
17269          test "$cross_compiling" = yes ||
17270          $as_test_x conftest$ac_exeext
17271        }; then
17272   ac_cv_lib_ncurses_initscr=yes
17273 else
17274   $as_echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277         ac_cv_lib_ncurses_initscr=no
17278 fi
17279
17280 rm -rf conftest.dSYM
17281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17282       conftest$ac_exeext conftest.$ac_ext
17283 LIBS=$ac_check_lib_save_LIBS
17284 fi
17285 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
17286 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
17287 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then
17288   cat >>confdefs.h <<_ACEOF
17289 #define HAVE_LIBNCURSES 1
17290 _ACEOF
17291
17292   LIBS="-lncurses $LIBS"
17293
17294 else
17295   have_ncurses=no
17296 fi
17297
17298    if test $have_ncurses = yes; then
17299   HAVE_NCURSES_TRUE=
17300   HAVE_NCURSES_FALSE='#'
17301 else
17302   HAVE_NCURSES_TRUE='#'
17303   HAVE_NCURSES_FALSE=
17304 fi
17305
17306
17307       if test "x$have_ncurses" = xyes; then
17308         NCURSES_LIBS="-lncurses"
17309       fi
17310     fi
17311
17312 fi
17313
17314 done
17315
17316   if test "x$have_ncurses" = xno; then
17317     { { $as_echo "$as_me:$LINENO: error: ncurses or ncursesw selected, but library not found (--without-ncurses to disable)" >&5
17318 $as_echo "$as_me: error: ncurses or ncursesw selected, but library not found (--without-ncurses to disable)" >&2;}
17319    { (exit 1); exit 1; }; }
17320   fi
17321 fi
17322
17323
17324
17325
17326 # Check whether --with-slang was given.
17327 if test "${with_slang+set}" = set; then
17328   withval=$with_slang;
17329 else
17330   with_slang=no
17331
17332 fi
17333
17334
17335 have_tinfo=no
17336 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
17337 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
17338 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
17339   $as_echo_n "(cached) " >&6
17340 else
17341   ac_check_lib_save_LIBS=$LIBS
17342 LIBS="-ltinfo  $LIBS"
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349
17350 /* Override any GCC internal prototype to avoid an error.
17351    Use char because int might match the return type of a GCC
17352    builtin and then its argument prototype would still apply.  */
17353 #ifdef __cplusplus
17354 extern "C"
17355 #endif
17356 char tgetent ();
17357 int
17358 main ()
17359 {
17360 return tgetent ();
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369   *) ac_try_echo=$ac_try;;
17370 esac
17371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17372 $as_echo "$ac_try_echo") >&5
17373   (eval "$ac_link") 2>conftest.er1
17374   ac_status=$?
17375   grep -v '^ *+' conftest.er1 >conftest.err
17376   rm -f conftest.er1
17377   cat conftest.err >&5
17378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } && {
17380          test -z "$ac_c_werror_flag" ||
17381          test ! -s conftest.err
17382        } && test -s conftest$ac_exeext && {
17383          test "$cross_compiling" = yes ||
17384          $as_test_x conftest$ac_exeext
17385        }; then
17386   ac_cv_lib_tinfo_tgetent=yes
17387 else
17388   $as_echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391         ac_cv_lib_tinfo_tgetent=no
17392 fi
17393
17394 rm -rf conftest.dSYM
17395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17396       conftest$ac_exeext conftest.$ac_ext
17397 LIBS=$ac_check_lib_save_LIBS
17398 fi
17399 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
17400 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
17401 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
17402   have_tinfo=yes
17403 fi
17404
17405  if test "x$have_tinfo" = xyes; then
17406   HAVE_TINFO_TRUE=
17407   HAVE_TINFO_FALSE='#'
17408 else
17409   HAVE_TINFO_TRUE='#'
17410   HAVE_TINFO_FALSE=
17411 fi
17412
17413
17414 use_slang=no
17415 if test "x$with_slang" = xyes; then
17416
17417
17418 for ac_header in slcurses.h slang/slcurses.h
17419 do
17420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17422   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17423 $as_echo_n "checking for $ac_header... " >&6; }
17424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17425   $as_echo_n "(cached) " >&6
17426 fi
17427 ac_res=`eval 'as_val=${'$as_ac_Header'}
17428                  $as_echo "$as_val"'`
17429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17430 $as_echo "$ac_res" >&6; }
17431 else
17432   # Is the header compilable?
17433 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17434 $as_echo_n "checking $ac_header usability... " >&6; }
17435 cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441 $ac_includes_default
17442 #include <$ac_header>
17443 _ACEOF
17444 rm -f conftest.$ac_objext
17445 if { (ac_try="$ac_compile"
17446 case "(($ac_try" in
17447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448   *) ac_try_echo=$ac_try;;
17449 esac
17450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17451 $as_echo "$ac_try_echo") >&5
17452   (eval "$ac_compile") 2>conftest.er1
17453   ac_status=$?
17454   grep -v '^ *+' conftest.er1 >conftest.err
17455   rm -f conftest.er1
17456   cat conftest.err >&5
17457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); } && {
17459          test -z "$ac_c_werror_flag" ||
17460          test ! -s conftest.err
17461        } && test -s conftest.$ac_objext; then
17462   ac_header_compiler=yes
17463 else
17464   $as_echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17466
17467         ac_header_compiler=no
17468 fi
17469
17470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17472 $as_echo "$ac_header_compiler" >&6; }
17473
17474 # Is the header present?
17475 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17476 $as_echo_n "checking $ac_header presence... " >&6; }
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 #include <$ac_header>
17484 _ACEOF
17485 if { (ac_try="$ac_cpp conftest.$ac_ext"
17486 case "(($ac_try" in
17487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488   *) ac_try_echo=$ac_try;;
17489 esac
17490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17491 $as_echo "$ac_try_echo") >&5
17492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17493   ac_status=$?
17494   grep -v '^ *+' conftest.er1 >conftest.err
17495   rm -f conftest.er1
17496   cat conftest.err >&5
17497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); } >/dev/null && {
17499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17500          test ! -s conftest.err
17501        }; then
17502   ac_header_preproc=yes
17503 else
17504   $as_echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507   ac_header_preproc=no
17508 fi
17509
17510 rm -f conftest.err conftest.$ac_ext
17511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17512 $as_echo "$ac_header_preproc" >&6; }
17513
17514 # So?  What about this header?
17515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17516   yes:no: )
17517     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17518 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17519     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17520 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17521     ac_header_preproc=yes
17522     ;;
17523   no:yes:* )
17524     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17525 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17526     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17527 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17529 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17531 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17533 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17535 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17536     ( cat <<\_ASBOX
17537 ## ------------------------------ ##
17538 ## Report this to kzak@redhat.com ##
17539 ## ------------------------------ ##
17540 _ASBOX
17541      ) | sed "s/^/$as_me: WARNING:     /" >&2
17542     ;;
17543 esac
17544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17545 $as_echo_n "checking for $ac_header... " >&6; }
17546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17547   $as_echo_n "(cached) " >&6
17548 else
17549   eval "$as_ac_Header=\$ac_header_preproc"
17550 fi
17551 ac_res=`eval 'as_val=${'$as_ac_Header'}
17552                  $as_echo "$as_val"'`
17553                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17554 $as_echo "$ac_res" >&6; }
17555
17556 fi
17557 as_val=`eval 'as_val=${'$as_ac_Header'}
17558                  $as_echo "$as_val"'`
17559    if test "x$as_val" = x""yes; then
17560   cat >>confdefs.h <<_ACEOF
17561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17562 _ACEOF
17563  use_slang=yes
17564 fi
17565
17566 done
17567
17568   if test "x$use_slang" = xno; then
17569     { { $as_echo "$as_me:$LINENO: error: slang selected but slcurses.h not found" >&5
17570 $as_echo "$as_me: error: slang selected but slcurses.h not found" >&2;}
17571    { (exit 1); exit 1; }; }
17572   fi
17573 fi
17574  if test "x$use_slang" = xyes; then
17575   USE_SLANG_TRUE=
17576   USE_SLANG_FALSE='#'
17577 else
17578   USE_SLANG_TRUE='#'
17579   USE_SLANG_FALSE=
17580 fi
17581
17582
17583
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h.  */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h.  */
17590
17591 #define _XOPEN_SOURCE
17592 #include <unistd.h>
17593
17594 int
17595 main ()
17596 {
17597
17598 char *c = crypt("abc","pw");
17599
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17611 $as_echo "$ac_try_echo") >&5
17612   (eval "$ac_link") 2>conftest.er1
17613   ac_status=$?
17614   grep -v '^ *+' conftest.er1 >conftest.err
17615   rm -f conftest.er1
17616   cat conftest.err >&5
17617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } && {
17619          test -z "$ac_c_werror_flag" ||
17620          test ! -s conftest.err
17621        } && test -s conftest$ac_exeext && {
17622          test "$cross_compiling" = yes ||
17623          $as_test_x conftest$ac_exeext
17624        }; then
17625   :
17626 else
17627   $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630
17631   LIBS="$LIBS -lcrypt"
17632   cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h.  */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h.  */
17638
17639   #define _XOPEN_SOURCE
17640   #include <unistd.h>
17641
17642 int
17643 main ()
17644 {
17645
17646   char *c = crypt("abc","pw");
17647
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (ac_try="$ac_compile"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17659 $as_echo "$ac_try_echo") >&5
17660   (eval "$ac_compile") 2>conftest.er1
17661   ac_status=$?
17662   grep -v '^ *+' conftest.er1 >conftest.err
17663   rm -f conftest.er1
17664   cat conftest.err >&5
17665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); } && {
17667          test -z "$ac_c_werror_flag" ||
17668          test ! -s conftest.err
17669        } && test -s conftest.$ac_objext; then
17670
17671
17672 cat >>confdefs.h <<\_ACEOF
17673 #define NEED_LIBCRYPT 1
17674 _ACEOF
17675
17676   need_libcrypt=yes
17677
17678 else
17679   $as_echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682
17683   { { $as_echo "$as_me:$LINENO: error: crypt() is not available" >&5
17684 $as_echo "$as_me: error: crypt() is not available" >&2;}
17685    { (exit 1); exit 1; }; }
17686
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690
17691 fi
17692
17693 rm -rf conftest.dSYM
17694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17695       conftest$ac_exeext conftest.$ac_ext
17696
17697  if test "x$need_libcrypt" = xyes; then
17698   NEED_LIBCRYPT_TRUE=
17699   NEED_LIBCRYPT_FALSE='#'
17700 else
17701   NEED_LIBCRYPT_TRUE='#'
17702   NEED_LIBCRYPT_FALSE=
17703 fi
17704
17705
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712
17713 #include <stdio.h>
17714
17715 int
17716 main ()
17717 {
17718
17719 printf(__progname);
17720
17721   ;
17722   return 0;
17723 }
17724 _ACEOF
17725 rm -f conftest.$ac_objext
17726 if { (ac_try="$ac_compile"
17727 case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17732 $as_echo "$ac_try_echo") >&5
17733   (eval "$ac_compile") 2>conftest.er1
17734   ac_status=$?
17735   grep -v '^ *+' conftest.er1 >conftest.err
17736   rm -f conftest.er1
17737   cat conftest.err >&5
17738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739   (exit $ac_status); } && {
17740          test -z "$ac_c_werror_flag" ||
17741          test ! -s conftest.err
17742        } && test -s conftest.$ac_objext; then
17743
17744 cat >>confdefs.h <<\_ACEOF
17745 #define HAVE___PROGNAME 1
17746 _ACEOF
17747
17748
17749 else
17750   $as_echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17752
17753
17754 fi
17755
17756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17757
17758
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765
17766 #include <wchar.h>
17767 #include <wctype.h>
17768 #include <stdio.h>
17769
17770 int
17771 main ()
17772 {
17773
17774   wchar_t wc;
17775   wint_t w;
17776   w = fgetwc(stdin);
17777   if (w == WEOF) exit(1);
17778   wc = w;
17779   fputwc(wc,stdout);
17780
17781   ;
17782   return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest.$ac_objext
17786 if { (ac_try="$ac_compile"
17787 case "(($ac_try" in
17788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789   *) ac_try_echo=$ac_try;;
17790 esac
17791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17792 $as_echo "$ac_try_echo") >&5
17793   (eval "$ac_compile") 2>conftest.er1
17794   ac_status=$?
17795   grep -v '^ *+' conftest.er1 >conftest.err
17796   rm -f conftest.er1
17797   cat conftest.err >&5
17798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); } && {
17800          test -z "$ac_c_werror_flag" ||
17801          test ! -s conftest.err
17802        } && test -s conftest.$ac_objext; then
17803
17804 cat >>confdefs.h <<\_ACEOF
17805 #define HAVE_WIDECHAR 1
17806 _ACEOF
17807
17808
17809 else
17810   $as_echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17812
17813
17814 fi
17815
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828   { $as_echo "$as_me:$LINENO: checking for syscall pivot_root" >&5
17829 $as_echo_n "checking for syscall pivot_root... " >&6; }
17830 if test "${util_cv_syscall_pivot_root+set}" = set; then
17831   $as_echo_n "(cached) " >&6
17832 else
17833   cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h.  */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h.  */
17839
17840 #include <sys/syscall.h>
17841 #include <unistd.h>
17842
17843 int
17844 main ()
17845 {
17846 int test = SYS_pivot_root;
17847   ;
17848   return 0;
17849 }
17850 _ACEOF
17851 rm -f conftest.$ac_objext
17852 if { (ac_try="$ac_compile"
17853 case "(($ac_try" in
17854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855   *) ac_try_echo=$ac_try;;
17856 esac
17857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17858 $as_echo "$ac_try_echo") >&5
17859   (eval "$ac_compile") 2>conftest.er1
17860   ac_status=$?
17861   grep -v '^ *+' conftest.er1 >conftest.err
17862   rm -f conftest.er1
17863   cat conftest.err >&5
17864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } && {
17866          test -z "$ac_c_werror_flag" ||
17867          test ! -s conftest.err
17868        } && test -s conftest.$ac_objext; then
17869   syscall=SYS_pivot_root
17870 else
17871   $as_echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874                     cat >conftest.$ac_ext <<_ACEOF
17875 /* confdefs.h.  */
17876 _ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h.  */
17880
17881 #include <sys/syscall.h>
17882 #include <unistd.h>
17883
17884 int
17885 main ()
17886 {
17887 int test = _NR_pivot_root;
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext
17893 if { (ac_try="$ac_compile"
17894 case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17899 $as_echo "$ac_try_echo") >&5
17900   (eval "$ac_compile") 2>conftest.er1
17901   ac_status=$?
17902   grep -v '^ *+' conftest.er1 >conftest.err
17903   rm -f conftest.er1
17904   cat conftest.err >&5
17905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); } && {
17907          test -z "$ac_c_werror_flag" ||
17908          test ! -s conftest.err
17909        } && test -s conftest.$ac_objext; then
17910   syscall=_NR_pivot_root
17911 else
17912   $as_echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17914
17915
17916           syscall=no
17917           if test "x$linux_os" = xyes; then
17918             case $host_cpu in
17919
17920             esac
17921           fi
17922
17923 fi
17924
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926
17927
17928 fi
17929
17930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17931
17932     util_cv_syscall_pivot_root=$syscall
17933
17934 fi
17935 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_pivot_root" >&5
17936 $as_echo "$util_cv_syscall_pivot_root" >&6; }
17937    if test "x$util_cv_syscall_pivot_root" != xno; then
17938   HAVE_PIVOT_ROOT_TRUE=
17939   HAVE_PIVOT_ROOT_FALSE='#'
17940 else
17941   HAVE_PIVOT_ROOT_TRUE='#'
17942   HAVE_PIVOT_ROOT_FALSE=
17943 fi
17944
17945   case $util_cv_syscall_pivot_root in #(
17946   no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall pivot_root." >&5
17947 $as_echo "$as_me: WARNING: Unable to detect syscall pivot_root." >&2;} ;;
17948   SYS_*) ;;
17949   *)
17950 cat >>confdefs.h <<_ACEOF
17951 #define SYS_pivot_root $util_cv_syscall_pivot_root
17952 _ACEOF
17953  ;;
17954   esac
17955
17956
17957
17958   { $as_echo "$as_me:$LINENO: checking for syscall sched_getaffinity" >&5
17959 $as_echo_n "checking for syscall sched_getaffinity... " >&6; }
17960 if test "${util_cv_syscall_sched_getaffinity+set}" = set; then
17961   $as_echo_n "(cached) " >&6
17962 else
17963   cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h.  */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h.  */
17969
17970 #include <sys/syscall.h>
17971 #include <unistd.h>
17972
17973 int
17974 main ()
17975 {
17976 int test = SYS_sched_getaffinity;
17977   ;
17978   return 0;
17979 }
17980 _ACEOF
17981 rm -f conftest.$ac_objext
17982 if { (ac_try="$ac_compile"
17983 case "(($ac_try" in
17984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985   *) ac_try_echo=$ac_try;;
17986 esac
17987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17988 $as_echo "$ac_try_echo") >&5
17989   (eval "$ac_compile") 2>conftest.er1
17990   ac_status=$?
17991   grep -v '^ *+' conftest.er1 >conftest.err
17992   rm -f conftest.er1
17993   cat conftest.err >&5
17994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } && {
17996          test -z "$ac_c_werror_flag" ||
17997          test ! -s conftest.err
17998        } && test -s conftest.$ac_objext; then
17999   syscall=SYS_sched_getaffinity
18000 else
18001   $as_echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18003
18004                     cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010
18011 #include <sys/syscall.h>
18012 #include <unistd.h>
18013
18014 int
18015 main ()
18016 {
18017 int test = _NR_sched_getaffinity;
18018   ;
18019   return 0;
18020 }
18021 _ACEOF
18022 rm -f conftest.$ac_objext
18023 if { (ac_try="$ac_compile"
18024 case "(($ac_try" in
18025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026   *) ac_try_echo=$ac_try;;
18027 esac
18028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18029 $as_echo "$ac_try_echo") >&5
18030   (eval "$ac_compile") 2>conftest.er1
18031   ac_status=$?
18032   grep -v '^ *+' conftest.er1 >conftest.err
18033   rm -f conftest.er1
18034   cat conftest.err >&5
18035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } && {
18037          test -z "$ac_c_werror_flag" ||
18038          test ! -s conftest.err
18039        } && test -s conftest.$ac_objext; then
18040   syscall=_NR_sched_getaffinity
18041 else
18042   $as_echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18044
18045
18046           syscall=no
18047           if test "x$linux_os" = xyes; then
18048             case $host_cpu in
18049
18050             esac
18051           fi
18052
18053 fi
18054
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056
18057
18058 fi
18059
18060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18061
18062     util_cv_syscall_sched_getaffinity=$syscall
18063
18064 fi
18065 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_sched_getaffinity" >&5
18066 $as_echo "$util_cv_syscall_sched_getaffinity" >&6; }
18067    if test "x$util_cv_syscall_sched_getaffinity" != xno; then
18068   HAVE_SCHED_GETAFFINITY_TRUE=
18069   HAVE_SCHED_GETAFFINITY_FALSE='#'
18070 else
18071   HAVE_SCHED_GETAFFINITY_TRUE='#'
18072   HAVE_SCHED_GETAFFINITY_FALSE=
18073 fi
18074
18075   case $util_cv_syscall_sched_getaffinity in #(
18076   no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall sched_getaffinity." >&5
18077 $as_echo "$as_me: WARNING: Unable to detect syscall sched_getaffinity." >&2;} ;;
18078   SYS_*) ;;
18079   *)
18080 cat >>confdefs.h <<_ACEOF
18081 #define SYS_sched_getaffinity $util_cv_syscall_sched_getaffinity
18082 _ACEOF
18083  ;;
18084   esac
18085
18086
18087
18088   { $as_echo "$as_me:$LINENO: checking for syscall ioprio_set" >&5
18089 $as_echo_n "checking for syscall ioprio_set... " >&6; }
18090 if test "${util_cv_syscall_ioprio_set+set}" = set; then
18091   $as_echo_n "(cached) " >&6
18092 else
18093   cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h.  */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h.  */
18099
18100 #include <sys/syscall.h>
18101 #include <unistd.h>
18102
18103 int
18104 main ()
18105 {
18106 int test = SYS_ioprio_set;
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext
18112 if { (ac_try="$ac_compile"
18113 case "(($ac_try" in
18114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115   *) ac_try_echo=$ac_try;;
18116 esac
18117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18118 $as_echo "$ac_try_echo") >&5
18119   (eval "$ac_compile") 2>conftest.er1
18120   ac_status=$?
18121   grep -v '^ *+' conftest.er1 >conftest.err
18122   rm -f conftest.er1
18123   cat conftest.err >&5
18124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); } && {
18126          test -z "$ac_c_werror_flag" ||
18127          test ! -s conftest.err
18128        } && test -s conftest.$ac_objext; then
18129   syscall=SYS_ioprio_set
18130 else
18131   $as_echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134                     cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140
18141 #include <sys/syscall.h>
18142 #include <unistd.h>
18143
18144 int
18145 main ()
18146 {
18147 int test = _NR_ioprio_set;
18148   ;
18149   return 0;
18150 }
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160   (eval "$ac_compile") 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } && {
18167          test -z "$ac_c_werror_flag" ||
18168          test ! -s conftest.err
18169        } && test -s conftest.$ac_objext; then
18170   syscall=_NR_ioprio_set
18171 else
18172   $as_echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175
18176           syscall=no
18177           if test "x$linux_os" = xyes; then
18178             case $host_cpu in
18179               #(
18180   alpha) syscall="442" ;;  #(
18181   i*86) syscall="289" ;;  #(
18182   ia64*) syscall="1274" ;;  #(
18183   powerpc*) syscall="273" ;;  #(
18184   s390*) syscall="282" ;;  #(
18185   sparc*) syscall="196" ;;  #(
18186   sh*) syscall="288" ;;  #(
18187   x86_64*) syscall="251" ;;
18188             esac
18189           fi
18190
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194
18195
18196 fi
18197
18198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18199
18200     util_cv_syscall_ioprio_set=$syscall
18201
18202 fi
18203 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_ioprio_set" >&5
18204 $as_echo "$util_cv_syscall_ioprio_set" >&6; }
18205    if test "x$util_cv_syscall_ioprio_set" != xno; then
18206   HAVE_IOPRIO_SET_TRUE=
18207   HAVE_IOPRIO_SET_FALSE='#'
18208 else
18209   HAVE_IOPRIO_SET_TRUE='#'
18210   HAVE_IOPRIO_SET_FALSE=
18211 fi
18212
18213   case $util_cv_syscall_ioprio_set in #(
18214   no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall ioprio_set." >&5
18215 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_set." >&2;} ;;
18216   SYS_*) ;;
18217   *)
18218 cat >>confdefs.h <<_ACEOF
18219 #define SYS_ioprio_set $util_cv_syscall_ioprio_set
18220 _ACEOF
18221  ;;
18222   esac
18223
18224
18225
18226   { $as_echo "$as_me:$LINENO: checking for syscall ioprio_get" >&5
18227 $as_echo_n "checking for syscall ioprio_get... " >&6; }
18228 if test "${util_cv_syscall_ioprio_get+set}" = set; then
18229   $as_echo_n "(cached) " >&6
18230 else
18231   cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h.  */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h.  */
18237
18238 #include <sys/syscall.h>
18239 #include <unistd.h>
18240
18241 int
18242 main ()
18243 {
18244 int test = SYS_ioprio_get;
18245   ;
18246   return 0;
18247 }
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18256 $as_echo "$ac_try_echo") >&5
18257   (eval "$ac_compile") 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } && {
18264          test -z "$ac_c_werror_flag" ||
18265          test ! -s conftest.err
18266        } && test -s conftest.$ac_objext; then
18267   syscall=SYS_ioprio_get
18268 else
18269   $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272                     cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278
18279 #include <sys/syscall.h>
18280 #include <unistd.h>
18281
18282 int
18283 main ()
18284 {
18285 int test = _NR_ioprio_get;
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 rm -f conftest.$ac_objext
18291 if { (ac_try="$ac_compile"
18292 case "(($ac_try" in
18293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294   *) ac_try_echo=$ac_try;;
18295 esac
18296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297 $as_echo "$ac_try_echo") >&5
18298   (eval "$ac_compile") 2>conftest.er1
18299   ac_status=$?
18300   grep -v '^ *+' conftest.er1 >conftest.err
18301   rm -f conftest.er1
18302   cat conftest.err >&5
18303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); } && {
18305          test -z "$ac_c_werror_flag" ||
18306          test ! -s conftest.err
18307        } && test -s conftest.$ac_objext; then
18308   syscall=_NR_ioprio_get
18309 else
18310   $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313
18314           syscall=no
18315           if test "x$linux_os" = xyes; then
18316             case $host_cpu in
18317               #(
18318   alpha) syscall="443" ;;  #(
18319   i*86) syscall="290" ;;  #(
18320   ia64*) syscall="1275" ;;  #(
18321   powerpc*) syscall="274" ;;  #(
18322   s390*) syscall="283" ;;  #(
18323   sparc*) syscall="218" ;;  #(
18324   sh*) syscall="289" ;;  #(
18325   x86_64*) syscall="252" ;;
18326             esac
18327           fi
18328
18329 fi
18330
18331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18332
18333
18334 fi
18335
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337
18338     util_cv_syscall_ioprio_get=$syscall
18339
18340 fi
18341 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_ioprio_get" >&5
18342 $as_echo "$util_cv_syscall_ioprio_get" >&6; }
18343    if test "x$util_cv_syscall_ioprio_get" != xno; then
18344   HAVE_IOPRIO_GET_TRUE=
18345   HAVE_IOPRIO_GET_FALSE='#'
18346 else
18347   HAVE_IOPRIO_GET_TRUE='#'
18348   HAVE_IOPRIO_GET_FALSE=
18349 fi
18350
18351   case $util_cv_syscall_ioprio_get in #(
18352   no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall ioprio_get." >&5
18353 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_get." >&2;} ;;
18354   SYS_*) ;;
18355   *)
18356 cat >>confdefs.h <<_ACEOF
18357 #define SYS_ioprio_get $util_cv_syscall_ioprio_get
18358 _ACEOF
18359  ;;
18360   esac
18361
18362
18363
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370
18371 #include <time.h>
18372 #include <unistd.h>
18373
18374 int
18375 main ()
18376 {
18377
18378     int a = 0;
18379     struct tm *tm = localtime(0);
18380     if (a == -1)  /* false */
18381         sleep(tm->tm_gmtoff);
18382
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext
18388 if { (ac_try="$ac_compile"
18389 case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395   (eval "$ac_compile") 2>conftest.er1
18396   ac_status=$?
18397   grep -v '^ *+' conftest.er1 >conftest.err
18398   rm -f conftest.er1
18399   cat conftest.err >&5
18400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); } && {
18402          test -z "$ac_c_werror_flag" ||
18403          test ! -s conftest.err
18404        } && test -s conftest.$ac_objext; then
18405
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_TM_GMTOFF 1
18408 _ACEOF
18409
18410
18411 else
18412   $as_echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18414
18415
18416 fi
18417
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419
18420 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
18421 $as_echo_n "checking for struct termios.c_line... " >&6; }
18422 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
18423   $as_echo_n "(cached) " >&6
18424 else
18425   cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431 #include <termios.h>
18432
18433 int
18434 main ()
18435 {
18436 static struct termios ac_aggr;
18437 if (ac_aggr.c_line)
18438 return 0;
18439   ;
18440   return 0;
18441 }
18442 _ACEOF
18443 rm -f conftest.$ac_objext
18444 if { (ac_try="$ac_compile"
18445 case "(($ac_try" in
18446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447   *) ac_try_echo=$ac_try;;
18448 esac
18449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18450 $as_echo "$ac_try_echo") >&5
18451   (eval "$ac_compile") 2>conftest.er1
18452   ac_status=$?
18453   grep -v '^ *+' conftest.er1 >conftest.err
18454   rm -f conftest.er1
18455   cat conftest.err >&5
18456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457   (exit $ac_status); } && {
18458          test -z "$ac_c_werror_flag" ||
18459          test ! -s conftest.err
18460        } && test -s conftest.$ac_objext; then
18461   ac_cv_member_struct_termios_c_line=yes
18462 else
18463   $as_echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466         cat >conftest.$ac_ext <<_ACEOF
18467 /* confdefs.h.  */
18468 _ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h.  */
18472 #include <termios.h>
18473
18474 int
18475 main ()
18476 {
18477 static struct termios ac_aggr;
18478 if (sizeof ac_aggr.c_line)
18479 return 0;
18480   ;
18481   return 0;
18482 }
18483 _ACEOF
18484 rm -f conftest.$ac_objext
18485 if { (ac_try="$ac_compile"
18486 case "(($ac_try" in
18487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488   *) ac_try_echo=$ac_try;;
18489 esac
18490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18491 $as_echo "$ac_try_echo") >&5
18492   (eval "$ac_compile") 2>conftest.er1
18493   ac_status=$?
18494   grep -v '^ *+' conftest.er1 >conftest.err
18495   rm -f conftest.er1
18496   cat conftest.err >&5
18497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } && {
18499          test -z "$ac_c_werror_flag" ||
18500          test ! -s conftest.err
18501        } && test -s conftest.$ac_objext; then
18502   ac_cv_member_struct_termios_c_line=yes
18503 else
18504   $as_echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507         ac_cv_member_struct_termios_c_line=no
18508 fi
18509
18510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18511 fi
18512
18513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18514 fi
18515 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
18516 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
18517 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
18518
18519 cat >>confdefs.h <<_ACEOF
18520 #define HAVE_STRUCT_TERMIOS_C_LINE 1
18521 _ACEOF
18522
18523
18524 fi
18525
18526
18527 { $as_echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
18528 $as_echo_n "checking whether ADDR_NO_RANDOMIZE is declared... " >&6; }
18529 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
18530   $as_echo_n "(cached) " >&6
18531 else
18532   cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h.  */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h.  */
18538 #include <linux/personality.h>
18539
18540 int
18541 main ()
18542 {
18543 #ifndef ADDR_NO_RANDOMIZE
18544   (void) ADDR_NO_RANDOMIZE;
18545 #endif
18546
18547   ;
18548   return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext
18552 if { (ac_try="$ac_compile"
18553 case "(($ac_try" in
18554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555   *) ac_try_echo=$ac_try;;
18556 esac
18557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18558 $as_echo "$ac_try_echo") >&5
18559   (eval "$ac_compile") 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } && {
18566          test -z "$ac_c_werror_flag" ||
18567          test ! -s conftest.err
18568        } && test -s conftest.$ac_objext; then
18569   ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
18570 else
18571   $as_echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574         ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
18575 fi
18576
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 fi
18579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
18580 $as_echo "$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6; }
18581 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then
18582
18583 cat >>confdefs.h <<_ACEOF
18584 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
18585 _ACEOF
18586
18587
18588 else
18589   cat >>confdefs.h <<_ACEOF
18590 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
18591 _ACEOF
18592
18593
18594 fi
18595 { $as_echo "$as_me:$LINENO: checking whether FDPIC_FUNCPTRS is declared" >&5
18596 $as_echo_n "checking whether FDPIC_FUNCPTRS is declared... " >&6; }
18597 if test "${ac_cv_have_decl_FDPIC_FUNCPTRS+set}" = set; then
18598   $as_echo_n "(cached) " >&6
18599 else
18600   cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h.  */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h.  */
18606 #include <linux/personality.h>
18607
18608 int
18609 main ()
18610 {
18611 #ifndef FDPIC_FUNCPTRS
18612   (void) FDPIC_FUNCPTRS;
18613 #endif
18614
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext
18620 if { (ac_try="$ac_compile"
18621 case "(($ac_try" in
18622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623   *) ac_try_echo=$ac_try;;
18624 esac
18625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18626 $as_echo "$ac_try_echo") >&5
18627   (eval "$ac_compile") 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } && {
18634          test -z "$ac_c_werror_flag" ||
18635          test ! -s conftest.err
18636        } && test -s conftest.$ac_objext; then
18637   ac_cv_have_decl_FDPIC_FUNCPTRS=yes
18638 else
18639   $as_echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642         ac_cv_have_decl_FDPIC_FUNCPTRS=no
18643 fi
18644
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18646 fi
18647 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_FDPIC_FUNCPTRS" >&5
18648 $as_echo "$ac_cv_have_decl_FDPIC_FUNCPTRS" >&6; }
18649 if test "x$ac_cv_have_decl_FDPIC_FUNCPTRS" = x""yes; then
18650
18651 cat >>confdefs.h <<_ACEOF
18652 #define HAVE_DECL_FDPIC_FUNCPTRS 1
18653 _ACEOF
18654
18655
18656 else
18657   cat >>confdefs.h <<_ACEOF
18658 #define HAVE_DECL_FDPIC_FUNCPTRS 0
18659 _ACEOF
18660
18661
18662 fi
18663 { $as_echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
18664 $as_echo_n "checking whether MMAP_PAGE_ZERO is declared... " >&6; }
18665 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
18666   $as_echo_n "(cached) " >&6
18667 else
18668   cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674 #include <linux/personality.h>
18675
18676 int
18677 main ()
18678 {
18679 #ifndef MMAP_PAGE_ZERO
18680   (void) MMAP_PAGE_ZERO;
18681 #endif
18682
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687 rm -f conftest.$ac_objext
18688 if { (ac_try="$ac_compile"
18689 case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18694 $as_echo "$ac_try_echo") >&5
18695   (eval "$ac_compile") 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } && {
18702          test -z "$ac_c_werror_flag" ||
18703          test ! -s conftest.err
18704        } && test -s conftest.$ac_objext; then
18705   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
18706 else
18707   $as_echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18709
18710         ac_cv_have_decl_MMAP_PAGE_ZERO=no
18711 fi
18712
18713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18714 fi
18715 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
18716 $as_echo "$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6; }
18717 if test "x$ac_cv_have_decl_MMAP_PAGE_ZERO" = x""yes; then
18718
18719 cat >>confdefs.h <<_ACEOF
18720 #define HAVE_DECL_MMAP_PAGE_ZERO 1
18721 _ACEOF
18722
18723
18724 else
18725   cat >>confdefs.h <<_ACEOF
18726 #define HAVE_DECL_MMAP_PAGE_ZERO 0
18727 _ACEOF
18728
18729
18730 fi
18731 { $as_echo "$as_me:$LINENO: checking whether ADDR_COMPAT_LAYOUT is declared" >&5
18732 $as_echo_n "checking whether ADDR_COMPAT_LAYOUT is declared... " >&6; }
18733 if test "${ac_cv_have_decl_ADDR_COMPAT_LAYOUT+set}" = set; then
18734   $as_echo_n "(cached) " >&6
18735 else
18736   cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742 #include <linux/personality.h>
18743
18744 int
18745 main ()
18746 {
18747 #ifndef ADDR_COMPAT_LAYOUT
18748   (void) ADDR_COMPAT_LAYOUT;
18749 #endif
18750
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext
18756 if { (ac_try="$ac_compile"
18757 case "(($ac_try" in
18758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759   *) ac_try_echo=$ac_try;;
18760 esac
18761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18762 $as_echo "$ac_try_echo") >&5
18763   (eval "$ac_compile") 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } && {
18770          test -z "$ac_c_werror_flag" ||
18771          test ! -s conftest.err
18772        } && test -s conftest.$ac_objext; then
18773   ac_cv_have_decl_ADDR_COMPAT_LAYOUT=yes
18774 else
18775   $as_echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778         ac_cv_have_decl_ADDR_COMPAT_LAYOUT=no
18779 fi
18780
18781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18782 fi
18783 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_COMPAT_LAYOUT" >&5
18784 $as_echo "$ac_cv_have_decl_ADDR_COMPAT_LAYOUT" >&6; }
18785 if test "x$ac_cv_have_decl_ADDR_COMPAT_LAYOUT" = x""yes; then
18786
18787 cat >>confdefs.h <<_ACEOF
18788 #define HAVE_DECL_ADDR_COMPAT_LAYOUT 1
18789 _ACEOF
18790
18791
18792 else
18793   cat >>confdefs.h <<_ACEOF
18794 #define HAVE_DECL_ADDR_COMPAT_LAYOUT 0
18795 _ACEOF
18796
18797
18798 fi
18799 { $as_echo "$as_me:$LINENO: checking whether READ_IMPLIES_EXEC is declared" >&5
18800 $as_echo_n "checking whether READ_IMPLIES_EXEC is declared... " >&6; }
18801 if test "${ac_cv_have_decl_READ_IMPLIES_EXEC+set}" = set; then
18802   $as_echo_n "(cached) " >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 #include <linux/personality.h>
18811
18812 int
18813 main ()
18814 {
18815 #ifndef READ_IMPLIES_EXEC
18816   (void) READ_IMPLIES_EXEC;
18817 #endif
18818
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18830 $as_echo "$ac_try_echo") >&5
18831   (eval "$ac_compile") 2>conftest.er1
18832   ac_status=$?
18833   grep -v '^ *+' conftest.er1 >conftest.err
18834   rm -f conftest.er1
18835   cat conftest.err >&5
18836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); } && {
18838          test -z "$ac_c_werror_flag" ||
18839          test ! -s conftest.err
18840        } && test -s conftest.$ac_objext; then
18841   ac_cv_have_decl_READ_IMPLIES_EXEC=yes
18842 else
18843   $as_echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846         ac_cv_have_decl_READ_IMPLIES_EXEC=no
18847 fi
18848
18849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850 fi
18851 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_READ_IMPLIES_EXEC" >&5
18852 $as_echo "$ac_cv_have_decl_READ_IMPLIES_EXEC" >&6; }
18853 if test "x$ac_cv_have_decl_READ_IMPLIES_EXEC" = x""yes; then
18854
18855 cat >>confdefs.h <<_ACEOF
18856 #define HAVE_DECL_READ_IMPLIES_EXEC 1
18857 _ACEOF
18858
18859
18860 else
18861   cat >>confdefs.h <<_ACEOF
18862 #define HAVE_DECL_READ_IMPLIES_EXEC 0
18863 _ACEOF
18864
18865
18866 fi
18867 { $as_echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
18868 $as_echo_n "checking whether ADDR_LIMIT_32BIT is declared... " >&6; }
18869 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
18870   $as_echo_n "(cached) " >&6
18871 else
18872   cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18878 #include <linux/personality.h>
18879
18880 int
18881 main ()
18882 {
18883 #ifndef ADDR_LIMIT_32BIT
18884   (void) ADDR_LIMIT_32BIT;
18885 #endif
18886
18887   ;
18888   return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895   *) ac_try_echo=$ac_try;;
18896 esac
18897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18898 $as_echo "$ac_try_echo") >&5
18899   (eval "$ac_compile") 2>conftest.er1
18900   ac_status=$?
18901   grep -v '^ *+' conftest.er1 >conftest.err
18902   rm -f conftest.er1
18903   cat conftest.err >&5
18904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); } && {
18906          test -z "$ac_c_werror_flag" ||
18907          test ! -s conftest.err
18908        } && test -s conftest.$ac_objext; then
18909   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
18910 else
18911   $as_echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914         ac_cv_have_decl_ADDR_LIMIT_32BIT=no
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 fi
18919 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
18920 $as_echo "$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6; }
18921 if test "x$ac_cv_have_decl_ADDR_LIMIT_32BIT" = x""yes; then
18922
18923 cat >>confdefs.h <<_ACEOF
18924 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
18925 _ACEOF
18926
18927
18928 else
18929   cat >>confdefs.h <<_ACEOF
18930 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
18931 _ACEOF
18932
18933
18934 fi
18935 { $as_echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
18936 $as_echo_n "checking whether WHOLE_SECONDS is declared... " >&6; }
18937 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
18938   $as_echo_n "(cached) " >&6
18939 else
18940   cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h.  */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h.  */
18946 #include <linux/personality.h>
18947
18948 int
18949 main ()
18950 {
18951 #ifndef WHOLE_SECONDS
18952   (void) WHOLE_SECONDS;
18953 #endif
18954
18955   ;
18956   return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext
18960 if { (ac_try="$ac_compile"
18961 case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18966 $as_echo "$ac_try_echo") >&5
18967   (eval "$ac_compile") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest.$ac_objext; then
18977   ac_cv_have_decl_WHOLE_SECONDS=yes
18978 else
18979   $as_echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         ac_cv_have_decl_WHOLE_SECONDS=no
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18986 fi
18987 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
18988 $as_echo "$ac_cv_have_decl_WHOLE_SECONDS" >&6; }
18989 if test "x$ac_cv_have_decl_WHOLE_SECONDS" = x""yes; then
18990
18991 cat >>confdefs.h <<_ACEOF
18992 #define HAVE_DECL_WHOLE_SECONDS 1
18993 _ACEOF
18994
18995
18996 else
18997   cat >>confdefs.h <<_ACEOF
18998 #define HAVE_DECL_WHOLE_SECONDS 0
18999 _ACEOF
19000
19001
19002 fi
19003 { $as_echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
19004 $as_echo_n "checking whether STICKY_TIMEOUTS is declared... " >&6; }
19005 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
19006   $as_echo_n "(cached) " >&6
19007 else
19008   cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014 #include <linux/personality.h>
19015
19016 int
19017 main ()
19018 {
19019 #ifndef STICKY_TIMEOUTS
19020   (void) STICKY_TIMEOUTS;
19021 #endif
19022
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext
19028 if { (ac_try="$ac_compile"
19029 case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19034 $as_echo "$ac_try_echo") >&5
19035   (eval "$ac_compile") 2>conftest.er1
19036   ac_status=$?
19037   grep -v '^ *+' conftest.er1 >conftest.err
19038   rm -f conftest.er1
19039   cat conftest.err >&5
19040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); } && {
19042          test -z "$ac_c_werror_flag" ||
19043          test ! -s conftest.err
19044        } && test -s conftest.$ac_objext; then
19045   ac_cv_have_decl_STICKY_TIMEOUTS=yes
19046 else
19047   $as_echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050         ac_cv_have_decl_STICKY_TIMEOUTS=no
19051 fi
19052
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19054 fi
19055 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
19056 $as_echo "$ac_cv_have_decl_STICKY_TIMEOUTS" >&6; }
19057 if test "x$ac_cv_have_decl_STICKY_TIMEOUTS" = x""yes; then
19058
19059 cat >>confdefs.h <<_ACEOF
19060 #define HAVE_DECL_STICKY_TIMEOUTS 1
19061 _ACEOF
19062
19063
19064 else
19065   cat >>confdefs.h <<_ACEOF
19066 #define HAVE_DECL_STICKY_TIMEOUTS 0
19067 _ACEOF
19068
19069
19070 fi
19071 { $as_echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
19072 $as_echo_n "checking whether ADDR_LIMIT_3GB is declared... " >&6; }
19073 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
19074   $as_echo_n "(cached) " >&6
19075 else
19076   cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h.  */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h.  */
19082 #include <linux/personality.h>
19083
19084 int
19085 main ()
19086 {
19087 #ifndef ADDR_LIMIT_3GB
19088   (void) ADDR_LIMIT_3GB;
19089 #endif
19090
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest.$ac_objext
19096 if { (ac_try="$ac_compile"
19097 case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19102 $as_echo "$ac_try_echo") >&5
19103   (eval "$ac_compile") 2>conftest.er1
19104   ac_status=$?
19105   grep -v '^ *+' conftest.er1 >conftest.err
19106   rm -f conftest.er1
19107   cat conftest.err >&5
19108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } && {
19110          test -z "$ac_c_werror_flag" ||
19111          test ! -s conftest.err
19112        } && test -s conftest.$ac_objext; then
19113   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
19114 else
19115   $as_echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118         ac_cv_have_decl_ADDR_LIMIT_3GB=no
19119 fi
19120
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122 fi
19123 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
19124 $as_echo "$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6; }
19125 if test "x$ac_cv_have_decl_ADDR_LIMIT_3GB" = x""yes; then
19126
19127 cat >>confdefs.h <<_ACEOF
19128 #define HAVE_DECL_ADDR_LIMIT_3GB 1
19129 _ACEOF
19130
19131
19132 else
19133   cat >>confdefs.h <<_ACEOF
19134 #define HAVE_DECL_ADDR_LIMIT_3GB 0
19135 _ACEOF
19136
19137
19138 fi
19139
19140
19141
19142
19143 for ac_header in sys/swap.h
19144 do
19145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19147   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 $as_echo_n "checking for $ac_header... " >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150   $as_echo_n "(cached) " >&6
19151 fi
19152 ac_res=`eval 'as_val=${'$as_ac_Header'}
19153                  $as_echo "$as_val"'`
19154                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19155 $as_echo "$ac_res" >&6; }
19156 else
19157   # Is the header compilable?
19158 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19159 $as_echo_n "checking $ac_header usability... " >&6; }
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166 $ac_includes_default
19167 #include <$ac_header>
19168 _ACEOF
19169 rm -f conftest.$ac_objext
19170 if { (ac_try="$ac_compile"
19171 case "(($ac_try" in
19172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173   *) ac_try_echo=$ac_try;;
19174 esac
19175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19176 $as_echo "$ac_try_echo") >&5
19177   (eval "$ac_compile") 2>conftest.er1
19178   ac_status=$?
19179   grep -v '^ *+' conftest.er1 >conftest.err
19180   rm -f conftest.er1
19181   cat conftest.err >&5
19182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } && {
19184          test -z "$ac_c_werror_flag" ||
19185          test ! -s conftest.err
19186        } && test -s conftest.$ac_objext; then
19187   ac_header_compiler=yes
19188 else
19189   $as_echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192         ac_header_compiler=no
19193 fi
19194
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19197 $as_echo "$ac_header_compiler" >&6; }
19198
19199 # Is the header present?
19200 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19201 $as_echo_n "checking $ac_header presence... " >&6; }
19202 cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208 #include <$ac_header>
19209 _ACEOF
19210 if { (ac_try="$ac_cpp conftest.$ac_ext"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19216 $as_echo "$ac_try_echo") >&5
19217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } >/dev/null && {
19224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19225          test ! -s conftest.err
19226        }; then
19227   ac_header_preproc=yes
19228 else
19229   $as_echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232   ac_header_preproc=no
19233 fi
19234
19235 rm -f conftest.err conftest.$ac_ext
19236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19237 $as_echo "$ac_header_preproc" >&6; }
19238
19239 # So?  What about this header?
19240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19241   yes:no: )
19242     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19243 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19246     ac_header_preproc=yes
19247     ;;
19248   no:yes:* )
19249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19250 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19252 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19254 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19256 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19257     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19259     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19260 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19261     ( cat <<\_ASBOX
19262 ## ------------------------------ ##
19263 ## Report this to kzak@redhat.com ##
19264 ## ------------------------------ ##
19265 _ASBOX
19266      ) | sed "s/^/$as_me: WARNING:     /" >&2
19267     ;;
19268 esac
19269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19270 $as_echo_n "checking for $ac_header... " >&6; }
19271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19272   $as_echo_n "(cached) " >&6
19273 else
19274   eval "$as_ac_Header=\$ac_header_preproc"
19275 fi
19276 ac_res=`eval 'as_val=${'$as_ac_Header'}
19277                  $as_echo "$as_val"'`
19278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19279 $as_echo "$ac_res" >&6; }
19280
19281 fi
19282 as_val=`eval 'as_val=${'$as_ac_Header'}
19283                  $as_echo "$as_val"'`
19284    if test "x$as_val" = x""yes; then
19285   cat >>confdefs.h <<_ACEOF
19286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19287 _ACEOF
19288
19289 fi
19290
19291 done
19292
19293
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300
19301 #ifdef HAVE_SYS_SWAP_H
19302 # include <sys/swap.h>
19303 #endif
19304 #include <unistd.h>
19305
19306 int
19307 main ()
19308 {
19309 swapon("/dev/null", 0);
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (ac_try="$ac_compile"
19316 case "(($ac_try" in
19317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318   *) ac_try_echo=$ac_try;;
19319 esac
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322   (eval "$ac_compile") 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } && {
19329          test -z "$ac_c_werror_flag" ||
19330          test ! -s conftest.err
19331        } && test -s conftest.$ac_objext; then
19332
19333 cat >>confdefs.h <<\_ACEOF
19334 #define SWAPON_HAS_TWO_ARGS 1
19335 _ACEOF
19336
19337
19338 else
19339   $as_echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342         { $as_echo "$as_me:$LINENO: Your libc thinks that swapon has 1 arg only." >&5
19343 $as_echo "$as_me: Your libc thinks that swapon has 1 arg only." >&6;}
19344
19345 fi
19346
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348
19349
19350
19351
19352
19353   cpu_I86=false
19354   case "$host" in
19355    i?86-*) cpu_I86=true ;;
19356   esac
19357    if test "x$cpu_I86" = xtrue; then
19358   ARCH_I86_TRUE=
19359   ARCH_I86_FALSE='#'
19360 else
19361   ARCH_I86_TRUE='#'
19362   ARCH_I86_FALSE=
19363 fi
19364
19365
19366
19367   cpu_86_64=false
19368   case "$host" in
19369    x86_64*) cpu_86_64=true ;;
19370   esac
19371    if test "x$cpu_86_64" = xtrue; then
19372   ARCH_86_64_TRUE=
19373   ARCH_86_64_FALSE='#'
19374 else
19375   ARCH_86_64_TRUE='#'
19376   ARCH_86_64_FALSE=
19377 fi
19378
19379
19380
19381   cpu_IA64=false
19382   case "$host" in
19383    ia64*) cpu_IA64=true ;;
19384   esac
19385    if test "x$cpu_IA64" = xtrue; then
19386   ARCH_IA64_TRUE=
19387   ARCH_IA64_FALSE='#'
19388 else
19389   ARCH_IA64_TRUE='#'
19390   ARCH_IA64_FALSE=
19391 fi
19392
19393
19394
19395   cpu_S390=false
19396   case "$host" in
19397    s390*) cpu_S390=true ;;
19398   esac
19399    if test "x$cpu_S390" = xtrue; then
19400   ARCH_S390_TRUE=
19401   ARCH_S390_FALSE='#'
19402 else
19403   ARCH_S390_TRUE='#'
19404   ARCH_S390_FALSE=
19405 fi
19406
19407
19408
19409   cpu_SPARC=false
19410   case "$host" in
19411    sparc*) cpu_SPARC=true ;;
19412   esac
19413    if test "x$cpu_SPARC" = xtrue; then
19414   ARCH_SPARC_TRUE=
19415   ARCH_SPARC_FALSE='#'
19416 else
19417   ARCH_SPARC_TRUE='#'
19418   ARCH_SPARC_FALSE=
19419 fi
19420
19421
19422
19423   cpu_PPC=false
19424   case "$host" in
19425    ppc*|powerpc*) cpu_PPC=true ;;
19426   esac
19427    if test "x$cpu_PPC" = xtrue; then
19428   ARCH_PPC_TRUE=
19429   ARCH_PPC_FALSE='#'
19430 else
19431   ARCH_PPC_TRUE='#'
19432   ARCH_PPC_FALSE=
19433 fi
19434
19435
19436
19437   cpu_M68K=false
19438   case "$host" in
19439    m68*) cpu_M68K=true ;;
19440   esac
19441    if test "x$cpu_M68K" = xtrue; then
19442   ARCH_M68K_TRUE=
19443   ARCH_M68K_FALSE='#'
19444 else
19445   ARCH_M68K_TRUE='#'
19446   ARCH_M68K_FALSE=
19447 fi
19448
19449
19450
19451   cpu_MIPS=false
19452   case "$host" in
19453    mips*) cpu_MIPS=true ;;
19454   esac
19455    if test "x$cpu_MIPS" = xtrue; then
19456   ARCH_MIPS_TRUE=
19457   ARCH_MIPS_FALSE='#'
19458 else
19459   ARCH_MIPS_TRUE='#'
19460   ARCH_MIPS_FALSE=
19461 fi
19462
19463
19464
19465   cpu_HPPA=false
19466   case "$host" in
19467    hppa*) cpu_HPPA=true ;;
19468   esac
19469    if test "x$cpu_HPPA" = xtrue; then
19470   ARCH_HPPA_TRUE=
19471   ARCH_HPPA_FALSE='#'
19472 else
19473   ARCH_HPPA_TRUE='#'
19474   ARCH_HPPA_FALSE=
19475 fi
19476
19477
19478
19479 # Check whether --enable-arch was given.
19480 if test "${enable_arch+set}" = set; then
19481   enableval=$enable_arch;
19482 else
19483   enable_arch=no
19484
19485 fi
19486
19487  if test "x$enable_arch" = xyes; then
19488   BUILD_ARCH_TRUE=
19489   BUILD_ARCH_FALSE='#'
19490 else
19491   BUILD_ARCH_TRUE='#'
19492   BUILD_ARCH_FALSE=
19493 fi
19494
19495
19496 # Check whether --enable-agetty was given.
19497 if test "${enable_agetty+set}" = set; then
19498   enableval=$enable_agetty;
19499 else
19500   enable_agetty=yes
19501
19502 fi
19503
19504  if test "x$enable_agetty" = xyes; then
19505   BUILD_AGETTY_TRUE=
19506   BUILD_AGETTY_FALSE='#'
19507 else
19508   BUILD_AGETTY_TRUE='#'
19509   BUILD_AGETTY_FALSE=
19510 fi
19511
19512
19513 # Check whether --enable-cramfs was given.
19514 if test "${enable_cramfs+set}" = set; then
19515   enableval=$enable_cramfs;
19516 else
19517   enable_cramfs=check
19518
19519 fi
19520
19521
19522 if test "x$enable_cramfs" = xno; then
19523   build_cramfs=no
19524 else
19525   build_cramfs=yes
19526
19527 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
19528 $as_echo_n "checking for crc32 in -lz... " >&6; }
19529 if test "${ac_cv_lib_z_crc32+set}" = set; then
19530   $as_echo_n "(cached) " >&6
19531 else
19532   ac_check_lib_save_LIBS=$LIBS
19533 LIBS="-lz  $LIBS"
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540
19541 /* Override any GCC internal prototype to avoid an error.
19542    Use char because int might match the return type of a GCC
19543    builtin and then its argument prototype would still apply.  */
19544 #ifdef __cplusplus
19545 extern "C"
19546 #endif
19547 char crc32 ();
19548 int
19549 main ()
19550 {
19551 return crc32 ();
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19563 $as_echo "$ac_try_echo") >&5
19564   (eval "$ac_link") 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } && {
19571          test -z "$ac_c_werror_flag" ||
19572          test ! -s conftest.err
19573        } && test -s conftest$ac_exeext && {
19574          test "$cross_compiling" = yes ||
19575          $as_test_x conftest$ac_exeext
19576        }; then
19577   ac_cv_lib_z_crc32=yes
19578 else
19579   $as_echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582         ac_cv_lib_z_crc32=no
19583 fi
19584
19585 rm -rf conftest.dSYM
19586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19587       conftest$ac_exeext conftest.$ac_ext
19588 LIBS=$ac_check_lib_save_LIBS
19589 fi
19590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
19591 $as_echo "$ac_cv_lib_z_crc32" >&6; }
19592 if test "x$ac_cv_lib_z_crc32" = x""yes; then
19593   cat >>confdefs.h <<_ACEOF
19594 #define HAVE_LIBZ 1
19595 _ACEOF
19596
19597   LIBS="-lz $LIBS"
19598
19599 else
19600   build_cramfs=no
19601 fi
19602
19603   case $enable_cramfs:$build_cramfs in
19604   yes:no) { { $as_echo "$as_me:$LINENO: error: cramfs selected but libz not found" >&5
19605 $as_echo "$as_me: error: cramfs selected but libz not found" >&2;}
19606    { (exit 1); exit 1; }; };;
19607   esac
19608 fi
19609  if test "x$build_cramfs" = xyes; then
19610   BUILD_CRAMFS_TRUE=
19611   BUILD_CRAMFS_FALSE='#'
19612 else
19613   BUILD_CRAMFS_TRUE='#'
19614   BUILD_CRAMFS_FALSE=
19615 fi
19616
19617
19618
19619 # Check whether --enable-switch_root was given.
19620 if test "${enable_switch_root+set}" = set; then
19621   enableval=$enable_switch_root;
19622 else
19623   enable_switch_root=check
19624
19625 fi
19626
19627
19628 if test "x$enable_switch_root" = xno; then
19629   build_switch_root=no
19630 else
19631   build_switch_root=yes
19632   case $enable_switch_root:$linux_os in
19633   yes:no) { { $as_echo "$as_me:$LINENO: error: switch_root selected for non-linux system" >&5
19634 $as_echo "$as_me: error: switch_root selected for non-linux system" >&2;}
19635    { (exit 1); exit 1; }; };;
19636   check:no) { $as_echo "$as_me:$LINENO: WARNING: non-linux system; do not build switch_root" >&5
19637 $as_echo "$as_me: WARNING: non-linux system; do not build switch_root" >&2;}
19638             build_switch_root=no;;
19639   esac
19640   if test "x$build_switch_root" = xyes; then
19641     case $enable_switch_root:$have_openat in
19642     yes:no) { { $as_echo "$as_me:$LINENO: error: switch_root selected but openat() function not found" >&5
19643 $as_echo "$as_me: error: switch_root selected but openat() function not found" >&2;}
19644    { (exit 1); exit 1; }; };;
19645     check:no) { $as_echo "$as_me:$LINENO: WARNING: openat() function not found; do not build switch_root" >&5
19646 $as_echo "$as_me: WARNING: openat() function not found; do not build switch_root" >&2;}
19647               build_switch_root=no;;
19648     esac
19649   fi
19650 fi
19651  if test "x$build_switch_root" = xyes; then
19652   BUILD_SWITCH_ROOT_TRUE=
19653   BUILD_SWITCH_ROOT_FALSE='#'
19654 else
19655   BUILD_SWITCH_ROOT_TRUE='#'
19656   BUILD_SWITCH_ROOT_FALSE=
19657 fi
19658
19659
19660
19661 # Check whether --enable-elvtune was given.
19662 if test "${enable_elvtune+set}" = set; then
19663   enableval=$enable_elvtune;
19664 else
19665   enable_elvtune=no
19666
19667 fi
19668
19669  if test "x$enable_elvtune" = xyes; then
19670   BUILD_ELVTUNE_TRUE=
19671   BUILD_ELVTUNE_FALSE='#'
19672 else
19673   BUILD_ELVTUNE_TRUE='#'
19674   BUILD_ELVTUNE_FALSE=
19675 fi
19676
19677
19678
19679 # Check whether --enable-init was given.
19680 if test "${enable_init+set}" = set; then
19681   enableval=$enable_init;
19682 else
19683   enable_init=no
19684
19685 fi
19686
19687  if test "x$enable_init" = xyes; then
19688   BUILD_INIT_TRUE=
19689   BUILD_INIT_FALSE='#'
19690 else
19691   BUILD_INIT_TRUE='#'
19692   BUILD_INIT_FALSE=
19693 fi
19694
19695
19696
19697 # Check whether --enable-kill was given.
19698 if test "${enable_kill+set}" = set; then
19699   enableval=$enable_kill;
19700 else
19701   enable_kill=no
19702
19703 fi
19704
19705  if test "x$enable_kill" = xyes; then
19706   BUILD_KILL_TRUE=
19707   BUILD_KILL_FALSE='#'
19708 else
19709   BUILD_KILL_TRUE='#'
19710   BUILD_KILL_FALSE=
19711 fi
19712
19713
19714
19715 # Check whether --enable-last was given.
19716 if test "${enable_last+set}" = set; then
19717   enableval=$enable_last;
19718 else
19719   enable_last=no
19720
19721 fi
19722
19723  if test "x$enable_last" = xyes; then
19724   BUILD_LAST_TRUE=
19725   BUILD_LAST_FALSE='#'
19726 else
19727   BUILD_LAST_TRUE='#'
19728   BUILD_LAST_FALSE=
19729 fi
19730
19731
19732
19733 # Check whether --enable-mesg was given.
19734 if test "${enable_mesg+set}" = set; then
19735   enableval=$enable_mesg;
19736 else
19737   enable_mesg=no
19738
19739 fi
19740
19741  if test "x$enable_mesg" = xyes; then
19742   BUILD_MESG_TRUE=
19743   BUILD_MESG_FALSE='#'
19744 else
19745   BUILD_MESG_TRUE='#'
19746   BUILD_MESG_FALSE=
19747 fi
19748
19749
19750
19751 # Check whether --enable-partx was given.
19752 if test "${enable_partx+set}" = set; then
19753   enableval=$enable_partx;
19754 else
19755   enable_partx=no
19756
19757 fi
19758
19759  if test "x$enable_partx" = xyes; then
19760   BUILD_PARTX_TRUE=
19761   BUILD_PARTX_FALSE='#'
19762 else
19763   BUILD_PARTX_TRUE='#'
19764   BUILD_PARTX_FALSE=
19765 fi
19766
19767
19768
19769 # Check whether --enable-raw was given.
19770 if test "${enable_raw+set}" = set; then
19771   enableval=$enable_raw;
19772 else
19773   enable_raw=no
19774
19775 fi
19776
19777  if test "x$enable_raw" = xyes; then
19778   BUILD_RAW_TRUE=
19779   BUILD_RAW_FALSE='#'
19780 else
19781   BUILD_RAW_TRUE='#'
19782   BUILD_RAW_FALSE=
19783 fi
19784
19785
19786
19787 # Check whether --enable-rdev was given.
19788 if test "${enable_rdev+set}" = set; then
19789   enableval=$enable_rdev;
19790 else
19791   enable_rdev=no
19792
19793 fi
19794
19795  if test "x$enable_rdev" = xyes; then
19796   BUILD_RDEV_TRUE=
19797   BUILD_RDEV_FALSE='#'
19798 else
19799   BUILD_RDEV_TRUE='#'
19800   BUILD_RDEV_FALSE=
19801 fi
19802
19803
19804
19805 # Check whether --enable-rename was given.
19806 if test "${enable_rename+set}" = set; then
19807   enableval=$enable_rename;
19808 else
19809   enable_rename=yes
19810
19811 fi
19812
19813  if test "x$enable_rename" = xyes; then
19814   BUILD_RENAME_TRUE=
19815   BUILD_RENAME_FALSE='#'
19816 else
19817   BUILD_RENAME_TRUE='#'
19818   BUILD_RENAME_FALSE=
19819 fi
19820
19821
19822
19823 # Check whether --enable-reset was given.
19824 if test "${enable_reset+set}" = set; then
19825   enableval=$enable_reset;
19826 else
19827   enable_reset=no
19828
19829 fi
19830
19831  if test "x$enable_reset" = xyes; then
19832   BUILD_RESET_TRUE=
19833   BUILD_RESET_FALSE='#'
19834 else
19835   BUILD_RESET_TRUE='#'
19836   BUILD_RESET_FALSE=
19837 fi
19838
19839
19840
19841 # Check whether --enable-login-utils was given.
19842 if test "${enable_login_utils+set}" = set; then
19843   enableval=$enable_login_utils;
19844 else
19845   enable_login_utils=no
19846
19847 fi
19848
19849  if test "x$enable_login_utils" = xyes; then
19850   BUILD_LOGIN_UTILS_TRUE=
19851   BUILD_LOGIN_UTILS_FALSE='#'
19852 else
19853   BUILD_LOGIN_UTILS_TRUE='#'
19854   BUILD_LOGIN_UTILS_FALSE=
19855 fi
19856
19857
19858
19859 # Check whether --with-pam was given.
19860 if test "${with_pam+set}" = set; then
19861   withval=$with_pam;
19862 fi
19863
19864
19865  if false; then
19866   HAVE_PAM_TRUE=
19867   HAVE_PAM_FALSE='#'
19868 else
19869   HAVE_PAM_TRUE='#'
19870   HAVE_PAM_FALSE=
19871 fi
19872
19873 if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then
19874
19875 for ac_header in security/pam_misc.h
19876 do
19877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19880 $as_echo_n "checking for $ac_header... " >&6; }
19881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19882   $as_echo_n "(cached) " >&6
19883 fi
19884 ac_res=`eval 'as_val=${'$as_ac_Header'}
19885                  $as_echo "$as_val"'`
19886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19887 $as_echo "$ac_res" >&6; }
19888 else
19889   # Is the header compilable?
19890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19891 $as_echo_n "checking $ac_header usability... " >&6; }
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898 $ac_includes_default
19899 #include <$ac_header>
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19908 $as_echo "$ac_try_echo") >&5
19909   (eval "$ac_compile") 2>conftest.er1
19910   ac_status=$?
19911   grep -v '^ *+' conftest.er1 >conftest.err
19912   rm -f conftest.er1
19913   cat conftest.err >&5
19914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); } && {
19916          test -z "$ac_c_werror_flag" ||
19917          test ! -s conftest.err
19918        } && test -s conftest.$ac_objext; then
19919   ac_header_compiler=yes
19920 else
19921   $as_echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924         ac_header_compiler=no
19925 fi
19926
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19929 $as_echo "$ac_header_compiler" >&6; }
19930
19931 # Is the header present?
19932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19933 $as_echo_n "checking $ac_header presence... " >&6; }
19934 cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h.  */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h.  */
19940 #include <$ac_header>
19941 _ACEOF
19942 if { (ac_try="$ac_cpp conftest.$ac_ext"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19948 $as_echo "$ac_try_echo") >&5
19949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19950   ac_status=$?
19951   grep -v '^ *+' conftest.er1 >conftest.err
19952   rm -f conftest.er1
19953   cat conftest.err >&5
19954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); } >/dev/null && {
19956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19957          test ! -s conftest.err
19958        }; then
19959   ac_header_preproc=yes
19960 else
19961   $as_echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964   ac_header_preproc=no
19965 fi
19966
19967 rm -f conftest.err conftest.$ac_ext
19968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969 $as_echo "$ac_header_preproc" >&6; }
19970
19971 # So?  What about this header?
19972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19973   yes:no: )
19974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19978     ac_header_preproc=yes
19979     ;;
19980   no:yes:* )
19981     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19983     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19984 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19987     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19988 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19989     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19991     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19993     ( cat <<\_ASBOX
19994 ## ------------------------------ ##
19995 ## Report this to kzak@redhat.com ##
19996 ## ------------------------------ ##
19997 _ASBOX
19998      ) | sed "s/^/$as_me: WARNING:     /" >&2
19999     ;;
20000 esac
20001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 $as_echo_n "checking for $ac_header... " >&6; }
20003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004   $as_echo_n "(cached) " >&6
20005 else
20006   eval "$as_ac_Header=\$ac_header_preproc"
20007 fi
20008 ac_res=`eval 'as_val=${'$as_ac_Header'}
20009                  $as_echo "$as_val"'`
20010                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20011 $as_echo "$ac_res" >&6; }
20012
20013 fi
20014 as_val=`eval 'as_val=${'$as_ac_Header'}
20015                  $as_echo "$as_val"'`
20016    if test "x$as_val" = x""yes; then
20017   cat >>confdefs.h <<_ACEOF
20018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20019 _ACEOF
20020   if true; then
20021   HAVE_PAM_TRUE=
20022   HAVE_PAM_FALSE='#'
20023 else
20024   HAVE_PAM_TRUE='#'
20025   HAVE_PAM_FALSE=
20026 fi
20027
20028 else
20029   if test "x$with_pam" = xyes; then
20030         { { $as_echo "$as_me:$LINENO: error: PAM selected but security/pam_misc.h not found" >&5
20031 $as_echo "$as_me: error: PAM selected but security/pam_misc.h not found" >&2;}
20032    { (exit 1); exit 1; }; }
20033      fi
20034
20035 fi
20036
20037 done
20038
20039 fi
20040
20041
20042 # Check whether --with-selinux was given.
20043 if test "${with_selinux+set}" = set; then
20044   withval=$with_selinux;
20045 else
20046   with_selinux=no
20047
20048 fi
20049
20050
20051 if test "x$with_selinux" = xno; then
20052    if false; then
20053   HAVE_SELINUX_TRUE=
20054   HAVE_SELINUX_FALSE='#'
20055 else
20056   HAVE_SELINUX_TRUE='#'
20057   HAVE_SELINUX_FALSE=
20058 fi
20059
20060 else
20061
20062
20063   have_selinux=yes
20064
20065 { $as_echo "$as_me:$LINENO: checking for getprevcon in -lselinux" >&5
20066 $as_echo_n "checking for getprevcon in -lselinux... " >&6; }
20067 if test "${ac_cv_lib_selinux_getprevcon+set}" = set; then
20068   $as_echo_n "(cached) " >&6
20069 else
20070   ac_check_lib_save_LIBS=$LIBS
20071 LIBS="-lselinux  $LIBS"
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078
20079 /* Override any GCC internal prototype to avoid an error.
20080    Use char because int might match the return type of a GCC
20081    builtin and then its argument prototype would still apply.  */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char getprevcon ();
20086 int
20087 main ()
20088 {
20089 return getprevcon ();
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20101 $as_echo "$ac_try_echo") >&5
20102   (eval "$ac_link") 2>conftest.er1
20103   ac_status=$?
20104   grep -v '^ *+' conftest.er1 >conftest.err
20105   rm -f conftest.er1
20106   cat conftest.err >&5
20107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } && {
20109          test -z "$ac_c_werror_flag" ||
20110          test ! -s conftest.err
20111        } && test -s conftest$ac_exeext && {
20112          test "$cross_compiling" = yes ||
20113          $as_test_x conftest$ac_exeext
20114        }; then
20115   ac_cv_lib_selinux_getprevcon=yes
20116 else
20117   $as_echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120         ac_cv_lib_selinux_getprevcon=no
20121 fi
20122
20123 rm -rf conftest.dSYM
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125       conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20127 fi
20128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getprevcon" >&5
20129 $as_echo "$ac_cv_lib_selinux_getprevcon" >&6; }
20130 if test "x$ac_cv_lib_selinux_getprevcon" = x""yes; then
20131   cat >>confdefs.h <<_ACEOF
20132 #define HAVE_LIBSELINUX 1
20133 _ACEOF
20134
20135   LIBS="-lselinux $LIBS"
20136
20137 else
20138   have_selinux=no
20139 fi
20140
20141    if test $have_selinux = yes; then
20142   HAVE_SELINUX_TRUE=
20143   HAVE_SELINUX_FALSE='#'
20144 else
20145   HAVE_SELINUX_TRUE='#'
20146   HAVE_SELINUX_FALSE=
20147 fi
20148
20149
20150   case "$with_selinux:$have_selinux" in
20151   yes:no) { { $as_echo "$as_me:$LINENO: error: SELinux selected but libselinux not found" >&5
20152 $as_echo "$as_me: error: SELinux selected but libselinux not found" >&2;}
20153    { (exit 1); exit 1; }; };;
20154   esac
20155 fi
20156
20157 if test "x$have_selinux" = xyes; then
20158   SELINUX_LIBS="-lselinux -lsepol"
20159   SELINUX_LIBS_STATIC="-lselinux -lsepol"
20160   old_LDFLAGS="$LDFLAGS"
20161   LDFLAGS="$LDFLAGS $SELINUX_LIBS"
20162   # This function is missing in old libselinux 1.xx versions
20163
20164 for ac_func in security_get_initial_context
20165 do
20166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20167 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20168 $as_echo_n "checking for $ac_func... " >&6; }
20169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20170   $as_echo_n "(cached) " >&6
20171 else
20172   cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h.  */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h.  */
20178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20180 #define $ac_func innocuous_$ac_func
20181
20182 /* System header to define __stub macros and hopefully few prototypes,
20183     which can conflict with char $ac_func (); below.
20184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20185     <limits.h> exists even on freestanding compilers.  */
20186
20187 #ifdef __STDC__
20188 # include <limits.h>
20189 #else
20190 # include <assert.h>
20191 #endif
20192
20193 #undef $ac_func
20194
20195 /* Override any GCC internal prototype to avoid an error.
20196    Use char because int might match the return type of a GCC
20197    builtin and then its argument prototype would still apply.  */
20198 #ifdef __cplusplus
20199 extern "C"
20200 #endif
20201 char $ac_func ();
20202 /* The GNU C library defines this for functions which it implements
20203     to always fail with ENOSYS.  Some functions are actually named
20204     something starting with __ and the normal name is an alias.  */
20205 #if defined __stub_$ac_func || defined __stub___$ac_func
20206 choke me
20207 #endif
20208
20209 int
20210 main ()
20211 {
20212 return $ac_func ();
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (ac_try="$ac_link"
20219 case "(($ac_try" in
20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221   *) ac_try_echo=$ac_try;;
20222 esac
20223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20224 $as_echo "$ac_try_echo") >&5
20225   (eval "$ac_link") 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } && {
20232          test -z "$ac_c_werror_flag" ||
20233          test ! -s conftest.err
20234        } && test -s conftest$ac_exeext && {
20235          test "$cross_compiling" = yes ||
20236          $as_test_x conftest$ac_exeext
20237        }; then
20238   eval "$as_ac_var=yes"
20239 else
20240   $as_echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243         eval "$as_ac_var=no"
20244 fi
20245
20246 rm -rf conftest.dSYM
20247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20248       conftest$ac_exeext conftest.$ac_ext
20249 fi
20250 ac_res=`eval 'as_val=${'$as_ac_var'}
20251                  $as_echo "$as_val"'`
20252                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20253 $as_echo "$ac_res" >&6; }
20254 as_val=`eval 'as_val=${'$as_ac_var'}
20255                  $as_echo "$as_val"'`
20256    if test "x$as_val" = x""yes; then
20257   cat >>confdefs.h <<_ACEOF
20258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20259 _ACEOF
20260
20261 fi
20262 done
20263
20264   LDFLAGS="$old_LDFLAGS"
20265 fi
20266
20267
20268
20269
20270 # Check whether --with-audit was given.
20271 if test "${with_audit+set}" = set; then
20272   withval=$with_audit;
20273 else
20274   with_audit=no
20275
20276 fi
20277
20278
20279 if test "x$with_audit" = xno; then
20280    if false; then
20281   HAVE_AUDIT_TRUE=
20282   HAVE_AUDIT_FALSE='#'
20283 else
20284   HAVE_AUDIT_TRUE='#'
20285   HAVE_AUDIT_FALSE=
20286 fi
20287
20288 else
20289
20290
20291   have_audit=yes
20292
20293 { $as_echo "$as_me:$LINENO: checking for audit_log_user_message in -laudit" >&5
20294 $as_echo_n "checking for audit_log_user_message in -laudit... " >&6; }
20295 if test "${ac_cv_lib_audit_audit_log_user_message+set}" = set; then
20296   $as_echo_n "(cached) " >&6
20297 else
20298   ac_check_lib_save_LIBS=$LIBS
20299 LIBS="-laudit  $LIBS"
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306
20307 /* Override any GCC internal prototype to avoid an error.
20308    Use char because int might match the return type of a GCC
20309    builtin and then its argument prototype would still apply.  */
20310 #ifdef __cplusplus
20311 extern "C"
20312 #endif
20313 char audit_log_user_message ();
20314 int
20315 main ()
20316 {
20317 return audit_log_user_message ();
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330   (eval "$ac_link") 2>conftest.er1
20331   ac_status=$?
20332   grep -v '^ *+' conftest.er1 >conftest.err
20333   rm -f conftest.er1
20334   cat conftest.err >&5
20335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } && {
20337          test -z "$ac_c_werror_flag" ||
20338          test ! -s conftest.err
20339        } && test -s conftest$ac_exeext && {
20340          test "$cross_compiling" = yes ||
20341          $as_test_x conftest$ac_exeext
20342        }; then
20343   ac_cv_lib_audit_audit_log_user_message=yes
20344 else
20345   $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348         ac_cv_lib_audit_audit_log_user_message=no
20349 fi
20350
20351 rm -rf conftest.dSYM
20352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20353       conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20355 fi
20356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_message" >&5
20357 $as_echo "$ac_cv_lib_audit_audit_log_user_message" >&6; }
20358 if test "x$ac_cv_lib_audit_audit_log_user_message" = x""yes; then
20359   cat >>confdefs.h <<_ACEOF
20360 #define HAVE_LIBAUDIT 1
20361 _ACEOF
20362
20363   LIBS="-laudit $LIBS"
20364
20365 else
20366   have_audit=no
20367 fi
20368
20369    if test $have_audit = yes; then
20370   HAVE_AUDIT_TRUE=
20371   HAVE_AUDIT_FALSE='#'
20372 else
20373   HAVE_AUDIT_TRUE='#'
20374   HAVE_AUDIT_FALSE=
20375 fi
20376
20377
20378   case "$with_audit:$have_audit" in
20379   yes:no)
20380    { { $as_echo "$as_me:$LINENO: error: Audit selected but libaudit not found (or doesn't support audit_log_user_message())" >&5
20381 $as_echo "$as_me: error: Audit selected but libaudit not found (or doesn't support audit_log_user_message())" >&2;}
20382    { (exit 1); exit 1; }; }
20383    ;;
20384   esac
20385 fi
20386
20387 # Check whether --enable-schedutils was given.
20388 if test "${enable_schedutils+set}" = set; then
20389   enableval=$enable_schedutils;
20390 else
20391   enable_schedutils=yes
20392
20393 fi
20394
20395  if test "x$enable_schedutils" = xyes; then
20396   BUILD_SCHEDUTILS_TRUE=
20397   BUILD_SCHEDUTILS_FALSE='#'
20398 else
20399   BUILD_SCHEDUTILS_TRUE='#'
20400   BUILD_SCHEDUTILS_FALSE=
20401 fi
20402
20403
20404
20405 # Check whether --enable-wall was given.
20406 if test "${enable_wall+set}" = set; then
20407   enableval=$enable_wall;
20408 else
20409   enable_wall=yes
20410
20411 fi
20412
20413  if test "x$enable_wall" = xyes; then
20414   BUILD_WALL_TRUE=
20415   BUILD_WALL_FALSE='#'
20416 else
20417   BUILD_WALL_TRUE='#'
20418   BUILD_WALL_FALSE=
20419 fi
20420
20421
20422
20423 # Check whether --enable-write was given.
20424 if test "${enable_write+set}" = set; then
20425   enableval=$enable_write;
20426 else
20427   enable_write=no
20428
20429 fi
20430
20431  if test "x$enable_write" = xyes; then
20432   BUILD_WRITE_TRUE=
20433   BUILD_WRITE_FALSE='#'
20434 else
20435   BUILD_WRITE_TRUE='#'
20436   BUILD_WRITE_FALSE=
20437 fi
20438
20439
20440
20441 # Check whether --enable-chsh-only-listed was given.
20442 if test "${enable_chsh_only_listed+set}" = set; then
20443   enableval=$enable_chsh_only_listed;
20444 else
20445   enable_chsh_only_listed=yes
20446
20447 fi
20448
20449
20450 if test "x$enable_chsh_only_listed" = xyes; then
20451
20452 cat >>confdefs.h <<\_ACEOF
20453 #define ONLY_LISTED_SHELLS 1
20454 _ACEOF
20455
20456 fi
20457
20458
20459 # Check whether --enable-login-chown-vcs was given.
20460 if test "${enable_login_chown_vcs+set}" = set; then
20461   enableval=$enable_login_chown_vcs;
20462 else
20463   enable_login_chown_vcs=no
20464
20465 fi
20466
20467
20468 if test "x$enable_login_chown_vcs" = xyes; then
20469
20470 cat >>confdefs.h <<\_ACEOF
20471 #define LOGIN_CHOWN_VCS 1
20472 _ACEOF
20473
20474 fi
20475
20476
20477 # Check whether --enable-login-stat-mail was given.
20478 if test "${enable_login_stat_mail+set}" = set; then
20479   enableval=$enable_login_stat_mail;
20480 else
20481   enable_login_stat_mail=no
20482
20483 fi
20484
20485
20486 if test "x$enable_login_stat_mail" = xyes; then
20487
20488 cat >>confdefs.h <<\_ACEOF
20489 #define LOGIN_STAT_MAIL 1
20490 _ACEOF
20491
20492 fi
20493
20494
20495 # Check whether --enable-pg-bell was given.
20496 if test "${enable_pg_bell+set}" = set; then
20497   enableval=$enable_pg_bell;
20498 else
20499   enable_pg_bell=yes
20500
20501 fi
20502
20503
20504 if test "x$enable_pg_bell" = xyes; then
20505
20506 cat >>confdefs.h <<\_ACEOF
20507 #define PG_BELL 1
20508 _ACEOF
20509
20510 fi
20511
20512
20513 # Check whether --enable-require-password was given.
20514 if test "${enable_require_password+set}" = set; then
20515   enableval=$enable_require_password;
20516 else
20517   enable_require_password=yes
20518
20519 fi
20520
20521
20522 if test "x$enable_require_password" = xyes; then
20523
20524 cat >>confdefs.h <<\_ACEOF
20525 #define REQUIRE_PASSWORD 1
20526 _ACEOF
20527
20528 fi
20529
20530
20531 # Check whether --enable-use-tty-group was given.
20532 if test "${enable_use_tty_group+set}" = set; then
20533   enableval=$enable_use_tty_group;
20534 else
20535   enable_use_tty_group=yes
20536
20537 fi
20538
20539  if test "x$enable_use_tty_group" = xyes; then
20540   USE_TTY_GROUP_TRUE=
20541   USE_TTY_GROUP_FALSE='#'
20542 else
20543   USE_TTY_GROUP_TRUE='#'
20544   USE_TTY_GROUP_FALSE=
20545 fi
20546
20547
20548 if test "x$enable_use_tty_group" = xyes; then
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define USE_TTY_GROUP 1
20552 _ACEOF
20553
20554 fi
20555
20556 # Check whether --enable-makeinstall-chown was given.
20557 if test "${enable_makeinstall_chown+set}" = set; then
20558   enableval=$enable_makeinstall_chown;
20559 else
20560   enable_makeinstall_chown=yes
20561
20562 fi
20563
20564  if test "x$enable_makeinstall_chown" = xyes; then
20565   MAKEINSTALL_DO_CHOWN_TRUE=
20566   MAKEINSTALL_DO_CHOWN_FALSE='#'
20567 else
20568   MAKEINSTALL_DO_CHOWN_TRUE='#'
20569   MAKEINSTALL_DO_CHOWN_FALSE=
20570 fi
20571
20572
20573
20574
20575
20576
20577 LIBS=""
20578
20579
20580 ac_config_headers="$ac_config_headers config.h"
20581
20582
20583 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 misc-utils/chkdupexe:misc-utils/chkdupexe.pl misc-utils/Makefile mount/Makefile partx/Makefile po/Makefile.in schedutils/Makefile shlibs/blkid/blkid.pc shlibs/blkid/Makefile shlibs/blkid/src/Makefile shlibs/blkid/src/probers/Makefile shlibs/uuid/uuid.pc shlibs/uuid/Makefile shlibs/uuid/man/Makefile shlibs/uuid/src/Makefile shlibs/Makefile sys-utils/Makefile tests/commands.sh tests/helpers/Makefile tests/Makefile text-utils/Makefile"
20584
20585
20586
20587 cat >confcache <<\_ACEOF
20588 # This file is a shell script that caches the results of configure
20589 # tests run on this system so they can be shared between configure
20590 # scripts and configure runs, see configure's option --config-cache.
20591 # It is not useful on other systems.  If it contains results you don't
20592 # want to keep, you may remove or edit it.
20593 #
20594 # config.status only pays attention to the cache file if you give it
20595 # the --recheck option to rerun configure.
20596 #
20597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20599 # following values.
20600
20601 _ACEOF
20602
20603 # The following way of writing the cache mishandles newlines in values,
20604 # but we know of no workaround that is simple, portable, and efficient.
20605 # So, we kill variables containing newlines.
20606 # Ultrix sh set writes to stderr and can't be redirected directly,
20607 # and sets the high bit in the cache file unless we assign to the vars.
20608 (
20609   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20610     eval ac_val=\$$ac_var
20611     case $ac_val in #(
20612     *${as_nl}*)
20613       case $ac_var in #(
20614       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20616       esac
20617       case $ac_var in #(
20618       _ | IFS | as_nl) ;; #(
20619       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20620       *) $as_unset $ac_var ;;
20621       esac ;;
20622     esac
20623   done
20624
20625   (set) 2>&1 |
20626     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20627     *${as_nl}ac_space=\ *)
20628       # `set' does not quote correctly, so add quotes (double-quote
20629       # substitution turns \\\\ into \\, and sed turns \\ into \).
20630       sed -n \
20631         "s/'/'\\\\''/g;
20632           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20633       ;; #(
20634     *)
20635       # `set' quotes correctly as required by POSIX, so do not add quotes.
20636       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20637       ;;
20638     esac |
20639     sort
20640 ) |
20641   sed '
20642      /^ac_cv_env_/b end
20643      t clear
20644      :clear
20645      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20646      t end
20647      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20648      :end' >>confcache
20649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20650   if test -w "$cache_file"; then
20651     test "x$cache_file" != "x/dev/null" &&
20652       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20653 $as_echo "$as_me: updating cache $cache_file" >&6;}
20654     cat confcache >$cache_file
20655   else
20656     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20657 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20658   fi
20659 fi
20660 rm -f confcache
20661
20662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20663 # Let make expand exec_prefix.
20664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20665
20666 DEFS=-DHAVE_CONFIG_H
20667
20668 ac_libobjs=
20669 ac_ltlibobjs=
20670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20671   # 1. Remove the extension, and $U if already installed.
20672   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20673   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20674   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20675   #    will be set to the directory where LIBOBJS objects are built.
20676   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20677   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20678 done
20679 LIBOBJS=$ac_libobjs
20680
20681 LTLIBOBJS=$ac_ltlibobjs
20682
20683
20684  if test -n "$EXEEXT"; then
20685   am__EXEEXT_TRUE=
20686   am__EXEEXT_FALSE='#'
20687 else
20688   am__EXEEXT_TRUE='#'
20689   am__EXEEXT_FALSE=
20690 fi
20691
20692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20693   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20694 Usually this means the macro was only invoked conditionally." >&5
20695 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20696 Usually this means the macro was only invoked conditionally." >&2;}
20697    { (exit 1); exit 1; }; }
20698 fi
20699 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20700   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20701 Usually this means the macro was only invoked conditionally." >&5
20702 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20703 Usually this means the macro was only invoked conditionally." >&2;}
20704    { (exit 1); exit 1; }; }
20705 fi
20706
20707 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
20708   { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
20709 Usually this means the macro was only invoked conditionally." >&5
20710 $as_echo "$as_me: error: conditional \"LINUX\" was never defined.
20711 Usually this means the macro was only invoked conditionally." >&2;}
20712    { (exit 1); exit 1; }; }
20713 fi
20714 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
20715   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_RAW\" was never defined.
20716 Usually this means the macro was only invoked conditionally." >&5
20717 $as_echo "$as_me: error: conditional \"HAVE_RAW\" was never defined.
20718 Usually this means the macro was only invoked conditionally." >&2;}
20719    { (exit 1); exit 1; }; }
20720 fi
20721 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
20722   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_RAW\" was never defined.
20723 Usually this means the macro was only invoked conditionally." >&5
20724 $as_echo "$as_me: error: conditional \"HAVE_RAW\" was never defined.
20725 Usually this means the macro was only invoked conditionally." >&2;}
20726    { (exit 1); exit 1; }; }
20727 fi
20728 if test -z "${HAVE_STATIC_LOSETUP_TRUE}" && test -z "${HAVE_STATIC_LOSETUP_FALSE}"; then
20729   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_LOSETUP\" was never defined.
20730 Usually this means the macro was only invoked conditionally." >&5
20731 $as_echo "$as_me: error: conditional \"HAVE_STATIC_LOSETUP\" was never defined.
20732 Usually this means the macro was only invoked conditionally." >&2;}
20733    { (exit 1); exit 1; }; }
20734 fi
20735 if test -z "${HAVE_STATIC_MOUNT_TRUE}" && test -z "${HAVE_STATIC_MOUNT_FALSE}"; then
20736   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_MOUNT\" was never defined.
20737 Usually this means the macro was only invoked conditionally." >&5
20738 $as_echo "$as_me: error: conditional \"HAVE_STATIC_MOUNT\" was never defined.
20739 Usually this means the macro was only invoked conditionally." >&2;}
20740    { (exit 1); exit 1; }; }
20741 fi
20742 if test -z "${HAVE_STATIC_UMOUNT_TRUE}" && test -z "${HAVE_STATIC_UMOUNT_FALSE}"; then
20743   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_UMOUNT\" was never defined.
20744 Usually this means the macro was only invoked conditionally." >&5
20745 $as_echo "$as_me: error: conditional \"HAVE_STATIC_UMOUNT\" was never defined.
20746 Usually this means the macro was only invoked conditionally." >&2;}
20747    { (exit 1); exit 1; }; }
20748 fi
20749 if test -z "${HAVE_STATIC_FDISK_TRUE}" && test -z "${HAVE_STATIC_FDISK_FALSE}"; then
20750   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_FDISK\" was never defined.
20751 Usually this means the macro was only invoked conditionally." >&5
20752 $as_echo "$as_me: error: conditional \"HAVE_STATIC_FDISK\" was never defined.
20753 Usually this means the macro was only invoked conditionally." >&2;}
20754    { (exit 1); exit 1; }; }
20755 fi
20756 if test -z "${HAVE_STATIC_SFDISK_TRUE}" && test -z "${HAVE_STATIC_SFDISK_FALSE}"; then
20757   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_SFDISK\" was never defined.
20758 Usually this means the macro was only invoked conditionally." >&5
20759 $as_echo "$as_me: error: conditional \"HAVE_STATIC_SFDISK\" was never defined.
20760 Usually this means the macro was only invoked conditionally." >&2;}
20761    { (exit 1); exit 1; }; }
20762 fi
20763 if test -z "${HAVE_STATIC_BLKID_TRUE}" && test -z "${HAVE_STATIC_BLKID_FALSE}"; then
20764   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_BLKID\" was never defined.
20765 Usually this means the macro was only invoked conditionally." >&5
20766 $as_echo "$as_me: error: conditional \"HAVE_STATIC_BLKID\" was never defined.
20767 Usually this means the macro was only invoked conditionally." >&2;}
20768    { (exit 1); exit 1; }; }
20769 fi
20770 if test -z "${BUILD_MOUNT_TRUE}" && test -z "${BUILD_MOUNT_FALSE}"; then
20771   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MOUNT\" was never defined.
20772 Usually this means the macro was only invoked conditionally." >&5
20773 $as_echo "$as_me: error: conditional \"BUILD_MOUNT\" was never defined.
20774 Usually this means the macro was only invoked conditionally." >&2;}
20775    { (exit 1); exit 1; }; }
20776 fi
20777 if test -z "${BUILD_FSCK_TRUE}" && test -z "${BUILD_FSCK_FALSE}"; then
20778   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_FSCK\" was never defined.
20779 Usually this means the macro was only invoked conditionally." >&5
20780 $as_echo "$as_me: error: conditional \"BUILD_FSCK\" was never defined.
20781 Usually this means the macro was only invoked conditionally." >&2;}
20782    { (exit 1); exit 1; }; }
20783 fi
20784 if test -z "${BUILD_LIBUUID_TRUE}" && test -z "${BUILD_LIBUUID_FALSE}"; then
20785   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBUUID\" was never defined.
20786 Usually this means the macro was only invoked conditionally." >&5
20787 $as_echo "$as_me: error: conditional \"BUILD_LIBUUID\" was never defined.
20788 Usually this means the macro was only invoked conditionally." >&2;}
20789    { (exit 1); exit 1; }; }
20790 fi
20791 if test -z "${HAVE_UUID_TRUE}" && test -z "${HAVE_UUID_FALSE}"; then
20792   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UUID\" was never defined.
20793 Usually this means the macro was only invoked conditionally." >&5
20794 $as_echo "$as_me: error: conditional \"HAVE_UUID\" was never defined.
20795 Usually this means the macro was only invoked conditionally." >&2;}
20796    { (exit 1); exit 1; }; }
20797 fi
20798 if test -z "${BUILD_UUIDD_TRUE}" && test -z "${BUILD_UUIDD_FALSE}"; then
20799   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_UUIDD\" was never defined.
20800 Usually this means the macro was only invoked conditionally." >&5
20801 $as_echo "$as_me: error: conditional \"BUILD_UUIDD\" was never defined.
20802 Usually this means the macro was only invoked conditionally." >&2;}
20803    { (exit 1); exit 1; }; }
20804 fi
20805 if test -z "${BUILD_LIBBLKID_TRUE}" && test -z "${BUILD_LIBBLKID_FALSE}"; then
20806   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBBLKID\" was never defined.
20807 Usually this means the macro was only invoked conditionally." >&5
20808 $as_echo "$as_me: error: conditional \"BUILD_LIBBLKID\" was never defined.
20809 Usually this means the macro was only invoked conditionally." >&2;}
20810    { (exit 1); exit 1; }; }
20811 fi
20812 if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
20813   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BLKID\" was never defined.
20814 Usually this means the macro was only invoked conditionally." >&5
20815 $as_echo "$as_me: error: conditional \"HAVE_BLKID\" was never defined.
20816 Usually this means the macro was only invoked conditionally." >&2;}
20817    { (exit 1); exit 1; }; }
20818 fi
20819 if test -z "${HAVE_UTIL_TRUE}" && test -z "${HAVE_UTIL_FALSE}"; then
20820   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UTIL\" was never defined.
20821 Usually this means the macro was only invoked conditionally." >&5
20822 $as_echo "$as_me: error: conditional \"HAVE_UTIL\" was never defined.
20823 Usually this means the macro was only invoked conditionally." >&2;}
20824    { (exit 1); exit 1; }; }
20825 fi
20826 if test -z "${HAVE_TERMCAP_TRUE}" && test -z "${HAVE_TERMCAP_FALSE}"; then
20827   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TERMCAP\" was never defined.
20828 Usually this means the macro was only invoked conditionally." >&5
20829 $as_echo "$as_me: error: conditional \"HAVE_TERMCAP\" was never defined.
20830 Usually this means the macro was only invoked conditionally." >&2;}
20831    { (exit 1); exit 1; }; }
20832 fi
20833 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
20834   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined.
20835 Usually this means the macro was only invoked conditionally." >&5
20836 $as_echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined.
20837 Usually this means the macro was only invoked conditionally." >&2;}
20838    { (exit 1); exit 1; }; }
20839 fi
20840 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
20841   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined.
20842 Usually this means the macro was only invoked conditionally." >&5
20843 $as_echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined.
20844 Usually this means the macro was only invoked conditionally." >&2;}
20845    { (exit 1); exit 1; }; }
20846 fi
20847 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
20848   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined.
20849 Usually this means the macro was only invoked conditionally." >&5
20850 $as_echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined.
20851 Usually this means the macro was only invoked conditionally." >&2;}
20852    { (exit 1); exit 1; }; }
20853 fi
20854 if test -z "${HAVE_TINFO_TRUE}" && test -z "${HAVE_TINFO_FALSE}"; then
20855   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TINFO\" was never defined.
20856 Usually this means the macro was only invoked conditionally." >&5
20857 $as_echo "$as_me: error: conditional \"HAVE_TINFO\" was never defined.
20858 Usually this means the macro was only invoked conditionally." >&2;}
20859    { (exit 1); exit 1; }; }
20860 fi
20861 if test -z "${USE_SLANG_TRUE}" && test -z "${USE_SLANG_FALSE}"; then
20862   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SLANG\" was never defined.
20863 Usually this means the macro was only invoked conditionally." >&5
20864 $as_echo "$as_me: error: conditional \"USE_SLANG\" was never defined.
20865 Usually this means the macro was only invoked conditionally." >&2;}
20866    { (exit 1); exit 1; }; }
20867 fi
20868 if test -z "${NEED_LIBCRYPT_TRUE}" && test -z "${NEED_LIBCRYPT_FALSE}"; then
20869   { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_LIBCRYPT\" was never defined.
20870 Usually this means the macro was only invoked conditionally." >&5
20871 $as_echo "$as_me: error: conditional \"NEED_LIBCRYPT\" was never defined.
20872 Usually this means the macro was only invoked conditionally." >&2;}
20873    { (exit 1); exit 1; }; }
20874 fi
20875 if test -z "${HAVE_PIVOT_ROOT_TRUE}" && test -z "${HAVE_PIVOT_ROOT_FALSE}"; then
20876   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PIVOT_ROOT\" was never defined.
20877 Usually this means the macro was only invoked conditionally." >&5
20878 $as_echo "$as_me: error: conditional \"HAVE_PIVOT_ROOT\" was never defined.
20879 Usually this means the macro was only invoked conditionally." >&2;}
20880    { (exit 1); exit 1; }; }
20881 fi
20882 if test -z "${HAVE_SCHED_GETAFFINITY_TRUE}" && test -z "${HAVE_SCHED_GETAFFINITY_FALSE}"; then
20883   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
20884 Usually this means the macro was only invoked conditionally." >&5
20885 $as_echo "$as_me: error: conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
20886 Usually this means the macro was only invoked conditionally." >&2;}
20887    { (exit 1); exit 1; }; }
20888 fi
20889 if test -z "${HAVE_IOPRIO_SET_TRUE}" && test -z "${HAVE_IOPRIO_SET_FALSE}"; then
20890   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_IOPRIO_SET\" was never defined.
20891 Usually this means the macro was only invoked conditionally." >&5
20892 $as_echo "$as_me: error: conditional \"HAVE_IOPRIO_SET\" was never defined.
20893 Usually this means the macro was only invoked conditionally." >&2;}
20894    { (exit 1); exit 1; }; }
20895 fi
20896 if test -z "${HAVE_IOPRIO_GET_TRUE}" && test -z "${HAVE_IOPRIO_GET_FALSE}"; then
20897   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_IOPRIO_GET\" was never defined.
20898 Usually this means the macro was only invoked conditionally." >&5
20899 $as_echo "$as_me: error: conditional \"HAVE_IOPRIO_GET\" was never defined.
20900 Usually this means the macro was only invoked conditionally." >&2;}
20901    { (exit 1); exit 1; }; }
20902 fi
20903 if test -z "${ARCH_I86_TRUE}" && test -z "${ARCH_I86_FALSE}"; then
20904   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_I86\" was never defined.
20905 Usually this means the macro was only invoked conditionally." >&5
20906 $as_echo "$as_me: error: conditional \"ARCH_I86\" was never defined.
20907 Usually this means the macro was only invoked conditionally." >&2;}
20908    { (exit 1); exit 1; }; }
20909 fi
20910 if test -z "${ARCH_86_64_TRUE}" && test -z "${ARCH_86_64_FALSE}"; then
20911   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_86_64\" was never defined.
20912 Usually this means the macro was only invoked conditionally." >&5
20913 $as_echo "$as_me: error: conditional \"ARCH_86_64\" was never defined.
20914 Usually this means the macro was only invoked conditionally." >&2;}
20915    { (exit 1); exit 1; }; }
20916 fi
20917 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20918   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20919 Usually this means the macro was only invoked conditionally." >&5
20920 $as_echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20921 Usually this means the macro was only invoked conditionally." >&2;}
20922    { (exit 1); exit 1; }; }
20923 fi
20924 if test -z "${ARCH_S390_TRUE}" && test -z "${ARCH_S390_FALSE}"; then
20925   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_S390\" was never defined.
20926 Usually this means the macro was only invoked conditionally." >&5
20927 $as_echo "$as_me: error: conditional \"ARCH_S390\" was never defined.
20928 Usually this means the macro was only invoked conditionally." >&2;}
20929    { (exit 1); exit 1; }; }
20930 fi
20931 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
20932   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
20933 Usually this means the macro was only invoked conditionally." >&5
20934 $as_echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
20935 Usually this means the macro was only invoked conditionally." >&2;}
20936    { (exit 1); exit 1; }; }
20937 fi
20938 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
20939   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
20940 Usually this means the macro was only invoked conditionally." >&5
20941 $as_echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
20942 Usually this means the macro was only invoked conditionally." >&2;}
20943    { (exit 1); exit 1; }; }
20944 fi
20945 if test -z "${ARCH_M68K_TRUE}" && test -z "${ARCH_M68K_FALSE}"; then
20946   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_M68K\" was never defined.
20947 Usually this means the macro was only invoked conditionally." >&5
20948 $as_echo "$as_me: error: conditional \"ARCH_M68K\" was never defined.
20949 Usually this means the macro was only invoked conditionally." >&2;}
20950    { (exit 1); exit 1; }; }
20951 fi
20952 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
20953   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_MIPS\" was never defined.
20954 Usually this means the macro was only invoked conditionally." >&5
20955 $as_echo "$as_me: error: conditional \"ARCH_MIPS\" was never defined.
20956 Usually this means the macro was only invoked conditionally." >&2;}
20957    { (exit 1); exit 1; }; }
20958 fi
20959 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20960   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20961 Usually this means the macro was only invoked conditionally." >&5
20962 $as_echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20963 Usually this means the macro was only invoked conditionally." >&2;}
20964    { (exit 1); exit 1; }; }
20965 fi
20966 if test -z "${BUILD_ARCH_TRUE}" && test -z "${BUILD_ARCH_FALSE}"; then
20967   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARCH\" was never defined.
20968 Usually this means the macro was only invoked conditionally." >&5
20969 $as_echo "$as_me: error: conditional \"BUILD_ARCH\" was never defined.
20970 Usually this means the macro was only invoked conditionally." >&2;}
20971    { (exit 1); exit 1; }; }
20972 fi
20973 if test -z "${BUILD_AGETTY_TRUE}" && test -z "${BUILD_AGETTY_FALSE}"; then
20974   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_AGETTY\" was never defined.
20975 Usually this means the macro was only invoked conditionally." >&5
20976 $as_echo "$as_me: error: conditional \"BUILD_AGETTY\" was never defined.
20977 Usually this means the macro was only invoked conditionally." >&2;}
20978    { (exit 1); exit 1; }; }
20979 fi
20980 if test -z "${BUILD_CRAMFS_TRUE}" && test -z "${BUILD_CRAMFS_FALSE}"; then
20981   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRAMFS\" was never defined.
20982 Usually this means the macro was only invoked conditionally." >&5
20983 $as_echo "$as_me: error: conditional \"BUILD_CRAMFS\" was never defined.
20984 Usually this means the macro was only invoked conditionally." >&2;}
20985    { (exit 1); exit 1; }; }
20986 fi
20987 if test -z "${BUILD_SWITCH_ROOT_TRUE}" && test -z "${BUILD_SWITCH_ROOT_FALSE}"; then
20988   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SWITCH_ROOT\" was never defined.
20989 Usually this means the macro was only invoked conditionally." >&5
20990 $as_echo "$as_me: error: conditional \"BUILD_SWITCH_ROOT\" was never defined.
20991 Usually this means the macro was only invoked conditionally." >&2;}
20992    { (exit 1); exit 1; }; }
20993 fi
20994 if test -z "${BUILD_ELVTUNE_TRUE}" && test -z "${BUILD_ELVTUNE_FALSE}"; then
20995   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELVTUNE\" was never defined.
20996 Usually this means the macro was only invoked conditionally." >&5
20997 $as_echo "$as_me: error: conditional \"BUILD_ELVTUNE\" was never defined.
20998 Usually this means the macro was only invoked conditionally." >&2;}
20999    { (exit 1); exit 1; }; }
21000 fi
21001 if test -z "${BUILD_INIT_TRUE}" && test -z "${BUILD_INIT_FALSE}"; then
21002   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_INIT\" was never defined.
21003 Usually this means the macro was only invoked conditionally." >&5
21004 $as_echo "$as_me: error: conditional \"BUILD_INIT\" was never defined.
21005 Usually this means the macro was only invoked conditionally." >&2;}
21006    { (exit 1); exit 1; }; }
21007 fi
21008 if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
21009   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_KILL\" was never defined.
21010 Usually this means the macro was only invoked conditionally." >&5
21011 $as_echo "$as_me: error: conditional \"BUILD_KILL\" was never defined.
21012 Usually this means the macro was only invoked conditionally." >&2;}
21013    { (exit 1); exit 1; }; }
21014 fi
21015 if test -z "${BUILD_LAST_TRUE}" && test -z "${BUILD_LAST_FALSE}"; then
21016   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LAST\" was never defined.
21017 Usually this means the macro was only invoked conditionally." >&5
21018 $as_echo "$as_me: error: conditional \"BUILD_LAST\" was never defined.
21019 Usually this means the macro was only invoked conditionally." >&2;}
21020    { (exit 1); exit 1; }; }
21021 fi
21022 if test -z "${BUILD_MESG_TRUE}" && test -z "${BUILD_MESG_FALSE}"; then
21023   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MESG\" was never defined.
21024 Usually this means the macro was only invoked conditionally." >&5
21025 $as_echo "$as_me: error: conditional \"BUILD_MESG\" was never defined.
21026 Usually this means the macro was only invoked conditionally." >&2;}
21027    { (exit 1); exit 1; }; }
21028 fi
21029 if test -z "${BUILD_PARTX_TRUE}" && test -z "${BUILD_PARTX_FALSE}"; then
21030   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PARTX\" was never defined.
21031 Usually this means the macro was only invoked conditionally." >&5
21032 $as_echo "$as_me: error: conditional \"BUILD_PARTX\" was never defined.
21033 Usually this means the macro was only invoked conditionally." >&2;}
21034    { (exit 1); exit 1; }; }
21035 fi
21036 if test -z "${BUILD_RAW_TRUE}" && test -z "${BUILD_RAW_FALSE}"; then
21037   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RAW\" was never defined.
21038 Usually this means the macro was only invoked conditionally." >&5
21039 $as_echo "$as_me: error: conditional \"BUILD_RAW\" was never defined.
21040 Usually this means the macro was only invoked conditionally." >&2;}
21041    { (exit 1); exit 1; }; }
21042 fi
21043 if test -z "${BUILD_RDEV_TRUE}" && test -z "${BUILD_RDEV_FALSE}"; then
21044   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RDEV\" was never defined.
21045 Usually this means the macro was only invoked conditionally." >&5
21046 $as_echo "$as_me: error: conditional \"BUILD_RDEV\" was never defined.
21047 Usually this means the macro was only invoked conditionally." >&2;}
21048    { (exit 1); exit 1; }; }
21049 fi
21050 if test -z "${BUILD_RENAME_TRUE}" && test -z "${BUILD_RENAME_FALSE}"; then
21051   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RENAME\" was never defined.
21052 Usually this means the macro was only invoked conditionally." >&5
21053 $as_echo "$as_me: error: conditional \"BUILD_RENAME\" was never defined.
21054 Usually this means the macro was only invoked conditionally." >&2;}
21055    { (exit 1); exit 1; }; }
21056 fi
21057 if test -z "${BUILD_RESET_TRUE}" && test -z "${BUILD_RESET_FALSE}"; then
21058   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RESET\" was never defined.
21059 Usually this means the macro was only invoked conditionally." >&5
21060 $as_echo "$as_me: error: conditional \"BUILD_RESET\" was never defined.
21061 Usually this means the macro was only invoked conditionally." >&2;}
21062    { (exit 1); exit 1; }; }
21063 fi
21064 if test -z "${BUILD_LOGIN_UTILS_TRUE}" && test -z "${BUILD_LOGIN_UTILS_FALSE}"; then
21065   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LOGIN_UTILS\" was never defined.
21066 Usually this means the macro was only invoked conditionally." >&5
21067 $as_echo "$as_me: error: conditional \"BUILD_LOGIN_UTILS\" was never defined.
21068 Usually this means the macro was only invoked conditionally." >&2;}
21069    { (exit 1); exit 1; }; }
21070 fi
21071 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
21072   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PAM\" was never defined.
21073 Usually this means the macro was only invoked conditionally." >&5
21074 $as_echo "$as_me: error: conditional \"HAVE_PAM\" was never defined.
21075 Usually this means the macro was only invoked conditionally." >&2;}
21076    { (exit 1); exit 1; }; }
21077 fi
21078 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
21079   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PAM\" was never defined.
21080 Usually this means the macro was only invoked conditionally." >&5
21081 $as_echo "$as_me: error: conditional \"HAVE_PAM\" was never defined.
21082 Usually this means the macro was only invoked conditionally." >&2;}
21083    { (exit 1); exit 1; }; }
21084 fi
21085 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
21086   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined.
21087 Usually this means the macro was only invoked conditionally." >&5
21088 $as_echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined.
21089 Usually this means the macro was only invoked conditionally." >&2;}
21090    { (exit 1); exit 1; }; }
21091 fi
21092 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
21093   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&5
21095 $as_echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined.
21096 Usually this means the macro was only invoked conditionally." >&2;}
21097    { (exit 1); exit 1; }; }
21098 fi
21099 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
21100   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT\" was never defined.
21101 Usually this means the macro was only invoked conditionally." >&5
21102 $as_echo "$as_me: error: conditional \"HAVE_AUDIT\" was never defined.
21103 Usually this means the macro was only invoked conditionally." >&2;}
21104    { (exit 1); exit 1; }; }
21105 fi
21106 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
21107   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT\" was never defined.
21108 Usually this means the macro was only invoked conditionally." >&5
21109 $as_echo "$as_me: error: conditional \"HAVE_AUDIT\" was never defined.
21110 Usually this means the macro was only invoked conditionally." >&2;}
21111    { (exit 1); exit 1; }; }
21112 fi
21113 if test -z "${BUILD_SCHEDUTILS_TRUE}" && test -z "${BUILD_SCHEDUTILS_FALSE}"; then
21114   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SCHEDUTILS\" was never defined.
21115 Usually this means the macro was only invoked conditionally." >&5
21116 $as_echo "$as_me: error: conditional \"BUILD_SCHEDUTILS\" was never defined.
21117 Usually this means the macro was only invoked conditionally." >&2;}
21118    { (exit 1); exit 1; }; }
21119 fi
21120 if test -z "${BUILD_WALL_TRUE}" && test -z "${BUILD_WALL_FALSE}"; then
21121   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_WALL\" was never defined.
21122 Usually this means the macro was only invoked conditionally." >&5
21123 $as_echo "$as_me: error: conditional \"BUILD_WALL\" was never defined.
21124 Usually this means the macro was only invoked conditionally." >&2;}
21125    { (exit 1); exit 1; }; }
21126 fi
21127 if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then
21128   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_WRITE\" was never defined.
21129 Usually this means the macro was only invoked conditionally." >&5
21130 $as_echo "$as_me: error: conditional \"BUILD_WRITE\" was never defined.
21131 Usually this means the macro was only invoked conditionally." >&2;}
21132    { (exit 1); exit 1; }; }
21133 fi
21134 if test -z "${USE_TTY_GROUP_TRUE}" && test -z "${USE_TTY_GROUP_FALSE}"; then
21135   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_TTY_GROUP\" was never defined.
21136 Usually this means the macro was only invoked conditionally." >&5
21137 $as_echo "$as_me: error: conditional \"USE_TTY_GROUP\" was never defined.
21138 Usually this means the macro was only invoked conditionally." >&2;}
21139    { (exit 1); exit 1; }; }
21140 fi
21141 if test -z "${MAKEINSTALL_DO_CHOWN_TRUE}" && test -z "${MAKEINSTALL_DO_CHOWN_FALSE}"; then
21142   { { $as_echo "$as_me:$LINENO: error: conditional \"MAKEINSTALL_DO_CHOWN\" was never defined.
21143 Usually this means the macro was only invoked conditionally." >&5
21144 $as_echo "$as_me: error: conditional \"MAKEINSTALL_DO_CHOWN\" was never defined.
21145 Usually this means the macro was only invoked conditionally." >&2;}
21146    { (exit 1); exit 1; }; }
21147 fi
21148
21149 : ${CONFIG_STATUS=./config.status}
21150 ac_write_fail=0
21151 ac_clean_files_save=$ac_clean_files
21152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21153 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21155 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21156 #! $SHELL
21157 # Generated by $as_me.
21158 # Run this file to recreate the current configuration.
21159 # Compiler output produced by configure, useful for debugging
21160 # configure, is in config.log if it exists.
21161
21162 debug=false
21163 ac_cs_recheck=false
21164 ac_cs_silent=false
21165 SHELL=\${CONFIG_SHELL-$SHELL}
21166 _ACEOF
21167
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21169 ## --------------------- ##
21170 ## M4sh Initialization.  ##
21171 ## --------------------- ##
21172
21173 # Be more Bourne compatible
21174 DUALCASE=1; export DUALCASE # for MKS sh
21175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21176   emulate sh
21177   NULLCMD=:
21178   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21179   # is contrary to our usage.  Disable this feature.
21180   alias -g '${1+"$@"}'='"$@"'
21181   setopt NO_GLOB_SUBST
21182 else
21183   case `(set -o) 2>/dev/null` in
21184   *posix*) set -o posix ;;
21185 esac
21186
21187 fi
21188
21189
21190
21191
21192 # PATH needs CR
21193 # Avoid depending upon Character Ranges.
21194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21197 as_cr_digits='0123456789'
21198 as_cr_alnum=$as_cr_Letters$as_cr_digits
21199
21200 as_nl='
21201 '
21202 export as_nl
21203 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21204 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21207 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21208   as_echo='printf %s\n'
21209   as_echo_n='printf %s'
21210 else
21211   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21212     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21213     as_echo_n='/usr/ucb/echo -n'
21214   else
21215     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21216     as_echo_n_body='eval
21217       arg=$1;
21218       case $arg in
21219       *"$as_nl"*)
21220         expr "X$arg" : "X\\(.*\\)$as_nl";
21221         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21222       esac;
21223       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21224     '
21225     export as_echo_n_body
21226     as_echo_n='sh -c $as_echo_n_body as_echo'
21227   fi
21228   export as_echo_body
21229   as_echo='sh -c $as_echo_body as_echo'
21230 fi
21231
21232 # The user is always right.
21233 if test "${PATH_SEPARATOR+set}" != set; then
21234   PATH_SEPARATOR=:
21235   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21236     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21237       PATH_SEPARATOR=';'
21238   }
21239 fi
21240
21241 # Support unset when possible.
21242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21243   as_unset=unset
21244 else
21245   as_unset=false
21246 fi
21247
21248
21249 # IFS
21250 # We need space, tab and new line, in precisely that order.  Quoting is
21251 # there to prevent editors from complaining about space-tab.
21252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21253 # splitting by setting IFS to empty value.)
21254 IFS=" ""        $as_nl"
21255
21256 # Find who we are.  Look in the path if we contain no directory separator.
21257 case $0 in
21258   *[\\/]* ) as_myself=$0 ;;
21259   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21260 for as_dir in $PATH
21261 do
21262   IFS=$as_save_IFS
21263   test -z "$as_dir" && as_dir=.
21264   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21265 done
21266 IFS=$as_save_IFS
21267
21268      ;;
21269 esac
21270 # We did not find ourselves, most probably we were run as `sh COMMAND'
21271 # in which case we are not to be found in the path.
21272 if test "x$as_myself" = x; then
21273   as_myself=$0
21274 fi
21275 if test ! -f "$as_myself"; then
21276   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21277   { (exit 1); exit 1; }
21278 fi
21279
21280 # Work around bugs in pre-3.0 UWIN ksh.
21281 for as_var in ENV MAIL MAILPATH
21282 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21283 done
21284 PS1='$ '
21285 PS2='> '
21286 PS4='+ '
21287
21288 # NLS nuisances.
21289 LC_ALL=C
21290 export LC_ALL
21291 LANGUAGE=C
21292 export LANGUAGE
21293
21294 # Required to use basename.
21295 if expr a : '\(a\)' >/dev/null 2>&1 &&
21296    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21297   as_expr=expr
21298 else
21299   as_expr=false
21300 fi
21301
21302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21303   as_basename=basename
21304 else
21305   as_basename=false
21306 fi
21307
21308
21309 # Name of the executable.
21310 as_me=`$as_basename -- "$0" ||
21311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21312          X"$0" : 'X\(//\)$' \| \
21313          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21314 $as_echo X/"$0" |
21315     sed '/^.*\/\([^/][^/]*\)\/*$/{
21316             s//\1/
21317             q
21318           }
21319           /^X\/\(\/\/\)$/{
21320             s//\1/
21321             q
21322           }
21323           /^X\/\(\/\).*/{
21324             s//\1/
21325             q
21326           }
21327           s/.*/./; q'`
21328
21329 # CDPATH.
21330 $as_unset CDPATH
21331
21332
21333
21334   as_lineno_1=$LINENO
21335   as_lineno_2=$LINENO
21336   test "x$as_lineno_1" != "x$as_lineno_2" &&
21337   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21338
21339   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21340   # uniformly replaced by the line number.  The first 'sed' inserts a
21341   # line-number line after each line using $LINENO; the second 'sed'
21342   # does the real work.  The second script uses 'N' to pair each
21343   # line-number line with the line containing $LINENO, and appends
21344   # trailing '-' during substitution so that $LINENO is not a special
21345   # case at line end.
21346   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21347   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21348   # E. McMahon (1931-1989) for sed's syntax.  :-)
21349   sed -n '
21350     p
21351     /[$]LINENO/=
21352   ' <$as_myself |
21353     sed '
21354       s/[$]LINENO.*/&-/
21355       t lineno
21356       b
21357       :lineno
21358       N
21359       :loop
21360       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21361       t loop
21362       s/-\n.*//
21363     ' >$as_me.lineno &&
21364   chmod +x "$as_me.lineno" ||
21365     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21366    { (exit 1); exit 1; }; }
21367
21368   # Don't try to exec as it changes $[0], causing all sort of problems
21369   # (the dirname of $[0] is not the place where we might find the
21370   # original and so on.  Autoconf is especially sensitive to this).
21371   . "./$as_me.lineno"
21372   # Exit status is that of the last command.
21373   exit
21374 }
21375
21376
21377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21378   as_dirname=dirname
21379 else
21380   as_dirname=false
21381 fi
21382
21383 ECHO_C= ECHO_N= ECHO_T=
21384 case `echo -n x` in
21385 -n*)
21386   case `echo 'x\c'` in
21387   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21388   *)   ECHO_C='\c';;
21389   esac;;
21390 *)
21391   ECHO_N='-n';;
21392 esac
21393 if expr a : '\(a\)' >/dev/null 2>&1 &&
21394    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21395   as_expr=expr
21396 else
21397   as_expr=false
21398 fi
21399
21400 rm -f conf$$ conf$$.exe conf$$.file
21401 if test -d conf$$.dir; then
21402   rm -f conf$$.dir/conf$$.file
21403 else
21404   rm -f conf$$.dir
21405   mkdir conf$$.dir 2>/dev/null
21406 fi
21407 if (echo >conf$$.file) 2>/dev/null; then
21408   if ln -s conf$$.file conf$$ 2>/dev/null; then
21409     as_ln_s='ln -s'
21410     # ... but there are two gotchas:
21411     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21412     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21413     # In both cases, we have to default to `cp -p'.
21414     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21415       as_ln_s='cp -p'
21416   elif ln conf$$.file conf$$ 2>/dev/null; then
21417     as_ln_s=ln
21418   else
21419     as_ln_s='cp -p'
21420   fi
21421 else
21422   as_ln_s='cp -p'
21423 fi
21424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21425 rmdir conf$$.dir 2>/dev/null
21426
21427 if mkdir -p . 2>/dev/null; then
21428   as_mkdir_p=:
21429 else
21430   test -d ./-p && rmdir ./-p
21431   as_mkdir_p=false
21432 fi
21433
21434 if test -x / >/dev/null 2>&1; then
21435   as_test_x='test -x'
21436 else
21437   if ls -dL / >/dev/null 2>&1; then
21438     as_ls_L_option=L
21439   else
21440     as_ls_L_option=
21441   fi
21442   as_test_x='
21443     eval sh -c '\''
21444       if test -d "$1"; then
21445         test -d "$1/.";
21446       else
21447         case $1 in
21448         -*)set "./$1";;
21449         esac;
21450         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21451         ???[sx]*):;;*)false;;esac;fi
21452     '\'' sh
21453   '
21454 fi
21455 as_executable_p=$as_test_x
21456
21457 # Sed expression to map a string onto a valid CPP name.
21458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21459
21460 # Sed expression to map a string onto a valid variable name.
21461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21462
21463
21464 exec 6>&1
21465
21466 # Save the log message, to keep $[0] and so on meaningful, and to
21467 # report actual input values of CONFIG_FILES etc. instead of their
21468 # values after options handling.
21469 ac_log="
21470 This file was extended by util-linux-ng $as_me 2.16.2, which was
21471 generated by GNU Autoconf 2.63.  Invocation command line was
21472
21473   CONFIG_FILES    = $CONFIG_FILES
21474   CONFIG_HEADERS  = $CONFIG_HEADERS
21475   CONFIG_LINKS    = $CONFIG_LINKS
21476   CONFIG_COMMANDS = $CONFIG_COMMANDS
21477   $ $0 $@
21478
21479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21480 "
21481
21482 _ACEOF
21483
21484 case $ac_config_files in *"
21485 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21486 esac
21487
21488 case $ac_config_headers in *"
21489 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21490 esac
21491
21492
21493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21494 # Files that config.status was made for.
21495 config_files="$ac_config_files"
21496 config_headers="$ac_config_headers"
21497 config_commands="$ac_config_commands"
21498
21499 _ACEOF
21500
21501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21502 ac_cs_usage="\
21503 \`$as_me' instantiates files from templates according to the
21504 current configuration.
21505
21506 Usage: $0 [OPTION]... [FILE]...
21507
21508   -h, --help       print this help, then exit
21509   -V, --version    print version number and configuration settings, then exit
21510   -q, --quiet, --silent
21511                    do not print progress messages
21512   -d, --debug      don't remove temporary files
21513       --recheck    update $as_me by reconfiguring in the same conditions
21514       --file=FILE[:TEMPLATE]
21515                    instantiate the configuration file FILE
21516       --header=FILE[:TEMPLATE]
21517                    instantiate the configuration header FILE
21518
21519 Configuration files:
21520 $config_files
21521
21522 Configuration headers:
21523 $config_headers
21524
21525 Configuration commands:
21526 $config_commands
21527
21528 Report bugs to <bug-autoconf@gnu.org>."
21529
21530 _ACEOF
21531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21532 ac_cs_version="\\
21533 util-linux-ng config.status 2.16.2
21534 configured by $0, generated by GNU Autoconf 2.63,
21535   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21536
21537 Copyright (C) 2008 Free Software Foundation, Inc.
21538 This config.status script is free software; the Free Software Foundation
21539 gives unlimited permission to copy, distribute and modify it."
21540
21541 ac_pwd='$ac_pwd'
21542 srcdir='$srcdir'
21543 INSTALL='$INSTALL'
21544 MKDIR_P='$MKDIR_P'
21545 AWK='$AWK'
21546 test -n "\$AWK" || AWK=awk
21547 _ACEOF
21548
21549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21550 # The default lists apply if the user does not specify any file.
21551 ac_need_defaults=:
21552 while test $# != 0
21553 do
21554   case $1 in
21555   --*=*)
21556     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21557     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21558     ac_shift=:
21559     ;;
21560   *)
21561     ac_option=$1
21562     ac_optarg=$2
21563     ac_shift=shift
21564     ;;
21565   esac
21566
21567   case $ac_option in
21568   # Handling of the options.
21569   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21570     ac_cs_recheck=: ;;
21571   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21572     $as_echo "$ac_cs_version"; exit ;;
21573   --debug | --debu | --deb | --de | --d | -d )
21574     debug=: ;;
21575   --file | --fil | --fi | --f )
21576     $ac_shift
21577     case $ac_optarg in
21578     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21579     esac
21580     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21581     ac_need_defaults=false;;
21582   --header | --heade | --head | --hea )
21583     $ac_shift
21584     case $ac_optarg in
21585     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21586     esac
21587     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21588     ac_need_defaults=false;;
21589   --he | --h)
21590     # Conflict between --help and --header
21591     { $as_echo "$as_me: error: ambiguous option: $1
21592 Try \`$0 --help' for more information." >&2
21593    { (exit 1); exit 1; }; };;
21594   --help | --hel | -h )
21595     $as_echo "$ac_cs_usage"; exit ;;
21596   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21597   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21598     ac_cs_silent=: ;;
21599
21600   # This is an error.
21601   -*) { $as_echo "$as_me: error: unrecognized option: $1
21602 Try \`$0 --help' for more information." >&2
21603    { (exit 1); exit 1; }; } ;;
21604
21605   *) ac_config_targets="$ac_config_targets $1"
21606      ac_need_defaults=false ;;
21607
21608   esac
21609   shift
21610 done
21611
21612 ac_configure_extra_args=
21613
21614 if $ac_cs_silent; then
21615   exec 6>/dev/null
21616   ac_configure_extra_args="$ac_configure_extra_args --silent"
21617 fi
21618
21619 _ACEOF
21620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21621 if \$ac_cs_recheck; then
21622   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21623   shift
21624   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21625   CONFIG_SHELL='$SHELL'
21626   export CONFIG_SHELL
21627   exec "\$@"
21628 fi
21629
21630 _ACEOF
21631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21632 exec 5>>config.log
21633 {
21634   echo
21635   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21636 ## Running $as_me. ##
21637 _ASBOX
21638   $as_echo "$ac_log"
21639 } >&5
21640
21641 _ACEOF
21642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21643 #
21644 # INIT-COMMANDS
21645 #
21646 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21647
21648
21649 # The HP-UX ksh and POSIX shell print the target directory to stdout
21650 # if CDPATH is set.
21651 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21652
21653 sed_quote_subst='$sed_quote_subst'
21654 double_quote_subst='$double_quote_subst'
21655 delay_variable_subst='$delay_variable_subst'
21656 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21657 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21658 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21659 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21660 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21661 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21662 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21663 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21664 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21665 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21666 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21667 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21668 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21669 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21670 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21671 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21672 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21673 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21674 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21675 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21676 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21677 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21678 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21679 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21680 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21681 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21682 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21683 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21684 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21685 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21686 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21687 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21688 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21689 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21690 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21691 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21692 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21693 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21694 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21695 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21696 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21697 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21698 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21699 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21700 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21701 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21702 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21703 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21704 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21705 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21706 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21707 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21708 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21709 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21710 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21711 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21712 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21713 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21714 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21715 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21716 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21717 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21718 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21719 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21720 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21721 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21722 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21723 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21724 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21725 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21726 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21727 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21728 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21729 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21730 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21731 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21732 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21733 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21734 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21735 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21736 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21737 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21738 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21739 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21740 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21741 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21742 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21743 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21744 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21745 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21746 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21747 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21748 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21749 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21750 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21751 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21752 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21753 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21754 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21755 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21756 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21757 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21758 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21759 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21760 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21761 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21762 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21763 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21764 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21765 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21766 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21767 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21768 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21769 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21770 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21771 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21772 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21773 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21774
21775 LTCC='$LTCC'
21776 LTCFLAGS='$LTCFLAGS'
21777 compiler='$compiler_DEFAULT'
21778
21779 # Quote evaled strings.
21780 for var in SED \
21781 GREP \
21782 EGREP \
21783 FGREP \
21784 LD \
21785 NM \
21786 LN_S \
21787 lt_SP2NL \
21788 lt_NL2SP \
21789 reload_flag \
21790 OBJDUMP \
21791 deplibs_check_method \
21792 file_magic_cmd \
21793 AR \
21794 AR_FLAGS \
21795 STRIP \
21796 RANLIB \
21797 CC \
21798 CFLAGS \
21799 compiler \
21800 lt_cv_sys_global_symbol_pipe \
21801 lt_cv_sys_global_symbol_to_cdecl \
21802 lt_cv_sys_global_symbol_to_c_name_address \
21803 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21804 SHELL \
21805 ECHO \
21806 lt_prog_compiler_no_builtin_flag \
21807 lt_prog_compiler_wl \
21808 lt_prog_compiler_pic \
21809 lt_prog_compiler_static \
21810 lt_cv_prog_compiler_c_o \
21811 need_locks \
21812 DSYMUTIL \
21813 NMEDIT \
21814 LIPO \
21815 OTOOL \
21816 OTOOL64 \
21817 shrext_cmds \
21818 export_dynamic_flag_spec \
21819 whole_archive_flag_spec \
21820 compiler_needs_object \
21821 with_gnu_ld \
21822 allow_undefined_flag \
21823 no_undefined_flag \
21824 hardcode_libdir_flag_spec \
21825 hardcode_libdir_flag_spec_ld \
21826 hardcode_libdir_separator \
21827 fix_srcfile_path \
21828 exclude_expsyms \
21829 include_expsyms \
21830 file_list_spec \
21831 variables_saved_for_relink \
21832 libname_spec \
21833 library_names_spec \
21834 soname_spec \
21835 finish_eval \
21836 old_striplib \
21837 striplib; do
21838     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21839     *[\\\\\\\`\\"\\\$]*)
21840       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21841       ;;
21842     *)
21843       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21844       ;;
21845     esac
21846 done
21847
21848 # Double-quote double-evaled strings.
21849 for var in reload_cmds \
21850 old_postinstall_cmds \
21851 old_postuninstall_cmds \
21852 old_archive_cmds \
21853 extract_expsyms_cmds \
21854 old_archive_from_new_cmds \
21855 old_archive_from_expsyms_cmds \
21856 archive_cmds \
21857 archive_expsym_cmds \
21858 module_cmds \
21859 module_expsym_cmds \
21860 export_symbols_cmds \
21861 prelink_cmds \
21862 postinstall_cmds \
21863 postuninstall_cmds \
21864 finish_cmds \
21865 sys_lib_search_path_spec \
21866 sys_lib_dlsearch_path_spec; do
21867     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21868     *[\\\\\\\`\\"\\\$]*)
21869       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21870       ;;
21871     *)
21872       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21873       ;;
21874     esac
21875 done
21876
21877 # Fix-up fallback echo if it was mangled by the above quoting rules.
21878 case \$lt_ECHO in
21879 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21880   ;;
21881 esac
21882
21883 ac_aux_dir='$ac_aux_dir'
21884 xsi_shell='$xsi_shell'
21885 lt_shell_append='$lt_shell_append'
21886
21887 # See if we are running on zsh, and set the options which allow our
21888 # commands through without removal of \ escapes INIT.
21889 if test -n "\${ZSH_VERSION+set}" ; then
21890    setopt NO_GLOB_SUBST
21891 fi
21892
21893
21894     PACKAGE='$PACKAGE'
21895     VERSION='$VERSION'
21896     TIMESTAMP='$TIMESTAMP'
21897     RM='$RM'
21898     ofile='$ofile'
21899
21900
21901
21902 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21903     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21904     # from automake.
21905     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21906     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21907     LINGUAS="${LINGUAS-%UNSET%}"
21908
21909
21910 _ACEOF
21911
21912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21913
21914 # Handling of arguments.
21915 for ac_config_target in $ac_config_targets
21916 do
21917   case $ac_config_target in
21918     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21919     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21920     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21921     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21922     "disk-utils/Makefile") CONFIG_FILES="$CONFIG_FILES disk-utils/Makefile" ;;
21923     "fdisk/Makefile") CONFIG_FILES="$CONFIG_FILES fdisk/Makefile" ;;
21924     "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
21925     "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
21926     "hwclock/Makefile") CONFIG_FILES="$CONFIG_FILES hwclock/Makefile" ;;
21927     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21928     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21929     "login-utils/Makefile") CONFIG_FILES="$CONFIG_FILES login-utils/Makefile" ;;
21930     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21931     "misc-utils/chkdupexe") CONFIG_FILES="$CONFIG_FILES misc-utils/chkdupexe:misc-utils/chkdupexe.pl" ;;
21932     "misc-utils/Makefile") CONFIG_FILES="$CONFIG_FILES misc-utils/Makefile" ;;
21933     "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
21934     "partx/Makefile") CONFIG_FILES="$CONFIG_FILES partx/Makefile" ;;
21935     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21936     "schedutils/Makefile") CONFIG_FILES="$CONFIG_FILES schedutils/Makefile" ;;
21937     "shlibs/blkid/blkid.pc") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/blkid.pc" ;;
21938     "shlibs/blkid/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/Makefile" ;;
21939     "shlibs/blkid/src/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/src/Makefile" ;;
21940     "shlibs/blkid/src/probers/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/src/probers/Makefile" ;;
21941     "shlibs/uuid/uuid.pc") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/uuid.pc" ;;
21942     "shlibs/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/Makefile" ;;
21943     "shlibs/uuid/man/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/man/Makefile" ;;
21944     "shlibs/uuid/src/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/src/Makefile" ;;
21945     "shlibs/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/Makefile" ;;
21946     "sys-utils/Makefile") CONFIG_FILES="$CONFIG_FILES sys-utils/Makefile" ;;
21947     "tests/commands.sh") CONFIG_FILES="$CONFIG_FILES tests/commands.sh" ;;
21948     "tests/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES tests/helpers/Makefile" ;;
21949     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21950     "text-utils/Makefile") CONFIG_FILES="$CONFIG_FILES text-utils/Makefile" ;;
21951
21952   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21953 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21954    { (exit 1); exit 1; }; };;
21955   esac
21956 done
21957
21958
21959 # If the user did not use the arguments to specify the items to instantiate,
21960 # then the envvar interface is used.  Set only those that are not.
21961 # We use the long form for the default assignment because of an extremely
21962 # bizarre bug on SunOS 4.1.3.
21963 if $ac_need_defaults; then
21964   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21965   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21966   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21967 fi
21968
21969 # Have a temporary directory for convenience.  Make it in the build tree
21970 # simply because there is no reason against having it here, and in addition,
21971 # creating and moving files from /tmp can sometimes cause problems.
21972 # Hook for its removal unless debugging.
21973 # Note that there is a small window in which the directory will not be cleaned:
21974 # after its creation but before its name has been assigned to `$tmp'.
21975 $debug ||
21976 {
21977   tmp=
21978   trap 'exit_status=$?
21979   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21980 ' 0
21981   trap '{ (exit 1); exit 1; }' 1 2 13 15
21982 }
21983 # Create a (secure) tmp directory for tmp files.
21984
21985 {
21986   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21987   test -n "$tmp" && test -d "$tmp"
21988 }  ||
21989 {
21990   tmp=./conf$$-$RANDOM
21991   (umask 077 && mkdir "$tmp")
21992 } ||
21993 {
21994    $as_echo "$as_me: cannot create a temporary directory in ." >&2
21995    { (exit 1); exit 1; }
21996 }
21997
21998 # Set up the scripts for CONFIG_FILES section.
21999 # No need to generate them if there are no CONFIG_FILES.
22000 # This happens for instance with `./config.status config.h'.
22001 if test -n "$CONFIG_FILES"; then
22002
22003
22004 ac_cr='\r'
22005 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22006 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22007   ac_cs_awk_cr='\\r'
22008 else
22009   ac_cs_awk_cr=$ac_cr
22010 fi
22011
22012 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22013 _ACEOF
22014
22015
22016 {
22017   echo "cat >conf$$subs.awk <<_ACEOF" &&
22018   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22019   echo "_ACEOF"
22020 } >conf$$subs.sh ||
22021   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22022 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22023    { (exit 1); exit 1; }; }
22024 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22025 ac_delim='%!_!# '
22026 for ac_last_try in false false false false false :; do
22027   . ./conf$$subs.sh ||
22028     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22029 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22030    { (exit 1); exit 1; }; }
22031
22032   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22033   if test $ac_delim_n = $ac_delim_num; then
22034     break
22035   elif $ac_last_try; then
22036     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22037 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22038    { (exit 1); exit 1; }; }
22039   else
22040     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22041   fi
22042 done
22043 rm -f conf$$subs.sh
22044
22045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22046 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22047 _ACEOF
22048 sed -n '
22049 h
22050 s/^/S["/; s/!.*/"]=/
22051 p
22052 g
22053 s/^[^!]*!//
22054 :repl
22055 t repl
22056 s/'"$ac_delim"'$//
22057 t delim
22058 :nl
22059 h
22060 s/\(.\{148\}\).*/\1/
22061 t more1
22062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22063 p
22064 n
22065 b repl
22066 :more1
22067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22068 p
22069 g
22070 s/.\{148\}//
22071 t nl
22072 :delim
22073 h
22074 s/\(.\{148\}\).*/\1/
22075 t more2
22076 s/["\\]/\\&/g; s/^/"/; s/$/"/
22077 p
22078 b
22079 :more2
22080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22081 p
22082 g
22083 s/.\{148\}//
22084 t delim
22085 ' <conf$$subs.awk | sed '
22086 /^[^""]/{
22087   N
22088   s/\n//
22089 }
22090 ' >>$CONFIG_STATUS || ac_write_fail=1
22091 rm -f conf$$subs.awk
22092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22093 _ACAWK
22094 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22095   for (key in S) S_is_set[key] = 1
22096   FS = "\a"
22097
22098 }
22099 {
22100   line = $ 0
22101   nfields = split(line, field, "@")
22102   substed = 0
22103   len = length(field[1])
22104   for (i = 2; i < nfields; i++) {
22105     key = field[i]
22106     keylen = length(key)
22107     if (S_is_set[key]) {
22108       value = S[key]
22109       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22110       len += length(value) + length(field[++i])
22111       substed = 1
22112     } else
22113       len += 1 + keylen
22114   }
22115
22116   print line
22117 }
22118
22119 _ACAWK
22120 _ACEOF
22121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22122 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22123   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22124 else
22125   cat
22126 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22127   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22128 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22129    { (exit 1); exit 1; }; }
22130 _ACEOF
22131
22132 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22133 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22134 # trailing colons and then remove the whole line if VPATH becomes empty
22135 # (actually we leave an empty line to preserve line numbers).
22136 if test "x$srcdir" = x.; then
22137   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22138 s/:*\$(srcdir):*/:/
22139 s/:*\${srcdir}:*/:/
22140 s/:*@srcdir@:*/:/
22141 s/^\([^=]*=[     ]*\):*/\1/
22142 s/:*$//
22143 s/^[^=]*=[       ]*$//
22144 }'
22145 fi
22146
22147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22148 fi # test -n "$CONFIG_FILES"
22149
22150 # Set up the scripts for CONFIG_HEADERS section.
22151 # No need to generate them if there are no CONFIG_HEADERS.
22152 # This happens for instance with `./config.status Makefile'.
22153 if test -n "$CONFIG_HEADERS"; then
22154 cat >"$tmp/defines.awk" <<\_ACAWK ||
22155 BEGIN {
22156 _ACEOF
22157
22158 # Transform confdefs.h into an awk script `defines.awk', embedded as
22159 # here-document in config.status, that substitutes the proper values into
22160 # config.h.in to produce config.h.
22161
22162 # Create a delimiter string that does not exist in confdefs.h, to ease
22163 # handling of long lines.
22164 ac_delim='%!_!# '
22165 for ac_last_try in false false :; do
22166   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22167   if test -z "$ac_t"; then
22168     break
22169   elif $ac_last_try; then
22170     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22171 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22172    { (exit 1); exit 1; }; }
22173   else
22174     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22175   fi
22176 done
22177
22178 # For the awk script, D is an array of macro values keyed by name,
22179 # likewise P contains macro parameters if any.  Preserve backslash
22180 # newline sequences.
22181
22182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22183 sed -n '
22184 s/.\{148\}/&'"$ac_delim"'/g
22185 t rset
22186 :rset
22187 s/^[     ]*#[    ]*define[       ][      ]*/ /
22188 t def
22189 d
22190 :def
22191 s/\\$//
22192 t bsnl
22193 s/["\\]/\\&/g
22194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22195 D["\1"]=" \3"/p
22196 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22197 d
22198 :bsnl
22199 s/["\\]/\\&/g
22200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22201 D["\1"]=" \3\\\\\\n"\\/p
22202 t cont
22203 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22204 t cont
22205 d
22206 :cont
22207 n
22208 s/.\{148\}/&'"$ac_delim"'/g
22209 t clear
22210 :clear
22211 s/\\$//
22212 t bsnlc
22213 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22214 d
22215 :bsnlc
22216 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22217 b cont
22218 ' <confdefs.h | sed '
22219 s/'"$ac_delim"'/"\\\
22220 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22221
22222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22223   for (key in D) D_is_set[key] = 1
22224   FS = "\a"
22225 }
22226 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22227   line = \$ 0
22228   split(line, arg, " ")
22229   if (arg[1] == "#") {
22230     defundef = arg[2]
22231     mac1 = arg[3]
22232   } else {
22233     defundef = substr(arg[1], 2)
22234     mac1 = arg[2]
22235   }
22236   split(mac1, mac2, "(") #)
22237   macro = mac2[1]
22238   prefix = substr(line, 1, index(line, defundef) - 1)
22239   if (D_is_set[macro]) {
22240     # Preserve the white space surrounding the "#".
22241     print prefix "define", macro P[macro] D[macro]
22242     next
22243   } else {
22244     # Replace #undef with comments.  This is necessary, for example,
22245     # in the case of _POSIX_SOURCE, which is predefined and required
22246     # on some systems where configure will not decide to define it.
22247     if (defundef == "undef") {
22248       print "/*", prefix defundef, macro, "*/"
22249       next
22250     }
22251   }
22252 }
22253 { print }
22254 _ACAWK
22255 _ACEOF
22256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22257   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22258 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22259    { (exit 1); exit 1; }; }
22260 fi # test -n "$CONFIG_HEADERS"
22261
22262
22263 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22264 shift
22265 for ac_tag
22266 do
22267   case $ac_tag in
22268   :[FHLC]) ac_mode=$ac_tag; continue;;
22269   esac
22270   case $ac_mode$ac_tag in
22271   :[FHL]*:*);;
22272   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22273 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22274    { (exit 1); exit 1; }; };;
22275   :[FH]-) ac_tag=-:-;;
22276   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22277   esac
22278   ac_save_IFS=$IFS
22279   IFS=:
22280   set x $ac_tag
22281   IFS=$ac_save_IFS
22282   shift
22283   ac_file=$1
22284   shift
22285
22286   case $ac_mode in
22287   :L) ac_source=$1;;
22288   :[FH])
22289     ac_file_inputs=
22290     for ac_f
22291     do
22292       case $ac_f in
22293       -) ac_f="$tmp/stdin";;
22294       *) # Look for the file first in the build tree, then in the source tree
22295          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22296          # because $ac_f cannot contain `:'.
22297          test -f "$ac_f" ||
22298            case $ac_f in
22299            [\\/$]*) false;;
22300            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22301            esac ||
22302            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22303 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22304    { (exit 1); exit 1; }; };;
22305       esac
22306       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22307       ac_file_inputs="$ac_file_inputs '$ac_f'"
22308     done
22309
22310     # Let's still pretend it is `configure' which instantiates (i.e., don't
22311     # use $as_me), people would be surprised to read:
22312     #    /* config.h.  Generated by config.status.  */
22313     configure_input='Generated from '`
22314           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22315         `' by configure.'
22316     if test x"$ac_file" != x-; then
22317       configure_input="$ac_file.  $configure_input"
22318       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22319 $as_echo "$as_me: creating $ac_file" >&6;}
22320     fi
22321     # Neutralize special characters interpreted by sed in replacement strings.
22322     case $configure_input in #(
22323     *\&* | *\|* | *\\* )
22324        ac_sed_conf_input=`$as_echo "$configure_input" |
22325        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22326     *) ac_sed_conf_input=$configure_input;;
22327     esac
22328
22329     case $ac_tag in
22330     *:-:* | *:-) cat >"$tmp/stdin" \
22331       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22332 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22333    { (exit 1); exit 1; }; } ;;
22334     esac
22335     ;;
22336   esac
22337
22338   ac_dir=`$as_dirname -- "$ac_file" ||
22339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22340          X"$ac_file" : 'X\(//\)[^/]' \| \
22341          X"$ac_file" : 'X\(//\)$' \| \
22342          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22343 $as_echo X"$ac_file" |
22344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22345             s//\1/
22346             q
22347           }
22348           /^X\(\/\/\)[^/].*/{
22349             s//\1/
22350             q
22351           }
22352           /^X\(\/\/\)$/{
22353             s//\1/
22354             q
22355           }
22356           /^X\(\/\).*/{
22357             s//\1/
22358             q
22359           }
22360           s/.*/./; q'`
22361   { as_dir="$ac_dir"
22362   case $as_dir in #(
22363   -*) as_dir=./$as_dir;;
22364   esac
22365   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22366     as_dirs=
22367     while :; do
22368       case $as_dir in #(
22369       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22370       *) as_qdir=$as_dir;;
22371       esac
22372       as_dirs="'$as_qdir' $as_dirs"
22373       as_dir=`$as_dirname -- "$as_dir" ||
22374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22375          X"$as_dir" : 'X\(//\)[^/]' \| \
22376          X"$as_dir" : 'X\(//\)$' \| \
22377          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22378 $as_echo X"$as_dir" |
22379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22380             s//\1/
22381             q
22382           }
22383           /^X\(\/\/\)[^/].*/{
22384             s//\1/
22385             q
22386           }
22387           /^X\(\/\/\)$/{
22388             s//\1/
22389             q
22390           }
22391           /^X\(\/\).*/{
22392             s//\1/
22393             q
22394           }
22395           s/.*/./; q'`
22396       test -d "$as_dir" && break
22397     done
22398     test -z "$as_dirs" || eval "mkdir $as_dirs"
22399   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22400 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22401    { (exit 1); exit 1; }; }; }
22402   ac_builddir=.
22403
22404 case "$ac_dir" in
22405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22406 *)
22407   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22408   # A ".." for each directory in $ac_dir_suffix.
22409   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22410   case $ac_top_builddir_sub in
22411   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22412   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22413   esac ;;
22414 esac
22415 ac_abs_top_builddir=$ac_pwd
22416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22417 # for backward compatibility:
22418 ac_top_builddir=$ac_top_build_prefix
22419
22420 case $srcdir in
22421   .)  # We are building in place.
22422     ac_srcdir=.
22423     ac_top_srcdir=$ac_top_builddir_sub
22424     ac_abs_top_srcdir=$ac_pwd ;;
22425   [\\/]* | ?:[\\/]* )  # Absolute name.
22426     ac_srcdir=$srcdir$ac_dir_suffix;
22427     ac_top_srcdir=$srcdir
22428     ac_abs_top_srcdir=$srcdir ;;
22429   *) # Relative name.
22430     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22431     ac_top_srcdir=$ac_top_build_prefix$srcdir
22432     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22433 esac
22434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22435
22436
22437   case $ac_mode in
22438   :F)
22439   #
22440   # CONFIG_FILE
22441   #
22442
22443   case $INSTALL in
22444   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22445   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22446   esac
22447   ac_MKDIR_P=$MKDIR_P
22448   case $MKDIR_P in
22449   [\\/$]* | ?:[\\/]* ) ;;
22450   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22451   esac
22452 _ACEOF
22453
22454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22455 # If the template does not know about datarootdir, expand it.
22456 # FIXME: This hack should be removed a few years after 2.60.
22457 ac_datarootdir_hack=; ac_datarootdir_seen=
22458
22459 ac_sed_dataroot='
22460 /datarootdir/ {
22461   p
22462   q
22463 }
22464 /@datadir@/p
22465 /@docdir@/p
22466 /@infodir@/p
22467 /@localedir@/p
22468 /@mandir@/p
22469 '
22470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22471 *datarootdir*) ac_datarootdir_seen=yes;;
22472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22473   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22475 _ACEOF
22476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22477   ac_datarootdir_hack='
22478   s&@datadir@&$datadir&g
22479   s&@docdir@&$docdir&g
22480   s&@infodir@&$infodir&g
22481   s&@localedir@&$localedir&g
22482   s&@mandir@&$mandir&g
22483     s&\\\${datarootdir}&$datarootdir&g' ;;
22484 esac
22485 _ACEOF
22486
22487 # Neutralize VPATH when `$srcdir' = `.'.
22488 # Shell code in configure.ac might set extrasub.
22489 # FIXME: do we really want to maintain this feature?
22490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22491 ac_sed_extra="$ac_vpsub
22492 $extrasub
22493 _ACEOF
22494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22495 :t
22496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22497 s|@configure_input@|$ac_sed_conf_input|;t t
22498 s&@top_builddir@&$ac_top_builddir_sub&;t t
22499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22500 s&@srcdir@&$ac_srcdir&;t t
22501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22502 s&@top_srcdir@&$ac_top_srcdir&;t t
22503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22504 s&@builddir@&$ac_builddir&;t t
22505 s&@abs_builddir@&$ac_abs_builddir&;t t
22506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22507 s&@INSTALL@&$ac_INSTALL&;t t
22508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22509 $ac_datarootdir_hack
22510 "
22511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22512   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22513 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22514    { (exit 1); exit 1; }; }
22515
22516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22517   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22518   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22519   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22520 which seems to be undefined.  Please make sure it is defined." >&5
22521 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22522 which seems to be undefined.  Please make sure it is defined." >&2;}
22523
22524   rm -f "$tmp/stdin"
22525   case $ac_file in
22526   -) cat "$tmp/out" && rm -f "$tmp/out";;
22527   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22528   esac \
22529   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22530 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22531    { (exit 1); exit 1; }; }
22532  ;;
22533   :H)
22534   #
22535   # CONFIG_HEADER
22536   #
22537   if test x"$ac_file" != x-; then
22538     {
22539       $as_echo "/* $configure_input  */" \
22540       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22541     } >"$tmp/config.h" \
22542       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22543 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22544    { (exit 1); exit 1; }; }
22545     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22546       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22547 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22548     else
22549       rm -f "$ac_file"
22550       mv "$tmp/config.h" "$ac_file" \
22551         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22552 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22553    { (exit 1); exit 1; }; }
22554     fi
22555   else
22556     $as_echo "/* $configure_input  */" \
22557       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22558       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22559 $as_echo "$as_me: error: could not create -" >&2;}
22560    { (exit 1); exit 1; }; }
22561   fi
22562 # Compute "$ac_file"'s index in $config_headers.
22563 _am_arg="$ac_file"
22564 _am_stamp_count=1
22565 for _am_header in $config_headers :; do
22566   case $_am_header in
22567     $_am_arg | $_am_arg:* )
22568       break ;;
22569     * )
22570       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22571   esac
22572 done
22573 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22574 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22575          X"$_am_arg" : 'X\(//\)[^/]' \| \
22576          X"$_am_arg" : 'X\(//\)$' \| \
22577          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22578 $as_echo X"$_am_arg" |
22579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22580             s//\1/
22581             q
22582           }
22583           /^X\(\/\/\)[^/].*/{
22584             s//\1/
22585             q
22586           }
22587           /^X\(\/\/\)$/{
22588             s//\1/
22589             q
22590           }
22591           /^X\(\/\).*/{
22592             s//\1/
22593             q
22594           }
22595           s/.*/./; q'`/stamp-h$_am_stamp_count
22596  ;;
22597
22598   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22599 $as_echo "$as_me: executing $ac_file commands" >&6;}
22600  ;;
22601   esac
22602
22603
22604   case $ac_file$ac_mode in
22605     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22606   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22607   # are listed without --file.  Let's play safe and only enable the eval
22608   # if we detect the quoting.
22609   case $CONFIG_FILES in
22610   *\'*) eval set x "$CONFIG_FILES" ;;
22611   *)   set x $CONFIG_FILES ;;
22612   esac
22613   shift
22614   for mf
22615   do
22616     # Strip MF so we end up with the name of the file.
22617     mf=`echo "$mf" | sed -e 's/:.*$//'`
22618     # Check whether this is an Automake generated Makefile or not.
22619     # We used to match only the files named `Makefile.in', but
22620     # some people rename them; so instead we look at the file content.
22621     # Grep'ing the first line is not enough: some people post-process
22622     # each Makefile.in and add a new line on top of each file to say so.
22623     # Grep'ing the whole file is not good either: AIX grep has a line
22624     # limit of 2048, but all sed's we know have understand at least 4000.
22625     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22626       dirpart=`$as_dirname -- "$mf" ||
22627 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22628          X"$mf" : 'X\(//\)[^/]' \| \
22629          X"$mf" : 'X\(//\)$' \| \
22630          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22631 $as_echo X"$mf" |
22632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22633             s//\1/
22634             q
22635           }
22636           /^X\(\/\/\)[^/].*/{
22637             s//\1/
22638             q
22639           }
22640           /^X\(\/\/\)$/{
22641             s//\1/
22642             q
22643           }
22644           /^X\(\/\).*/{
22645             s//\1/
22646             q
22647           }
22648           s/.*/./; q'`
22649     else
22650       continue
22651     fi
22652     # Extract the definition of DEPDIR, am__include, and am__quote
22653     # from the Makefile without running `make'.
22654     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22655     test -z "$DEPDIR" && continue
22656     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22657     test -z "am__include" && continue
22658     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22659     # When using ansi2knr, U may be empty or an underscore; expand it
22660     U=`sed -n 's/^U = //p' < "$mf"`
22661     # Find all dependency output files, they are included files with
22662     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22663     # simplest approach to changing $(DEPDIR) to its actual value in the
22664     # expansion.
22665     for file in `sed -n "
22666       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22667          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22668       # Make sure the directory exists.
22669       test -f "$dirpart/$file" && continue
22670       fdir=`$as_dirname -- "$file" ||
22671 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22672          X"$file" : 'X\(//\)[^/]' \| \
22673          X"$file" : 'X\(//\)$' \| \
22674          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22675 $as_echo X"$file" |
22676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22677             s//\1/
22678             q
22679           }
22680           /^X\(\/\/\)[^/].*/{
22681             s//\1/
22682             q
22683           }
22684           /^X\(\/\/\)$/{
22685             s//\1/
22686             q
22687           }
22688           /^X\(\/\).*/{
22689             s//\1/
22690             q
22691           }
22692           s/.*/./; q'`
22693       { as_dir=$dirpart/$fdir
22694   case $as_dir in #(
22695   -*) as_dir=./$as_dir;;
22696   esac
22697   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22698     as_dirs=
22699     while :; do
22700       case $as_dir in #(
22701       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22702       *) as_qdir=$as_dir;;
22703       esac
22704       as_dirs="'$as_qdir' $as_dirs"
22705       as_dir=`$as_dirname -- "$as_dir" ||
22706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22707          X"$as_dir" : 'X\(//\)[^/]' \| \
22708          X"$as_dir" : 'X\(//\)$' \| \
22709          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22710 $as_echo X"$as_dir" |
22711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22712             s//\1/
22713             q
22714           }
22715           /^X\(\/\/\)[^/].*/{
22716             s//\1/
22717             q
22718           }
22719           /^X\(\/\/\)$/{
22720             s//\1/
22721             q
22722           }
22723           /^X\(\/\).*/{
22724             s//\1/
22725             q
22726           }
22727           s/.*/./; q'`
22728       test -d "$as_dir" && break
22729     done
22730     test -z "$as_dirs" || eval "mkdir $as_dirs"
22731   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22732 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22733    { (exit 1); exit 1; }; }; }
22734       # echo "creating $dirpart/$file"
22735       echo '# dummy' > "$dirpart/$file"
22736     done
22737   done
22738 }
22739  ;;
22740     "libtool":C)
22741
22742     # See if we are running on zsh, and set the options which allow our
22743     # commands through without removal of \ escapes.
22744     if test -n "${ZSH_VERSION+set}" ; then
22745       setopt NO_GLOB_SUBST
22746     fi
22747
22748     cfgfile="${ofile}T"
22749     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22750     $RM "$cfgfile"
22751
22752     cat <<_LT_EOF >> "$cfgfile"
22753 #! $SHELL
22754
22755 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22756 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22759 #
22760 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22761 #                 2006, 2007, 2008 Free Software Foundation, Inc.
22762 #   Written by Gordon Matzigkeit, 1996
22763 #
22764 #   This file is part of GNU Libtool.
22765 #
22766 # GNU Libtool is free software; you can redistribute it and/or
22767 # modify it under the terms of the GNU General Public License as
22768 # published by the Free Software Foundation; either version 2 of
22769 # the License, or (at your option) any later version.
22770 #
22771 # As a special exception to the GNU General Public License,
22772 # if you distribute this file as part of a program or library that
22773 # is built using GNU Libtool, you may include this file under the
22774 # same distribution terms that you use for the rest of that program.
22775 #
22776 # GNU Libtool is distributed in the hope that it will be useful,
22777 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22778 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22779 # GNU General Public License for more details.
22780 #
22781 # You should have received a copy of the GNU General Public License
22782 # along with GNU Libtool; see the file COPYING.  If not, a copy
22783 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22784 # obtained by writing to the Free Software Foundation, Inc.,
22785 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22786
22787
22788 # The names of the tagged configurations supported by this script.
22789 available_tags=""
22790
22791 # ### BEGIN LIBTOOL CONFIG
22792
22793 # Which release of libtool.m4 was used?
22794 macro_version=$macro_version
22795 macro_revision=$macro_revision
22796
22797 # Whether or not to build shared libraries.
22798 build_libtool_libs=$enable_shared
22799
22800 # Whether or not to build static libraries.
22801 build_old_libs=$enable_static
22802
22803 # What type of objects to build.
22804 pic_mode=$pic_mode
22805
22806 # Whether or not to optimize for fast installation.
22807 fast_install=$enable_fast_install
22808
22809 # The host system.
22810 host_alias=$host_alias
22811 host=$host
22812 host_os=$host_os
22813
22814 # The build system.
22815 build_alias=$build_alias
22816 build=$build
22817 build_os=$build_os
22818
22819 # A sed program that does not truncate output.
22820 SED=$lt_SED
22821
22822 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22823 Xsed="\$SED -e 1s/^X//"
22824
22825 # A grep program that handles long lines.
22826 GREP=$lt_GREP
22827
22828 # An ERE matcher.
22829 EGREP=$lt_EGREP
22830
22831 # A literal string matcher.
22832 FGREP=$lt_FGREP
22833
22834 # A BSD- or MS-compatible name lister.
22835 NM=$lt_NM
22836
22837 # Whether we need soft or hard links.
22838 LN_S=$lt_LN_S
22839
22840 # What is the maximum length of a command?
22841 max_cmd_len=$max_cmd_len
22842
22843 # Object file audit (normally "o").
22844 objext=$ac_objext
22845
22846 # Executable file audit (normally "").
22847 exeext=$exeext
22848
22849 # whether the shell understands "unset".
22850 lt_unset=$lt_unset
22851
22852 # turn spaces into newlines.
22853 SP2NL=$lt_lt_SP2NL
22854
22855 # turn newlines into spaces.
22856 NL2SP=$lt_lt_NL2SP
22857
22858 # How to create reloadable object files.
22859 reload_flag=$lt_reload_flag
22860 reload_cmds=$lt_reload_cmds
22861
22862 # An object symbol dumper.
22863 OBJDUMP=$lt_OBJDUMP
22864
22865 # Method to check whether dependent libraries are shared objects.
22866 deplibs_check_method=$lt_deplibs_check_method
22867
22868 # Command to use when deplibs_check_method == "file_magic".
22869 file_magic_cmd=$lt_file_magic_cmd
22870
22871 # The archiver.
22872 AR=$lt_AR
22873 AR_FLAGS=$lt_AR_FLAGS
22874
22875 # A symbol stripping program.
22876 STRIP=$lt_STRIP
22877
22878 # Commands used to install an old-style archive.
22879 RANLIB=$lt_RANLIB
22880 old_postinstall_cmds=$lt_old_postinstall_cmds
22881 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22882
22883 # A C compiler.
22884 LTCC=$lt_CC
22885
22886 # LTCC compiler flags.
22887 LTCFLAGS=$lt_CFLAGS
22888
22889 # Take the output of nm and produce a listing of raw symbols and C names.
22890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22891
22892 # Transform the output of nm in a proper C declaration.
22893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22894
22895 # Transform the output of nm in a C name address pair.
22896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22897
22898 # Transform the output of nm in a C name address pair when lib prefix is needed.
22899 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22900
22901 # The name of the directory that contains temporary libtool files.
22902 objdir=$objdir
22903
22904 # Shell to use when invoking shell scripts.
22905 SHELL=$lt_SHELL
22906
22907 # An echo program that does not interpret backslashes.
22908 ECHO=$lt_ECHO
22909
22910 # Used to examine libraries when file_magic_cmd begins with "file".
22911 MAGIC_CMD=$MAGIC_CMD
22912
22913 # Must we lock files when doing compilation?
22914 need_locks=$lt_need_locks
22915
22916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22917 DSYMUTIL=$lt_DSYMUTIL
22918
22919 # Tool to change global to local symbols on Mac OS X.
22920 NMEDIT=$lt_NMEDIT
22921
22922 # Tool to manipulate fat objects and archives on Mac OS X.
22923 LIPO=$lt_LIPO
22924
22925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22926 OTOOL=$lt_OTOOL
22927
22928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22929 OTOOL64=$lt_OTOOL64
22930
22931 # Old archive audit (normally "a").
22932 libext=$libext
22933
22934 # Shared library audit (normally ".so").
22935 shrext_cmds=$lt_shrext_cmds
22936
22937 # The commands to extract the exported symbol list from a shared archive.
22938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22939
22940 # Variables whose values should be saved in libtool wrapper scripts and
22941 # restored at link time.
22942 variables_saved_for_relink=$lt_variables_saved_for_relink
22943
22944 # Do we need the "lib" prefix for modules?
22945 need_lib_prefix=$need_lib_prefix
22946
22947 # Do we need a version for libraries?
22948 need_version=$need_version
22949
22950 # Library versioning type.
22951 version_type=$version_type
22952
22953 # Shared library runtime path variable.
22954 runpath_var=$runpath_var
22955
22956 # Shared library path variable.
22957 shlibpath_var=$shlibpath_var
22958
22959 # Is shlibpath searched before the hard-coded library search path?
22960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22961
22962 # Format of library name prefix.
22963 libname_spec=$lt_libname_spec
22964
22965 # List of archive names.  First name is the real one, the rest are links.
22966 # The last name is the one that the linker finds with -lNAME
22967 library_names_spec=$lt_library_names_spec
22968
22969 # The coded name of the library, if different from the real name.
22970 soname_spec=$lt_soname_spec
22971
22972 # Command to use after installation of a shared archive.
22973 postinstall_cmds=$lt_postinstall_cmds
22974
22975 # Command to use after uninstallation of a shared archive.
22976 postuninstall_cmds=$lt_postuninstall_cmds
22977
22978 # Commands used to finish a libtool library installation in a directory.
22979 finish_cmds=$lt_finish_cmds
22980
22981 # As "finish_cmds", except a single script fragment to be evaled but
22982 # not shown.
22983 finish_eval=$lt_finish_eval
22984
22985 # Whether we should hardcode library paths into libraries.
22986 hardcode_into_libs=$hardcode_into_libs
22987
22988 # Compile-time system search path for libraries.
22989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22990
22991 # Run-time system search path for libraries.
22992 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22993
22994 # Whether dlopen is supported.
22995 dlopen_support=$enable_dlopen
22996
22997 # Whether dlopen of programs is supported.
22998 dlopen_self=$enable_dlopen_self
22999
23000 # Whether dlopen of statically linked programs is supported.
23001 dlopen_self_static=$enable_dlopen_self_static
23002
23003 # Commands to strip libraries.
23004 old_striplib=$lt_old_striplib
23005 striplib=$lt_striplib
23006
23007
23008 # The linker used to build libraries.
23009 LD=$lt_LD
23010
23011 # Commands used to build an old-style archive.
23012 old_archive_cmds=$lt_old_archive_cmds
23013
23014 # A language specific compiler.
23015 CC=$lt_compiler
23016
23017 # Is the compiler the GNU compiler?
23018 with_gcc=$GCC
23019
23020 # Compiler flag to turn off builtin functions.
23021 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23022
23023 # How to pass a linker flag through the compiler.
23024 wl=$lt_lt_prog_compiler_wl
23025
23026 # Additional compiler flags for building library objects.
23027 pic_flag=$lt_lt_prog_compiler_pic
23028
23029 # Compiler flag to prevent dynamic linking.
23030 link_static_flag=$lt_lt_prog_compiler_static
23031
23032 # Does compiler simultaneously support -c and -o options?
23033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23034
23035 # Whether or not to add -lc for building shared libraries.
23036 build_libtool_need_lc=$archive_cmds_need_lc
23037
23038 # Whether or not to disallow shared libs when runtime libs are static.
23039 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23040
23041 # Compiler flag to allow reflexive dlopens.
23042 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23043
23044 # Compiler flag to generate shared objects directly from archives.
23045 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23046
23047 # Whether the compiler copes with passing no objects directly.
23048 compiler_needs_object=$lt_compiler_needs_object
23049
23050 # Create an old-style archive from a shared archive.
23051 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23052
23053 # Create a temporary old-style archive to link instead of a shared archive.
23054 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23055
23056 # Commands used to build a shared archive.
23057 archive_cmds=$lt_archive_cmds
23058 archive_expsym_cmds=$lt_archive_expsym_cmds
23059
23060 # Commands used to build a loadable module if different from building
23061 # a shared archive.
23062 module_cmds=$lt_module_cmds
23063 module_expsym_cmds=$lt_module_expsym_cmds
23064
23065 # Whether we are building with GNU ld or not.
23066 with_gnu_ld=$lt_with_gnu_ld
23067
23068 # Flag that allows shared libraries with undefined symbols to be built.
23069 allow_undefined_flag=$lt_allow_undefined_flag
23070
23071 # Flag that enforces no undefined symbols.
23072 no_undefined_flag=$lt_no_undefined_flag
23073
23074 # Flag to hardcode \$libdir into a binary during linking.
23075 # This must work even if \$libdir does not exist
23076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23077
23078 # If ld is used when linking, flag to hardcode \$libdir into a binary
23079 # during linking.  This must work even if \$libdir does not exist.
23080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23081
23082 # Whether we need a single "-rpath" flag with a separated argument.
23083 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23084
23085 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23086 # DIR into the resulting binary.
23087 hardcode_direct=$hardcode_direct
23088
23089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23090 # DIR into the resulting binary and the resulting library dependency is
23091 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23092 # library is relocated.
23093 hardcode_direct_absolute=$hardcode_direct_absolute
23094
23095 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23096 # into the resulting binary.
23097 hardcode_minus_L=$hardcode_minus_L
23098
23099 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23100 # into the resulting binary.
23101 hardcode_shlibpath_var=$hardcode_shlibpath_var
23102
23103 # Set to "yes" if building a shared library automatically hardcodes DIR
23104 # into the library and all subsequent libraries and executables linked
23105 # against it.
23106 hardcode_automatic=$hardcode_automatic
23107
23108 # Set to yes if linker adds runtime paths of dependent libraries
23109 # to runtime path list.
23110 inherit_rpath=$inherit_rpath
23111
23112 # Whether libtool must link a program against all its dependency libraries.
23113 link_all_deplibs=$link_all_deplibs
23114
23115 # Fix the shell variable \$srcfile for the compiler.
23116 fix_srcfile_path=$lt_fix_srcfile_path
23117
23118 # Set to "yes" if exported symbols are required.
23119 always_export_symbols=$always_export_symbols
23120
23121 # The commands to list exported symbols.
23122 export_symbols_cmds=$lt_export_symbols_cmds
23123
23124 # Symbols that should not be listed in the preloaded symbols.
23125 exclude_expsyms=$lt_exclude_expsyms
23126
23127 # Symbols that must always be exported.
23128 include_expsyms=$lt_include_expsyms
23129
23130 # Commands necessary for linking programs (against libraries) with templates.
23131 prelink_cmds=$lt_prelink_cmds
23132
23133 # Specify filename containing input files.
23134 file_list_spec=$lt_file_list_spec
23135
23136 # How to hardcode a shared library path into an executable.
23137 hardcode_action=$hardcode_action
23138
23139 # ### END LIBTOOL CONFIG
23140
23141 _LT_EOF
23142
23143   case $host_os in
23144   aix3*)
23145     cat <<\_LT_EOF >> "$cfgfile"
23146 # AIX sometimes has problems with the GCC collect2 program.  For some
23147 # reason, if we set the COLLECT_NAMES environment variable, the problems
23148 # vanish in a puff of smoke.
23149 if test "X${COLLECT_NAMES+set}" != Xset; then
23150   COLLECT_NAMES=
23151   export COLLECT_NAMES
23152 fi
23153 _LT_EOF
23154     ;;
23155   esac
23156
23157
23158 ltmain="$ac_aux_dir/ltmain.sh"
23159
23160
23161   # We use sed instead of cat because bash on DJGPP gets confused if
23162   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23163   # text mode, it properly converts lines to CR/LF.  This bash problem
23164   # is reportedly fixed, but why not run on old versions too?
23165   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23166     || (rm -f "$cfgfile"; exit 1)
23167
23168   case $xsi_shell in
23169   yes)
23170     cat << \_LT_EOF >> "$cfgfile"
23171
23172 # func_dirname file append nondir_replacement
23173 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23174 # otherwise set result to NONDIR_REPLACEMENT.
23175 func_dirname ()
23176 {
23177   case ${1} in
23178     */*) func_dirname_result="${1%/*}${2}" ;;
23179     *  ) func_dirname_result="${3}" ;;
23180   esac
23181 }
23182
23183 # func_basename file
23184 func_basename ()
23185 {
23186   func_basename_result="${1##*/}"
23187 }
23188
23189 # func_dirname_and_basename file append nondir_replacement
23190 # perform func_basename and func_dirname in a single function
23191 # call:
23192 #   dirname:  Compute the dirname of FILE.  If nonempty,
23193 #             add APPEND to the result, otherwise set result
23194 #             to NONDIR_REPLACEMENT.
23195 #             value returned in "$func_dirname_result"
23196 #   basename: Compute filename of FILE.
23197 #             value retuned in "$func_basename_result"
23198 # Implementation must be kept synchronized with func_dirname
23199 # and func_basename. For efficiency, we do not delegate to
23200 # those functions but instead duplicate the functionality here.
23201 func_dirname_and_basename ()
23202 {
23203   case ${1} in
23204     */*) func_dirname_result="${1%/*}${2}" ;;
23205     *  ) func_dirname_result="${3}" ;;
23206   esac
23207   func_basename_result="${1##*/}"
23208 }
23209
23210 # func_stripname prefix suffix name
23211 # strip PREFIX and SUFFIX off of NAME.
23212 # PREFIX and SUFFIX must not contain globbing or regex special
23213 # characters, hashes, percent signs, but SUFFIX may contain a leading
23214 # dot (in which case that matches only a dot).
23215 func_stripname ()
23216 {
23217   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23218   # positional parameters, so assign one to ordinary parameter first.
23219   func_stripname_result=${3}
23220   func_stripname_result=${func_stripname_result#"${1}"}
23221   func_stripname_result=${func_stripname_result%"${2}"}
23222 }
23223
23224 # func_opt_split
23225 func_opt_split ()
23226 {
23227   func_opt_split_opt=${1%%=*}
23228   func_opt_split_arg=${1#*=}
23229 }
23230
23231 # func_lo2o object
23232 func_lo2o ()
23233 {
23234   case ${1} in
23235     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23236     *)    func_lo2o_result=${1} ;;
23237   esac
23238 }
23239
23240 # func_xform libobj-or-source
23241 func_xform ()
23242 {
23243   func_xform_result=${1%.*}.lo
23244 }
23245
23246 # func_arith arithmetic-term...
23247 func_arith ()
23248 {
23249   func_arith_result=$(( $* ))
23250 }
23251
23252 # func_len string
23253 # STRING may not start with a hyphen.
23254 func_len ()
23255 {
23256   func_len_result=${#1}
23257 }
23258
23259 _LT_EOF
23260     ;;
23261   *) # Bourne compatible functions.
23262     cat << \_LT_EOF >> "$cfgfile"
23263
23264 # func_dirname file append nondir_replacement
23265 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23266 # otherwise set result to NONDIR_REPLACEMENT.
23267 func_dirname ()
23268 {
23269   # Extract subdirectory from the argument.
23270   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23271   if test "X$func_dirname_result" = "X${1}"; then
23272     func_dirname_result="${3}"
23273   else
23274     func_dirname_result="$func_dirname_result${2}"
23275   fi
23276 }
23277
23278 # func_basename file
23279 func_basename ()
23280 {
23281   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23282 }
23283
23284
23285 # func_stripname prefix suffix name
23286 # strip PREFIX and SUFFIX off of NAME.
23287 # PREFIX and SUFFIX must not contain globbing or regex special
23288 # characters, hashes, percent signs, but SUFFIX may contain a leading
23289 # dot (in which case that matches only a dot).
23290 # func_strip_suffix prefix name
23291 func_stripname ()
23292 {
23293   case ${2} in
23294     .*) func_stripname_result=`$ECHO "X${3}" \
23295            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23296     *)  func_stripname_result=`$ECHO "X${3}" \
23297            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23298   esac
23299 }
23300
23301 # sed scripts:
23302 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23303 my_sed_long_arg='1s/^-[^=]*=//'
23304
23305 # func_opt_split
23306 func_opt_split ()
23307 {
23308   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23309   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23310 }
23311
23312 # func_lo2o object
23313 func_lo2o ()
23314 {
23315   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23316 }
23317
23318 # func_xform libobj-or-source
23319 func_xform ()
23320 {
23321   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23322 }
23323
23324 # func_arith arithmetic-term...
23325 func_arith ()
23326 {
23327   func_arith_result=`expr "$@"`
23328 }
23329
23330 # func_len string
23331 # STRING may not start with a hyphen.
23332 func_len ()
23333 {
23334   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23335 }
23336
23337 _LT_EOF
23338 esac
23339
23340 case $lt_shell_append in
23341   yes)
23342     cat << \_LT_EOF >> "$cfgfile"
23343
23344 # func_append var value
23345 # Append VALUE to the end of shell variable VAR.
23346 func_append ()
23347 {
23348   eval "$1+=\$2"
23349 }
23350 _LT_EOF
23351     ;;
23352   *)
23353     cat << \_LT_EOF >> "$cfgfile"
23354
23355 # func_append var value
23356 # Append VALUE to the end of shell variable VAR.
23357 func_append ()
23358 {
23359   eval "$1=\$$1\$2"
23360 }
23361
23362 _LT_EOF
23363     ;;
23364   esac
23365
23366
23367   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23368     || (rm -f "$cfgfile"; exit 1)
23369
23370   mv -f "$cfgfile" "$ofile" ||
23371     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23372   chmod +x "$ofile"
23373
23374  ;;
23375     "default-1":C)
23376     for ac_file in $CONFIG_FILES; do
23377       # Support "outfile[:infile[:infile...]]"
23378       case "$ac_file" in
23379         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23380       esac
23381       # PO directories have a Makefile.in generated from Makefile.in.in.
23382       case "$ac_file" in */Makefile.in)
23383         # Adjust a relative srcdir.
23384         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23385         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23386         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23387         # In autoconf-2.13 it is called $ac_given_srcdir.
23388         # In autoconf-2.50 it is called $srcdir.
23389         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23390         case "$ac_given_srcdir" in
23391           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23392           /*) top_srcdir="$ac_given_srcdir" ;;
23393           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23394         esac
23395         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23396           rm -f "$ac_dir/POTFILES"
23397           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23398           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23399           POMAKEFILEDEPS="POTFILES.in"
23400           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23401           # on $ac_dir but don't depend on user-specified configuration
23402           # parameters.
23403           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23404             # The LINGUAS file contains the set of available languages.
23405             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23406               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23407             fi
23408             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23409             # Hide the ALL_LINGUAS assigment from automake.
23410             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23411             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23412           else
23413             # The set of available languages was given in configure.in.
23414             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23415           fi
23416           # Compute POFILES
23417           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23418           # Compute UPDATEPOFILES
23419           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23420           # Compute DUMMYPOFILES
23421           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23422           # Compute GMOFILES
23423           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23424           case "$ac_given_srcdir" in
23425             .) srcdirpre= ;;
23426             *) srcdirpre='$(srcdir)/' ;;
23427           esac
23428           POFILES=
23429           UPDATEPOFILES=
23430           DUMMYPOFILES=
23431           GMOFILES=
23432           for lang in $ALL_LINGUAS; do
23433             POFILES="$POFILES $srcdirpre$lang.po"
23434             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23435             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23436             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23437           done
23438           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23439           # environment variable.
23440           INST_LINGUAS=
23441           if test -n "$ALL_LINGUAS"; then
23442             for presentlang in $ALL_LINGUAS; do
23443               useit=no
23444               if test "%UNSET%" != "$LINGUAS"; then
23445                 desiredlanguages="$LINGUAS"
23446               else
23447                 desiredlanguages="$ALL_LINGUAS"
23448               fi
23449               for desiredlang in $desiredlanguages; do
23450                 # Use the presentlang catalog if desiredlang is
23451                 #   a. equal to presentlang, or
23452                 #   b. a variant of presentlang (because in this case,
23453                 #      presentlang can be used as a fallback for messages
23454                 #      which are not translated in the desiredlang catalog).
23455                 case "$desiredlang" in
23456                   "$presentlang"*) useit=yes;;
23457                 esac
23458               done
23459               if test $useit = yes; then
23460                 INST_LINGUAS="$INST_LINGUAS $presentlang"
23461               fi
23462             done
23463           fi
23464           CATALOGS=
23465           if test -n "$INST_LINGUAS"; then
23466             for lang in $INST_LINGUAS; do
23467               CATALOGS="$CATALOGS $lang.gmo"
23468             done
23469           fi
23470           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23471           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"
23472           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23473             if test -f "$f"; then
23474               case "$f" in
23475                 *.orig | *.bak | *~) ;;
23476                 *) cat "$f" >> "$ac_dir/Makefile" ;;
23477               esac
23478             fi
23479           done
23480         fi
23481         ;;
23482       esac
23483     done ;;
23484
23485   esac
23486 done # for ac_tag
23487
23488
23489 { (exit 0); exit 0; }
23490 _ACEOF
23491 chmod +x $CONFIG_STATUS
23492 ac_clean_files=$ac_clean_files_save
23493
23494 test $ac_write_fail = 0 ||
23495   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23496 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23497    { (exit 1); exit 1; }; }
23498
23499
23500 # configure is writing to config.log, and then calls config.status.
23501 # config.status does its own redirection, appending to config.log.
23502 # Unfortunately, on DOS this fails, as config.log is still kept open
23503 # by configure, so config.status won't be able to write to it; its
23504 # output is simply discarded.  So we exec the FD to /dev/null,
23505 # effectively closing config.log, so it can be properly (re)opened and
23506 # appended to by config.status.  When coming back to configure, we
23507 # need to make the FD available again.
23508 if test "$no_create" != yes; then
23509   ac_cs_success=:
23510   ac_config_status_args=
23511   test "$silent" = yes &&
23512     ac_config_status_args="$ac_config_status_args --quiet"
23513   exec 5>/dev/null
23514   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23515   exec 5>>config.log
23516   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23517   # would make configure fail if this is the last instruction.
23518   $ac_cs_success || { (exit 1); exit 1; }
23519 fi
23520 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23521   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23522 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23523 fi
23524