Initial commit for Tizen
[profile/extras/shadow-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 #  include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 #  include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_header_list=
743 gt_needs=
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 USE_NLS_FALSE
748 USE_NLS_TRUE
749 POSUB
750 LTLIBINTL
751 LIBINTL
752 INTLLIBS
753 LTLIBICONV
754 LIBICONV
755 INTL_MACOSX_LIBS
756 XGETTEXT_EXTRA_OPTIONS
757 MSGMERGE
758 XGETTEXT_015
759 XGETTEXT
760 GMSGFMT_015
761 MSGFMT_015
762 GMSGFMT
763 MSGFMT
764 GETTEXT_MACRO_VERSION
765 USE_NLS
766 LIBMD
767 LIBSKEY
768 ACCT_TOOLS_SETUID_FALSE
769 ACCT_TOOLS_SETUID_TRUE
770 USE_PAM_FALSE
771 USE_PAM_TRUE
772 LIBPAM
773 LIBSELINUX
774 LIBCRACK
775 LIBAUDIT
776 LIBCRYPT
777 ENABLE_REGENERATE_MAN_FALSE
778 ENABLE_REGENERATE_MAN_TRUE
779 XMLCATALOG
780 XML_CATALOG_FILE
781 XSLTPROC
782 SHADOWGRP_FALSE
783 SHADOWGRP_TRUE
784 USE_SHA_CRYPT_FALSE
785 USE_SHA_CRYPT_TRUE
786 GROUP_NAME_MAX_LENGTH
787 LIBOBJS
788 OTOOL64
789 OTOOL
790 LIPO
791 NMEDIT
792 DSYMUTIL
793 lt_ECHO
794 RANLIB
795 AR
796 OBJDUMP
797 NM
798 ac_ct_DUMPBIN
799 DUMPBIN
800 LD
801 FGREP
802 SED
803 host_os
804 host_vendor
805 host_cpu
806 host
807 build_os
808 build_vendor
809 build_cpu
810 build
811 LIBTOOL
812 ANSI2KNR
813 U
814 YFLAGS
815 YACC
816 LN_S
817 MAINT
818 MAINTAINER_MODE_FALSE
819 MAINTAINER_MODE_TRUE
820 EGREP
821 GREP
822 CPP
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
844 AWK
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_URL
893 PACKAGE_BUGREPORT
894 PACKAGE_STRING
895 PACKAGE_VERSION
896 PACKAGE_TARNAME
897 PACKAGE_NAME
898 PATH_SEPARATOR
899 SHELL'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_dependency_tracking
904 enable_shared
905 enable_static
906 enable_maintainer_mode
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 enable_largefile
912 enable_shadowgrp
913 enable_man
914 enable_account_tools_setuid
915 enable_utmpx
916 with_audit
917 with_libpam
918 with_selinux
919 with_skey
920 with_libcrack
921 with_sha_crypt
922 with_nscd
923 with_group_name_max_length
924 with_xml_catalog
925 enable_nls
926 enable_rpath
927 with_libiconv_prefix
928 with_libintl_prefix
929 '
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CPP
939 YACC
940 YFLAGS'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995   # If the previous option needs an argument, assign it.
996   if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000   fi
1001
1002   case $ac_option in
1003   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004   *=)   ac_optarg= ;;
1005   *)    ac_optarg=yes ;;
1006   esac
1007
1008   # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010   case $ac_dashdash$ac_option in
1011   --)
1012     ac_dashdash=yes ;;
1013
1014   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015     ac_prev=bindir ;;
1016   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017     bindir=$ac_optarg ;;
1018
1019   -build | --build | --buil | --bui | --bu)
1020     ac_prev=build_alias ;;
1021   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022     build_alias=$ac_optarg ;;
1023
1024   -cache-file | --cache-file | --cache-fil | --cache-fi \
1025   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026     ac_prev=cache_file ;;
1027   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029     cache_file=$ac_optarg ;;
1030
1031   --config-cache | -C)
1032     cache_file=config.cache ;;
1033
1034   -datadir | --datadir | --datadi | --datad)
1035     ac_prev=datadir ;;
1036   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037     datadir=$ac_optarg ;;
1038
1039   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040   | --dataroo | --dataro | --datar)
1041     ac_prev=datarootdir ;;
1042   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044     datarootdir=$ac_optarg ;;
1045
1046   -disable-* | --disable-*)
1047     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050       as_fn_error $? "invalid feature name: $ac_useropt"
1051     ac_useropt_orig=$ac_useropt
1052     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053     case $ac_user_opts in
1054       *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058          ac_unrecognized_sep=', ';;
1059     esac
1060     eval enable_$ac_useropt=no ;;
1061
1062   -docdir | --docdir | --docdi | --doc | --do)
1063     ac_prev=docdir ;;
1064   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065     docdir=$ac_optarg ;;
1066
1067   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068     ac_prev=dvidir ;;
1069   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070     dvidir=$ac_optarg ;;
1071
1072   -enable-* | --enable-*)
1073     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076       as_fn_error $? "invalid feature name: $ac_useropt"
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090   | --exec | --exe | --ex)
1091     ac_prev=exec_prefix ;;
1092   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094   | --exec=* | --exe=* | --ex=*)
1095     exec_prefix=$ac_optarg ;;
1096
1097   -gas | --gas | --ga | --g)
1098     # Obsolete; use --with-gas.
1099     with_gas=yes ;;
1100
1101   -help | --help | --hel | --he | -h)
1102     ac_init_help=long ;;
1103   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104     ac_init_help=recursive ;;
1105   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106     ac_init_help=short ;;
1107
1108   -host | --host | --hos | --ho)
1109     ac_prev=host_alias ;;
1110   -host=* | --host=* | --hos=* | --ho=*)
1111     host_alias=$ac_optarg ;;
1112
1113   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114     ac_prev=htmldir ;;
1115   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116   | --ht=*)
1117     htmldir=$ac_optarg ;;
1118
1119   -includedir | --includedir | --includedi | --included | --include \
1120   | --includ | --inclu | --incl | --inc)
1121     ac_prev=includedir ;;
1122   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123   | --includ=* | --inclu=* | --incl=* | --inc=*)
1124     includedir=$ac_optarg ;;
1125
1126   -infodir | --infodir | --infodi | --infod | --info | --inf)
1127     ac_prev=infodir ;;
1128   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129     infodir=$ac_optarg ;;
1130
1131   -libdir | --libdir | --libdi | --libd)
1132     ac_prev=libdir ;;
1133   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134     libdir=$ac_optarg ;;
1135
1136   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137   | --libexe | --libex | --libe)
1138     ac_prev=libexecdir ;;
1139   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140   | --libexe=* | --libex=* | --libe=*)
1141     libexecdir=$ac_optarg ;;
1142
1143   -localedir | --localedir | --localedi | --localed | --locale)
1144     ac_prev=localedir ;;
1145   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146     localedir=$ac_optarg ;;
1147
1148   -localstatedir | --localstatedir | --localstatedi | --localstated \
1149   | --localstate | --localstat | --localsta | --localst | --locals)
1150     ac_prev=localstatedir ;;
1151   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153     localstatedir=$ac_optarg ;;
1154
1155   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156     ac_prev=mandir ;;
1157   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158     mandir=$ac_optarg ;;
1159
1160   -nfp | --nfp | --nf)
1161     # Obsolete; use --without-fp.
1162     with_fp=no ;;
1163
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n)
1166     no_create=yes ;;
1167
1168   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170     no_recursion=yes ;;
1171
1172   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174   | --oldin | --oldi | --old | --ol | --o)
1175     ac_prev=oldincludedir ;;
1176   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179     oldincludedir=$ac_optarg ;;
1180
1181   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182     ac_prev=prefix ;;
1183   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184     prefix=$ac_optarg ;;
1185
1186   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187   | --program-pre | --program-pr | --program-p)
1188     ac_prev=program_prefix ;;
1189   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191     program_prefix=$ac_optarg ;;
1192
1193   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194   | --program-suf | --program-su | --program-s)
1195     ac_prev=program_suffix ;;
1196   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198     program_suffix=$ac_optarg ;;
1199
1200   -program-transform-name | --program-transform-name \
1201   | --program-transform-nam | --program-transform-na \
1202   | --program-transform-n | --program-transform- \
1203   | --program-transform | --program-transfor \
1204   | --program-transfo | --program-transf \
1205   | --program-trans | --program-tran \
1206   | --progr-tra | --program-tr | --program-t)
1207     ac_prev=program_transform_name ;;
1208   -program-transform-name=* | --program-transform-name=* \
1209   | --program-transform-nam=* | --program-transform-na=* \
1210   | --program-transform-n=* | --program-transform-=* \
1211   | --program-transform=* | --program-transfor=* \
1212   | --program-transfo=* | --program-transf=* \
1213   | --program-trans=* | --program-tran=* \
1214   | --progr-tra=* | --program-tr=* | --program-t=*)
1215     program_transform_name=$ac_optarg ;;
1216
1217   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218     ac_prev=pdfdir ;;
1219   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220     pdfdir=$ac_optarg ;;
1221
1222   -psdir | --psdir | --psdi | --psd | --ps)
1223     ac_prev=psdir ;;
1224   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225     psdir=$ac_optarg ;;
1226
1227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228   | -silent | --silent | --silen | --sile | --sil)
1229     silent=yes ;;
1230
1231   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232     ac_prev=sbindir ;;
1233   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234   | --sbi=* | --sb=*)
1235     sbindir=$ac_optarg ;;
1236
1237   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239   | --sharedst | --shareds | --shared | --share | --shar \
1240   | --sha | --sh)
1241     ac_prev=sharedstatedir ;;
1242   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245   | --sha=* | --sh=*)
1246     sharedstatedir=$ac_optarg ;;
1247
1248   -site | --site | --sit)
1249     ac_prev=site ;;
1250   -site=* | --site=* | --sit=*)
1251     site=$ac_optarg ;;
1252
1253   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254     ac_prev=srcdir ;;
1255   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256     srcdir=$ac_optarg ;;
1257
1258   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259   | --syscon | --sysco | --sysc | --sys | --sy)
1260     ac_prev=sysconfdir ;;
1261   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263     sysconfdir=$ac_optarg ;;
1264
1265   -target | --target | --targe | --targ | --tar | --ta | --t)
1266     ac_prev=target_alias ;;
1267   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268     target_alias=$ac_optarg ;;
1269
1270   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271     verbose=yes ;;
1272
1273   -version | --version | --versio | --versi | --vers | -V)
1274     ac_init_version=: ;;
1275
1276   -with-* | --with-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280       as_fn_error $? "invalid package name: $ac_useropt"
1281     ac_useropt_orig=$ac_useropt
1282     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283     case $ac_user_opts in
1284       *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288          ac_unrecognized_sep=', ';;
1289     esac
1290     eval with_$ac_useropt=\$ac_optarg ;;
1291
1292   -without-* | --without-*)
1293     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296       as_fn_error $? "invalid package name: $ac_useropt"
1297     ac_useropt_orig=$ac_useropt
1298     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299     case $ac_user_opts in
1300       *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304          ac_unrecognized_sep=', ';;
1305     esac
1306     eval with_$ac_useropt=no ;;
1307
1308   --x)
1309     # Obsolete; use --with-x.
1310     with_x=yes ;;
1311
1312   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313   | --x-incl | --x-inc | --x-in | --x-i)
1314     ac_prev=x_includes ;;
1315   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317     x_includes=$ac_optarg ;;
1318
1319   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321     ac_prev=x_libraries ;;
1322   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324     x_libraries=$ac_optarg ;;
1325
1326   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information"
1328     ;;
1329
1330   *=*)
1331     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332     # Reject names that are not valid shell variable names.
1333     case $ac_envvar in #(
1334       '' | [0-9]* | *[!_$as_cr_alnum]* )
1335       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336     esac
1337     eval $ac_envvar=\$ac_optarg
1338     export $ac_envvar ;;
1339
1340   *)
1341     # FIXME: should be removed in autoconf 3.0.
1342     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346     ;;
1347
1348   esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353   as_fn_error $? "missing argument to $ac_option"
1354 fi
1355
1356 if test -n "$ac_unrecognized_opts"; then
1357   case $enable_option_checking in
1358     no) ;;
1359     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361   esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366                 datadir sysconfdir sharedstatedir localstatedir includedir \
1367                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368                 libdir localedir mandir
1369 do
1370   eval ac_val=\$$ac_var
1371   # Remove trailing slashes.
1372   case $ac_val in
1373     */ )
1374       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375       eval $ac_var=\$ac_val;;
1376   esac
1377   # Be sure to have absolute directory names.
1378   case $ac_val in
1379     [\\/$]* | ?:[\\/]* )  continue;;
1380     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381   esac
1382   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1384
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1391
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394   if test "x$build_alias" = x; then
1395     cross_compiling=maybe
1396     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1397     If a cross compiler is detected then cross compile mode will be used" >&2
1398   elif test "x$build_alias" != "x$host_alias"; then
1399     cross_compiling=yes
1400   fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412   as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414   as_fn_error $? "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419   ac_srcdir_defaulted=yes
1420   # Try the directory containing this script, then the parent directory.
1421   ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423          X"$as_myself" : 'X\(//\)[^/]' \| \
1424          X"$as_myself" : 'X\(//\)$' \| \
1425          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)[^/].*/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)$/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\).*/{
1440             s//\1/
1441             q
1442           }
1443           s/.*/./; q'`
1444   srcdir=$ac_confdir
1445   if test ! -r "$srcdir/$ac_unique_file"; then
1446     srcdir=..
1447   fi
1448 else
1449   ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458         pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461   srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_env_${ac_var}_value=\$${ac_var}
1472   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480   # Omit some internal or obsolete options to make the list less imposing.
1481   # This message is too long to be a string in the A/UX 3.1 sh.
1482   cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE.  See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493   -h, --help              display this help and exit
1494       --help=short        display options specific to this package
1495       --help=recursive    display the short help of all the included packages
1496   -V, --version           display version information and exit
1497   -q, --quiet, --silent   do not print \`checking ...' messages
1498       --cache-file=FILE   cache test results in FILE [disabled]
1499   -C, --config-cache      alias for \`--cache-file=config.cache'
1500   -n, --no-create         do not create output files
1501       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504   --prefix=PREFIX         install architecture-independent files in PREFIX
1505                           [$ac_default_prefix]
1506   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1507                           [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517   --bindir=DIR            user executables [EPREFIX/bin]
1518   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1519   --libexecdir=DIR        program executables [EPREFIX/libexec]
1520   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1521   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1522   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1523   --libdir=DIR            object code libraries [EPREFIX/lib]
1524   --includedir=DIR        C header files [PREFIX/include]
1525   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1526   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1527   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1528   --infodir=DIR           info documentation [DATAROOTDIR/info]
1529   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1530   --mandir=DIR            man documentation [DATAROOTDIR/man]
1531   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1532   --htmldir=DIR           html documentation [DOCDIR]
1533   --dvidir=DIR            dvi documentation [DOCDIR]
1534   --pdfdir=DIR            pdf documentation [DOCDIR]
1535   --psdir=DIR             ps documentation [DOCDIR]
1536 _ACEOF
1537
1538   cat <<\_ACEOF
1539
1540 Program names:
1541   --program-prefix=PREFIX            prepend PREFIX to installed program names
1542   --program-suffix=SUFFIX            append SUFFIX to installed program names
1543   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1544
1545 System types:
1546   --build=BUILD     configure for building on BUILD [guessed]
1547   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553   cat <<\_ACEOF
1554
1555 Optional Features:
1556   --disable-option-checking  ignore unrecognized --enable/--with options
1557   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559   --disable-dependency-tracking  speeds up one-time build
1560   --enable-dependency-tracking   do not reject slow dependency extractors
1561   --enable-shared[=PKGS]  build shared libraries [default=no]
1562   --enable-static[=PKGS]  build static libraries [default=yes]
1563   --enable-maintainer-mode  enable make rules and dependencies not useful
1564                           (and sometimes confusing) to the casual installer
1565   --enable-fast-install[=PKGS]
1566                           optimize for fast installation [default=yes]
1567   --disable-libtool-lock  avoid locking (might break parallel builds)
1568   --disable-largefile     omit support for large files
1569   --enable-shadowgrp      enable shadow group support [default=yes]
1570   --enable-man            regenerate roff man pages from Docbook [default=no]
1571   --enable-account-tools-setuid
1572                           Install the user and group management tools setuid
1573                           and authenticate the callers. This requires
1574                           --with-pam.
1575   --enable-utmpx          enable loggin in utmpx / wtmpx [default=no]
1576   --disable-nls           do not use Native Language Support
1577   --disable-rpath         do not hardcode runtime library paths
1578
1579 Optional Packages:
1580   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582   --with-pic              try to use only PIC/non-PIC objects [default=use
1583                           both]
1584   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1585   --with-audit            use auditing support [default=yes if found]
1586   --with-libpam           use libpam for PAM support [default=yes if found]
1587   --with-selinux          use SELinux support [default=yes if found]
1588   --with-skey             use S/Key support [default=no]
1589   --with-libcrack         use libcrack [default=yes if found and if PAM not
1590                           enabled]
1591   --with-sha-crypt        allow the SHA256 and SHA512 password encryption
1592                           algorithms [default=yes]
1593   --with-nscd             enable support for nscd [default=yes]
1594   --with-group-name-max-length
1595                           set max group name length [default=16]
1596   --with-xml-catalog=CATALOG
1597                           path to xml catalog to use
1598   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1599   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1600   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1601   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1602   --without-libintl-prefix     don't search for libintl in includedir and libdir
1603
1604 Some influential environment variables:
1605   CC          C compiler command
1606   CFLAGS      C compiler flags
1607   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1608               nonstandard directory <lib dir>
1609   LIBS        libraries to pass to the linker, e.g. -l<library>
1610   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1611               you have headers in a nonstandard directory <include dir>
1612   CPP         C preprocessor
1613   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1614               the first program found out of: `bison -y', `byacc', `yacc'.
1615   YFLAGS      The list of arguments that will be passed by default to $YACC.
1616               This script will default YFLAGS to the empty string to avoid a
1617               default value of `-d' given by some make applications.
1618
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1621
1622 Report bugs to the package provider.
1623 _ACEOF
1624 ac_status=$?
1625 fi
1626
1627 if test "$ac_init_help" = "recursive"; then
1628   # If there are subdirs, report their specific --help.
1629   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630     test -d "$ac_dir" ||
1631       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632       continue
1633     ac_builddir=.
1634
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *)
1638   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639   # A ".." for each directory in $ac_dir_suffix.
1640   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641   case $ac_top_builddir_sub in
1642   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644   esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1650
1651 case $srcdir in
1652   .)  # We are building in place.
1653     ac_srcdir=.
1654     ac_top_srcdir=$ac_top_builddir_sub
1655     ac_abs_top_srcdir=$ac_pwd ;;
1656   [\\/]* | ?:[\\/]* )  # Absolute name.
1657     ac_srcdir=$srcdir$ac_dir_suffix;
1658     ac_top_srcdir=$srcdir
1659     ac_abs_top_srcdir=$srcdir ;;
1660   *) # Relative name.
1661     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662     ac_top_srcdir=$ac_top_build_prefix$srcdir
1663     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667     cd "$ac_dir" || { ac_status=$?; continue; }
1668     # Check for guested configure.
1669     if test -f "$ac_srcdir/configure.gnu"; then
1670       echo &&
1671       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672     elif test -f "$ac_srcdir/configure"; then
1673       echo &&
1674       $SHELL "$ac_srcdir/configure" --help=recursive
1675     else
1676       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677     fi || ac_status=$?
1678     cd "$ac_pwd" || { ac_status=$?; break; }
1679   done
1680 fi
1681
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684   cat <<\_ACEOF
1685 configure
1686 generated by GNU Autoconf 2.67
1687
1688 Copyright (C) 2010 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1691 _ACEOF
1692   exit
1693 fi
1694
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1698
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   rm -f conftest.$ac_objext
1706   if { { ac_try="$ac_compile"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_compile") 2>conftest.err
1714   ac_status=$?
1715   if test -s conftest.err; then
1716     grep -v '^ *+' conftest.err >conftest.er1
1717     cat conftest.er1 >&5
1718     mv -f conftest.er1 conftest.err
1719   fi
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && {
1722          test -z "$ac_c_werror_flag" ||
1723          test ! -s conftest.err
1724        } && test -s conftest.$ac_objext; then :
1725   ac_retval=0
1726 else
1727   $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730         ac_retval=1
1731 fi
1732   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733   as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_compile
1736
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746   *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751   ac_status=$?
1752   if test -s conftest.err; then
1753     grep -v '^ *+' conftest.err >conftest.er1
1754     cat conftest.er1 >&5
1755     mv -f conftest.er1 conftest.err
1756   fi
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; } > conftest.i && {
1759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760          test ! -s conftest.err
1761        }; then :
1762   ac_retval=0
1763 else
1764   $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767     ac_retval=1
1768 fi
1769   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770   as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_cpp
1773
1774 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1777 # the include files in INCLUDES and setting the cache variable VAR
1778 # accordingly.
1779 ac_fn_c_check_header_mongrel ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if eval "test \"\${$3+set}\"" = set; then :
1783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval "test \"\${$3+set}\"" = set; then :
1786   $as_echo_n "(cached) " >&6
1787 fi
1788 eval ac_res=\$$3
1789                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 else
1792   # Is the header compilable?
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1794 $as_echo_n "checking $2 usability... " >&6; }
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h.  */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801   ac_header_compiler=yes
1802 else
1803   ac_header_compiler=no
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1807 $as_echo "$ac_header_compiler" >&6; }
1808
1809 # Is the header present?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1811 $as_echo_n "checking $2 presence... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_cpp "$LINENO"; then :
1817   ac_header_preproc=yes
1818 else
1819   ac_header_preproc=no
1820 fi
1821 rm -f conftest.err conftest.i conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1823 $as_echo "$ac_header_preproc" >&6; }
1824
1825 # So?  What about this header?
1826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827   yes:no: )
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1829 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832     ;;
1833   no:yes:* )
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1835 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1837 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1839 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1840     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1841 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844     ;;
1845 esac
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval "test \"\${$3+set}\"" = set; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   eval "$3=\$ac_header_compiler"
1852 fi
1853 eval ac_res=\$$3
1854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 fi
1857   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858
1859 } # ac_fn_c_check_header_mongrel
1860
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_link") 2>&5
1876   ac_status=$?
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879   { { case "(($ac_try" in
1880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881   *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885   (eval "$ac_try") 2>&5
1886   ac_status=$?
1887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888   test $ac_status = 0; }; }; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: program exited with status $ac_status" >&5
1892        $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895        ac_retval=$ac_status
1896 fi
1897   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_run
1902
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval "test \"\${$3+set}\"" = set; then :
1913   $as_echo_n "(cached) " >&6
1914 else
1915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h.  */
1917 $4
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921   eval "$3=yes"
1922 else
1923   eval "$3=no"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 eval ac_res=\$$3
1928                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931
1932 } # ac_fn_c_check_header_compile
1933
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_c_try_link ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   rm -f conftest.$ac_objext conftest$ac_exeext
1941   if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_link") 2>conftest.err
1949   ac_status=$?
1950   if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954   fi
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } && {
1957          test -z "$ac_c_werror_flag" ||
1958          test ! -s conftest.err
1959        } && test -s conftest$ac_exeext && {
1960          test "$cross_compiling" = yes ||
1961          $as_test_x conftest$ac_exeext
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968         ac_retval=1
1969 fi
1970   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972   # interfere with the next link command; also delete a directory that is
1973   # left behind by Apple's compiler.  We do this before executing the actions.
1974   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976   as_fn_set_status $ac_retval
1977
1978 } # ac_fn_c_try_link
1979
1980 # ac_fn_c_check_func LINENO FUNC VAR
1981 # ----------------------------------
1982 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1983 ac_fn_c_check_func ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval "test \"\${$3+set}\"" = set; then :
1989   $as_echo_n "(cached) " >&6
1990 else
1991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h.  */
1993 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1995 #define $2 innocuous_$2
1996
1997 /* System header to define __stub macros and hopefully few prototypes,
1998     which can conflict with char $2 (); below.
1999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2000     <limits.h> exists even on freestanding compilers.  */
2001
2002 #ifdef __STDC__
2003 # include <limits.h>
2004 #else
2005 # include <assert.h>
2006 #endif
2007
2008 #undef $2
2009
2010 /* Override any GCC internal prototype to avoid an error.
2011    Use char because int might match the return type of a GCC
2012    builtin and then its argument prototype would still apply.  */
2013 #ifdef __cplusplus
2014 extern "C"
2015 #endif
2016 char $2 ();
2017 /* The GNU C library defines this for functions which it implements
2018     to always fail with ENOSYS.  Some functions are actually named
2019     something starting with __ and the normal name is an alias.  */
2020 #if defined __stub_$2 || defined __stub___$2
2021 choke me
2022 #endif
2023
2024 int
2025 main ()
2026 {
2027 return $2 ();
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_link "$LINENO"; then :
2033   eval "$3=yes"
2034 else
2035   eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext \
2038     conftest$ac_exeext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_func
2046
2047 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048 # -------------------------------------------
2049 # Tests whether TYPE exists after having included INCLUDES, setting cache
2050 # variable VAR accordingly.
2051 ac_fn_c_check_type ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval "test \"\${$3+set}\"" = set; then :
2057   $as_echo_n "(cached) " >&6
2058 else
2059   eval "$3=no"
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $4
2063 int
2064 main ()
2065 {
2066 if (sizeof ($2))
2067          return 0;
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 $4
2076 int
2077 main ()
2078 {
2079 if (sizeof (($2)))
2080             return 0;
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086
2087 else
2088   eval "$3=yes"
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 fi
2094 eval ac_res=\$$3
2095                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098
2099 } # ac_fn_c_check_type
2100
2101 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2102 # ----------------------------------------------------
2103 # Tries to find if the field MEMBER exists in type AGGR, after including
2104 # INCLUDES, setting cache variable VAR accordingly.
2105 ac_fn_c_check_member ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2109 $as_echo_n "checking for $2.$3... " >&6; }
2110 if eval "test \"\${$4+set}\"" = set; then :
2111   $as_echo_n "(cached) " >&6
2112 else
2113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $5
2116 int
2117 main ()
2118 {
2119 static $2 ac_aggr;
2120 if (ac_aggr.$3)
2121 return 0;
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   eval "$4=yes"
2128 else
2129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h.  */
2131 $5
2132 int
2133 main ()
2134 {
2135 static $2 ac_aggr;
2136 if (sizeof ac_aggr.$3)
2137 return 0;
2138   ;
2139   return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143   eval "$4=yes"
2144 else
2145   eval "$4=no"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 eval ac_res=\$$4
2152                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155
2156 } # ac_fn_c_check_member
2157
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2161 # accordingly.
2162 ac_fn_c_check_decl ()
2163 {
2164   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165   as_decl_name=`echo $2|sed 's/ *(.*//'`
2166   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval "test \"\${$3+set}\"" = set; then :
2170   $as_echo_n "(cached) " >&6
2171 else
2172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h.  */
2174 $4
2175 int
2176 main ()
2177 {
2178 #ifndef $as_decl_name
2179 #ifdef __cplusplus
2180   (void) $as_decl_use;
2181 #else
2182   (void) $as_decl_name;
2183 #endif
2184 #endif
2185
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191   eval "$3=yes"
2192 else
2193   eval "$3=no"
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201
2202 } # ac_fn_c_check_decl
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by $as_me, which was
2208 generated by GNU Autoconf 2.67.  Invocation command line was
2209
2210   $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2228
2229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244     $as_echo "PATH: $as_dir"
2245   done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271   for ac_arg
2272   do
2273     case $ac_arg in
2274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276     | -silent | --silent | --silen | --sile | --sil)
2277       continue ;;
2278     *\'*)
2279       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     esac
2281     case $ac_pass in
2282     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283     2)
2284       as_fn_append ac_configure_args1 " '$ac_arg'"
2285       if test $ac_must_keep_next = true; then
2286         ac_must_keep_next=false # Got value, back to normal.
2287       else
2288         case $ac_arg in
2289           *=* | --config-cache | -C | -disable-* | --disable-* \
2290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292           | -with-* | --with-* | -without-* | --without-* | --x)
2293             case "$ac_configure_args0 " in
2294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295             esac
2296             ;;
2297           -* ) ac_must_keep_next=true ;;
2298         esac
2299       fi
2300       as_fn_append ac_configure_args " '$ac_arg'"
2301       ;;
2302     esac
2303   done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log.  We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314   # Save into config.log some information that might help in debugging.
2315   {
2316     echo
2317
2318     $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2321     echo
2322     # The following way of writing the cache mishandles newlines in values,
2323 (
2324   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325     eval ac_val=\$$ac_var
2326     case $ac_val in #(
2327     *${as_nl}*)
2328       case $ac_var in #(
2329       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331       esac
2332       case $ac_var in #(
2333       _ | IFS | as_nl) ;; #(
2334       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335       *) { eval $ac_var=; unset $ac_var;} ;;
2336       esac ;;
2337     esac
2338   done
2339   (set) 2>&1 |
2340     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341     *${as_nl}ac_space=\ *)
2342       sed -n \
2343         "s/'\''/'\''\\\\'\'''\''/g;
2344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345       ;; #(
2346     *)
2347       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348       ;;
2349     esac |
2350     sort
2351 )
2352     echo
2353
2354     $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2357     echo
2358     for ac_var in $ac_subst_vars
2359     do
2360       eval ac_val=\$$ac_var
2361       case $ac_val in
2362       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363       esac
2364       $as_echo "$ac_var='\''$ac_val'\''"
2365     done | sort
2366     echo
2367
2368     if test -n "$ac_subst_files"; then
2369       $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2372       echo
2373       for ac_var in $ac_subst_files
2374       do
2375         eval ac_val=\$$ac_var
2376         case $ac_val in
2377         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378         esac
2379         $as_echo "$ac_var='\''$ac_val'\''"
2380       done | sort
2381       echo
2382     fi
2383
2384     if test -s confdefs.h; then
2385       $as_echo "## ----------- ##
2386 ## confdefs.h. ##
2387 ## ----------- ##"
2388       echo
2389       cat confdefs.h
2390       echo
2391     fi
2392     test "$ac_signal" != 0 &&
2393       $as_echo "$as_me: caught signal $ac_signal"
2394     $as_echo "$as_me: exit $exit_status"
2395   } >&5
2396   rm -f core *.core core.conftest.* &&
2397     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398     exit $exit_status
2399 ' 0
2400 for ac_signal in 1 2 13 15; do
2401   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2402 done
2403 ac_signal=0
2404
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2407
2408 $as_echo "/* confdefs.h */" > confdefs.h
2409
2410 # Predefined preprocessor variables.
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2435
2436
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
2441 if test -n "$CONFIG_SITE"; then
2442   # We do not want a PATH search for config.site.
2443   case $CONFIG_SITE in #((
2444     -*)  ac_site_file1=./$CONFIG_SITE;;
2445     */*) ac_site_file1=$CONFIG_SITE;;
2446     *)   ac_site_file1=./$CONFIG_SITE;;
2447   esac
2448 elif test "x$prefix" != xNONE; then
2449   ac_site_file1=$prefix/share/config.site
2450   ac_site_file2=$prefix/etc/config.site
2451 else
2452   ac_site_file1=$ac_default_prefix/share/config.site
2453   ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457   test "x$ac_site_file" = xNONE && continue
2458   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461     sed 's/^/| /' "$ac_site_file" >&5
2462     . "$ac_site_file" \
2463       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5 ; }
2467   fi
2468 done
2469
2470 if test -r "$cache_file"; then
2471   # Some versions of bash will fail to source /dev/null (special files
2472   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2473   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2476     case $cache_file in
2477       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478       *)                      . "./$cache_file";;
2479     esac
2480   fi
2481 else
2482   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2484   >$cache_file
2485 fi
2486
2487 as_fn_append ac_header_list " utime.h"
2488 gt_needs="$gt_needs need-ngettext"
2489 # Check that the precious variables saved in the cache have kept the same
2490 # value.
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494   eval ac_new_set=\$ac_env_${ac_var}_set
2495   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496   eval ac_new_val=\$ac_env_${ac_var}_value
2497   case $ac_old_set,$ac_new_set in
2498     set,)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,set)
2503       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505       ac_cache_corrupted=: ;;
2506     ,);;
2507     *)
2508       if test "x$ac_old_val" != "x$ac_new_val"; then
2509         # differences in whitespace do not lead to failure.
2510         ac_old_val_w=`echo x $ac_old_val`
2511         ac_new_val_w=`echo x $ac_new_val`
2512         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515           ac_cache_corrupted=:
2516         else
2517           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519           eval $ac_var=\$ac_old_val
2520         fi
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2522 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2523         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2525       fi;;
2526   esac
2527   # Pass precious variables to config.status.
2528   if test "$ac_new_set" = set; then
2529     case $ac_new_val in
2530     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531     *) ac_arg=$ac_var=$ac_new_val ;;
2532     esac
2533     case " $ac_configure_args " in
2534       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2535       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2536     esac
2537   fi
2538 done
2539 if $ac_cache_corrupted; then
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2545 fi
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2549
2550 ac_ext=c
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
2556
2557 am__api_version='1.11'
2558
2559 ac_aux_dir=
2560 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2561   if test -f "$ac_dir/install-sh"; then
2562     ac_aux_dir=$ac_dir
2563     ac_install_sh="$ac_aux_dir/install-sh -c"
2564     break
2565   elif test -f "$ac_dir/install.sh"; then
2566     ac_aux_dir=$ac_dir
2567     ac_install_sh="$ac_aux_dir/install.sh -c"
2568     break
2569   elif test -f "$ac_dir/shtool"; then
2570     ac_aux_dir=$ac_dir
2571     ac_install_sh="$ac_aux_dir/shtool install -c"
2572     break
2573   fi
2574 done
2575 if test -z "$ac_aux_dir"; then
2576   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2577 fi
2578
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2586
2587
2588 # Find a good install program.  We prefer a C program (faster),
2589 # so one script is as good as another.  But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2594 # AIX /bin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if test "${ac_cv_path_install+set}" = set; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613     # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615   ./ | .// | /[cC]/* | \
2616   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2618   /usr/ucb/* ) ;;
2619   *)
2620     # OSF1 and SCO ODT 3.0 have their own names for install.
2621     # Don't use installbsd from OSF since it installs stuff as root
2622     # by default.
2623     for ac_prog in ginstall scoinst install; do
2624       for ac_exec_ext in '' $ac_executable_extensions; do
2625         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2626           if test $ac_prog = install &&
2627             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628             # AIX install.  It has an incompatible calling convention.
2629             :
2630           elif test $ac_prog = install &&
2631             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632             # program-specific install script used by HP pwplus--don't use.
2633             :
2634           else
2635             rm -rf conftest.one conftest.two conftest.dir
2636             echo one > conftest.one
2637             echo two > conftest.two
2638             mkdir conftest.dir
2639             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640               test -s conftest.one && test -s conftest.two &&
2641               test -s conftest.dir/conftest.one &&
2642               test -s conftest.dir/conftest.two
2643             then
2644               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2645               break 3
2646             fi
2647           fi
2648         fi
2649       done
2650     done
2651     ;;
2652 esac
2653
2654   done
2655 IFS=$as_save_IFS
2656
2657 rm -rf conftest.one conftest.two conftest.dir
2658
2659 fi
2660   if test "${ac_cv_path_install+set}" = set; then
2661     INSTALL=$ac_cv_path_install
2662   else
2663     # As a last resort, use the slow shell script.  Don't cache a
2664     # value for INSTALL within a source directory, because that will
2665     # break other packages using the cache if that directory is
2666     # removed, or if the value is a relative name.
2667     INSTALL=$ac_install_sh
2668   fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2672
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2683 # Just in case
2684 sleep 1
2685 echo timestamp > conftest.file
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name.  Accept space and tab only in the latter.
2688 am_lf='
2689 '
2690 case `pwd` in
2691   *[\\\"\#\$\&\'\`$am_lf]*)
2692     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2693 esac
2694 case $srcdir in
2695   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2696     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2697 esac
2698
2699 # Do `set' in a subshell so we don't clobber the current shell's
2700 # arguments.  Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2703 # directory).
2704 if (
2705    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706    if test "$*" = "X"; then
2707       # -L didn't work.
2708       set X `ls -t "$srcdir/configure" conftest.file`
2709    fi
2710    rm -f conftest.file
2711    if test "$*" != "X $srcdir/configure conftest.file" \
2712       && test "$*" != "X conftest.file $srcdir/configure"; then
2713
2714       # If neither matched, then we have a broken ls.  This can happen
2715       # if, for instance, CONFIG_SHELL is bash and it inherits a
2716       # broken ls alias from the environment.  This has actually
2717       # happened.  Such a system could not be considered "sane".
2718       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2719 alias in your environment" "$LINENO" 5
2720    fi
2721
2722    test "$2" = conftest.file
2723    )
2724 then
2725    # Ok.
2726    :
2727 else
2728    as_fn_error $? "newly created file is older than distributed files!
2729 Check your system clock" "$LINENO" 5
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 test "$program_prefix" != NONE &&
2734   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2735 # Use a double $ so make ignores it.
2736 test "$program_suffix" != NONE &&
2737   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2738 # Double any \ or $.
2739 # By default was `s,x,x', remove it if useless.
2740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2742
2743 # expand $ac_aux_dir to an absolute path
2744 am_aux_dir=`cd $ac_aux_dir && pwd`
2745
2746 if test x"${MISSING+set}" != xset; then
2747   case $am_aux_dir in
2748   *\ * | *\     *)
2749     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2750   *)
2751     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2752   esac
2753 fi
2754 # Use eval to expand $SHELL
2755 if eval "$MISSING --run true"; then
2756   am_missing_run="$MISSING --run "
2757 else
2758   am_missing_run=
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2760 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2761 fi
2762
2763 if test x"${install_sh}" != xset; then
2764   case $am_aux_dir in
2765   *\ * | *\     *)
2766     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2767   *)
2768     install_sh="\${SHELL} $am_aux_dir/install-sh"
2769   esac
2770 fi
2771
2772 # Installed binaries are usually stripped using `strip' when the user
2773 # run `make install-strip'.  However `strip' might not be the right
2774 # tool to use in cross-compilation environments, therefore Automake
2775 # will honor the `STRIP' environment variable to overrule this program.
2776 if test "$cross_compiling" != no; then
2777   if test -n "$ac_tool_prefix"; then
2778   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_STRIP+set}" = set; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   if test -n "$STRIP"; then
2786   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 STRIP=$ac_cv_prog_STRIP
2806 if test -n "$STRIP"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808 $as_echo "$STRIP" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 if test -z "$ac_cv_prog_STRIP"; then
2817   ac_ct_STRIP=$STRIP
2818   # Extract the first word of "strip", so it can be a program name with args.
2819 set dummy strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$ac_ct_STRIP"; then
2826   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_ac_ct_STRIP="strip"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2846 if test -n "$ac_ct_STRIP"; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2848 $as_echo "$ac_ct_STRIP" >&6; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854   if test "x$ac_ct_STRIP" = x; then
2855     STRIP=":"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     STRIP=$ac_ct_STRIP
2864   fi
2865 else
2866   STRIP="$ac_cv_prog_STRIP"
2867 fi
2868
2869 fi
2870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875   if test "${ac_cv_path_mkdir+set}" = set; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_prog in mkdir gmkdir; do
2884          for ac_exec_ext in '' $ac_executable_extensions; do
2885            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2886            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887              'mkdir (GNU coreutils) '* | \
2888              'mkdir (coreutils) '* | \
2889              'mkdir (fileutils) '4.1*)
2890                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2891                break 3;;
2892            esac
2893          done
2894        done
2895   done
2896 IFS=$as_save_IFS
2897
2898 fi
2899
2900   test -d ./--version && rmdir ./--version
2901   if test "${ac_cv_path_mkdir+set}" = set; then
2902     MKDIR_P="$ac_cv_path_mkdir -p"
2903   else
2904     # As a last resort, use the slow shell script.  Don't cache a
2905     # value for MKDIR_P within a source directory, because that will
2906     # break other packages using the cache if that directory is
2907     # removed, or if the value is a relative name.
2908     MKDIR_P="$ac_install_sh -d"
2909   fi
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 $as_echo "$MKDIR_P" >&6; }
2913
2914 mkdir_p="$MKDIR_P"
2915 case $mkdir_p in
2916   [\\/$]* | ?:[\\/]*) ;;
2917   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2918 esac
2919
2920 for ac_prog in gawk mawk nawk awk
2921 do
2922   # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_AWK+set}" = set; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test -n "$AWK"; then
2930   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937     for ac_exec_ext in '' $ac_executable_extensions; do
2938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939     ac_cv_prog_AWK="$ac_prog"
2940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944   done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 AWK=$ac_cv_prog_AWK
2950 if test -n "$AWK"; then
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2952 $as_echo "$AWK" >&6; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959   test -n "$AWK" && break
2960 done
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2964 set x ${MAKE-make}
2965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2966 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   cat >conftest.make <<\_ACEOF
2970 SHELL = /bin/sh
2971 all:
2972         @echo '@@@%%%=$(MAKE)=@@@%%%'
2973 _ACEOF
2974 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2976   *@@@%%%=?*=@@@%%%*)
2977     eval ac_cv_prog_make_${ac_make}_set=yes;;
2978   *)
2979     eval ac_cv_prog_make_${ac_make}_set=no;;
2980 esac
2981 rm -f conftest.make
2982 fi
2983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2986   SET_MAKE=
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990   SET_MAKE="MAKE=${MAKE-make}"
2991 fi
2992
2993 rm -rf .tst 2>/dev/null
2994 mkdir .tst 2>/dev/null
2995 if test -d .tst; then
2996   am__leading_dot=.
2997 else
2998   am__leading_dot=_
2999 fi
3000 rmdir .tst 2>/dev/null
3001
3002 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3003   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3004   # is not polluted with repeated "-I."
3005   am__isrc=' -I$(srcdir)'
3006   # test to see if srcdir already configured
3007   if test -f $srcdir/config.status; then
3008     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3009   fi
3010 fi
3011
3012 # test whether we have cygpath
3013 if test -z "$CYGPATH_W"; then
3014   if (cygpath --version) >/dev/null 2>/dev/null; then
3015     CYGPATH_W='cygpath -w'
3016   else
3017     CYGPATH_W=echo
3018   fi
3019 fi
3020
3021
3022 # Define the identity of the package.
3023  PACKAGE=shadow
3024  VERSION=4.1.4.3
3025
3026
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE "$PACKAGE"
3029 _ACEOF
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define VERSION "$VERSION"
3034 _ACEOF
3035
3036 # Some tools Automake needs.
3037
3038 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3039
3040
3041 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3042
3043
3044 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3045
3046
3047 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3048
3049
3050 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3051
3052 # We need awk for the "check" target.  The system "awk" is bad on
3053 # some platforms.
3054 # Always define AMTAR for backward compatibility.
3055
3056 AMTAR=${AMTAR-"${am_missing_run}tar"}
3057
3058 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3059
3060
3061
3062
3063
3064 ac_config_headers="$ac_config_headers config.h"
3065
3066
3067 test "$prefix" = "NONE" && prefix="/usr"
3068 test "$prefix" = "/usr" && exec_prefix=""
3069
3070 DEPDIR="${am__leading_dot}deps"
3071
3072 ac_config_commands="$ac_config_commands depfiles"
3073
3074
3075 am_make=${MAKE-make}
3076 cat > confinc << 'END'
3077 am__doit:
3078         @echo this is the am__doit target
3079 .PHONY: am__doit
3080 END
3081 # If we don't find an include directive, just comment out the code.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3083 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3084 am__include="#"
3085 am__quote=
3086 _am_result=none
3087 # First try GNU make style include.
3088 echo "include confinc" > confmf
3089 # Ignore all kinds of additional output from `make'.
3090 case `$am_make -s -f confmf 2> /dev/null` in #(
3091 *the\ am__doit\ target*)
3092   am__include=include
3093   am__quote=
3094   _am_result=GNU
3095   ;;
3096 esac
3097 # Now try BSD make style include.
3098 if test "$am__include" = "#"; then
3099    echo '.include "confinc"' > confmf
3100    case `$am_make -s -f confmf 2> /dev/null` in #(
3101    *the\ am__doit\ target*)
3102      am__include=.include
3103      am__quote="\""
3104      _am_result=BSD
3105      ;;
3106    esac
3107 fi
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3111 $as_echo "$_am_result" >&6; }
3112 rm -f confinc confmf
3113
3114 # Check whether --enable-dependency-tracking was given.
3115 if test "${enable_dependency_tracking+set}" = set; then :
3116   enableval=$enable_dependency_tracking;
3117 fi
3118
3119 if test "x$enable_dependency_tracking" != xno; then
3120   am_depcomp="$ac_aux_dir/depcomp"
3121   AMDEPBACKSLASH='\'
3122 fi
3123  if test "x$enable_dependency_tracking" != xno; then
3124   AMDEP_TRUE=
3125   AMDEP_FALSE='#'
3126 else
3127   AMDEP_TRUE='#'
3128   AMDEP_FALSE=
3129 fi
3130
3131
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$CC"; then
3146   ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 fi
3176 if test -z "$ac_cv_prog_CC"; then
3177   ac_ct_CC=$CC
3178   # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   if test -n "$ac_ct_CC"; then
3186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191   IFS=$as_save_IFS
3192   test -z "$as_dir" && as_dir=.
3193     for ac_exec_ext in '' $ac_executable_extensions; do
3194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195     ac_cv_prog_ac_ct_CC="gcc"
3196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197     break 2
3198   fi
3199 done
3200   done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214   if test "x$ac_ct_CC" = x; then
3215     CC=""
3216   else
3217     case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223     CC=$ac_ct_CC
3224   fi
3225 else
3226   CC="$ac_cv_prog_CC"
3227 fi
3228
3229 if test -z "$CC"; then
3230           if test -n "$ac_tool_prefix"; then
3231     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if test "${ac_cv_prog_CC+set}" = set; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   if test -n "$CC"; then
3239   ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248     ac_cv_prog_CC="${ac_tool_prefix}cc"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268   fi
3269 fi
3270 if test -z "$CC"; then
3271   # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$CC"; then
3279   ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281   ac_prog_rejected=no
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285   IFS=$as_save_IFS
3286   test -z "$as_dir" && as_dir=.
3287     for ac_exec_ext in '' $ac_executable_extensions; do
3288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290        ac_prog_rejected=yes
3291        continue
3292      fi
3293     ac_cv_prog_CC="cc"
3294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298   done
3299 IFS=$as_save_IFS
3300
3301 if test $ac_prog_rejected = yes; then
3302   # We found a bogon in the path, so make sure we never use it.
3303   set dummy $ac_cv_prog_CC
3304   shift
3305   if test $# != 0; then
3306     # We chose a different compiler from the bogus one.
3307     # However, it has the same basename, so the bogon will be chosen
3308     # first if we set CC to just the basename; use the full file name.
3309     shift
3310     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3311   fi
3312 fi
3313 fi
3314 fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 fi
3326 if test -z "$CC"; then
3327   if test -n "$ac_tool_prefix"; then
3328   for ac_prog in cl.exe
3329   do
3330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if test "${ac_cv_prog_CC+set}" = set; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   if test -n "$CC"; then
3338   ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345     for ac_exec_ext in '' $ac_executable_extensions; do
3346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352   done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367     test -n "$CC" && break
3368   done
3369 fi
3370 if test -z "$CC"; then
3371   ac_ct_CC=$CC
3372   for ac_prog in cl.exe
3373 do
3374   # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$ac_ct_CC"; then
3382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391     ac_cv_prog_ac_ct_CC="$ac_prog"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410
3411   test -n "$ac_ct_CC" && break
3412 done
3413
3414   if test "x$ac_ct_CC" = x; then
3415     CC=""
3416   else
3417     case $cross_compiling:$ac_tool_warned in
3418 yes:)
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3422 esac
3423     CC=$ac_ct_CC
3424   fi
3425 fi
3426
3427 fi
3428
3429
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5 ; }
3434
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3437 set X $ac_compile
3438 ac_compiler=$2
3439 for ac_option in --version -v -V -qversion; do
3440   { { ac_try="$ac_compiler $ac_option >&5"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448   ac_status=$?
3449   if test -s conftest.err; then
3450     sed '10a\
3451 ... rest of stderr output deleted ...
3452          10q' conftest.err >conftest.er1
3453     cat conftest.er1 >&5
3454   fi
3455   rm -f conftest.er1 conftest.err
3456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457   test $ac_status = 0; }
3458 done
3459
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3475 # of exeext.
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3482
3483 ac_rmfiles=
3484 for ac_file in $ac_files
3485 do
3486   case $ac_file in
3487     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3489   esac
3490 done
3491 rm -f $ac_rmfiles
3492
3493 if { { ac_try="$ac_link_default"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500   (eval "$ac_link_default") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }; then :
3504   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3508 # Autoconf.
3509 for ac_file in $ac_files ''
3510 do
3511   test -f "$ac_file" || continue
3512   case $ac_file in
3513     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3514         ;;
3515     [ab].out )
3516         # We found the default executable, but exeext='' is most
3517         # certainly right.
3518         break;;
3519     *.* )
3520         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521         then :; else
3522            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523         fi
3524         # We set ac_cv_exeext here because the later test for it is not
3525         # safe: cross compilers may not add the suffix if given an `-o'
3526         # argument, so we may need to know it at that point already.
3527         # Even if this section looks crufty: it has the advantage of
3528         # actually working.
3529         break;;
3530     * )
3531         break;;
3532   esac
3533 done
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3535
3536 else
3537   ac_file=''
3538 fi
3539 if test -z "$ac_file"; then :
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5 ; }
3549 else
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3558
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_link") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }; then :
3574   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3577 # `rm'.
3578 for ac_file in conftest.exe conftest conftest.*; do
3579   test -f "$ac_file" || continue
3580   case $ac_file in
3581     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583           break;;
3584     * ) break;;
3585   esac
3586 done
3587 else
3588   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5 ; }
3592 fi
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3596
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3599 ac_exeext=$EXEEXT
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602 #include <stdio.h>
3603 int
3604 main ()
3605 {
3606 FILE *f = fopen ("conftest.out", "w");
3607  return ferror (f) || fclose (f) != 0;
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run.  If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619   { { ac_try="$ac_link"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626   (eval "$ac_link") 2>&5
3627   ac_status=$?
3628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629   test $ac_status = 0; }
3630   if { ac_try='./conftest$ac_cv_exeext'
3631   { { case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640   test $ac_status = 0; }; }; then
3641     cross_compiling=no
3642   else
3643     if test "$cross_compiling" = maybe; then
3644         cross_compiling=yes
3645     else
3646         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5 ; }
3651     fi
3652   fi
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3656
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if test "${ac_cv_objext+set}" = set; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666
3667 int
3668 main ()
3669 {
3670
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_compile") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }; then :
3687   for ac_file in conftest.o conftest.obj conftest.*; do
3688   test -f "$ac_file" || continue;
3689   case $ac_file in
3690     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692        break;;
3693   esac
3694 done
3695 else
3696   $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5 ; }
3703 fi
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3709 ac_objext=$OBJEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3717
3718 int
3719 main ()
3720 {
3721 #ifndef __GNUC__
3722        choke me
3723 #endif
3724
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730   ac_compiler_gnu=yes
3731 else
3732   ac_compiler_gnu=no
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3736
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741   GCC=yes
3742 else
3743   GCC=
3744 fi
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if test "${ac_cv_prog_cc_g+set}" = set; then :
3750   $as_echo_n "(cached) " >&6
3751 else
3752   ac_save_c_werror_flag=$ac_c_werror_flag
3753    ac_c_werror_flag=yes
3754    ac_cv_prog_cc_g=no
3755    CFLAGS="-g"
3756    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h.  */
3758
3759 int
3760 main ()
3761 {
3762
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768   ac_cv_prog_cc_g=yes
3769 else
3770   CFLAGS=""
3771       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h.  */
3773
3774 int
3775 main ()
3776 {
3777
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783
3784 else
3785   ac_c_werror_flag=$ac_save_c_werror_flag
3786          CFLAGS="-g"
3787          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799   ac_cv_prog_cc_g=yes
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806    ac_c_werror_flag=$ac_save_c_werror_flag
3807 fi
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811   CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813   if test "$GCC" = yes; then
3814     CFLAGS="-g -O2"
3815   else
3816     CFLAGS="-g"
3817   fi
3818 else
3819   if test "$GCC" = yes; then
3820     CFLAGS="-O2"
3821   else
3822     CFLAGS=
3823   fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h.  */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3842      char **p;
3843      int i;
3844 {
3845   return p[i];
3846 }
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3848 {
3849   char *s;
3850   va_list v;
3851   va_start (v,p);
3852   s = g (p, va_arg (v,int));
3853   va_end (v);
3854   return s;
3855 }
3856
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3858    function prototypes and stuff, but not '\xHH' hex character constants.
3859    These don't provoke an error unfortunately, instead are silently treated
3860    as 'x'.  The following induces an error, until -std is added to get
3861    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3862    array size at least.  It's necessary to write '\x00'==0 to get something
3863    that's true only with -std.  */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867    inside strings and character constants.  */
3868 #define FOO(x) 'x'
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875 int argc;
3876 char **argv;
3877 int
3878 main ()
3879 {
3880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 do
3888   CC="$ac_save_CC $ac_arg"
3889   if ac_fn_c_try_compile "$LINENO"; then :
3890   ac_cv_prog_cc_c89=$ac_arg
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext
3893   test "x$ac_cv_prog_cc_c89" != "xno" && break
3894 done
3895 rm -f conftest.$ac_ext
3896 CC=$ac_save_CC
3897
3898 fi
3899 # AC_CACHE_VAL
3900 case "x$ac_cv_prog_cc_c89" in
3901   x)
3902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3904   xno)
3905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3907   *)
3908     CC="$CC $ac_cv_prog_cc_c89"
3909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911 esac
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3913
3914 fi
3915
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922 depcc="$CC"   am_compiler_list=
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3925 $as_echo_n "checking dependency style of $depcc... " >&6; }
3926 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3930   # We make a subdir and do the tests there.  Otherwise we can end up
3931   # making bogus files that we don't know about and never remove.  For
3932   # instance it was reported that on HP-UX the gcc test will end up
3933   # making a dummy file named `D' -- because `-MD' means `put the output
3934   # in D'.
3935   mkdir conftest.dir
3936   # Copy depcomp to subdir because otherwise we won't find it if we're
3937   # using a relative directory.
3938   cp "$am_depcomp" conftest.dir
3939   cd conftest.dir
3940   # We will build objects and dependencies in a subdirectory because
3941   # it helps to detect inapplicable dependency modes.  For instance
3942   # both Tru64's cc and ICC support -MD to output dependencies as a
3943   # side effect of compilation, but ICC will put the dependencies in
3944   # the current directory while Tru64 will put them in the object
3945   # directory.
3946   mkdir sub
3947
3948   am_cv_CC_dependencies_compiler_type=none
3949   if test "$am_compiler_list" = ""; then
3950      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3951   fi
3952   am__universal=false
3953   case " $depcc " in #(
3954      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3955      esac
3956
3957   for depmode in $am_compiler_list; do
3958     # Setup a source with many dependencies, because some compilers
3959     # like to wrap large dependency lists on column 80 (with \), and
3960     # we should not choose a depcomp mode which is confused by this.
3961     #
3962     # We need to recreate these files for each test, as the compiler may
3963     # overwrite some of them when testing with obscure command lines.
3964     # This happens at least with the AIX C compiler.
3965     : > sub/conftest.c
3966     for i in 1 2 3 4 5 6; do
3967       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3968       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3969       # Solaris 8's {/usr,}/bin/sh.
3970       touch sub/conftst$i.h
3971     done
3972     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3973
3974     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3975     # mode.  It turns out that the SunPro C++ compiler does not properly
3976     # handle `-M -o', and we need to detect this.  Also, some Intel
3977     # versions had trouble with output in subdirs
3978     am__obj=sub/conftest.${OBJEXT-o}
3979     am__minus_obj="-o $am__obj"
3980     case $depmode in
3981     gcc)
3982       # This depmode causes a compiler race in universal mode.
3983       test "$am__universal" = false || continue
3984       ;;
3985     nosideeffect)
3986       # after this tag, mechanisms are not by side-effect, so they'll
3987       # only be used when explicitly requested
3988       if test "x$enable_dependency_tracking" = xyes; then
3989         continue
3990       else
3991         break
3992       fi
3993       ;;
3994     msvisualcpp | msvcmsys)
3995       # This compiler won't grok `-c -o', but also, the minuso test has
3996       # not run yet.  These depmodes are late enough in the game, and
3997       # so weak that their functioning should not be impacted.
3998       am__obj=conftest.${OBJEXT-o}
3999       am__minus_obj=
4000       ;;
4001     none) break ;;
4002     esac
4003     if depmode=$depmode \
4004        source=sub/conftest.c object=$am__obj \
4005        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4006        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4007          >/dev/null 2>conftest.err &&
4008        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4009        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4010        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4011        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4012       # icc doesn't choke on unknown options, it will just issue warnings
4013       # or remarks (even with -Werror).  So we grep stderr for any message
4014       # that says an option was ignored or not supported.
4015       # When given -MP, icc 7.0 and 7.1 complain thusly:
4016       #   icc: Command line warning: ignoring option '-M'; no argument required
4017       # The diagnosis changed in icc 8.0:
4018       #   icc: Command line remark: option '-MP' not supported
4019       if (grep 'ignoring option' conftest.err ||
4020           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4021         am_cv_CC_dependencies_compiler_type=$depmode
4022         break
4023       fi
4024     fi
4025   done
4026
4027   cd ..
4028   rm -rf conftest.dir
4029 else
4030   am_cv_CC_dependencies_compiler_type=none
4031 fi
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4035 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4036 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4037
4038  if
4039   test "x$enable_dependency_tracking" != xno \
4040   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4041   am__fastdepCC_TRUE=
4042   am__fastdepCC_FALSE='#'
4043 else
4044   am__fastdepCC_TRUE='#'
4045   am__fastdepCC_FALSE=
4046 fi
4047
4048
4049
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4056 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4057 # On Suns, sometimes $CPP names a directory.
4058 if test -n "$CPP" && test -d "$CPP"; then
4059   CPP=
4060 fi
4061 if test -z "$CPP"; then
4062   if test "${ac_cv_prog_CPP+set}" = set; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065       # Double quotes because CPP needs to be expanded
4066     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4067     do
4068       ac_preproc_ok=false
4069 for ac_c_preproc_warn_flag in '' yes
4070 do
4071   # Use a header file that comes with gcc, so configuring glibc
4072   # with a fresh cross-compiler works.
4073   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074   # <limits.h> exists even on freestanding compilers.
4075   # On the NeXT, cc -E runs the code through the compiler's parser,
4076   # not just through cpp. "Syntax error" is here to catch this case.
4077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084                      Syntax error
4085 _ACEOF
4086 if ac_fn_c_try_cpp "$LINENO"; then :
4087
4088 else
4089   # Broken: fails on valid input.
4090 continue
4091 fi
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4093
4094   # OK, works on sane cases.  Now check whether nonexistent headers
4095   # can be detected and how.
4096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098 #include <ac_nonexistent.h>
4099 _ACEOF
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4101   # Broken: success on invalid input.
4102 continue
4103 else
4104   # Passes both tests.
4105 ac_preproc_ok=:
4106 break
4107 fi
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4109
4110 done
4111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112 rm -f conftest.i conftest.err conftest.$ac_ext
4113 if $ac_preproc_ok; then :
4114   break
4115 fi
4116
4117     done
4118     ac_cv_prog_CPP=$CPP
4119
4120 fi
4121   CPP=$ac_cv_prog_CPP
4122 else
4123   ac_cv_prog_CPP=$CPP
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4126 $as_echo "$CPP" >&6; }
4127 ac_preproc_ok=false
4128 for ac_c_preproc_warn_flag in '' yes
4129 do
4130   # Use a header file that comes with gcc, so configuring glibc
4131   # with a fresh cross-compiler works.
4132   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133   # <limits.h> exists even on freestanding compilers.
4134   # On the NeXT, cc -E runs the code through the compiler's parser,
4135   # not just through cpp. "Syntax error" is here to catch this case.
4136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138 #ifdef __STDC__
4139 # include <limits.h>
4140 #else
4141 # include <assert.h>
4142 #endif
4143                      Syntax error
4144 _ACEOF
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4146
4147 else
4148   # Broken: fails on valid input.
4149 continue
4150 fi
4151 rm -f conftest.err conftest.i conftest.$ac_ext
4152
4153   # OK, works on sane cases.  Now check whether nonexistent headers
4154   # can be detected and how.
4155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h.  */
4157 #include <ac_nonexistent.h>
4158 _ACEOF
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160   # Broken: success on invalid input.
4161 continue
4162 else
4163   # Passes both tests.
4164 ac_preproc_ok=:
4165 break
4166 fi
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169 done
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.i conftest.err conftest.$ac_ext
4172 if $ac_preproc_ok; then :
4173
4174 else
4175   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4177 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4178 See \`config.log' for more details" "$LINENO" 5 ; }
4179 fi
4180
4181 ac_ext=c
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4189 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4190 if test "${ac_cv_path_GREP+set}" = set; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if test -z "$GREP"; then
4194   ac_path_GREP_found=false
4195   # Loop through the user's path and test for each of PROGNAME-LIST
4196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201     for ac_prog in grep ggrep; do
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4204       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4205 # Check for GNU ac_path_GREP and select it if it is found.
4206   # Check for GNU $ac_path_GREP
4207 case `"$ac_path_GREP" --version 2>&1` in
4208 *GNU*)
4209   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4210 *)
4211   ac_count=0
4212   $as_echo_n 0123456789 >"conftest.in"
4213   while :
4214   do
4215     cat "conftest.in" "conftest.in" >"conftest.tmp"
4216     mv "conftest.tmp" "conftest.in"
4217     cp "conftest.in" "conftest.nl"
4218     $as_echo 'GREP' >> "conftest.nl"
4219     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221     as_fn_arith $ac_count + 1 && ac_count=$as_val
4222     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4223       # Best one so far, save it but keep looking for a better one
4224       ac_cv_path_GREP="$ac_path_GREP"
4225       ac_path_GREP_max=$ac_count
4226     fi
4227     # 10*(2^10) chars as input seems more than enough
4228     test $ac_count -gt 10 && break
4229   done
4230   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 esac
4232
4233       $ac_path_GREP_found && break 3
4234     done
4235   done
4236   done
4237 IFS=$as_save_IFS
4238   if test -z "$ac_cv_path_GREP"; then
4239     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240   fi
4241 else
4242   ac_cv_path_GREP=$GREP
4243 fi
4244
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4247 $as_echo "$ac_cv_path_GREP" >&6; }
4248  GREP="$ac_cv_path_GREP"
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4252 $as_echo_n "checking for egrep... " >&6; }
4253 if test "${ac_cv_path_EGREP+set}" = set; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4257    then ac_cv_path_EGREP="$GREP -E"
4258    else
4259      if test -z "$EGREP"; then
4260   ac_path_EGREP_found=false
4261   # Loop through the user's path and test for each of PROGNAME-LIST
4262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264 do
4265   IFS=$as_save_IFS
4266   test -z "$as_dir" && as_dir=.
4267     for ac_prog in egrep; do
4268     for ac_exec_ext in '' $ac_executable_extensions; do
4269       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4270       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4271 # Check for GNU ac_path_EGREP and select it if it is found.
4272   # Check for GNU $ac_path_EGREP
4273 case `"$ac_path_EGREP" --version 2>&1` in
4274 *GNU*)
4275   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4276 *)
4277   ac_count=0
4278   $as_echo_n 0123456789 >"conftest.in"
4279   while :
4280   do
4281     cat "conftest.in" "conftest.in" >"conftest.tmp"
4282     mv "conftest.tmp" "conftest.in"
4283     cp "conftest.in" "conftest.nl"
4284     $as_echo 'EGREP' >> "conftest.nl"
4285     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287     as_fn_arith $ac_count + 1 && ac_count=$as_val
4288     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4289       # Best one so far, save it but keep looking for a better one
4290       ac_cv_path_EGREP="$ac_path_EGREP"
4291       ac_path_EGREP_max=$ac_count
4292     fi
4293     # 10*(2^10) chars as input seems more than enough
4294     test $ac_count -gt 10 && break
4295   done
4296   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 esac
4298
4299       $ac_path_EGREP_found && break 3
4300     done
4301   done
4302   done
4303 IFS=$as_save_IFS
4304   if test -z "$ac_cv_path_EGREP"; then
4305     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306   fi
4307 else
4308   ac_cv_path_EGREP=$EGREP
4309 fi
4310
4311    fi
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4314 $as_echo "$ac_cv_path_EGREP" >&6; }
4315  EGREP="$ac_cv_path_EGREP"
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4319 $as_echo_n "checking for ANSI C header files... " >&6; }
4320 if test "${ac_cv_header_stdc+set}" = set; then :
4321   $as_echo_n "(cached) " >&6
4322 else
4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #include <stdlib.h>
4326 #include <stdarg.h>
4327 #include <string.h>
4328 #include <float.h>
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339   ac_cv_header_stdc=yes
4340 else
4341   ac_cv_header_stdc=no
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344
4345 if test $ac_cv_header_stdc = yes; then
4346   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h.  */
4349 #include <string.h>
4350
4351 _ACEOF
4352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353   $EGREP "memchr" >/dev/null 2>&1; then :
4354
4355 else
4356   ac_cv_header_stdc=no
4357 fi
4358 rm -f conftest*
4359
4360 fi
4361
4362 if test $ac_cv_header_stdc = yes; then
4363   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366 #include <stdlib.h>
4367
4368 _ACEOF
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370   $EGREP "free" >/dev/null 2>&1; then :
4371
4372 else
4373   ac_cv_header_stdc=no
4374 fi
4375 rm -f conftest*
4376
4377 fi
4378
4379 if test $ac_cv_header_stdc = yes; then
4380   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4381   if test "$cross_compiling" = yes; then :
4382   :
4383 else
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386 #include <ctype.h>
4387 #include <stdlib.h>
4388 #if ((' ' & 0x0FF) == 0x020)
4389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4391 #else
4392 # define ISLOWER(c) \
4393                    (('a' <= (c) && (c) <= 'i') \
4394                      || ('j' <= (c) && (c) <= 'r') \
4395                      || ('s' <= (c) && (c) <= 'z'))
4396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4397 #endif
4398
4399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4400 int
4401 main ()
4402 {
4403   int i;
4404   for (i = 0; i < 256; i++)
4405     if (XOR (islower (i), ISLOWER (i))
4406         || toupper (i) != TOUPPER (i))
4407       return 2;
4408   return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_run "$LINENO"; then :
4412
4413 else
4414   ac_cv_header_stdc=no
4415 fi
4416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4417   conftest.$ac_objext conftest.beam conftest.$ac_ext
4418 fi
4419
4420 fi
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4423 $as_echo "$ac_cv_header_stdc" >&6; }
4424 if test $ac_cv_header_stdc = yes; then
4425
4426 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4427
4428 fi
4429
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432                   inttypes.h stdint.h unistd.h
4433 do :
4434   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4436 "
4437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4438   cat >>confdefs.h <<_ACEOF
4439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440 _ACEOF
4441
4442 fi
4443
4444 done
4445
4446
4447
4448   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4449 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4450   MINIX=yes
4451 else
4452   MINIX=
4453 fi
4454
4455
4456   if test "$MINIX" = yes; then
4457
4458 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4459
4460
4461 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4462
4463
4464 $as_echo "#define _MINIX 1" >>confdefs.h
4465
4466   fi
4467
4468
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4470 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4471 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476
4477 #         define __EXTENSIONS__ 1
4478           $ac_includes_default
4479 int
4480 main ()
4481 {
4482
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488   ac_cv_safe_to_define___extensions__=yes
4489 else
4490   ac_cv_safe_to_define___extensions__=no
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4495 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4496   test $ac_cv_safe_to_define___extensions__ = yes &&
4497     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4498
4499   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4500
4501   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4502
4503   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4504
4505   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4506
4507
4508
4509
4510 # Check whether --enable-shared was given.
4511 if test "${enable_shared+set}" = set; then :
4512   enableval=$enable_shared; p=${PACKAGE-default}
4513     case $enableval in
4514     yes) enable_shared=yes ;;
4515     no) enable_shared=no ;;
4516     *)
4517       enable_shared=no
4518       # Look at the argument we got.  We use all the common list separators.
4519       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4520       for pkg in $enableval; do
4521         IFS="$lt_save_ifs"
4522         if test "X$pkg" = "X$p"; then
4523           enable_shared=yes
4524         fi
4525       done
4526       IFS="$lt_save_ifs"
4527       ;;
4528     esac
4529 else
4530   enable_shared=no
4531 fi
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541 # Check whether --enable-static was given.
4542 if test "${enable_static+set}" = set; then :
4543   enableval=$enable_static; p=${PACKAGE-default}
4544     case $enableval in
4545     yes) enable_static=yes ;;
4546     no) enable_static=no ;;
4547     *)
4548      enable_static=no
4549       # Look at the argument we got.  We use all the common list separators.
4550       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4551       for pkg in $enableval; do
4552         IFS="$lt_save_ifs"
4553         if test "X$pkg" = "X$p"; then
4554           enable_static=yes
4555         fi
4556       done
4557       IFS="$lt_save_ifs"
4558       ;;
4559     esac
4560 else
4561   enable_static=yes
4562 fi
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4575 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4576     # Check whether --enable-maintainer-mode was given.
4577 if test "${enable_maintainer_mode+set}" = set; then :
4578   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4579 else
4580   USE_MAINTAINER_MODE=no
4581 fi
4582
4583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4584 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4585    if test $USE_MAINTAINER_MODE = yes; then
4586   MAINTAINER_MODE_TRUE=
4587   MAINTAINER_MODE_FALSE='#'
4588 else
4589   MAINTAINER_MODE_TRUE='#'
4590   MAINTAINER_MODE_FALSE=
4591 fi
4592
4593   MAINT=$MAINTAINER_MODE_TRUE
4594
4595
4596
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 if test -n "$ac_tool_prefix"; then
4603   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_CC+set}" = set; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if test -n "$CC"; then
4611   ac_cv_prog_CC="$CC" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625   done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 CC=$ac_cv_prog_CC
4631 if test -n "$CC"; then
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4633 $as_echo "$CC" >&6; }
4634 else
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640 fi
4641 if test -z "$ac_cv_prog_CC"; then
4642   ac_ct_CC=$CC
4643   # Extract the first word of "gcc", so it can be a program name with args.
4644 set dummy gcc; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$ac_ct_CC"; then
4651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_ac_ct_CC="gcc"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4671 if test -n "$ac_ct_CC"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4673 $as_echo "$ac_ct_CC" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679   if test "x$ac_ct_CC" = x; then
4680     CC=""
4681   else
4682     case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688     CC=$ac_ct_CC
4689   fi
4690 else
4691   CC="$ac_cv_prog_CC"
4692 fi
4693
4694 if test -z "$CC"; then
4695           if test -n "$ac_tool_prefix"; then
4696     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}cc; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_CC+set}" = set; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   if test -n "$CC"; then
4704   ac_cv_prog_CC="$CC" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_prog_CC="${ac_tool_prefix}cc"
4714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718   done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 CC=$ac_cv_prog_CC
4724 if test -n "$CC"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4726 $as_echo "$CC" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732
4733   fi
4734 fi
4735 if test -z "$CC"; then
4736   # Extract the first word of "cc", so it can be a program name with args.
4737 set dummy cc; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_CC+set}" = set; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$CC"; then
4744   ac_cv_prog_CC="$CC" # Let the user override the test.
4745 else
4746   ac_prog_rejected=no
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752     for ac_exec_ext in '' $ac_executable_extensions; do
4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4755        ac_prog_rejected=yes
4756        continue
4757      fi
4758     ac_cv_prog_CC="cc"
4759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763   done
4764 IFS=$as_save_IFS
4765
4766 if test $ac_prog_rejected = yes; then
4767   # We found a bogon in the path, so make sure we never use it.
4768   set dummy $ac_cv_prog_CC
4769   shift
4770   if test $# != 0; then
4771     # We chose a different compiler from the bogus one.
4772     # However, it has the same basename, so the bogon will be chosen
4773     # first if we set CC to just the basename; use the full file name.
4774     shift
4775     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4776   fi
4777 fi
4778 fi
4779 fi
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 fi
4791 if test -z "$CC"; then
4792   if test -n "$ac_tool_prefix"; then
4793   for ac_prog in cl.exe
4794   do
4795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_CC+set}" = set; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   if test -n "$CC"; then
4803   ac_cv_prog_CC="$CC" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817   done
4818 IFS=$as_save_IFS
4819
4820 fi
4821 fi
4822 CC=$ac_cv_prog_CC
4823 if test -n "$CC"; then
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4825 $as_echo "$CC" >&6; }
4826 else
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830
4831
4832     test -n "$CC" && break
4833   done
4834 fi
4835 if test -z "$CC"; then
4836   ac_ct_CC=$CC
4837   for ac_prog in cl.exe
4838 do
4839   # Extract the first word of "$ac_prog", so it can be a program name with args.
4840 set dummy $ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   if test -n "$ac_ct_CC"; then
4847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_prog_ac_ct_CC="$ac_prog"
4857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861   done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4867 if test -n "$ac_ct_CC"; then
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4869 $as_echo "$ac_ct_CC" >&6; }
4870 else
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 fi
4874
4875
4876   test -n "$ac_ct_CC" && break
4877 done
4878
4879   if test "x$ac_ct_CC" = x; then
4880     CC=""
4881   else
4882     case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4887 esac
4888     CC=$ac_ct_CC
4889   fi
4890 fi
4891
4892 fi
4893
4894
4895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4897 as_fn_error $? "no acceptable C compiler found in \$PATH
4898 See \`config.log' for more details" "$LINENO" 5 ; }
4899
4900 # Provide some information about the compiler.
4901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4902 set X $ac_compile
4903 ac_compiler=$2
4904 for ac_option in --version -v -V -qversion; do
4905   { { ac_try="$ac_compiler $ac_option >&5"
4906 case "(($ac_try" in
4907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908   *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911 $as_echo "$ac_try_echo"; } >&5
4912   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4913   ac_status=$?
4914   if test -s conftest.err; then
4915     sed '10a\
4916 ... rest of stderr output deleted ...
4917          10q' conftest.err >conftest.er1
4918     cat conftest.er1 >&5
4919   fi
4920   rm -f conftest.er1 conftest.err
4921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922   test $ac_status = 0; }
4923 done
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4927 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h.  */
4932
4933 int
4934 main ()
4935 {
4936 #ifndef __GNUC__
4937        choke me
4938 #endif
4939
4940   ;
4941   return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945   ac_compiler_gnu=yes
4946 else
4947   ac_compiler_gnu=no
4948 fi
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4951
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4955 if test $ac_compiler_gnu = yes; then
4956   GCC=yes
4957 else
4958   GCC=
4959 fi
4960 ac_test_CFLAGS=${CFLAGS+set}
4961 ac_save_CFLAGS=$CFLAGS
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4964 if test "${ac_cv_prog_cc_g+set}" = set; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   ac_save_c_werror_flag=$ac_c_werror_flag
4968    ac_c_werror_flag=yes
4969    ac_cv_prog_cc_g=no
4970    CFLAGS="-g"
4971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h.  */
4973
4974 int
4975 main ()
4976 {
4977
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983   ac_cv_prog_cc_g=yes
4984 else
4985   CFLAGS=""
4986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h.  */
4988
4989 int
4990 main ()
4991 {
4992
4993   ;
4994   return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"; then :
4998
4999 else
5000   ac_c_werror_flag=$ac_save_c_werror_flag
5001          CFLAGS="-g"
5002          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004
5005 int
5006 main ()
5007 {
5008
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014   ac_cv_prog_cc_g=yes
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021    ac_c_werror_flag=$ac_save_c_werror_flag
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5024 $as_echo "$ac_cv_prog_cc_g" >&6; }
5025 if test "$ac_test_CFLAGS" = set; then
5026   CFLAGS=$ac_save_CFLAGS
5027 elif test $ac_cv_prog_cc_g = yes; then
5028   if test "$GCC" = yes; then
5029     CFLAGS="-g -O2"
5030   else
5031     CFLAGS="-g"
5032   fi
5033 else
5034   if test "$GCC" = yes; then
5035     CFLAGS="-O2"
5036   else
5037     CFLAGS=
5038   fi
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5042 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   ac_cv_prog_cc_c89=no
5046 ac_save_CC=$CC
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h.  */
5049 #include <stdarg.h>
5050 #include <stdio.h>
5051 #include <sys/types.h>
5052 #include <sys/stat.h>
5053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5054 struct buf { int x; };
5055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5056 static char *e (p, i)
5057      char **p;
5058      int i;
5059 {
5060   return p[i];
5061 }
5062 static char *f (char * (*g) (char **, int), char **p, ...)
5063 {
5064   char *s;
5065   va_list v;
5066   va_start (v,p);
5067   s = g (p, va_arg (v,int));
5068   va_end (v);
5069   return s;
5070 }
5071
5072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5073    function prototypes and stuff, but not '\xHH' hex character constants.
5074    These don't provoke an error unfortunately, instead are silently treated
5075    as 'x'.  The following induces an error, until -std is added to get
5076    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5077    array size at least.  It's necessary to write '\x00'==0 to get something
5078    that's true only with -std.  */
5079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5080
5081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5082    inside strings and character constants.  */
5083 #define FOO(x) 'x'
5084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5085
5086 int test (int i, double x);
5087 struct s1 {int (*f) (int a);};
5088 struct s2 {int (*f) (double a);};
5089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5090 int argc;
5091 char **argv;
5092 int
5093 main ()
5094 {
5095 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5096   ;
5097   return 0;
5098 }
5099 _ACEOF
5100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5101         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5102 do
5103   CC="$ac_save_CC $ac_arg"
5104   if ac_fn_c_try_compile "$LINENO"; then :
5105   ac_cv_prog_cc_c89=$ac_arg
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext
5108   test "x$ac_cv_prog_cc_c89" != "xno" && break
5109 done
5110 rm -f conftest.$ac_ext
5111 CC=$ac_save_CC
5112
5113 fi
5114 # AC_CACHE_VAL
5115 case "x$ac_cv_prog_cc_c89" in
5116   x)
5117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5118 $as_echo "none needed" >&6; } ;;
5119   xno)
5120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5121 $as_echo "unsupported" >&6; } ;;
5122   *)
5123     CC="$CC $ac_cv_prog_cc_c89"
5124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5126 esac
5127 if test "x$ac_cv_prog_cc_c89" != xno; then :
5128
5129 fi
5130
5131 ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137 depcc="$CC"   am_compiler_list=
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5140 $as_echo_n "checking dependency style of $depcc... " >&6; }
5141 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5145   # We make a subdir and do the tests there.  Otherwise we can end up
5146   # making bogus files that we don't know about and never remove.  For
5147   # instance it was reported that on HP-UX the gcc test will end up
5148   # making a dummy file named `D' -- because `-MD' means `put the output
5149   # in D'.
5150   mkdir conftest.dir
5151   # Copy depcomp to subdir because otherwise we won't find it if we're
5152   # using a relative directory.
5153   cp "$am_depcomp" conftest.dir
5154   cd conftest.dir
5155   # We will build objects and dependencies in a subdirectory because
5156   # it helps to detect inapplicable dependency modes.  For instance
5157   # both Tru64's cc and ICC support -MD to output dependencies as a
5158   # side effect of compilation, but ICC will put the dependencies in
5159   # the current directory while Tru64 will put them in the object
5160   # directory.
5161   mkdir sub
5162
5163   am_cv_CC_dependencies_compiler_type=none
5164   if test "$am_compiler_list" = ""; then
5165      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5166   fi
5167   am__universal=false
5168   case " $depcc " in #(
5169      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5170      esac
5171
5172   for depmode in $am_compiler_list; do
5173     # Setup a source with many dependencies, because some compilers
5174     # like to wrap large dependency lists on column 80 (with \), and
5175     # we should not choose a depcomp mode which is confused by this.
5176     #
5177     # We need to recreate these files for each test, as the compiler may
5178     # overwrite some of them when testing with obscure command lines.
5179     # This happens at least with the AIX C compiler.
5180     : > sub/conftest.c
5181     for i in 1 2 3 4 5 6; do
5182       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5183       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5184       # Solaris 8's {/usr,}/bin/sh.
5185       touch sub/conftst$i.h
5186     done
5187     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5188
5189     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5190     # mode.  It turns out that the SunPro C++ compiler does not properly
5191     # handle `-M -o', and we need to detect this.  Also, some Intel
5192     # versions had trouble with output in subdirs
5193     am__obj=sub/conftest.${OBJEXT-o}
5194     am__minus_obj="-o $am__obj"
5195     case $depmode in
5196     gcc)
5197       # This depmode causes a compiler race in universal mode.
5198       test "$am__universal" = false || continue
5199       ;;
5200     nosideeffect)
5201       # after this tag, mechanisms are not by side-effect, so they'll
5202       # only be used when explicitly requested
5203       if test "x$enable_dependency_tracking" = xyes; then
5204         continue
5205       else
5206         break
5207       fi
5208       ;;
5209     msvisualcpp | msvcmsys)
5210       # This compiler won't grok `-c -o', but also, the minuso test has
5211       # not run yet.  These depmodes are late enough in the game, and
5212       # so weak that their functioning should not be impacted.
5213       am__obj=conftest.${OBJEXT-o}
5214       am__minus_obj=
5215       ;;
5216     none) break ;;
5217     esac
5218     if depmode=$depmode \
5219        source=sub/conftest.c object=$am__obj \
5220        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5221        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5222          >/dev/null 2>conftest.err &&
5223        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5224        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5225        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5226        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5227       # icc doesn't choke on unknown options, it will just issue warnings
5228       # or remarks (even with -Werror).  So we grep stderr for any message
5229       # that says an option was ignored or not supported.
5230       # When given -MP, icc 7.0 and 7.1 complain thusly:
5231       #   icc: Command line warning: ignoring option '-M'; no argument required
5232       # The diagnosis changed in icc 8.0:
5233       #   icc: Command line remark: option '-MP' not supported
5234       if (grep 'ignoring option' conftest.err ||
5235           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5236         am_cv_CC_dependencies_compiler_type=$depmode
5237         break
5238       fi
5239     fi
5240   done
5241
5242   cd ..
5243   rm -rf conftest.dir
5244 else
5245   am_cv_CC_dependencies_compiler_type=none
5246 fi
5247
5248 fi
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5250 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5252
5253  if
5254   test "x$enable_dependency_tracking" != xno \
5255   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5256   am__fastdepCC_TRUE=
5257   am__fastdepCC_FALSE='#'
5258 else
5259   am__fastdepCC_TRUE='#'
5260   am__fastdepCC_FALSE=
5261 fi
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5265 $as_echo_n "checking for library containing strerror... " >&6; }
5266 if test "${ac_cv_search_strerror+set}" = set; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269   ac_func_search_save_LIBS=$LIBS
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272
5273 /* Override any GCC internal prototype to avoid an error.
5274    Use char because int might match the return type of a GCC
5275    builtin and then its argument prototype would still apply.  */
5276 #ifdef __cplusplus
5277 extern "C"
5278 #endif
5279 char strerror ();
5280 int
5281 main ()
5282 {
5283 return strerror ();
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
5288 for ac_lib in '' cposix; do
5289   if test -z "$ac_lib"; then
5290     ac_res="none required"
5291   else
5292     ac_res=-l$ac_lib
5293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5294   fi
5295   if ac_fn_c_try_link "$LINENO"; then :
5296   ac_cv_search_strerror=$ac_res
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext \
5299     conftest$ac_exeext
5300   if test "${ac_cv_search_strerror+set}" = set; then :
5301   break
5302 fi
5303 done
5304 if test "${ac_cv_search_strerror+set}" = set; then :
5305
5306 else
5307   ac_cv_search_strerror=no
5308 fi
5309 rm conftest.$ac_ext
5310 LIBS=$ac_func_search_save_LIBS
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5313 $as_echo "$ac_cv_search_strerror" >&6; }
5314 ac_res=$ac_cv_search_strerror
5315 if test "$ac_res" != no; then :
5316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5317
5318 fi
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5321 $as_echo_n "checking whether ln -s works... " >&6; }
5322 LN_S=$as_ln_s
5323 if test "$LN_S" = "ln -s"; then
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5325 $as_echo "yes" >&6; }
5326 else
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5328 $as_echo "no, using $LN_S" >&6; }
5329 fi
5330
5331 for ac_prog in 'bison -y' byacc
5332 do
5333   # Extract the first word of "$ac_prog", so it can be a program name with args.
5334 set dummy $ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_YACC+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if test -n "$YACC"; then
5341   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_prog_YACC="$ac_prog"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 YACC=$ac_cv_prog_YACC
5361 if test -n "$YACC"; then
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5363 $as_echo "$YACC" >&6; }
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370   test -n "$YACC" && break
5371 done
5372 test -n "$YACC" || YACC="yacc"
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5375 $as_echo_n "checking for function prototypes... " >&6; }
5376 if test "$ac_cv_prog_cc_c89" != no; then
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5378 $as_echo "yes" >&6; }
5379
5380 $as_echo "#define PROTOTYPES 1" >>confdefs.h
5381
5382
5383 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
5384
5385 else
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390
5391 if test "$ac_cv_prog_cc_stdc" != no; then
5392   U= ANSI2KNR=
5393 else
5394   U=_ ANSI2KNR=./ansi2knr
5395 fi
5396 # Ensure some checks needed by ansi2knr itself.
5397
5398 for ac_header in string.h
5399 do :
5400   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5401 if test "x$ac_cv_header_string_h" = x""yes; then :
5402   cat >>confdefs.h <<_ACEOF
5403 #define HAVE_STRING_H 1
5404 _ACEOF
5405
5406 fi
5407
5408 done
5409
5410
5411 case `pwd` in
5412   *\ * | *\     *)
5413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5414 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5415 esac
5416
5417
5418
5419 macro_version='2.2.6b'
5420 macro_revision='1.3017'
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434 ltmain="$ac_aux_dir/ltmain.sh"
5435
5436 # Make sure we can run config.sub.
5437 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5438   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5441 $as_echo_n "checking build system type... " >&6; }
5442 if test "${ac_cv_build+set}" = set; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   ac_build_alias=$build_alias
5446 test "x$ac_build_alias" = x &&
5447   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5448 test "x$ac_build_alias" = x &&
5449   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5451   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5455 $as_echo "$ac_cv_build" >&6; }
5456 case $ac_cv_build in
5457 *-*-*) ;;
5458 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5459 esac
5460 build=$ac_cv_build
5461 ac_save_IFS=$IFS; IFS='-'
5462 set x $ac_cv_build
5463 shift
5464 build_cpu=$1
5465 build_vendor=$2
5466 shift; shift
5467 # Remember, the first character of IFS is used to create $*,
5468 # except with old shells:
5469 build_os=$*
5470 IFS=$ac_save_IFS
5471 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5472
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5475 $as_echo_n "checking host system type... " >&6; }
5476 if test "${ac_cv_host+set}" = set; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   if test "x$host_alias" = x; then
5480   ac_cv_host=$ac_cv_build
5481 else
5482   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5483     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5484 fi
5485
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5488 $as_echo "$ac_cv_host" >&6; }
5489 case $ac_cv_host in
5490 *-*-*) ;;
5491 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5492 esac
5493 host=$ac_cv_host
5494 ac_save_IFS=$IFS; IFS='-'
5495 set x $ac_cv_host
5496 shift
5497 host_cpu=$1
5498 host_vendor=$2
5499 shift; shift
5500 # Remember, the first character of IFS is used to create $*,
5501 # except with old shells:
5502 host_os=$*
5503 IFS=$ac_save_IFS
5504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5505
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5509 if test "${ac_cv_path_SED+set}" = set; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5513      for ac_i in 1 2 3 4 5 6 7; do
5514        ac_script="$ac_script$as_nl$ac_script"
5515      done
5516      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5517      { ac_script=; unset ac_script;}
5518      if test -z "$SED"; then
5519   ac_path_SED_found=false
5520   # Loop through the user's path and test for each of PROGNAME-LIST
5521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526     for ac_prog in sed gsed; do
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5529       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5530 # Check for GNU ac_path_SED and select it if it is found.
5531   # Check for GNU $ac_path_SED
5532 case `"$ac_path_SED" --version 2>&1` in
5533 *GNU*)
5534   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5535 *)
5536   ac_count=0
5537   $as_echo_n 0123456789 >"conftest.in"
5538   while :
5539   do
5540     cat "conftest.in" "conftest.in" >"conftest.tmp"
5541     mv "conftest.tmp" "conftest.in"
5542     cp "conftest.in" "conftest.nl"
5543     $as_echo '' >> "conftest.nl"
5544     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5545     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5546     as_fn_arith $ac_count + 1 && ac_count=$as_val
5547     if test $ac_count -gt ${ac_path_SED_max-0}; then
5548       # Best one so far, save it but keep looking for a better one
5549       ac_cv_path_SED="$ac_path_SED"
5550       ac_path_SED_max=$ac_count
5551     fi
5552     # 10*(2^10) chars as input seems more than enough
5553     test $ac_count -gt 10 && break
5554   done
5555   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5556 esac
5557
5558       $ac_path_SED_found && break 3
5559     done
5560   done
5561   done
5562 IFS=$as_save_IFS
5563   if test -z "$ac_cv_path_SED"; then
5564     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5565   fi
5566 else
5567   ac_cv_path_SED=$SED
5568 fi
5569
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5572 $as_echo "$ac_cv_path_SED" >&6; }
5573  SED="$ac_cv_path_SED"
5574   rm -f conftest.sed
5575
5576 test -z "$SED" && SED=sed
5577 Xsed="$SED -e 1s/^X//"
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5590 $as_echo_n "checking for fgrep... " >&6; }
5591 if test "${ac_cv_path_FGREP+set}" = set; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595    then ac_cv_path_FGREP="$GREP -F"
5596    else
5597      if test -z "$FGREP"; then
5598   ac_path_FGREP_found=false
5599   # Loop through the user's path and test for each of PROGNAME-LIST
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_prog in fgrep; do
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5608       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5609 # Check for GNU ac_path_FGREP and select it if it is found.
5610   # Check for GNU $ac_path_FGREP
5611 case `"$ac_path_FGREP" --version 2>&1` in
5612 *GNU*)
5613   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5614 *)
5615   ac_count=0
5616   $as_echo_n 0123456789 >"conftest.in"
5617   while :
5618   do
5619     cat "conftest.in" "conftest.in" >"conftest.tmp"
5620     mv "conftest.tmp" "conftest.in"
5621     cp "conftest.in" "conftest.nl"
5622     $as_echo 'FGREP' >> "conftest.nl"
5623     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625     as_fn_arith $ac_count + 1 && ac_count=$as_val
5626     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5627       # Best one so far, save it but keep looking for a better one
5628       ac_cv_path_FGREP="$ac_path_FGREP"
5629       ac_path_FGREP_max=$ac_count
5630     fi
5631     # 10*(2^10) chars as input seems more than enough
5632     test $ac_count -gt 10 && break
5633   done
5634   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635 esac
5636
5637       $ac_path_FGREP_found && break 3
5638     done
5639   done
5640   done
5641 IFS=$as_save_IFS
5642   if test -z "$ac_cv_path_FGREP"; then
5643     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5644   fi
5645 else
5646   ac_cv_path_FGREP=$FGREP
5647 fi
5648
5649    fi
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5652 $as_echo "$ac_cv_path_FGREP" >&6; }
5653  FGREP="$ac_cv_path_FGREP"
5654
5655
5656 test -z "$GREP" && GREP=grep
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 # Check whether --with-gnu-ld was given.
5677 if test "${with_gnu_ld+set}" = set; then :
5678   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5679 else
5680   with_gnu_ld=no
5681 fi
5682
5683 ac_prog=ld
5684 if test "$GCC" = yes; then
5685   # Check if gcc -print-prog-name=ld gives a path.
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5687 $as_echo_n "checking for ld used by $CC... " >&6; }
5688   case $host in
5689   *-*-mingw*)
5690     # gcc leaves a trailing carriage return which upsets mingw
5691     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5692   *)
5693     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5694   esac
5695   case $ac_prog in
5696     # Accept absolute paths.
5697     [\\/]* | ?:[\\/]*)
5698       re_direlt='/[^/][^/]*/\.\./'
5699       # Canonicalize the pathname of ld
5700       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5701       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5702         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5703       done
5704       test -z "$LD" && LD="$ac_prog"
5705       ;;
5706   "")
5707     # If it fails, then pretend we aren't using GCC.
5708     ac_prog=ld
5709     ;;
5710   *)
5711     # If it is relative, then search for the first ld in PATH.
5712     with_gnu_ld=unknown
5713     ;;
5714   esac
5715 elif test "$with_gnu_ld" = yes; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5717 $as_echo_n "checking for GNU ld... " >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5720 $as_echo_n "checking for non-GNU ld... " >&6; }
5721 fi
5722 if test "${lt_cv_path_LD+set}" = set; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   if test -z "$LD"; then
5726   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727   for ac_dir in $PATH; do
5728     IFS="$lt_save_ifs"
5729     test -z "$ac_dir" && ac_dir=.
5730     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731       lt_cv_path_LD="$ac_dir/$ac_prog"
5732       # Check to see if the program is GNU ld.  I'd rather use --version,
5733       # but apparently some variants of GNU ld only accept -v.
5734       # Break only if it was the GNU/non-GNU ld that we prefer.
5735       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736       *GNU* | *'with BFD'*)
5737         test "$with_gnu_ld" != no && break
5738         ;;
5739       *)
5740         test "$with_gnu_ld" != yes && break
5741         ;;
5742       esac
5743     fi
5744   done
5745   IFS="$lt_save_ifs"
5746 else
5747   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5748 fi
5749 fi
5750
5751 LD="$lt_cv_path_LD"
5752 if test -n "$LD"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5754 $as_echo "$LD" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5762 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5766 case `$LD -v 2>&1 </dev/null` in
5767 *GNU* | *'with BFD'*)
5768   lt_cv_prog_gnu_ld=yes
5769   ;;
5770 *)
5771   lt_cv_prog_gnu_ld=no
5772   ;;
5773 esac
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5777 with_gnu_ld=$lt_cv_prog_gnu_ld
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5789 if test "${lt_cv_path_NM+set}" = set; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   if test -n "$NM"; then
5793   # Let the user override the test.
5794   lt_cv_path_NM="$NM"
5795 else
5796   lt_nm_to_check="${ac_tool_prefix}nm"
5797   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798     lt_nm_to_check="$lt_nm_to_check nm"
5799   fi
5800   for lt_tmp_nm in $lt_nm_to_check; do
5801     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5803       IFS="$lt_save_ifs"
5804       test -z "$ac_dir" && ac_dir=.
5805       tmp_nm="$ac_dir/$lt_tmp_nm"
5806       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807         # Check to see if the nm accepts a BSD-compat flag.
5808         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809         #   nm: unknown option "B" ignored
5810         # Tru64's nm complains that /dev/null is an invalid object file
5811         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812         */dev/null* | *'Invalid file or object type'*)
5813           lt_cv_path_NM="$tmp_nm -B"
5814           break
5815           ;;
5816         *)
5817           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5818           */dev/null*)
5819             lt_cv_path_NM="$tmp_nm -p"
5820             break
5821             ;;
5822           *)
5823             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824             continue # so that we can try to find one that supports BSD flags
5825             ;;
5826           esac
5827           ;;
5828         esac
5829       fi
5830     done
5831     IFS="$lt_save_ifs"
5832   done
5833   : ${lt_cv_path_NM=no}
5834 fi
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5837 $as_echo "$lt_cv_path_NM" >&6; }
5838 if test "$lt_cv_path_NM" != "no"; then
5839   NM="$lt_cv_path_NM"
5840 else
5841   # Didn't find any BSD compatible name lister, look for dumpbin.
5842   if test -n "$ac_tool_prefix"; then
5843   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5844   do
5845     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$DUMPBIN"; then
5853   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 DUMPBIN=$ac_cv_prog_DUMPBIN
5873 if test -n "$DUMPBIN"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5875 $as_echo "$DUMPBIN" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882     test -n "$DUMPBIN" && break
5883   done
5884 fi
5885 if test -z "$DUMPBIN"; then
5886   ac_ct_DUMPBIN=$DUMPBIN
5887   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5888 do
5889   # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   if test -n "$ac_ct_DUMPBIN"; then
5897   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904     for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911   done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5917 if test -n "$ac_ct_DUMPBIN"; then
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5919 $as_echo "$ac_ct_DUMPBIN" >&6; }
5920 else
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925
5926   test -n "$ac_ct_DUMPBIN" && break
5927 done
5928
5929   if test "x$ac_ct_DUMPBIN" = x; then
5930     DUMPBIN=":"
5931   else
5932     case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938     DUMPBIN=$ac_ct_DUMPBIN
5939   fi
5940 fi
5941
5942
5943   if test "$DUMPBIN" != ":"; then
5944     NM="$DUMPBIN"
5945   fi
5946 fi
5947 test -z "$NM" && NM=nm
5948
5949
5950
5951
5952
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5955 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5956 if test "${lt_cv_nm_interface+set}" = set; then :
5957   $as_echo_n "(cached) " >&6
5958 else
5959   lt_cv_nm_interface="BSD nm"
5960   echo "int some_variable = 0;" > conftest.$ac_ext
5961   (eval echo "\"\$as_me:5961: $ac_compile\"" >&5)
5962   (eval "$ac_compile" 2>conftest.err)
5963   cat conftest.err >&5
5964   (eval echo "\"\$as_me:5964: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5965   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5966   cat conftest.err >&5
5967   (eval echo "\"\$as_me:5967: output\"" >&5)
5968   cat conftest.out >&5
5969   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5970     lt_cv_nm_interface="MS dumpbin"
5971   fi
5972   rm -f conftest*
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5975 $as_echo "$lt_cv_nm_interface" >&6; }
5976
5977 # find the maximum length of command line arguments
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983     i=0
5984   teststring="ABCD"
5985
5986   case $build_os in
5987   msdosdjgpp*)
5988     # On DJGPP, this test can blow up pretty badly due to problems in libc
5989     # (any single argument exceeding 2000 bytes causes a buffer overrun
5990     # during glob expansion).  Even if it were fixed, the result of this
5991     # check would be larger than it should be.
5992     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5993     ;;
5994
5995   gnu*)
5996     # Under GNU Hurd, this test is not required because there is
5997     # no limit to the length of command line arguments.
5998     # Libtool will interpret -1 as no limit whatsoever
5999     lt_cv_sys_max_cmd_len=-1;
6000     ;;
6001
6002   cygwin* | mingw* | cegcc*)
6003     # On Win9x/ME, this test blows up -- it succeeds, but takes
6004     # about 5 minutes as the teststring grows exponentially.
6005     # Worse, since 9x/ME are not pre-emptively multitasking,
6006     # you end up with a "frozen" computer, even though with patience
6007     # the test eventually succeeds (with a max line length of 256k).
6008     # Instead, let's just punt: use the minimum linelength reported by
6009     # all of the supported platforms: 8192 (on NT/2K/XP).
6010     lt_cv_sys_max_cmd_len=8192;
6011     ;;
6012
6013   amigaos*)
6014     # On AmigaOS with pdksh, this test takes hours, literally.
6015     # So we just punt and use a minimum line length of 8192.
6016     lt_cv_sys_max_cmd_len=8192;
6017     ;;
6018
6019   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6020     # This has been around since 386BSD, at least.  Likely further.
6021     if test -x /sbin/sysctl; then
6022       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6023     elif test -x /usr/sbin/sysctl; then
6024       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6025     else
6026       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6027     fi
6028     # And add a safety zone
6029     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6030     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6031     ;;
6032
6033   interix*)
6034     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6035     lt_cv_sys_max_cmd_len=196608
6036     ;;
6037
6038   osf*)
6039     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6040     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6041     # nice to cause kernel panics so lets avoid the loop below.
6042     # First set a reasonable default.
6043     lt_cv_sys_max_cmd_len=16384
6044     #
6045     if test -x /sbin/sysconfig; then
6046       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6047         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6048       esac
6049     fi
6050     ;;
6051   sco3.2v5*)
6052     lt_cv_sys_max_cmd_len=102400
6053     ;;
6054   sysv5* | sco5v6* | sysv4.2uw2*)
6055     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6056     if test -n "$kargmax"; then
6057       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6058     else
6059       lt_cv_sys_max_cmd_len=32768
6060     fi
6061     ;;
6062   *)
6063     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6064     if test -n "$lt_cv_sys_max_cmd_len"; then
6065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067     else
6068       # Make teststring a little bigger before we do anything with it.
6069       # a 1K string should be a reasonable start.
6070       for i in 1 2 3 4 5 6 7 8 ; do
6071         teststring=$teststring$teststring
6072       done
6073       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074       # If test is not a shell built-in, we'll probably end up computing a
6075       # maximum length that is only half of the actual maximum length, but
6076       # we can't tell.
6077       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6078                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6079               test $i != 17 # 1/2 MB should be enough
6080       do
6081         i=`expr $i + 1`
6082         teststring=$teststring$teststring
6083       done
6084       # Only check the string length outside the loop.
6085       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6086       teststring=
6087       # Add a significant safety factor because C++ compilers can tack on
6088       # massive amounts of additional arguments before passing them to the
6089       # linker.  It appears as though 1/2 is a usable value.
6090       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6091     fi
6092     ;;
6093   esac
6094
6095 fi
6096
6097 if test -n $lt_cv_sys_max_cmd_len ; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6102 $as_echo "none" >&6; }
6103 fi
6104 max_cmd_len=$lt_cv_sys_max_cmd_len
6105
6106
6107
6108
6109
6110
6111 : ${CP="cp -f"}
6112 : ${MV="mv -f"}
6113 : ${RM="rm -f"}
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6117 # Try some XSI features
6118 xsi_shell=no
6119 ( _lt_dummy="a/b/c"
6120   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6121       = c,a/b,, \
6122     && eval 'test $(( 1 + 1 )) -eq 2 \
6123     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6124   && xsi_shell=yes
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6126 $as_echo "$xsi_shell" >&6; }
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6131 lt_shell_append=no
6132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6133     >/dev/null 2>&1 \
6134   && lt_shell_append=yes
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6136 $as_echo "$lt_shell_append" >&6; }
6137
6138
6139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6140   lt_unset=unset
6141 else
6142   lt_unset=false
6143 fi
6144
6145
6146
6147
6148
6149 # test EBCDIC or ASCII
6150 case `echo X|tr X '\101'` in
6151  A) # ASCII based system
6152     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6153   lt_SP2NL='tr \040 \012'
6154   lt_NL2SP='tr \015\012 \040\040'
6155   ;;
6156  *) # EBCDIC based system
6157   lt_SP2NL='tr \100 \n'
6158   lt_NL2SP='tr \r\n \100\100'
6159   ;;
6160 esac
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6171 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6172 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6173   $as_echo_n "(cached) " >&6
6174 else
6175   lt_cv_ld_reload_flag='-r'
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6178 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6179 reload_flag=$lt_cv_ld_reload_flag
6180 case $reload_flag in
6181 "" | " "*) ;;
6182 *) reload_flag=" $reload_flag" ;;
6183 esac
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 case $host_os in
6186   darwin*)
6187     if test "$GCC" = yes; then
6188       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6189     else
6190       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191     fi
6192     ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 if test -n "$ac_tool_prefix"; then
6204   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211   if test -n "$OBJDUMP"; then
6212   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219     for ac_exec_ext in '' $ac_executable_extensions; do
6220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226   done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 OBJDUMP=$ac_cv_prog_OBJDUMP
6232 if test -n "$OBJDUMP"; then
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6234 $as_echo "$OBJDUMP" >&6; }
6235 else
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240
6241 fi
6242 if test -z "$ac_cv_prog_OBJDUMP"; then
6243   ac_ct_OBJDUMP=$OBJDUMP
6244   # Extract the first word of "objdump", so it can be a program name with args.
6245 set dummy objdump; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   if test -n "$ac_ct_OBJDUMP"; then
6252   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266   done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6272 if test -n "$ac_ct_OBJDUMP"; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6274 $as_echo "$ac_ct_OBJDUMP" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280   if test "x$ac_ct_OBJDUMP" = x; then
6281     OBJDUMP="false"
6282   else
6283     case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289     OBJDUMP=$ac_ct_OBJDUMP
6290   fi
6291 else
6292   OBJDUMP="$ac_cv_prog_OBJDUMP"
6293 fi
6294
6295 test -z "$OBJDUMP" && OBJDUMP=objdump
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6306 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6307 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310   lt_cv_file_magic_cmd='$MAGIC_CMD'
6311 lt_cv_file_magic_test_file=
6312 lt_cv_deplibs_check_method='unknown'
6313 # Need to set the preceding variable on all platforms that support
6314 # interlibrary dependencies.
6315 # 'none' -- dependencies not supported.
6316 # `unknown' -- same as none, but documents that we really don't know.
6317 # 'pass_all' -- all dependencies passed with no checks.
6318 # 'test_compile' -- check by making test program.
6319 # 'file_magic [[regex]]' -- check by looking for files in library path
6320 # which responds to the $file_magic_cmd with a given extended regex.
6321 # If you have `file' or equivalent on your system and you're not sure
6322 # whether `pass_all' will *always* work, you probably want this one.
6323
6324 case $host_os in
6325 aix[4-9]*)
6326   lt_cv_deplibs_check_method=pass_all
6327   ;;
6328
6329 beos*)
6330   lt_cv_deplibs_check_method=pass_all
6331   ;;
6332
6333 bsdi[45]*)
6334   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6335   lt_cv_file_magic_cmd='/usr/bin/file -L'
6336   lt_cv_file_magic_test_file=/shlib/libc.so
6337   ;;
6338
6339 cygwin*)
6340   # func_win32_libid is a shell function defined in ltmain.sh
6341   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6342   lt_cv_file_magic_cmd='func_win32_libid'
6343   ;;
6344
6345 mingw* | pw32*)
6346   # Base MSYS/MinGW do not provide the 'file' command needed by
6347   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6348   # unless we find 'file', for example because we are cross-compiling.
6349   if ( file / ) >/dev/null 2>&1; then
6350     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6351     lt_cv_file_magic_cmd='func_win32_libid'
6352   else
6353     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6354     lt_cv_file_magic_cmd='$OBJDUMP -f'
6355   fi
6356   ;;
6357
6358 cegcc)
6359   # use the weaker test based on 'objdump'. See mingw*.
6360   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6361   lt_cv_file_magic_cmd='$OBJDUMP -f'
6362   ;;
6363
6364 darwin* | rhapsody*)
6365   lt_cv_deplibs_check_method=pass_all
6366   ;;
6367
6368 freebsd* | dragonfly*)
6369   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6370     case $host_cpu in
6371     i*86 )
6372       # Not sure whether the presence of OpenBSD here was a mistake.
6373       # Let's accept both of them until this is cleared up.
6374       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6375       lt_cv_file_magic_cmd=/usr/bin/file
6376       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6377       ;;
6378     esac
6379   else
6380     lt_cv_deplibs_check_method=pass_all
6381   fi
6382   ;;
6383
6384 gnu*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 hpux10.20* | hpux11*)
6389   lt_cv_file_magic_cmd=/usr/bin/file
6390   case $host_cpu in
6391   ia64*)
6392     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6393     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6394     ;;
6395   hppa*64*)
6396     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]'
6397     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6398     ;;
6399   *)
6400     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6401     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6402     ;;
6403   esac
6404   ;;
6405
6406 interix[3-9]*)
6407   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6408   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6409   ;;
6410
6411 irix5* | irix6* | nonstopux*)
6412   case $LD in
6413   *-32|*"-32 ") libmagic=32-bit;;
6414   *-n32|*"-n32 ") libmagic=N32;;
6415   *-64|*"-64 ") libmagic=64-bit;;
6416   *) libmagic=never-match;;
6417   esac
6418   lt_cv_deplibs_check_method=pass_all
6419   ;;
6420
6421 # This must be Linux ELF.
6422 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6423   lt_cv_deplibs_check_method=pass_all
6424   ;;
6425
6426 netbsd* | netbsdelf*-gnu)
6427   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429   else
6430     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6431   fi
6432   ;;
6433
6434 newos6*)
6435   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6436   lt_cv_file_magic_cmd=/usr/bin/file
6437   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6438   ;;
6439
6440 *nto* | *qnx*)
6441   lt_cv_deplibs_check_method=pass_all
6442   ;;
6443
6444 openbsd*)
6445   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6446     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6447   else
6448     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6449   fi
6450   ;;
6451
6452 osf3* | osf4* | osf5*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 rdos*)
6457   lt_cv_deplibs_check_method=pass_all
6458   ;;
6459
6460 solaris*)
6461   lt_cv_deplibs_check_method=pass_all
6462   ;;
6463
6464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6465   lt_cv_deplibs_check_method=pass_all
6466   ;;
6467
6468 sysv4 | sysv4.3*)
6469   case $host_vendor in
6470   motorola)
6471     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]'
6472     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6473     ;;
6474   ncr)
6475     lt_cv_deplibs_check_method=pass_all
6476     ;;
6477   sequent)
6478     lt_cv_file_magic_cmd='/bin/file'
6479     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6480     ;;
6481   sni)
6482     lt_cv_file_magic_cmd='/bin/file'
6483     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6484     lt_cv_file_magic_test_file=/lib/libc.so
6485     ;;
6486   siemens)
6487     lt_cv_deplibs_check_method=pass_all
6488     ;;
6489   pc)
6490     lt_cv_deplibs_check_method=pass_all
6491     ;;
6492   esac
6493   ;;
6494
6495 tpf*)
6496   lt_cv_deplibs_check_method=pass_all
6497   ;;
6498 esac
6499
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6502 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6503 file_magic_cmd=$lt_cv_file_magic_cmd
6504 deplibs_check_method=$lt_cv_deplibs_check_method
6505 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518 if test -n "$ac_tool_prefix"; then
6519   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6520 set dummy ${ac_tool_prefix}ar; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_AR+set}" = set; then :
6524   $as_echo_n "(cached) " >&6
6525 else
6526   if test -n "$AR"; then
6527   ac_cv_prog_AR="$AR" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534     for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_prog_AR="${ac_tool_prefix}ar"
6537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541   done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 AR=$ac_cv_prog_AR
6547 if test -n "$AR"; then
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6549 $as_echo "$AR" >&6; }
6550 else
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555
6556 fi
6557 if test -z "$ac_cv_prog_AR"; then
6558   ac_ct_AR=$AR
6559   # Extract the first word of "ar", so it can be a program name with args.
6560 set dummy ar; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   if test -n "$ac_ct_AR"; then
6567   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574     for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_prog_ac_ct_AR="ar"
6577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581   done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6587 if test -n "$ac_ct_AR"; then
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6589 $as_echo "$ac_ct_AR" >&6; }
6590 else
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595   if test "x$ac_ct_AR" = x; then
6596     AR="false"
6597   else
6598     case $cross_compiling:$ac_tool_warned in
6599 yes:)
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6602 ac_tool_warned=yes ;;
6603 esac
6604     AR=$ac_ct_AR
6605   fi
6606 else
6607   AR="$ac_cv_prog_AR"
6608 fi
6609
6610 test -z "$AR" && AR=ar
6611 test -z "$AR_FLAGS" && AR_FLAGS=cru
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 if test -n "$ac_tool_prefix"; then
6624   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}strip; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_STRIP+set}" = set; then :
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$STRIP"; then
6632   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639     for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646   done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 STRIP=$ac_cv_prog_STRIP
6652 if test -n "$STRIP"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6654 $as_echo "$STRIP" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_STRIP"; then
6663   ac_ct_STRIP=$STRIP
6664   # Extract the first word of "strip", so it can be a program name with args.
6665 set dummy strip; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$ac_ct_STRIP"; then
6672   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_prog_ac_ct_STRIP="strip"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6692 if test -n "$ac_ct_STRIP"; then
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6694 $as_echo "$ac_ct_STRIP" >&6; }
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700   if test "x$ac_ct_STRIP" = x; then
6701     STRIP=":"
6702   else
6703     case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     STRIP=$ac_ct_STRIP
6710   fi
6711 else
6712   STRIP="$ac_cv_prog_STRIP"
6713 fi
6714
6715 test -z "$STRIP" && STRIP=:
6716
6717
6718
6719
6720
6721
6722 if test -n "$ac_tool_prefix"; then
6723   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   if test -n "$RANLIB"; then
6731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738     for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745   done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6753 $as_echo "$RANLIB" >&6; }
6754 else
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762   ac_ct_RANLIB=$RANLIB
6763   # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   if test -n "$ac_ct_RANLIB"; then
6771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_prog_ac_ct_RANLIB="ranlib"
6781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6793 $as_echo "$ac_ct_RANLIB" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799   if test "x$ac_ct_RANLIB" = x; then
6800     RANLIB=":"
6801   else
6802     case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     RANLIB=$ac_ct_RANLIB
6809   fi
6810 else
6811   RANLIB="$ac_cv_prog_RANLIB"
6812 fi
6813
6814 test -z "$RANLIB" && RANLIB=:
6815
6816
6817
6818
6819
6820
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6825
6826 if test -n "$RANLIB"; then
6827   case $host_os in
6828   openbsd*)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6830     ;;
6831   *)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6833     ;;
6834   esac
6835   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 # If no C compiler was specified, use CC.
6872 LTCC=${LTCC-"$CC"}
6873
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6876
6877 # Allow CC to be a program name with arguments.
6878 compiler=$CC
6879
6880
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6890
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6893
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900   symcode='[BCDT]'
6901   ;;
6902 cygwin* | mingw* | pw32* | cegcc*)
6903   symcode='[ABCDGISTW]'
6904   ;;
6905 hpux*)
6906   if test "$host_cpu" = ia64; then
6907     symcode='[ABCDEGRST]'
6908   fi
6909   ;;
6910 irix* | nonstopux*)
6911   symcode='[BCDEGRST]'
6912   ;;
6913 osf*)
6914   symcode='[BCDEGQRST]'
6915   ;;
6916 solaris*)
6917   symcode='[BDRT]'
6918   ;;
6919 sco3.2v5*)
6920   symcode='[DT]'
6921   ;;
6922 sysv4.2uw2*)
6923   symcode='[DT]'
6924   ;;
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926   symcode='[ABDT]'
6927   ;;
6928 sysv4)
6929   symcode='[DFNSTU]'
6930   ;;
6931 esac
6932
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936   symcode='[ABCDGIRSTW]' ;;
6937 esac
6938
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6943
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6946 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'"
6947
6948 # Handle CRLF in mingw tool chain
6949 opt_cr=
6950 case $build_os in
6951 mingw*)
6952   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6953   ;;
6954 esac
6955
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6958
6959   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960   symxfrm="\\1 $ac_symprfx\\2 \\2"
6961
6962   # Write the raw and C identifiers.
6963   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964     # Fake it for dumpbin and say T for any non-static function
6965     # and D for any global variable.
6966     # Also find C++ and __fastcall symbols from MSVC++,
6967     # which start with @ or ?.
6968     lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 "     {last_section=section; section=\$ 3};"\
6970 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 "     \$ 0!~/External *\|/{next};"\
6972 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 "     {if(hide[section]) next};"\
6974 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 "     ' prfx=^$ac_symprfx"
6979   else
6980     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6981   fi
6982
6983   # Check to see that the pipe works correctly.
6984   pipe_works=no
6985
6986   rm -f conftest*
6987   cat > conftest.$ac_ext <<_LT_EOF
6988 #ifdef __cplusplus
6989 extern "C" {
6990 #endif
6991 char nm_test_var;
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6994 #ifdef __cplusplus
6995 }
6996 #endif
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
6998 _LT_EOF
6999
7000   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004   test $ac_status = 0; }; then
7005     # Now try to grab the symbols.
7006     nlist=conftest.nm
7007     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7008   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7009   ac_status=$?
7010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011   test $ac_status = 0; } && test -s "$nlist"; then
7012       # Try sorting and uniquifying the output.
7013       if sort "$nlist" | uniq > "$nlist"T; then
7014         mv -f "$nlist"T "$nlist"
7015       else
7016         rm -f "$nlist"T
7017       fi
7018
7019       # Make sure that we snagged all the symbols we need.
7020       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022           cat <<_LT_EOF > conftest.$ac_ext
7023 #ifdef __cplusplus
7024 extern "C" {
7025 #endif
7026
7027 _LT_EOF
7028           # Now generate the symbol file.
7029           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7030
7031           cat <<_LT_EOF >> conftest.$ac_ext
7032
7033 /* The mapping between symbol names and symbols.  */
7034 const struct {
7035   const char *name;
7036   void       *address;
7037 }
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7039 {
7040   { "@PROGRAM@", (void *) 0 },
7041 _LT_EOF
7042           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043           cat <<\_LT_EOF >> conftest.$ac_ext
7044   {0, (void *) 0}
7045 };
7046
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050   return lt__PROGRAM__LTX_preloaded_symbols;
7051 }
7052 #endif
7053
7054 #ifdef __cplusplus
7055 }
7056 #endif
7057 _LT_EOF
7058           # Now try linking the two files.
7059           mv conftest.$ac_objext conftstm.$ac_objext
7060           lt_save_LIBS="$LIBS"
7061           lt_save_CFLAGS="$CFLAGS"
7062           LIBS="conftstm.$ac_objext"
7063           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7065   (eval $ac_link) 2>&5
7066   ac_status=$?
7067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7069             pipe_works=yes
7070           fi
7071           LIBS="$lt_save_LIBS"
7072           CFLAGS="$lt_save_CFLAGS"
7073         else
7074           echo "cannot find nm_test_func in $nlist" >&5
7075         fi
7076       else
7077         echo "cannot find nm_test_var in $nlist" >&5
7078       fi
7079     else
7080       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7081     fi
7082   else
7083     echo "$progname: failed program was:" >&5
7084     cat conftest.$ac_ext >&5
7085   fi
7086   rm -rf conftest* conftst*
7087
7088   # Do not use the global_symbol_pipe unless it works.
7089   if test "$pipe_works" = yes; then
7090     break
7091   else
7092     lt_cv_sys_global_symbol_pipe=
7093   fi
7094 done
7095
7096 fi
7097
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099   lt_cv_sys_global_symbol_to_cdecl=
7100 fi
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7103 $as_echo "failed" >&6; }
7104 else
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7106 $as_echo "ok" >&6; }
7107 fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then :
7132   enableval=$enable_libtool_lock;
7133 fi
7134
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7136
7137 # Some flags need to be propagated to the compiler or linker for good
7138 # libtool support.
7139 case $host in
7140 ia64-*-hpux*)
7141   # Find out which ABI we are using.
7142   echo 'int i;' > conftest.$ac_ext
7143   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7144   (eval $ac_compile) 2>&5
7145   ac_status=$?
7146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147   test $ac_status = 0; }; then
7148     case `/usr/bin/file conftest.$ac_objext` in
7149       *ELF-32*)
7150         HPUX_IA64_MODE="32"
7151         ;;
7152       *ELF-64*)
7153         HPUX_IA64_MODE="64"
7154         ;;
7155     esac
7156   fi
7157   rm -rf conftest*
7158   ;;
7159 *-*-irix6*)
7160   # Find out which ABI we are using.
7161   echo '#line 7161 "configure"' > conftest.$ac_ext
7162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7163   (eval $ac_compile) 2>&5
7164   ac_status=$?
7165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166   test $ac_status = 0; }; then
7167     if test "$lt_cv_prog_gnu_ld" = yes; then
7168       case `/usr/bin/file conftest.$ac_objext` in
7169         *32-bit*)
7170           LD="${LD-ld} -melf32bsmip"
7171           ;;
7172         *N32*)
7173           LD="${LD-ld} -melf32bmipn32"
7174           ;;
7175         *64-bit*)
7176           LD="${LD-ld} -melf64bmip"
7177         ;;
7178       esac
7179     else
7180       case `/usr/bin/file conftest.$ac_objext` in
7181         *32-bit*)
7182           LD="${LD-ld} -32"
7183           ;;
7184         *N32*)
7185           LD="${LD-ld} -n32"
7186           ;;
7187         *64-bit*)
7188           LD="${LD-ld} -64"
7189           ;;
7190       esac
7191     fi
7192   fi
7193   rm -rf conftest*
7194   ;;
7195
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198   # Find out which ABI we are using.
7199   echo 'int i;' > conftest.$ac_ext
7200   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204   test $ac_status = 0; }; then
7205     case `/usr/bin/file conftest.o` in
7206       *32-bit*)
7207         case $host in
7208           x86_64-*kfreebsd*-gnu)
7209             LD="${LD-ld} -m elf_i386_fbsd"
7210             ;;
7211           x86_64-*linux*)
7212             LD="${LD-ld} -m elf_i386"
7213             ;;
7214           ppc64-*linux*|powerpc64-*linux*)
7215             LD="${LD-ld} -m elf32ppclinux"
7216             ;;
7217           s390x-*linux*)
7218             LD="${LD-ld} -m elf_s390"
7219             ;;
7220           sparc64-*linux*)
7221             LD="${LD-ld} -m elf32_sparc"
7222             ;;
7223         esac
7224         ;;
7225       *64-bit*)
7226         case $host in
7227           x86_64-*kfreebsd*-gnu)
7228             LD="${LD-ld} -m elf_x86_64_fbsd"
7229             ;;
7230           x86_64-*linux*)
7231             LD="${LD-ld} -m elf_x86_64"
7232             ;;
7233           ppc*-*linux*|powerpc*-*linux*)
7234             LD="${LD-ld} -m elf64ppc"
7235             ;;
7236           s390*-*linux*|s390*-*tpf*)
7237             LD="${LD-ld} -m elf64_s390"
7238             ;;
7239           sparc*-*linux*)
7240             LD="${LD-ld} -m elf64_sparc"
7241             ;;
7242         esac
7243         ;;
7244     esac
7245   fi
7246   rm -rf conftest*
7247   ;;
7248
7249 *-*-sco3.2v5*)
7250   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251   SAVE_CFLAGS="$CFLAGS"
7252   CFLAGS="$CFLAGS -belf"
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7254 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263
7264      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266
7267 int
7268 main ()
7269 {
7270
7271   ;
7272   return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276   lt_cv_cc_needs_belf=yes
7277 else
7278   lt_cv_cc_needs_belf=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext \
7281     conftest$ac_exeext conftest.$ac_ext
7282      ac_ext=c
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7287
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7290 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7291   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7292     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7293     CFLAGS="$SAVE_CFLAGS"
7294   fi
7295   ;;
7296 sparc*-*solaris*)
7297   # Find out which ABI we are using.
7298   echo 'int i;' > conftest.$ac_ext
7299   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7300   (eval $ac_compile) 2>&5
7301   ac_status=$?
7302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303   test $ac_status = 0; }; then
7304     case `/usr/bin/file conftest.o` in
7305     *64-bit*)
7306       case $lt_cv_prog_gnu_ld in
7307       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7308       *)
7309         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310           LD="${LD-ld} -64"
7311         fi
7312         ;;
7313       esac
7314       ;;
7315     esac
7316   fi
7317   rm -rf conftest*
7318   ;;
7319 esac
7320
7321 need_locks="$enable_libtool_lock"
7322
7323
7324   case $host_os in
7325     rhapsody* | darwin*)
7326     if test -n "$ac_tool_prefix"; then
7327   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   if test -n "$DSYMUTIL"; then
7335   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7355 if test -n "$DSYMUTIL"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7357 $as_echo "$DSYMUTIL" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363
7364 fi
7365 if test -z "$ac_cv_prog_DSYMUTIL"; then
7366   ac_ct_DSYMUTIL=$DSYMUTIL
7367   # Extract the first word of "dsymutil", so it can be a program name with args.
7368 set dummy dsymutil; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7372   $as_echo_n "(cached) " >&6
7373 else
7374   if test -n "$ac_ct_DSYMUTIL"; then
7375   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382     for ac_exec_ext in '' $ac_executable_extensions; do
7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389   done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7395 if test -n "$ac_ct_DSYMUTIL"; then
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7397 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7398 else
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7401 fi
7402
7403   if test "x$ac_ct_DSYMUTIL" = x; then
7404     DSYMUTIL=":"
7405   else
7406     case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned=yes ;;
7411 esac
7412     DSYMUTIL=$ac_ct_DSYMUTIL
7413   fi
7414 else
7415   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7416 fi
7417
7418     if test -n "$ac_tool_prefix"; then
7419   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7424   $as_echo_n "(cached) " >&6
7425 else
7426   if test -n "$NMEDIT"; then
7427   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432   IFS=$as_save_IFS
7433   test -z "$as_dir" && as_dir=.
7434     for ac_exec_ext in '' $ac_executable_extensions; do
7435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438     break 2
7439   fi
7440 done
7441   done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 NMEDIT=$ac_cv_prog_NMEDIT
7447 if test -n "$NMEDIT"; then
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7449 $as_echo "$NMEDIT" >&6; }
7450 else
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455
7456 fi
7457 if test -z "$ac_cv_prog_NMEDIT"; then
7458   ac_ct_NMEDIT=$NMEDIT
7459   # Extract the first word of "nmedit", so it can be a program name with args.
7460 set dummy nmedit; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   if test -n "$ac_ct_NMEDIT"; then
7467   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474     for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481   done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7487 if test -n "$ac_ct_NMEDIT"; then
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7489 $as_echo "$ac_ct_NMEDIT" >&6; }
7490 else
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495   if test "x$ac_ct_NMEDIT" = x; then
7496     NMEDIT=":"
7497   else
7498     case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504     NMEDIT=$ac_ct_NMEDIT
7505   fi
7506 else
7507   NMEDIT="$ac_cv_prog_NMEDIT"
7508 fi
7509
7510     if test -n "$ac_tool_prefix"; then
7511   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_prog_LIPO+set}" = set; then :
7516   $as_echo_n "(cached) " >&6
7517 else
7518   if test -n "$LIPO"; then
7519   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526     for ac_exec_ext in '' $ac_executable_extensions; do
7527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533   done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 LIPO=$ac_cv_prog_LIPO
7539 if test -n "$LIPO"; then
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7541 $as_echo "$LIPO" >&6; }
7542 else
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546
7547
7548 fi
7549 if test -z "$ac_cv_prog_LIPO"; then
7550   ac_ct_LIPO=$LIPO
7551   # Extract the first word of "lipo", so it can be a program name with args.
7552 set dummy lipo; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   if test -n "$ac_ct_LIPO"; then
7559   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_prog_ac_ct_LIPO="lipo"
7569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573   done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7579 if test -n "$ac_ct_LIPO"; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7581 $as_echo "$ac_ct_LIPO" >&6; }
7582 else
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585 fi
7586
7587   if test "x$ac_ct_LIPO" = x; then
7588     LIPO=":"
7589   else
7590     case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned=yes ;;
7595 esac
7596     LIPO=$ac_ct_LIPO
7597   fi
7598 else
7599   LIPO="$ac_cv_prog_LIPO"
7600 fi
7601
7602     if test -n "$ac_tool_prefix"; then
7603   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}otool; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610   if test -n "$OTOOL"; then
7611   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 OTOOL=$ac_cv_prog_OTOOL
7631 if test -n "$OTOOL"; then
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7633 $as_echo "$OTOOL" >&6; }
7634 else
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639
7640 fi
7641 if test -z "$ac_cv_prog_OTOOL"; then
7642   ac_ct_OTOOL=$OTOOL
7643   # Extract the first word of "otool", so it can be a program name with args.
7644 set dummy otool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   if test -n "$ac_ct_OTOOL"; then
7651   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658     for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_prog_ac_ct_OTOOL="otool"
7661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665   done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7671 if test -n "$ac_ct_OTOOL"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7673 $as_echo "$ac_ct_OTOOL" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679   if test "x$ac_ct_OTOOL" = x; then
7680     OTOOL=":"
7681   else
7682     case $cross_compiling:$ac_tool_warned in
7683 yes:)
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7687 esac
7688     OTOOL=$ac_ct_OTOOL
7689   fi
7690 else
7691   OTOOL="$ac_cv_prog_OTOOL"
7692 fi
7693
7694     if test -n "$ac_tool_prefix"; then
7695   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702   if test -n "$OTOOL64"; then
7703   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710     for ac_exec_ext in '' $ac_executable_extensions; do
7711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714     break 2
7715   fi
7716 done
7717   done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 OTOOL64=$ac_cv_prog_OTOOL64
7723 if test -n "$OTOOL64"; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7725 $as_echo "$OTOOL64" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731
7732 fi
7733 if test -z "$ac_cv_prog_OTOOL64"; then
7734   ac_ct_OTOOL64=$OTOOL64
7735   # Extract the first word of "otool64", so it can be a program name with args.
7736 set dummy otool64; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   if test -n "$ac_ct_OTOOL64"; then
7743   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750     for ac_exec_ext in '' $ac_executable_extensions; do
7751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752     ac_cv_prog_ac_ct_OTOOL64="otool64"
7753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757   done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7763 if test -n "$ac_ct_OTOOL64"; then
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7765 $as_echo "$ac_ct_OTOOL64" >&6; }
7766 else
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771   if test "x$ac_ct_OTOOL64" = x; then
7772     OTOOL64=":"
7773   else
7774     case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780     OTOOL64=$ac_ct_OTOOL64
7781   fi
7782 else
7783   OTOOL64="$ac_cv_prog_OTOOL64"
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7813 $as_echo_n "checking for -single_module linker flag... " >&6; }
7814 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7815   $as_echo_n "(cached) " >&6
7816 else
7817   lt_cv_apple_cc_single_mod=no
7818       if test -z "${LT_MULTI_MODULE}"; then
7819         # By default we will add the -single_module flag. You can override
7820         # by either setting the environment variable LT_MULTI_MODULE
7821         # non-empty at configure time, or by adding -multi_module to the
7822         # link flags.
7823         rm -rf libconftest.dylib*
7824         echo "int foo(void){return 1;}" > conftest.c
7825         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7826 -dynamiclib -Wl,-single_module conftest.c" >&5
7827         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7828           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7829         _lt_result=$?
7830         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7831           lt_cv_apple_cc_single_mod=yes
7832         else
7833           cat conftest.err >&5
7834         fi
7835         rm -rf libconftest.dylib*
7836         rm -f conftest.*
7837       fi
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7842 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7843 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   lt_cv_ld_exported_symbols_list=no
7847       save_LDFLAGS=$LDFLAGS
7848       echo "_main" > conftest.sym
7849       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7850       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h.  */
7852
7853 int
7854 main ()
7855 {
7856
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862   lt_cv_ld_exported_symbols_list=yes
7863 else
7864   lt_cv_ld_exported_symbols_list=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext \
7867     conftest$ac_exeext conftest.$ac_ext
7868         LDFLAGS="$save_LDFLAGS"
7869
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7872 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7873     case $host_os in
7874     rhapsody* | darwin1.[012])
7875       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7876     darwin1.*)
7877       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7878     darwin*) # darwin 5.x on
7879       # if running on 10.5 or later, the deployment target defaults
7880       # to the OS version, if on x86, and 10.4, the deployment
7881       # target defaults to 10.4. Don't you love it?
7882       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7883         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7884           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7885         10.[012]*)
7886           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7887         10.*)
7888           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7889       esac
7890     ;;
7891   esac
7892     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7893       _lt_dar_single_mod='$single_module'
7894     fi
7895     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7896       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7897     else
7898       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7899     fi
7900     if test "$DSYMUTIL" != ":"; then
7901       _lt_dsymutil='~$DSYMUTIL $lib || :'
7902     else
7903       _lt_dsymutil=
7904     fi
7905     ;;
7906   esac
7907
7908 for ac_header in dlfcn.h
7909 do :
7910   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7911 "
7912 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7913   cat >>confdefs.h <<_ACEOF
7914 #define HAVE_DLFCN_H 1
7915 _ACEOF
7916
7917 fi
7918
7919 done
7920
7921
7922
7923 # Set options
7924
7925
7926
7927         enable_dlopen=no
7928
7929
7930   enable_win32_dll=no
7931
7932
7933
7934
7935
7936 # Check whether --with-pic was given.
7937 if test "${with_pic+set}" = set; then :
7938   withval=$with_pic; pic_mode="$withval"
7939 else
7940   pic_mode=default
7941 fi
7942
7943
7944 test -z "$pic_mode" && pic_mode=default
7945
7946
7947
7948
7949
7950
7951
7952   # Check whether --enable-fast-install was given.
7953 if test "${enable_fast_install+set}" = set; then :
7954   enableval=$enable_fast_install; p=${PACKAGE-default}
7955     case $enableval in
7956     yes) enable_fast_install=yes ;;
7957     no) enable_fast_install=no ;;
7958     *)
7959       enable_fast_install=no
7960       # Look at the argument we got.  We use all the common list separators.
7961       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7962       for pkg in $enableval; do
7963         IFS="$lt_save_ifs"
7964         if test "X$pkg" = "X$p"; then
7965           enable_fast_install=yes
7966         fi
7967       done
7968       IFS="$lt_save_ifs"
7969       ;;
7970     esac
7971 else
7972   enable_fast_install=yes
7973 fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 # This can be used to rebuild libtool when needed
7986 LIBTOOL_DEPS="$ltmain"
7987
7988 # Always use our own libtool.
7989 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015 test -z "$LN_S" && LN_S="ln -s"
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 if test -n "${ZSH_VERSION+set}" ; then
8031    setopt NO_GLOB_SUBST
8032 fi
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8035 $as_echo_n "checking for objdir... " >&6; }
8036 if test "${lt_cv_objdir+set}" = set; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   rm -f .libs 2>/dev/null
8040 mkdir .libs 2>/dev/null
8041 if test -d .libs; then
8042   lt_cv_objdir=.libs
8043 else
8044   # MS-DOS does not allow filenames that begin with a dot.
8045   lt_cv_objdir=_libs
8046 fi
8047 rmdir .libs 2>/dev/null
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8050 $as_echo "$lt_cv_objdir" >&6; }
8051 objdir=$lt_cv_objdir
8052
8053
8054
8055
8056
8057 cat >>confdefs.h <<_ACEOF
8058 #define LT_OBJDIR "$lt_cv_objdir/"
8059 _ACEOF
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077 case $host_os in
8078 aix3*)
8079   # AIX sometimes has problems with the GCC collect2 program.  For some
8080   # reason, if we set the COLLECT_NAMES environment variable, the problems
8081   # vanish in a puff of smoke.
8082   if test "X${COLLECT_NAMES+set}" != Xset; then
8083     COLLECT_NAMES=
8084     export COLLECT_NAMES
8085   fi
8086   ;;
8087 esac
8088
8089 # Sed substitution that helps us do robust quoting.  It backslashifies
8090 # metacharacters that are still active within double-quoted strings.
8091 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8092
8093 # Same as above, but do not quote variable references.
8094 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8095
8096 # Sed substitution to delay expansion of an escaped shell variable in a
8097 # double_quote_subst'ed string.
8098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8099
8100 # Sed substitution to delay expansion of an escaped single quote.
8101 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8102
8103 # Sed substitution to avoid accidental globbing in evaled expressions
8104 no_glob_subst='s/\*/\\\*/g'
8105
8106 # Global variables:
8107 ofile=libtool
8108 can_build_shared=yes
8109
8110 # All known linkers require a `.a' archive for static linking (except MSVC,
8111 # which needs '.lib').
8112 libext=a
8113
8114 with_gnu_ld="$lt_cv_prog_gnu_ld"
8115
8116 old_CC="$CC"
8117 old_CFLAGS="$CFLAGS"
8118
8119 # Set sane defaults for various variables
8120 test -z "$CC" && CC=cc
8121 test -z "$LTCC" && LTCC=$CC
8122 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8123 test -z "$LD" && LD=ld
8124 test -z "$ac_objext" && ac_objext=o
8125
8126 for cc_temp in $compiler""; do
8127   case $cc_temp in
8128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8130     \-*) ;;
8131     *) break;;
8132   esac
8133 done
8134 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8135
8136
8137 # Only perform the check for file, if the check method requires it
8138 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8139 case $deplibs_check_method in
8140 file_magic*)
8141   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8143 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8144 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147   case $MAGIC_CMD in
8148 [\\/*] |  ?:[\\/]*)
8149   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8150   ;;
8151 *)
8152   lt_save_MAGIC_CMD="$MAGIC_CMD"
8153   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8154   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8155   for ac_dir in $ac_dummy; do
8156     IFS="$lt_save_ifs"
8157     test -z "$ac_dir" && ac_dir=.
8158     if test -f $ac_dir/${ac_tool_prefix}file; then
8159       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8160       if test -n "$file_magic_test_file"; then
8161         case $deplibs_check_method in
8162         "file_magic "*)
8163           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8164           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8165           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8166             $EGREP "$file_magic_regex" > /dev/null; then
8167             :
8168           else
8169             cat <<_LT_EOF 1>&2
8170
8171 *** Warning: the command libtool uses to detect shared libraries,
8172 *** $file_magic_cmd, produces output that libtool cannot recognize.
8173 *** The result is that libtool may fail to recognize shared libraries
8174 *** as such.  This will affect the creation of libtool libraries that
8175 *** depend on shared libraries, but programs linked with such libtool
8176 *** libraries will work regardless of this problem.  Nevertheless, you
8177 *** may want to report the problem to your system manager and/or to
8178 *** bug-libtool@gnu.org
8179
8180 _LT_EOF
8181           fi ;;
8182         esac
8183       fi
8184       break
8185     fi
8186   done
8187   IFS="$lt_save_ifs"
8188   MAGIC_CMD="$lt_save_MAGIC_CMD"
8189   ;;
8190 esac
8191 fi
8192
8193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8194 if test -n "$MAGIC_CMD"; then
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8196 $as_echo "$MAGIC_CMD" >&6; }
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201
8202
8203
8204
8205
8206 if test -z "$lt_cv_path_MAGIC_CMD"; then
8207   if test -n "$ac_tool_prefix"; then
8208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8209 $as_echo_n "checking for file... " >&6; }
8210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   case $MAGIC_CMD in
8214 [\\/*] |  ?:[\\/]*)
8215   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8216   ;;
8217 *)
8218   lt_save_MAGIC_CMD="$MAGIC_CMD"
8219   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8220   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221   for ac_dir in $ac_dummy; do
8222     IFS="$lt_save_ifs"
8223     test -z "$ac_dir" && ac_dir=.
8224     if test -f $ac_dir/file; then
8225       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8226       if test -n "$file_magic_test_file"; then
8227         case $deplibs_check_method in
8228         "file_magic "*)
8229           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232             $EGREP "$file_magic_regex" > /dev/null; then
8233             :
8234           else
8235             cat <<_LT_EOF 1>&2
8236
8237 *** Warning: the command libtool uses to detect shared libraries,
8238 *** $file_magic_cmd, produces output that libtool cannot recognize.
8239 *** The result is that libtool may fail to recognize shared libraries
8240 *** as such.  This will affect the creation of libtool libraries that
8241 *** depend on shared libraries, but programs linked with such libtool
8242 *** libraries will work regardless of this problem.  Nevertheless, you
8243 *** may want to report the problem to your system manager and/or to
8244 *** bug-libtool@gnu.org
8245
8246 _LT_EOF
8247           fi ;;
8248         esac
8249       fi
8250       break
8251     fi
8252   done
8253   IFS="$lt_save_ifs"
8254   MAGIC_CMD="$lt_save_MAGIC_CMD"
8255   ;;
8256 esac
8257 fi
8258
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if test -n "$MAGIC_CMD"; then
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8262 $as_echo "$MAGIC_CMD" >&6; }
8263 else
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269   else
8270     MAGIC_CMD=:
8271   fi
8272 fi
8273
8274   fi
8275   ;;
8276 esac
8277
8278 # Use C for the default configuration in the libtool script
8279
8280 lt_save_CC="$CC"
8281 ac_ext=c
8282 ac_cpp='$CPP $CPPFLAGS'
8283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8286
8287
8288 # Source file extension for C test sources.
8289 ac_ext=c
8290
8291 # Object file extension for compiled C test sources.
8292 objext=o
8293 objext=$objext
8294
8295 # Code to be used in simple compile tests
8296 lt_simple_compile_test_code="int some_variable = 0;"
8297
8298 # Code to be used in simple link tests
8299 lt_simple_link_test_code='int main(){return(0);}'
8300
8301
8302
8303
8304
8305
8306
8307 # If no C compiler was specified, use CC.
8308 LTCC=${LTCC-"$CC"}
8309
8310 # If no C compiler flags were specified, use CFLAGS.
8311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8312
8313 # Allow CC to be a program name with arguments.
8314 compiler=$CC
8315
8316 # Save the default compiler, since it gets overwritten when the other
8317 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8318 compiler_DEFAULT=$CC
8319
8320 # save warnings/boilerplate of simple test code
8321 ac_outfile=conftest.$ac_objext
8322 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8324 _lt_compiler_boilerplate=`cat conftest.err`
8325 $RM conftest*
8326
8327 ac_outfile=conftest.$ac_objext
8328 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8330 _lt_linker_boilerplate=`cat conftest.err`
8331 $RM -r conftest*
8332
8333
8334 if test -n "$compiler"; then
8335
8336 lt_prog_compiler_no_builtin_flag=
8337
8338 if test "$GCC" = yes; then
8339   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8340
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8342 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8343 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   lt_cv_prog_compiler_rtti_exceptions=no
8347    ac_outfile=conftest.$ac_objext
8348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349    lt_compiler_flag="-fno-rtti -fno-exceptions"
8350    # Insert the option either (1) after the last *FLAGS variable, or
8351    # (2) before a word containing "conftest.", or (3) at the end.
8352    # Note that $ac_compile itself does not contain backslashes and begins
8353    # with a dollar sign (not a hyphen), so the echo should work correctly.
8354    # The option is referenced via a variable to avoid confusing sed.
8355    lt_compile=`echo "$ac_compile" | $SED \
8356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358    -e 's:$: $lt_compiler_flag:'`
8359    (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360    (eval "$lt_compile" 2>conftest.err)
8361    ac_status=$?
8362    cat conftest.err >&5
8363    echo "$as_me:8363: \$? = $ac_status" >&5
8364    if (exit $ac_status) && test -s "$ac_outfile"; then
8365      # The compiler can only warn and ignore the option if not recognized
8366      # So say no if there are warnings other than the usual output.
8367      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8368      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8370        lt_cv_prog_compiler_rtti_exceptions=yes
8371      fi
8372    fi
8373    $RM conftest*
8374
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8377 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8378
8379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8380     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8381 else
8382     :
8383 fi
8384
8385 fi
8386
8387
8388
8389
8390
8391
8392   lt_prog_compiler_wl=
8393 lt_prog_compiler_pic=
8394 lt_prog_compiler_static=
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8397 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8398
8399   if test "$GCC" = yes; then
8400     lt_prog_compiler_wl='-Wl,'
8401     lt_prog_compiler_static='-static'
8402
8403     case $host_os in
8404       aix*)
8405       # All AIX code is PIC.
8406       if test "$host_cpu" = ia64; then
8407         # AIX 5 now supports IA64 processor
8408         lt_prog_compiler_static='-Bstatic'
8409       fi
8410       ;;
8411
8412     amigaos*)
8413       case $host_cpu in
8414       powerpc)
8415             # see comment about AmigaOS4 .so support
8416             lt_prog_compiler_pic='-fPIC'
8417         ;;
8418       m68k)
8419             # FIXME: we need at least 68020 code to build shared libraries, but
8420             # adding the `-m68020' flag to GCC prevents building anything better,
8421             # like `-m68040'.
8422             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8423         ;;
8424       esac
8425       ;;
8426
8427     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8428       # PIC is the default for these OSes.
8429       ;;
8430
8431     mingw* | cygwin* | pw32* | os2* | cegcc*)
8432       # This hack is so that the source file can tell whether it is being
8433       # built for inclusion in a dll (and should export symbols for example).
8434       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8435       # (--disable-auto-import) libraries
8436       lt_prog_compiler_pic='-DDLL_EXPORT'
8437       ;;
8438
8439     darwin* | rhapsody*)
8440       # PIC is the default on this platform
8441       # Common symbols not allowed in MH_DYLIB files
8442       lt_prog_compiler_pic='-fno-common'
8443       ;;
8444
8445     hpux*)
8446       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8447       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8448       # sets the default TLS model and affects inlining.
8449       case $host_cpu in
8450       hppa*64*)
8451         # +Z the default
8452         ;;
8453       *)
8454         lt_prog_compiler_pic='-fPIC'
8455         ;;
8456       esac
8457       ;;
8458
8459     interix[3-9]*)
8460       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8461       # Instead, we relocate shared libraries at runtime.
8462       ;;
8463
8464     msdosdjgpp*)
8465       # Just because we use GCC doesn't mean we suddenly get shared libraries
8466       # on systems that don't support them.
8467       lt_prog_compiler_can_build_shared=no
8468       enable_shared=no
8469       ;;
8470
8471     *nto* | *qnx*)
8472       # QNX uses GNU C++, but need to define -shared option too, otherwise
8473       # it will coredump.
8474       lt_prog_compiler_pic='-fPIC -shared'
8475       ;;
8476
8477     sysv4*MP*)
8478       if test -d /usr/nec; then
8479         lt_prog_compiler_pic=-Kconform_pic
8480       fi
8481       ;;
8482
8483     *)
8484       lt_prog_compiler_pic='-fPIC'
8485       ;;
8486     esac
8487   else
8488     # PORTME Check for flag to pass linker flags through the system compiler.
8489     case $host_os in
8490     aix*)
8491       lt_prog_compiler_wl='-Wl,'
8492       if test "$host_cpu" = ia64; then
8493         # AIX 5 now supports IA64 processor
8494         lt_prog_compiler_static='-Bstatic'
8495       else
8496         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8497       fi
8498       ;;
8499
8500     mingw* | cygwin* | pw32* | os2* | cegcc*)
8501       # This hack is so that the source file can tell whether it is being
8502       # built for inclusion in a dll (and should export symbols for example).
8503       lt_prog_compiler_pic='-DDLL_EXPORT'
8504       ;;
8505
8506     hpux9* | hpux10* | hpux11*)
8507       lt_prog_compiler_wl='-Wl,'
8508       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509       # not for PA HP-UX.
8510       case $host_cpu in
8511       hppa*64*|ia64*)
8512         # +Z the default
8513         ;;
8514       *)
8515         lt_prog_compiler_pic='+Z'
8516         ;;
8517       esac
8518       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8519       lt_prog_compiler_static='${wl}-a ${wl}archive'
8520       ;;
8521
8522     irix5* | irix6* | nonstopux*)
8523       lt_prog_compiler_wl='-Wl,'
8524       # PIC (with -KPIC) is the default.
8525       lt_prog_compiler_static='-non_shared'
8526       ;;
8527
8528     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8529       case $cc_basename in
8530       # old Intel for x86_64 which still supported -KPIC.
8531       ecc*)
8532         lt_prog_compiler_wl='-Wl,'
8533         lt_prog_compiler_pic='-KPIC'
8534         lt_prog_compiler_static='-static'
8535         ;;
8536       # icc used to be incompatible with GCC.
8537       # ICC 10 doesn't accept -KPIC any more.
8538       icc* | ifort*)
8539         lt_prog_compiler_wl='-Wl,'
8540         lt_prog_compiler_pic='-fPIC'
8541         lt_prog_compiler_static='-static'
8542         ;;
8543       # Lahey Fortran 8.1.
8544       lf95*)
8545         lt_prog_compiler_wl='-Wl,'
8546         lt_prog_compiler_pic='--shared'
8547         lt_prog_compiler_static='--static'
8548         ;;
8549       pgcc* | pgf77* | pgf90* | pgf95*)
8550         # Portland Group compilers (*not* the Pentium gcc compiler,
8551         # which looks to be a dead project)
8552         lt_prog_compiler_wl='-Wl,'
8553         lt_prog_compiler_pic='-fpic'
8554         lt_prog_compiler_static='-Bstatic'
8555         ;;
8556       ccc*)
8557         lt_prog_compiler_wl='-Wl,'
8558         # All Alpha code is PIC.
8559         lt_prog_compiler_static='-non_shared'
8560         ;;
8561       xl*)
8562         # IBM XL C 8.0/Fortran 10.1 on PPC
8563         lt_prog_compiler_wl='-Wl,'
8564         lt_prog_compiler_pic='-qpic'
8565         lt_prog_compiler_static='-qstaticlink'
8566         ;;
8567       *)
8568         case `$CC -V 2>&1 | sed 5q` in
8569         *Sun\ C*)
8570           # Sun C 5.9
8571           lt_prog_compiler_pic='-KPIC'
8572           lt_prog_compiler_static='-Bstatic'
8573           lt_prog_compiler_wl='-Wl,'
8574           ;;
8575         *Sun\ F*)
8576           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8577           lt_prog_compiler_pic='-KPIC'
8578           lt_prog_compiler_static='-Bstatic'
8579           lt_prog_compiler_wl=''
8580           ;;
8581         esac
8582         ;;
8583       esac
8584       ;;
8585
8586     newsos6)
8587       lt_prog_compiler_pic='-KPIC'
8588       lt_prog_compiler_static='-Bstatic'
8589       ;;
8590
8591     *nto* | *qnx*)
8592       # QNX uses GNU C++, but need to define -shared option too, otherwise
8593       # it will coredump.
8594       lt_prog_compiler_pic='-fPIC -shared'
8595       ;;
8596
8597     osf3* | osf4* | osf5*)
8598       lt_prog_compiler_wl='-Wl,'
8599       # All OSF/1 code is PIC.
8600       lt_prog_compiler_static='-non_shared'
8601       ;;
8602
8603     rdos*)
8604       lt_prog_compiler_static='-non_shared'
8605       ;;
8606
8607     solaris*)
8608       lt_prog_compiler_pic='-KPIC'
8609       lt_prog_compiler_static='-Bstatic'
8610       case $cc_basename in
8611       f77* | f90* | f95*)
8612         lt_prog_compiler_wl='-Qoption ld ';;
8613       *)
8614         lt_prog_compiler_wl='-Wl,';;
8615       esac
8616       ;;
8617
8618     sunos4*)
8619       lt_prog_compiler_wl='-Qoption ld '
8620       lt_prog_compiler_pic='-PIC'
8621       lt_prog_compiler_static='-Bstatic'
8622       ;;
8623
8624     sysv4 | sysv4.2uw2* | sysv4.3*)
8625       lt_prog_compiler_wl='-Wl,'
8626       lt_prog_compiler_pic='-KPIC'
8627       lt_prog_compiler_static='-Bstatic'
8628       ;;
8629
8630     sysv4*MP*)
8631       if test -d /usr/nec ;then
8632         lt_prog_compiler_pic='-Kconform_pic'
8633         lt_prog_compiler_static='-Bstatic'
8634       fi
8635       ;;
8636
8637     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638       lt_prog_compiler_wl='-Wl,'
8639       lt_prog_compiler_pic='-KPIC'
8640       lt_prog_compiler_static='-Bstatic'
8641       ;;
8642
8643     unicos*)
8644       lt_prog_compiler_wl='-Wl,'
8645       lt_prog_compiler_can_build_shared=no
8646       ;;
8647
8648     uts4*)
8649       lt_prog_compiler_pic='-pic'
8650       lt_prog_compiler_static='-Bstatic'
8651       ;;
8652
8653     *)
8654       lt_prog_compiler_can_build_shared=no
8655       ;;
8656     esac
8657   fi
8658
8659 case $host_os in
8660   # For platforms which do not support PIC, -DPIC is meaningless:
8661   *djgpp*)
8662     lt_prog_compiler_pic=
8663     ;;
8664   *)
8665     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8666     ;;
8667 esac
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8669 $as_echo "$lt_prog_compiler_pic" >&6; }
8670
8671
8672
8673
8674
8675
8676 #
8677 # Check to make sure the PIC flag actually works.
8678 #
8679 if test -n "$lt_prog_compiler_pic"; then
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8681 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8682 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8683   $as_echo_n "(cached) " >&6
8684 else
8685   lt_cv_prog_compiler_pic_works=no
8686    ac_outfile=conftest.$ac_objext
8687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8689    # Insert the option either (1) after the last *FLAGS variable, or
8690    # (2) before a word containing "conftest.", or (3) at the end.
8691    # Note that $ac_compile itself does not contain backslashes and begins
8692    # with a dollar sign (not a hyphen), so the echo should work correctly.
8693    # The option is referenced via a variable to avoid confusing sed.
8694    lt_compile=`echo "$ac_compile" | $SED \
8695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697    -e 's:$: $lt_compiler_flag:'`
8698    (eval echo "\"\$as_me:8698: $lt_compile\"" >&5)
8699    (eval "$lt_compile" 2>conftest.err)
8700    ac_status=$?
8701    cat conftest.err >&5
8702    echo "$as_me:8702: \$? = $ac_status" >&5
8703    if (exit $ac_status) && test -s "$ac_outfile"; then
8704      # The compiler can only warn and ignore the option if not recognized
8705      # So say no if there are warnings other than the usual output.
8706      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8707      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8708      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8709        lt_cv_prog_compiler_pic_works=yes
8710      fi
8711    fi
8712    $RM conftest*
8713
8714 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8716 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8717
8718 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8719     case $lt_prog_compiler_pic in
8720      "" | " "*) ;;
8721      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8722      esac
8723 else
8724     lt_prog_compiler_pic=
8725      lt_prog_compiler_can_build_shared=no
8726 fi
8727
8728 fi
8729
8730
8731
8732
8733
8734
8735 #
8736 # Check to make sure the static flag actually works.
8737 #
8738 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8741 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   lt_cv_prog_compiler_static_works=no
8745    save_LDFLAGS="$LDFLAGS"
8746    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8747    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8749      # The linker can only warn and ignore the option if not recognized
8750      # So say no if there are warnings
8751      if test -s conftest.err; then
8752        # Append any errors to the config.log.
8753        cat conftest.err 1>&5
8754        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756        if diff conftest.exp conftest.er2 >/dev/null; then
8757          lt_cv_prog_compiler_static_works=yes
8758        fi
8759      else
8760        lt_cv_prog_compiler_static_works=yes
8761      fi
8762    fi
8763    $RM -r conftest*
8764    LDFLAGS="$save_LDFLAGS"
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8771     :
8772 else
8773     lt_prog_compiler_static=
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8784 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   lt_cv_prog_compiler_c_o=no
8788    $RM -r conftest 2>/dev/null
8789    mkdir conftest
8790    cd conftest
8791    mkdir out
8792    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8793
8794    lt_compiler_flag="-o out/conftest2.$ac_objext"
8795    # Insert the option either (1) after the last *FLAGS variable, or
8796    # (2) before a word containing "conftest.", or (3) at the end.
8797    # Note that $ac_compile itself does not contain backslashes and begins
8798    # with a dollar sign (not a hyphen), so the echo should work correctly.
8799    lt_compile=`echo "$ac_compile" | $SED \
8800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802    -e 's:$: $lt_compiler_flag:'`
8803    (eval echo "\"\$as_me:8803: $lt_compile\"" >&5)
8804    (eval "$lt_compile" 2>out/conftest.err)
8805    ac_status=$?
8806    cat out/conftest.err >&5
8807    echo "$as_me:8807: \$? = $ac_status" >&5
8808    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8809    then
8810      # The compiler can only warn and ignore the option if not recognized
8811      # So say no if there are warnings
8812      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8813      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815        lt_cv_prog_compiler_c_o=yes
8816      fi
8817    fi
8818    chmod u+w . 2>&5
8819    $RM conftest*
8820    # SGI C++ compiler will create directory out/ii_files/ for
8821    # template instantiation
8822    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8823    $RM out/* && rmdir out
8824    cd ..
8825    $RM -r conftest
8826    $RM conftest*
8827
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8831
8832
8833
8834
8835
8836
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8839 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   lt_cv_prog_compiler_c_o=no
8843    $RM -r conftest 2>/dev/null
8844    mkdir conftest
8845    cd conftest
8846    mkdir out
8847    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849    lt_compiler_flag="-o out/conftest2.$ac_objext"
8850    # Insert the option either (1) after the last *FLAGS variable, or
8851    # (2) before a word containing "conftest.", or (3) at the end.
8852    # Note that $ac_compile itself does not contain backslashes and begins
8853    # with a dollar sign (not a hyphen), so the echo should work correctly.
8854    lt_compile=`echo "$ac_compile" | $SED \
8855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857    -e 's:$: $lt_compiler_flag:'`
8858    (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859    (eval "$lt_compile" 2>out/conftest.err)
8860    ac_status=$?
8861    cat out/conftest.err >&5
8862    echo "$as_me:8862: \$? = $ac_status" >&5
8863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864    then
8865      # The compiler can only warn and ignore the option if not recognized
8866      # So say no if there are warnings
8867      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8868      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870        lt_cv_prog_compiler_c_o=yes
8871      fi
8872    fi
8873    chmod u+w . 2>&5
8874    $RM conftest*
8875    # SGI C++ compiler will create directory out/ii_files/ for
8876    # template instantiation
8877    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878    $RM out/* && rmdir out
8879    cd ..
8880    $RM -r conftest
8881    $RM conftest*
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888
8889
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892   # do not overwrite the value of need_locks provided by the user
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8894 $as_echo_n "checking if we can lock with hard links... " >&6; }
8895   hard_links=yes
8896   $RM conftest*
8897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898   touch conftest.a
8899   ln conftest.a conftest.b 2>&5 || hard_links=no
8900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8902 $as_echo "$hard_links" >&6; }
8903   if test "$hard_links" = no; then
8904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8906     need_locks=warn
8907   fi
8908 else
8909   need_locks=no
8910 fi
8911
8912
8913
8914
8915
8916
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8919
8920   runpath_var=
8921   allow_undefined_flag=
8922   always_export_symbols=no
8923   archive_cmds=
8924   archive_expsym_cmds=
8925   compiler_needs_object=no
8926   enable_shared_with_static_runtimes=no
8927   export_dynamic_flag_spec=
8928   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8929   hardcode_automatic=no
8930   hardcode_direct=no
8931   hardcode_direct_absolute=no
8932   hardcode_libdir_flag_spec=
8933   hardcode_libdir_flag_spec_ld=
8934   hardcode_libdir_separator=
8935   hardcode_minus_L=no
8936   hardcode_shlibpath_var=unsupported
8937   inherit_rpath=no
8938   link_all_deplibs=unknown
8939   module_cmds=
8940   module_expsym_cmds=
8941   old_archive_from_new_cmds=
8942   old_archive_from_expsyms_cmds=
8943   thread_safe_flag_spec=
8944   whole_archive_flag_spec=
8945   # include_expsyms should be a list of space-separated symbols to be *always*
8946   # included in the symbol list
8947   include_expsyms=
8948   # exclude_expsyms can be an extended regexp of symbols to exclude
8949   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8950   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8951   # as well as any symbol that contains `d'.
8952   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8953   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8954   # platforms (ab)use it in PIC code, but their linkers get confused if
8955   # the symbol is explicitly referenced.  Since portable code cannot
8956   # rely on this symbol name, it's probably fine to never include it in
8957   # preloaded symbol tables.
8958   # Exclude shared library initialization/finalization symbols.
8959   extract_expsyms_cmds=
8960
8961   case $host_os in
8962   cygwin* | mingw* | pw32* | cegcc*)
8963     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964     # When not using gcc, we currently assume that we are using
8965     # Microsoft Visual C++.
8966     if test "$GCC" != yes; then
8967       with_gnu_ld=no
8968     fi
8969     ;;
8970   interix*)
8971     # we just hope/assume this is gcc and not c89 (= MSVC++)
8972     with_gnu_ld=yes
8973     ;;
8974   openbsd*)
8975     with_gnu_ld=no
8976     ;;
8977   linux* | k*bsd*-gnu)
8978     link_all_deplibs=no
8979     ;;
8980   esac
8981
8982   ld_shlibs=yes
8983   if test "$with_gnu_ld" = yes; then
8984     # If archive_cmds runs LD, not CC, wlarc should be empty
8985     wlarc='${wl}'
8986
8987     # Set some defaults for GNU ld with shared library support. These
8988     # are reset later if shared libraries are not supported. Putting them
8989     # here allows them to be overridden if necessary.
8990     runpath_var=LD_RUN_PATH
8991     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992     export_dynamic_flag_spec='${wl}--export-dynamic'
8993     # ancient GNU ld didn't support --whole-archive et. al.
8994     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8995       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8996     else
8997       whole_archive_flag_spec=
8998     fi
8999     supports_anon_versioning=no
9000     case `$LD -v 2>&1` in
9001       *GNU\ gold*) supports_anon_versioning=yes ;;
9002       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9003       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9004       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9005       *\ 2.11.*) ;; # other 2.11 versions
9006       *) supports_anon_versioning=yes ;;
9007     esac
9008
9009     # See if GNU ld supports shared libraries.
9010     case $host_os in
9011     aix[3-9]*)
9012       # On AIX/PPC, the GNU linker is very broken
9013       if test "$host_cpu" != ia64; then
9014         ld_shlibs=no
9015         cat <<_LT_EOF 1>&2
9016
9017 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9018 *** to be unable to reliably create shared libraries on AIX.
9019 *** Therefore, libtool is disabling shared libraries support.  If you
9020 *** really care for shared libraries, you may want to modify your PATH
9021 *** so that a non-GNU linker is found, and then restart.
9022
9023 _LT_EOF
9024       fi
9025       ;;
9026
9027     amigaos*)
9028       case $host_cpu in
9029       powerpc)
9030             # see comment about AmigaOS4 .so support
9031             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032             archive_expsym_cmds=''
9033         ;;
9034       m68k)
9035             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)'
9036             hardcode_libdir_flag_spec='-L$libdir'
9037             hardcode_minus_L=yes
9038         ;;
9039       esac
9040       ;;
9041
9042     beos*)
9043       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9044         allow_undefined_flag=unsupported
9045         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9046         # support --undefined.  This deserves some investigation.  FIXME
9047         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048       else
9049         ld_shlibs=no
9050       fi
9051       ;;
9052
9053     cygwin* | mingw* | pw32* | cegcc*)
9054       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9055       # as there is no search path for DLLs.
9056       hardcode_libdir_flag_spec='-L$libdir'
9057       allow_undefined_flag=unsupported
9058       always_export_symbols=no
9059       enable_shared_with_static_runtimes=yes
9060       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9061
9062       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9064         # If the export-symbols file already is a .def file (1st line
9065         # is EXPORTS), use it as is; otherwise, prepend...
9066         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9067           cp $export_symbols $output_objdir/$soname.def;
9068         else
9069           echo EXPORTS > $output_objdir/$soname.def;
9070           cat $export_symbols >> $output_objdir/$soname.def;
9071         fi~
9072         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9073       else
9074         ld_shlibs=no
9075       fi
9076       ;;
9077
9078     interix[3-9]*)
9079       hardcode_direct=no
9080       hardcode_shlibpath_var=no
9081       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9082       export_dynamic_flag_spec='${wl}-E'
9083       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9084       # Instead, shared libraries are loaded at an image base (0x10000000 by
9085       # default) and relocated if they conflict, which is a slow very memory
9086       # consuming and fragmenting process.  To avoid this, we pick a random,
9087       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9088       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9089       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9090       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'
9091       ;;
9092
9093     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9094       tmp_diet=no
9095       if test "$host_os" = linux-dietlibc; then
9096         case $cc_basename in
9097           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9098         esac
9099       fi
9100       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9101          && test "$tmp_diet" = no
9102       then
9103         tmp_addflag=
9104         tmp_sharedflag='-shared'
9105         case $cc_basename,$host_cpu in
9106         pgcc*)                          # Portland Group C compiler
9107           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'
9108           tmp_addflag=' $pic_flag'
9109           ;;
9110         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9111           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'
9112           tmp_addflag=' $pic_flag -Mnomain' ;;
9113         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9114           tmp_addflag=' -i_dynamic' ;;
9115         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9116           tmp_addflag=' -i_dynamic -nofor_main' ;;
9117         ifc* | ifort*)                  # Intel Fortran compiler
9118           tmp_addflag=' -nofor_main' ;;
9119         lf95*)                          # Lahey Fortran 8.1
9120           whole_archive_flag_spec=
9121           tmp_sharedflag='--shared' ;;
9122         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9123           tmp_sharedflag='-qmkshrobj'
9124           tmp_addflag= ;;
9125         esac
9126         case `$CC -V 2>&1 | sed 5q` in
9127         *Sun\ C*)                       # Sun C 5.9
9128           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'
9129           compiler_needs_object=yes
9130           tmp_sharedflag='-G' ;;
9131         *Sun\ F*)                       # Sun Fortran 8.3
9132           tmp_sharedflag='-G' ;;
9133         esac
9134         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135
9136         if test "x$supports_anon_versioning" = xyes; then
9137           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9138             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9139             echo "local: *; };" >> $output_objdir/$libname.ver~
9140             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9141         fi
9142
9143         case $cc_basename in
9144         xlf*)
9145           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9146           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9147           hardcode_libdir_flag_spec=
9148           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9149           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9150           if test "x$supports_anon_versioning" = xyes; then
9151             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153               echo "local: *; };" >> $output_objdir/$libname.ver~
9154               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9155           fi
9156           ;;
9157         esac
9158       else
9159         ld_shlibs=no
9160       fi
9161       ;;
9162
9163     netbsd* | netbsdelf*-gnu)
9164       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9165         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9166         wlarc=
9167       else
9168         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170       fi
9171       ;;
9172
9173     solaris*)
9174       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9175         ld_shlibs=no
9176         cat <<_LT_EOF 1>&2
9177
9178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9179 *** create shared libraries on Solaris systems.  Therefore, libtool
9180 *** is disabling shared libraries support.  We urge you to upgrade GNU
9181 *** binutils to release 2.9.1 or newer.  Another option is to modify
9182 *** your PATH or compiler configuration so that the native linker is
9183 *** used, and then restart.
9184
9185 _LT_EOF
9186       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9187         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9188         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9189       else
9190         ld_shlibs=no
9191       fi
9192       ;;
9193
9194     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9195       case `$LD -v 2>&1` in
9196         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9197         ld_shlibs=no
9198         cat <<_LT_EOF 1>&2
9199
9200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9201 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9202 *** is disabling shared libraries support.  We urge you to upgrade GNU
9203 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9204 *** your PATH or compiler configuration so that the native linker is
9205 *** used, and then restart.
9206
9207 _LT_EOF
9208         ;;
9209         *)
9210           # For security reasons, it is highly recommended that you always
9211           # use absolute paths for naming shared libraries, and exclude the
9212           # DT_RUNPATH tag from executables and libraries.  But doing so
9213           # requires that you compile everything twice, which is a pain.
9214           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9215             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9218           else
9219             ld_shlibs=no
9220           fi
9221         ;;
9222       esac
9223       ;;
9224
9225     sunos4*)
9226       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227       wlarc=
9228       hardcode_direct=yes
9229       hardcode_shlibpath_var=no
9230       ;;
9231
9232     *)
9233       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9236       else
9237         ld_shlibs=no
9238       fi
9239       ;;
9240     esac
9241
9242     if test "$ld_shlibs" = no; then
9243       runpath_var=
9244       hardcode_libdir_flag_spec=
9245       export_dynamic_flag_spec=
9246       whole_archive_flag_spec=
9247     fi
9248   else
9249     # PORTME fill in a description of your system's linker (not GNU ld)
9250     case $host_os in
9251     aix3*)
9252       allow_undefined_flag=unsupported
9253       always_export_symbols=yes
9254       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'
9255       # Note: this linker hardcodes the directories in LIBPATH if there
9256       # are no directories specified by -L.
9257       hardcode_minus_L=yes
9258       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9259         # Neither direct hardcoding nor static linking is supported with a
9260         # broken collect2.
9261         hardcode_direct=unsupported
9262       fi
9263       ;;
9264
9265     aix[4-9]*)
9266       if test "$host_cpu" = ia64; then
9267         # On IA64, the linker does run time linking by default, so we don't
9268         # have to do anything special.
9269         aix_use_runtimelinking=no
9270         exp_sym_flag='-Bexport'
9271         no_entry_flag=""
9272       else
9273         # If we're using GNU nm, then we don't want the "-C" option.
9274         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9275         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9276           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'
9277         else
9278           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'
9279         fi
9280         aix_use_runtimelinking=no
9281
9282         # Test if we are trying to use run time linking or normal
9283         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9284         # need to do runtime linking.
9285         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9286           for ld_flag in $LDFLAGS; do
9287           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9288             aix_use_runtimelinking=yes
9289             break
9290           fi
9291           done
9292           ;;
9293         esac
9294
9295         exp_sym_flag='-bexport'
9296         no_entry_flag='-bnoentry'
9297       fi
9298
9299       # When large executables or shared objects are built, AIX ld can
9300       # have problems creating the table of contents.  If linking a library
9301       # or program results in "error TOC overflow" add -mminimal-toc to
9302       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9303       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9304
9305       archive_cmds=''
9306       hardcode_direct=yes
9307       hardcode_direct_absolute=yes
9308       hardcode_libdir_separator=':'
9309       link_all_deplibs=yes
9310       file_list_spec='${wl}-f,'
9311
9312       if test "$GCC" = yes; then
9313         case $host_os in aix4.[012]|aix4.[012].*)
9314         # We only want to do this on AIX 4.2 and lower, the check
9315         # below for broken collect2 doesn't work under 4.3+
9316           collect2name=`${CC} -print-prog-name=collect2`
9317           if test -f "$collect2name" &&
9318            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9319           then
9320           # We have reworked collect2
9321           :
9322           else
9323           # We have old collect2
9324           hardcode_direct=unsupported
9325           # It fails to find uninstalled libraries when the uninstalled
9326           # path is not listed in the libpath.  Setting hardcode_minus_L
9327           # to unsupported forces relinking
9328           hardcode_minus_L=yes
9329           hardcode_libdir_flag_spec='-L$libdir'
9330           hardcode_libdir_separator=
9331           fi
9332           ;;
9333         esac
9334         shared_flag='-shared'
9335         if test "$aix_use_runtimelinking" = yes; then
9336           shared_flag="$shared_flag "'${wl}-G'
9337         fi
9338         link_all_deplibs=no
9339       else
9340         # not using gcc
9341         if test "$host_cpu" = ia64; then
9342         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9343         # chokes on -Wl,-G. The following line is correct:
9344           shared_flag='-G'
9345         else
9346           if test "$aix_use_runtimelinking" = yes; then
9347             shared_flag='${wl}-G'
9348           else
9349             shared_flag='${wl}-bM:SRE'
9350           fi
9351         fi
9352       fi
9353
9354       export_dynamic_flag_spec='${wl}-bexpall'
9355       # It seems that -bexpall does not export symbols beginning with
9356       # underscore (_), so it is better to generate a list of symbols to export.
9357       always_export_symbols=yes
9358       if test "$aix_use_runtimelinking" = yes; then
9359         # Warning - without using the other runtime loading flags (-brtl),
9360         # -berok will link without error, but may produce a broken library.
9361         allow_undefined_flag='-berok'
9362         # Determine the default libpath from the value encoded in an
9363         # empty executable.
9364         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h.  */
9366
9367 int
9368 main ()
9369 {
9370
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376
9377 lt_aix_libpath_sed='
9378     /Import File Strings/,/^$/ {
9379         /^0/ {
9380             s/^0  *\(.*\)$/\1/
9381             p
9382         }
9383     }'
9384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9385 # Check for a 64-bit object if we didn't find anything.
9386 if test -z "$aix_libpath"; then
9387   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9388 fi
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext \
9391     conftest$ac_exeext conftest.$ac_ext
9392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9393
9394         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9395         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"
9396       else
9397         if test "$host_cpu" = ia64; then
9398           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9399           allow_undefined_flag="-z nodefs"
9400           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"
9401         else
9402          # Determine the default libpath from the value encoded in an
9403          # empty executable.
9404          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h.  */
9406
9407 int
9408 main ()
9409 {
9410
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_link "$LINENO"; then :
9416
9417 lt_aix_libpath_sed='
9418     /Import File Strings/,/^$/ {
9419         /^0/ {
9420             s/^0  *\(.*\)$/\1/
9421             p
9422         }
9423     }'
9424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9425 # Check for a 64-bit object if we didn't find anything.
9426 if test -z "$aix_libpath"; then
9427   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9428 fi
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext \
9431     conftest$ac_exeext conftest.$ac_ext
9432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9433
9434          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9435           # Warning - without using the other run time loading flags,
9436           # -berok will link without error, but may produce a broken library.
9437           no_undefined_flag=' ${wl}-bernotok'
9438           allow_undefined_flag=' ${wl}-berok'
9439           # Exported symbols can be pulled into shared objects from archives
9440           whole_archive_flag_spec='$convenience'
9441           archive_cmds_need_lc=yes
9442           # This is similar to how AIX traditionally builds its shared libraries.
9443           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'
9444         fi
9445       fi
9446       ;;
9447
9448     amigaos*)
9449       case $host_cpu in
9450       powerpc)
9451             # see comment about AmigaOS4 .so support
9452             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453             archive_expsym_cmds=''
9454         ;;
9455       m68k)
9456             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)'
9457             hardcode_libdir_flag_spec='-L$libdir'
9458             hardcode_minus_L=yes
9459         ;;
9460       esac
9461       ;;
9462
9463     bsdi[45]*)
9464       export_dynamic_flag_spec=-rdynamic
9465       ;;
9466
9467     cygwin* | mingw* | pw32* | cegcc*)
9468       # When not using gcc, we currently assume that we are using
9469       # Microsoft Visual C++.
9470       # hardcode_libdir_flag_spec is actually meaningless, as there is
9471       # no search path for DLLs.
9472       hardcode_libdir_flag_spec=' '
9473       allow_undefined_flag=unsupported
9474       # Tell ltmain to make .lib files, not .a files.
9475       libext=lib
9476       # Tell ltmain to make .dll files, not .so files.
9477       shrext_cmds=".dll"
9478       # FIXME: Setting linknames here is a bad hack.
9479       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9480       # The linker will automatically build a .lib file if we build a DLL.
9481       old_archive_from_new_cmds='true'
9482       # FIXME: Should let the user specify the lib program.
9483       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9484       fix_srcfile_path='`cygpath -w "$srcfile"`'
9485       enable_shared_with_static_runtimes=yes
9486       ;;
9487
9488     darwin* | rhapsody*)
9489
9490
9491   archive_cmds_need_lc=no
9492   hardcode_direct=no
9493   hardcode_automatic=yes
9494   hardcode_shlibpath_var=unsupported
9495   whole_archive_flag_spec=''
9496   link_all_deplibs=yes
9497   allow_undefined_flag="$_lt_dar_allow_undefined"
9498   case $cc_basename in
9499      ifort*) _lt_dar_can_shared=yes ;;
9500      *) _lt_dar_can_shared=$GCC ;;
9501   esac
9502   if test "$_lt_dar_can_shared" = "yes"; then
9503     output_verbose_link_cmd=echo
9504     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9505     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9506     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}"
9507     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}"
9508
9509   else
9510   ld_shlibs=no
9511   fi
9512
9513       ;;
9514
9515     dgux*)
9516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517       hardcode_libdir_flag_spec='-L$libdir'
9518       hardcode_shlibpath_var=no
9519       ;;
9520
9521     freebsd1*)
9522       ld_shlibs=no
9523       ;;
9524
9525     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9526     # support.  Future versions do this automatically, but an explicit c++rt0.o
9527     # does not break anything, and helps significantly (at the cost of a little
9528     # extra space).
9529     freebsd2.2*)
9530       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9531       hardcode_libdir_flag_spec='-R$libdir'
9532       hardcode_direct=yes
9533       hardcode_shlibpath_var=no
9534       ;;
9535
9536     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9537     freebsd2*)
9538       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9539       hardcode_direct=yes
9540       hardcode_minus_L=yes
9541       hardcode_shlibpath_var=no
9542       ;;
9543
9544     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9545     freebsd* | dragonfly*)
9546       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9547       hardcode_libdir_flag_spec='-R$libdir'
9548       hardcode_direct=yes
9549       hardcode_shlibpath_var=no
9550       ;;
9551
9552     hpux9*)
9553       if test "$GCC" = yes; then
9554         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'
9555       else
9556         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'
9557       fi
9558       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9559       hardcode_libdir_separator=:
9560       hardcode_direct=yes
9561
9562       # hardcode_minus_L: Not really in the search PATH,
9563       # but as the default location of the library.
9564       hardcode_minus_L=yes
9565       export_dynamic_flag_spec='${wl}-E'
9566       ;;
9567
9568     hpux10*)
9569       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9570         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9571       else
9572         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9573       fi
9574       if test "$with_gnu_ld" = no; then
9575         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9576         hardcode_libdir_flag_spec_ld='+b $libdir'
9577         hardcode_libdir_separator=:
9578         hardcode_direct=yes
9579         hardcode_direct_absolute=yes
9580         export_dynamic_flag_spec='${wl}-E'
9581         # hardcode_minus_L: Not really in the search PATH,
9582         # but as the default location of the library.
9583         hardcode_minus_L=yes
9584       fi
9585       ;;
9586
9587     hpux11*)
9588       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9589         case $host_cpu in
9590         hppa*64*)
9591           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592           ;;
9593         ia64*)
9594           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9595           ;;
9596         *)
9597           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9598           ;;
9599         esac
9600       else
9601         case $host_cpu in
9602         hppa*64*)
9603           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604           ;;
9605         ia64*)
9606           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9607           ;;
9608         *)
9609           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9610           ;;
9611         esac
9612       fi
9613       if test "$with_gnu_ld" = no; then
9614         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615         hardcode_libdir_separator=:
9616
9617         case $host_cpu in
9618         hppa*64*|ia64*)
9619           hardcode_direct=no
9620           hardcode_shlibpath_var=no
9621           ;;
9622         *)
9623           hardcode_direct=yes
9624           hardcode_direct_absolute=yes
9625           export_dynamic_flag_spec='${wl}-E'
9626
9627           # hardcode_minus_L: Not really in the search PATH,
9628           # but as the default location of the library.
9629           hardcode_minus_L=yes
9630           ;;
9631         esac
9632       fi
9633       ;;
9634
9635     irix5* | irix6* | nonstopux*)
9636       if test "$GCC" = yes; then
9637         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'
9638         # Try to use the -exported_symbol ld option, if it does not
9639         # work, assume that -exports_file does not work either and
9640         # implicitly export all symbols.
9641         save_LDFLAGS="$LDFLAGS"
9642         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9643         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h.  */
9645 int foo(void) {}
9646 _ACEOF
9647 if ac_fn_c_try_link "$LINENO"; then :
9648   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'
9649
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext \
9652     conftest$ac_exeext conftest.$ac_ext
9653         LDFLAGS="$save_LDFLAGS"
9654       else
9655         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'
9656         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'
9657       fi
9658       archive_cmds_need_lc='no'
9659       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9660       hardcode_libdir_separator=:
9661       inherit_rpath=yes
9662       link_all_deplibs=yes
9663       ;;
9664
9665     netbsd* | netbsdelf*-gnu)
9666       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9667         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9668       else
9669         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9670       fi
9671       hardcode_libdir_flag_spec='-R$libdir'
9672       hardcode_direct=yes
9673       hardcode_shlibpath_var=no
9674       ;;
9675
9676     newsos6)
9677       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678       hardcode_direct=yes
9679       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9680       hardcode_libdir_separator=:
9681       hardcode_shlibpath_var=no
9682       ;;
9683
9684     *nto* | *qnx*)
9685       ;;
9686
9687     openbsd*)
9688       if test -f /usr/libexec/ld.so; then
9689         hardcode_direct=yes
9690         hardcode_shlibpath_var=no
9691         hardcode_direct_absolute=yes
9692         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9693           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9694           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9695           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9696           export_dynamic_flag_spec='${wl}-E'
9697         else
9698           case $host_os in
9699            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9700              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701              hardcode_libdir_flag_spec='-R$libdir'
9702              ;;
9703            *)
9704              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9705              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9706              ;;
9707           esac
9708         fi
9709       else
9710         ld_shlibs=no
9711       fi
9712       ;;
9713
9714     os2*)
9715       hardcode_libdir_flag_spec='-L$libdir'
9716       hardcode_minus_L=yes
9717       allow_undefined_flag=unsupported
9718       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'
9719       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9720       ;;
9721
9722     osf3*)
9723       if test "$GCC" = yes; then
9724         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9725         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'
9726       else
9727         allow_undefined_flag=' -expect_unresolved \*'
9728         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'
9729       fi
9730       archive_cmds_need_lc='no'
9731       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732       hardcode_libdir_separator=:
9733       ;;
9734
9735     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9736       if test "$GCC" = yes; then
9737         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9738         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'
9739         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740       else
9741         allow_undefined_flag=' -expect_unresolved \*'
9742         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'
9743         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~
9744         $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'
9745
9746         # Both c and cxx compiler support -rpath directly
9747         hardcode_libdir_flag_spec='-rpath $libdir'
9748       fi
9749       archive_cmds_need_lc='no'
9750       hardcode_libdir_separator=:
9751       ;;
9752
9753     solaris*)
9754       no_undefined_flag=' -z defs'
9755       if test "$GCC" = yes; then
9756         wlarc='${wl}'
9757         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9758         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9759           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9760       else
9761         case `$CC -V 2>&1` in
9762         *"Compilers 5.0"*)
9763           wlarc=''
9764           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9766           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9767           ;;
9768         *)
9769           wlarc='${wl}'
9770           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9771           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9772           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9773           ;;
9774         esac
9775       fi
9776       hardcode_libdir_flag_spec='-R$libdir'
9777       hardcode_shlibpath_var=no
9778       case $host_os in
9779       solaris2.[0-5] | solaris2.[0-5].*) ;;
9780       *)
9781         # The compiler driver will combine and reorder linker options,
9782         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9783         # but is careful enough not to reorder.
9784         # Supported since Solaris 2.6 (maybe 2.5.1?)
9785         if test "$GCC" = yes; then
9786           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9787         else
9788           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9789         fi
9790         ;;
9791       esac
9792       link_all_deplibs=yes
9793       ;;
9794
9795     sunos4*)
9796       if test "x$host_vendor" = xsequent; then
9797         # Use $CC to link under sequent, because it throws in some extra .o
9798         # files that make .init and .fini sections work.
9799         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9800       else
9801         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9802       fi
9803       hardcode_libdir_flag_spec='-L$libdir'
9804       hardcode_direct=yes
9805       hardcode_minus_L=yes
9806       hardcode_shlibpath_var=no
9807       ;;
9808
9809     sysv4)
9810       case $host_vendor in
9811         sni)
9812           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813           hardcode_direct=yes # is this really true???
9814         ;;
9815         siemens)
9816           ## LD is ld it makes a PLAMLIB
9817           ## CC just makes a GrossModule.
9818           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9819           reload_cmds='$CC -r -o $output$reload_objs'
9820           hardcode_direct=no
9821         ;;
9822         motorola)
9823           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9824           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9825         ;;
9826       esac
9827       runpath_var='LD_RUN_PATH'
9828       hardcode_shlibpath_var=no
9829       ;;
9830
9831     sysv4.3*)
9832       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9833       hardcode_shlibpath_var=no
9834       export_dynamic_flag_spec='-Bexport'
9835       ;;
9836
9837     sysv4*MP*)
9838       if test -d /usr/nec; then
9839         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840         hardcode_shlibpath_var=no
9841         runpath_var=LD_RUN_PATH
9842         hardcode_runpath_var=yes
9843         ld_shlibs=yes
9844       fi
9845       ;;
9846
9847     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9848       no_undefined_flag='${wl}-z,text'
9849       archive_cmds_need_lc=no
9850       hardcode_shlibpath_var=no
9851       runpath_var='LD_RUN_PATH'
9852
9853       if test "$GCC" = yes; then
9854         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9856       else
9857         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9859       fi
9860       ;;
9861
9862     sysv5* | sco3.2v5* | sco5v6*)
9863       # Note: We can NOT use -z defs as we might desire, because we do not
9864       # link with -lc, and that would cause any symbols used from libc to
9865       # always be unresolved, which means just about no library would
9866       # ever link correctly.  If we're not using GNU ld we use -z text
9867       # though, which does catch some bad symbols but isn't as heavy-handed
9868       # as -z defs.
9869       no_undefined_flag='${wl}-z,text'
9870       allow_undefined_flag='${wl}-z,nodefs'
9871       archive_cmds_need_lc=no
9872       hardcode_shlibpath_var=no
9873       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9874       hardcode_libdir_separator=':'
9875       link_all_deplibs=yes
9876       export_dynamic_flag_spec='${wl}-Bexport'
9877       runpath_var='LD_RUN_PATH'
9878
9879       if test "$GCC" = yes; then
9880         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882       else
9883         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885       fi
9886       ;;
9887
9888     uts4*)
9889       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890       hardcode_libdir_flag_spec='-L$libdir'
9891       hardcode_shlibpath_var=no
9892       ;;
9893
9894     *)
9895       ld_shlibs=no
9896       ;;
9897     esac
9898
9899     if test x$host_vendor = xsni; then
9900       case $host in
9901       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9902         export_dynamic_flag_spec='${wl}-Blargedynsym'
9903         ;;
9904       esac
9905     fi
9906   fi
9907
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9909 $as_echo "$ld_shlibs" >&6; }
9910 test "$ld_shlibs" = no && can_build_shared=no
9911
9912 with_gnu_ld=$with_gnu_ld
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928 #
9929 # Do we need to explicitly link libc?
9930 #
9931 case "x$archive_cmds_need_lc" in
9932 x|xyes)
9933   # Assume -lc should be added
9934   archive_cmds_need_lc=yes
9935
9936   if test "$enable_shared" = yes && test "$GCC" = yes; then
9937     case $archive_cmds in
9938     *'~'*)
9939       # FIXME: we may have to deal with multi-command sequences.
9940       ;;
9941     '$CC '*)
9942       # Test whether the compiler implicitly links with -lc since on some
9943       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9944       # to ld, don't add -lc before -lgcc.
9945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9946 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9947       $RM conftest*
9948       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9949
9950       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9951   (eval $ac_compile) 2>&5
9952   ac_status=$?
9953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954   test $ac_status = 0; } 2>conftest.err; then
9955         soname=conftest
9956         lib=conftest
9957         libobjs=conftest.$ac_objext
9958         deplibs=
9959         wl=$lt_prog_compiler_wl
9960         pic_flag=$lt_prog_compiler_pic
9961         compiler_flags=-v
9962         linker_flags=-v
9963         verstring=
9964         output_objdir=.
9965         libname=conftest
9966         lt_save_allow_undefined_flag=$allow_undefined_flag
9967         allow_undefined_flag=
9968         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9969   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9970   ac_status=$?
9971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9972   test $ac_status = 0; }
9973         then
9974           archive_cmds_need_lc=no
9975         else
9976           archive_cmds_need_lc=yes
9977         fi
9978         allow_undefined_flag=$lt_save_allow_undefined_flag
9979       else
9980         cat conftest.err 1>&5
9981       fi
9982       $RM conftest*
9983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9984 $as_echo "$archive_cmds_need_lc" >&6; }
9985       ;;
9986     esac
9987   fi
9988   ;;
9989 esac
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10149
10150 if test "$GCC" = yes; then
10151   case $host_os in
10152     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10153     *) lt_awk_arg="/^libraries:/" ;;
10154   esac
10155   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10156   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10157     # if the path contains ";" then we assume it to be the separator
10158     # otherwise default to the standard path separator (i.e. ":") - it is
10159     # assumed that no part of a normal pathname contains ";" but that should
10160     # okay in the real world where ";" in dirpaths is itself problematic.
10161     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10162   else
10163     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10164   fi
10165   # Ok, now we have the path, separated by spaces, we can step through it
10166   # and add multilib dir if necessary.
10167   lt_tmp_lt_search_path_spec=
10168   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10169   for lt_sys_path in $lt_search_path_spec; do
10170     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10171       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10172     else
10173       test -d "$lt_sys_path" && \
10174         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10175     fi
10176   done
10177   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10178 BEGIN {RS=" "; FS="/|\n";} {
10179   lt_foo="";
10180   lt_count=0;
10181   for (lt_i = NF; lt_i > 0; lt_i--) {
10182     if ($lt_i != "" && $lt_i != ".") {
10183       if ($lt_i == "..") {
10184         lt_count++;
10185       } else {
10186         if (lt_count == 0) {
10187           lt_foo="/" $lt_i lt_foo;
10188         } else {
10189           lt_count--;
10190         }
10191       }
10192     }
10193   }
10194   if (lt_foo != "") { lt_freq[lt_foo]++; }
10195   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10196 }'`
10197   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10198 else
10199   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10200 fi
10201 library_names_spec=
10202 libname_spec='lib$name'
10203 soname_spec=
10204 shrext_cmds=".so"
10205 postinstall_cmds=
10206 postuninstall_cmds=
10207 finish_cmds=
10208 finish_eval=
10209 shlibpath_var=
10210 shlibpath_overrides_runpath=unknown
10211 version_type=none
10212 dynamic_linker="$host_os ld.so"
10213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10214 need_lib_prefix=unknown
10215 hardcode_into_libs=no
10216
10217 # when you set need_version to no, make sure it does not cause -set_version
10218 # flags to be left without arguments
10219 need_version=unknown
10220
10221 case $host_os in
10222 aix3*)
10223   version_type=linux
10224   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10225   shlibpath_var=LIBPATH
10226
10227   # AIX 3 has no versioning support, so we append a major version to the name.
10228   soname_spec='${libname}${release}${shared_ext}$major'
10229   ;;
10230
10231 aix[4-9]*)
10232   version_type=linux
10233   need_lib_prefix=no
10234   need_version=no
10235   hardcode_into_libs=yes
10236   if test "$host_cpu" = ia64; then
10237     # AIX 5 supports IA64
10238     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10239     shlibpath_var=LD_LIBRARY_PATH
10240   else
10241     # With GCC up to 2.95.x, collect2 would create an import file
10242     # for dependence libraries.  The import file would start with
10243     # the line `#! .'.  This would cause the generated library to
10244     # depend on `.', always an invalid library.  This was fixed in
10245     # development snapshots of GCC prior to 3.0.
10246     case $host_os in
10247       aix4 | aix4.[01] | aix4.[01].*)
10248       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10249            echo ' yes '
10250            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10251         :
10252       else
10253         can_build_shared=no
10254       fi
10255       ;;
10256     esac
10257     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10258     # soname into executable. Probably we can add versioning support to
10259     # collect2, so additional links can be useful in future.
10260     if test "$aix_use_runtimelinking" = yes; then
10261       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10262       # instead of lib<name>.a to let people know that these are not
10263       # typical AIX shared libraries.
10264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265     else
10266       # We preserve .a as extension for shared libraries through AIX4.2
10267       # and later when we are not doing run time linking.
10268       library_names_spec='${libname}${release}.a $libname.a'
10269       soname_spec='${libname}${release}${shared_ext}$major'
10270     fi
10271     shlibpath_var=LIBPATH
10272   fi
10273   ;;
10274
10275 amigaos*)
10276   case $host_cpu in
10277   powerpc)
10278     # Since July 2007 AmigaOS4 officially supports .so libraries.
10279     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281     ;;
10282   m68k)
10283     library_names_spec='$libname.ixlibrary $libname.a'
10284     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10285     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'
10286     ;;
10287   esac
10288   ;;
10289
10290 beos*)
10291   library_names_spec='${libname}${shared_ext}'
10292   dynamic_linker="$host_os ld.so"
10293   shlibpath_var=LIBRARY_PATH
10294   ;;
10295
10296 bsdi[45]*)
10297   version_type=linux
10298   need_version=no
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10304   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10305   # the default ld.so.conf also contains /usr/contrib/lib and
10306   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10307   # libtool to hard-code these into programs
10308   ;;
10309
10310 cygwin* | mingw* | pw32* | cegcc*)
10311   version_type=windows
10312   shrext_cmds=".dll"
10313   need_version=no
10314   need_lib_prefix=no
10315
10316   case $GCC,$host_os in
10317   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10318     library_names_spec='$libname.dll.a'
10319     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10320     postinstall_cmds='base_file=`basename \${file}`~
10321       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10322       dldir=$destdir/`dirname \$dlpath`~
10323       test -d \$dldir || mkdir -p \$dldir~
10324       $install_prog $dir/$dlname \$dldir/$dlname~
10325       chmod a+x \$dldir/$dlname~
10326       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10327         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10328       fi'
10329     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10330       dlpath=$dir/\$dldll~
10331        $RM \$dlpath'
10332     shlibpath_overrides_runpath=yes
10333
10334     case $host_os in
10335     cygwin*)
10336       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10337       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10339       ;;
10340     mingw* | cegcc*)
10341       # MinGW DLLs use traditional 'lib' prefix
10342       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10343       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10344       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10345         # It is most probably a Windows format PATH printed by
10346         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10347         # path with ; separators, and with drive letters. We can handle the
10348         # drive letters (cygwin fileutils understands them), so leave them,
10349         # especially as we might pass files found there to a mingw objdump,
10350         # which wouldn't understand a cygwinified path. Ahh.
10351         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10352       else
10353         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10354       fi
10355       ;;
10356     pw32*)
10357       # pw32 DLLs use 'pw' prefix rather than 'lib'
10358       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10359       ;;
10360     esac
10361     ;;
10362
10363   *)
10364     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10365     ;;
10366   esac
10367   dynamic_linker='Win32 ld.exe'
10368   # FIXME: first we should search . and the directory the executable is in
10369   shlibpath_var=PATH
10370   ;;
10371
10372 darwin* | rhapsody*)
10373   dynamic_linker="$host_os dyld"
10374   version_type=darwin
10375   need_lib_prefix=no
10376   need_version=no
10377   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10378   soname_spec='${libname}${release}${major}$shared_ext'
10379   shlibpath_overrides_runpath=yes
10380   shlibpath_var=DYLD_LIBRARY_PATH
10381   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10382
10383   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10384   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10385   ;;
10386
10387 dgux*)
10388   version_type=linux
10389   need_lib_prefix=no
10390   need_version=no
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10392   soname_spec='${libname}${release}${shared_ext}$major'
10393   shlibpath_var=LD_LIBRARY_PATH
10394   ;;
10395
10396 freebsd1*)
10397   dynamic_linker=no
10398   ;;
10399
10400 freebsd* | dragonfly*)
10401   # DragonFly does not have aout.  When/if they implement a new
10402   # versioning mechanism, adjust this.
10403   if test -x /usr/bin/objformat; then
10404     objformat=`/usr/bin/objformat`
10405   else
10406     case $host_os in
10407     freebsd[123]*) objformat=aout ;;
10408     *) objformat=elf ;;
10409     esac
10410   fi
10411   version_type=freebsd-$objformat
10412   case $version_type in
10413     freebsd-elf*)
10414       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415       need_version=no
10416       need_lib_prefix=no
10417       ;;
10418     freebsd-*)
10419       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10420       need_version=yes
10421       ;;
10422   esac
10423   shlibpath_var=LD_LIBRARY_PATH
10424   case $host_os in
10425   freebsd2*)
10426     shlibpath_overrides_runpath=yes
10427     ;;
10428   freebsd3.[01]* | freebsdelf3.[01]*)
10429     shlibpath_overrides_runpath=yes
10430     hardcode_into_libs=yes
10431     ;;
10432   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10433   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10434     shlibpath_overrides_runpath=no
10435     hardcode_into_libs=yes
10436     ;;
10437   *) # from 4.6 on, and DragonFly
10438     shlibpath_overrides_runpath=yes
10439     hardcode_into_libs=yes
10440     ;;
10441   esac
10442   ;;
10443
10444 gnu*)
10445   version_type=linux
10446   need_lib_prefix=no
10447   need_version=no
10448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10449   soname_spec='${libname}${release}${shared_ext}$major'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   hardcode_into_libs=yes
10452   ;;
10453
10454 hpux9* | hpux10* | hpux11*)
10455   # Give a soname corresponding to the major version so that dld.sl refuses to
10456   # link against other versions.
10457   version_type=sunos
10458   need_lib_prefix=no
10459   need_version=no
10460   case $host_cpu in
10461   ia64*)
10462     shrext_cmds='.so'
10463     hardcode_into_libs=yes
10464     dynamic_linker="$host_os dld.so"
10465     shlibpath_var=LD_LIBRARY_PATH
10466     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468     soname_spec='${libname}${release}${shared_ext}$major'
10469     if test "X$HPUX_IA64_MODE" = X32; then
10470       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10471     else
10472       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10473     fi
10474     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10475     ;;
10476   hppa*64*)
10477     shrext_cmds='.sl'
10478     hardcode_into_libs=yes
10479     dynamic_linker="$host_os dld.sl"
10480     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10481     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483     soname_spec='${libname}${release}${shared_ext}$major'
10484     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10485     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10486     ;;
10487   *)
10488     shrext_cmds='.sl'
10489     dynamic_linker="$host_os dld.sl"
10490     shlibpath_var=SHLIB_PATH
10491     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493     soname_spec='${libname}${release}${shared_ext}$major'
10494     ;;
10495   esac
10496   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10497   postinstall_cmds='chmod 555 $lib'
10498   ;;
10499
10500 interix[3-9]*)
10501   version_type=linux
10502   need_lib_prefix=no
10503   need_version=no
10504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10505   soname_spec='${libname}${release}${shared_ext}$major'
10506   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10507   shlibpath_var=LD_LIBRARY_PATH
10508   shlibpath_overrides_runpath=no
10509   hardcode_into_libs=yes
10510   ;;
10511
10512 irix5* | irix6* | nonstopux*)
10513   case $host_os in
10514     nonstopux*) version_type=nonstopux ;;
10515     *)
10516         if test "$lt_cv_prog_gnu_ld" = yes; then
10517                 version_type=linux
10518         else
10519                 version_type=irix
10520         fi ;;
10521   esac
10522   need_lib_prefix=no
10523   need_version=no
10524   soname_spec='${libname}${release}${shared_ext}$major'
10525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10526   case $host_os in
10527   irix5* | nonstopux*)
10528     libsuff= shlibsuff=
10529     ;;
10530   *)
10531     case $LD in # libtool.m4 will add one of these switches to LD
10532     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10533       libsuff= shlibsuff= libmagic=32-bit;;
10534     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10535       libsuff=32 shlibsuff=N32 libmagic=N32;;
10536     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10537       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10538     *) libsuff= shlibsuff= libmagic=never-match;;
10539     esac
10540     ;;
10541   esac
10542   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10543   shlibpath_overrides_runpath=no
10544   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10545   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10546   hardcode_into_libs=yes
10547   ;;
10548
10549 # No shared lib support for Linux oldld, aout, or coff.
10550 linux*oldld* | linux*aout* | linux*coff*)
10551   dynamic_linker=no
10552   ;;
10553
10554 # This must be Linux ELF.
10555 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10556   version_type=linux
10557   need_lib_prefix=no
10558   need_version=no
10559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560   soname_spec='${libname}${release}${shared_ext}$major'
10561   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10562   shlibpath_var=LD_LIBRARY_PATH
10563   shlibpath_overrides_runpath=no
10564   # Some binutils ld are patched to set DT_RUNPATH
10565   save_LDFLAGS=$LDFLAGS
10566   save_libdir=$libdir
10567   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10568        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h.  */
10571
10572 int
10573 main ()
10574 {
10575
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"; then :
10581   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10582   shlibpath_overrides_runpath=yes
10583 fi
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586     conftest$ac_exeext conftest.$ac_ext
10587   LDFLAGS=$save_LDFLAGS
10588   libdir=$save_libdir
10589
10590   # This implies no fast_install, which is unacceptable.
10591   # Some rework will be needed to allow for fast_install
10592   # before this can be enabled.
10593   hardcode_into_libs=yes
10594
10595   # Append ld.so.conf contents to the search path
10596   if test -f /etc/ld.so.conf; then
10597     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' ' '`
10598     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10599   fi
10600
10601   # We used to test for /lib/ld.so.1 and disable shared libraries on
10602   # powerpc, because MkLinux only supported shared libraries with the
10603   # GNU dynamic linker.  Since this was broken with cross compilers,
10604   # most powerpc-linux boxes support dynamic linking these days and
10605   # people can always --disable-shared, the test was removed, and we
10606   # assume the GNU/Linux dynamic linker is in use.
10607   dynamic_linker='GNU/Linux ld.so'
10608   ;;
10609
10610 netbsdelf*-gnu)
10611   version_type=linux
10612   need_lib_prefix=no
10613   need_version=no
10614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10615   soname_spec='${libname}${release}${shared_ext}$major'
10616   shlibpath_var=LD_LIBRARY_PATH
10617   shlibpath_overrides_runpath=no
10618   hardcode_into_libs=yes
10619   dynamic_linker='NetBSD ld.elf_so'
10620   ;;
10621
10622 netbsd*)
10623   version_type=sunos
10624   need_lib_prefix=no
10625   need_version=no
10626   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10628     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10629     dynamic_linker='NetBSD (a.out) ld.so'
10630   else
10631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10632     soname_spec='${libname}${release}${shared_ext}$major'
10633     dynamic_linker='NetBSD ld.elf_so'
10634   fi
10635   shlibpath_var=LD_LIBRARY_PATH
10636   shlibpath_overrides_runpath=yes
10637   hardcode_into_libs=yes
10638   ;;
10639
10640 newsos6)
10641   version_type=linux
10642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   shlibpath_overrides_runpath=yes
10645   ;;
10646
10647 *nto* | *qnx*)
10648   version_type=qnx
10649   need_lib_prefix=no
10650   need_version=no
10651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652   soname_spec='${libname}${release}${shared_ext}$major'
10653   shlibpath_var=LD_LIBRARY_PATH
10654   shlibpath_overrides_runpath=no
10655   hardcode_into_libs=yes
10656   dynamic_linker='ldqnx.so'
10657   ;;
10658
10659 openbsd*)
10660   version_type=sunos
10661   sys_lib_dlsearch_path_spec="/usr/lib"
10662   need_lib_prefix=no
10663   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10664   case $host_os in
10665     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10666     *)                          need_version=no  ;;
10667   esac
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10670   shlibpath_var=LD_LIBRARY_PATH
10671   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10672     case $host_os in
10673       openbsd2.[89] | openbsd2.[89].*)
10674         shlibpath_overrides_runpath=no
10675         ;;
10676       *)
10677         shlibpath_overrides_runpath=yes
10678         ;;
10679       esac
10680   else
10681     shlibpath_overrides_runpath=yes
10682   fi
10683   ;;
10684
10685 os2*)
10686   libname_spec='$name'
10687   shrext_cmds=".dll"
10688   need_lib_prefix=no
10689   library_names_spec='$libname${shared_ext} $libname.a'
10690   dynamic_linker='OS/2 ld.exe'
10691   shlibpath_var=LIBPATH
10692   ;;
10693
10694 osf3* | osf4* | osf5*)
10695   version_type=osf
10696   need_lib_prefix=no
10697   need_version=no
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700   shlibpath_var=LD_LIBRARY_PATH
10701   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10702   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10703   ;;
10704
10705 rdos*)
10706   dynamic_linker=no
10707   ;;
10708
10709 solaris*)
10710   version_type=linux
10711   need_lib_prefix=no
10712   need_version=no
10713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714   soname_spec='${libname}${release}${shared_ext}$major'
10715   shlibpath_var=LD_LIBRARY_PATH
10716   shlibpath_overrides_runpath=yes
10717   hardcode_into_libs=yes
10718   # ldd complains unless libraries are executable
10719   postinstall_cmds='chmod +x $lib'
10720   ;;
10721
10722 sunos4*)
10723   version_type=sunos
10724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10725   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10726   shlibpath_var=LD_LIBRARY_PATH
10727   shlibpath_overrides_runpath=yes
10728   if test "$with_gnu_ld" = yes; then
10729     need_lib_prefix=no
10730   fi
10731   need_version=yes
10732   ;;
10733
10734 sysv4 | sysv4.3*)
10735   version_type=linux
10736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737   soname_spec='${libname}${release}${shared_ext}$major'
10738   shlibpath_var=LD_LIBRARY_PATH
10739   case $host_vendor in
10740     sni)
10741       shlibpath_overrides_runpath=no
10742       need_lib_prefix=no
10743       runpath_var=LD_RUN_PATH
10744       ;;
10745     siemens)
10746       need_lib_prefix=no
10747       ;;
10748     motorola)
10749       need_lib_prefix=no
10750       need_version=no
10751       shlibpath_overrides_runpath=no
10752       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10753       ;;
10754   esac
10755   ;;
10756
10757 sysv4*MP*)
10758   if test -d /usr/nec ;then
10759     version_type=linux
10760     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10761     soname_spec='$libname${shared_ext}.$major'
10762     shlibpath_var=LD_LIBRARY_PATH
10763   fi
10764   ;;
10765
10766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10767   version_type=freebsd-elf
10768   need_lib_prefix=no
10769   need_version=no
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=yes
10774   hardcode_into_libs=yes
10775   if test "$with_gnu_ld" = yes; then
10776     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10777   else
10778     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10779     case $host_os in
10780       sco3.2v5*)
10781         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10782         ;;
10783     esac
10784   fi
10785   sys_lib_dlsearch_path_spec='/usr/lib'
10786   ;;
10787
10788 tpf*)
10789   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10790   version_type=linux
10791   need_lib_prefix=no
10792   need_version=no
10793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794   shlibpath_var=LD_LIBRARY_PATH
10795   shlibpath_overrides_runpath=no
10796   hardcode_into_libs=yes
10797   ;;
10798
10799 uts4*)
10800   version_type=linux
10801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802   soname_spec='${libname}${release}${shared_ext}$major'
10803   shlibpath_var=LD_LIBRARY_PATH
10804   ;;
10805
10806 *)
10807   dynamic_linker=no
10808   ;;
10809 esac
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10811 $as_echo "$dynamic_linker" >&6; }
10812 test "$dynamic_linker" = no && can_build_shared=no
10813
10814 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10815 if test "$GCC" = yes; then
10816   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10817 fi
10818
10819 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10820   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10821 fi
10822 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10823   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10824 fi
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10914 hardcode_action=
10915 if test -n "$hardcode_libdir_flag_spec" ||
10916    test -n "$runpath_var" ||
10917    test "X$hardcode_automatic" = "Xyes" ; then
10918
10919   # We can hardcode non-existent directories.
10920   if test "$hardcode_direct" != no &&
10921      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10922      # have to relink, otherwise we might link with an installed library
10923      # when we should be linking with a yet-to-be-installed one
10924      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10925      test "$hardcode_minus_L" != no; then
10926     # Linking always hardcodes the temporary library directory.
10927     hardcode_action=relink
10928   else
10929     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10930     hardcode_action=immediate
10931   fi
10932 else
10933   # We cannot hardcode anything, or else we can only hardcode existing
10934   # directories.
10935   hardcode_action=unsupported
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10938 $as_echo "$hardcode_action" >&6; }
10939
10940 if test "$hardcode_action" = relink ||
10941    test "$inherit_rpath" = yes; then
10942   # Fast installation is not supported
10943   enable_fast_install=no
10944 elif test "$shlibpath_overrides_runpath" = yes ||
10945      test "$enable_shared" = no; then
10946   # Fast installation is not necessary
10947   enable_fast_install=needless
10948 fi
10949
10950
10951
10952
10953
10954
10955   if test "x$enable_dlopen" != xyes; then
10956   enable_dlopen=unknown
10957   enable_dlopen_self=unknown
10958   enable_dlopen_self_static=unknown
10959 else
10960   lt_cv_dlopen=no
10961   lt_cv_dlopen_libs=
10962
10963   case $host_os in
10964   beos*)
10965     lt_cv_dlopen="load_add_on"
10966     lt_cv_dlopen_libs=
10967     lt_cv_dlopen_self=yes
10968     ;;
10969
10970   mingw* | pw32* | cegcc*)
10971     lt_cv_dlopen="LoadLibrary"
10972     lt_cv_dlopen_libs=
10973     ;;
10974
10975   cygwin*)
10976     lt_cv_dlopen="dlopen"
10977     lt_cv_dlopen_libs=
10978     ;;
10979
10980   darwin*)
10981   # if libdl is installed we need to link against it
10982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10983 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-ldl  $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h.  */
10991
10992 /* Override any GCC internal prototype to avoid an error.
10993    Use char because int might match the return type of a GCC
10994    builtin and then its argument prototype would still apply.  */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char dlopen ();
10999 int
11000 main ()
11001 {
11002 return dlopen ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008   ac_cv_lib_dl_dlopen=yes
11009 else
11010   ac_cv_lib_dl_dlopen=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext \
11013     conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11017 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11018 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11019   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11020 else
11021
11022     lt_cv_dlopen="dyld"
11023     lt_cv_dlopen_libs=
11024     lt_cv_dlopen_self=yes
11025
11026 fi
11027
11028     ;;
11029
11030   *)
11031     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11032 if test "x$ac_cv_func_shl_load" = x""yes; then :
11033   lt_cv_dlopen="shl_load"
11034 else
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11036 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11037 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11038   $as_echo_n "(cached) " >&6
11039 else
11040   ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-ldld  $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h.  */
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046    Use char because int might match the return type of a GCC
11047    builtin and then its argument prototype would still apply.  */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char shl_load ();
11052 int
11053 main ()
11054 {
11055 return shl_load ();
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061   ac_cv_lib_dld_shl_load=yes
11062 else
11063   ac_cv_lib_dld_shl_load=no
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext \
11066     conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11070 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11071 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11072   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11073 else
11074   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11075 if test "x$ac_cv_func_dlopen" = x""yes; then :
11076   lt_cv_dlopen="dlopen"
11077 else
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11079 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11080 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11081   $as_echo_n "(cached) " >&6
11082 else
11083   ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-ldl  $LIBS"
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h.  */
11087
11088 /* Override any GCC internal prototype to avoid an error.
11089    Use char because int might match the return type of a GCC
11090    builtin and then its argument prototype would still apply.  */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char dlopen ();
11095 int
11096 main ()
11097 {
11098 return dlopen ();
11099   ;
11100   return 0;
11101 }
11102 _ACEOF
11103 if ac_fn_c_try_link "$LINENO"; then :
11104   ac_cv_lib_dl_dlopen=yes
11105 else
11106   ac_cv_lib_dl_dlopen=no
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext \
11109     conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11113 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11114 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11115   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11116 else
11117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11118 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11120   $as_echo_n "(cached) " >&6
11121 else
11122   ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-lsvld  $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h.  */
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128    Use char because int might match the return type of a GCC
11129    builtin and then its argument prototype would still apply.  */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char dlopen ();
11134 int
11135 main ()
11136 {
11137 return dlopen ();
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"; then :
11143   ac_cv_lib_svld_dlopen=yes
11144 else
11145   ac_cv_lib_svld_dlopen=no
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148     conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11150 fi
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11152 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11153 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11154   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11155 else
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11157 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11159   $as_echo_n "(cached) " >&6
11160 else
11161   ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-ldld  $LIBS"
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h.  */
11165
11166 /* Override any GCC internal prototype to avoid an error.
11167    Use char because int might match the return type of a GCC
11168    builtin and then its argument prototype would still apply.  */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char dld_link ();
11173 int
11174 main ()
11175 {
11176 return dld_link ();
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 if ac_fn_c_try_link "$LINENO"; then :
11182   ac_cv_lib_dld_dld_link=yes
11183 else
11184   ac_cv_lib_dld_dld_link=no
11185 fi
11186 rm -f core conftest.err conftest.$ac_objext \
11187     conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11189 fi
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11191 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11192 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11193   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11194 fi
11195
11196
11197 fi
11198
11199
11200 fi
11201
11202
11203 fi
11204
11205
11206 fi
11207
11208
11209 fi
11210
11211     ;;
11212   esac
11213
11214   if test "x$lt_cv_dlopen" != xno; then
11215     enable_dlopen=yes
11216   else
11217     enable_dlopen=no
11218   fi
11219
11220   case $lt_cv_dlopen in
11221   dlopen)
11222     save_CPPFLAGS="$CPPFLAGS"
11223     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11224
11225     save_LDFLAGS="$LDFLAGS"
11226     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11227
11228     save_LIBS="$LIBS"
11229     LIBS="$lt_cv_dlopen_libs $LIBS"
11230
11231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11232 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11233 if test "${lt_cv_dlopen_self+set}" = set; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236           if test "$cross_compiling" = yes; then :
11237   lt_cv_dlopen_self=cross
11238 else
11239   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11240   lt_status=$lt_dlunknown
11241   cat > conftest.$ac_ext <<_LT_EOF
11242 #line 11242 "configure"
11243 #include "confdefs.h"
11244
11245 #if HAVE_DLFCN_H
11246 #include <dlfcn.h>
11247 #endif
11248
11249 #include <stdio.h>
11250
11251 #ifdef RTLD_GLOBAL
11252 #  define LT_DLGLOBAL           RTLD_GLOBAL
11253 #else
11254 #  ifdef DL_GLOBAL
11255 #    define LT_DLGLOBAL         DL_GLOBAL
11256 #  else
11257 #    define LT_DLGLOBAL         0
11258 #  endif
11259 #endif
11260
11261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11262    find out it does not work in some platform. */
11263 #ifndef LT_DLLAZY_OR_NOW
11264 #  ifdef RTLD_LAZY
11265 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11266 #  else
11267 #    ifdef DL_LAZY
11268 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11269 #    else
11270 #      ifdef RTLD_NOW
11271 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11272 #      else
11273 #        ifdef DL_NOW
11274 #          define LT_DLLAZY_OR_NOW      DL_NOW
11275 #        else
11276 #          define LT_DLLAZY_OR_NOW      0
11277 #        endif
11278 #      endif
11279 #    endif
11280 #  endif
11281 #endif
11282
11283 void fnord() { int i=42;}
11284 int main ()
11285 {
11286   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287   int status = $lt_dlunknown;
11288
11289   if (self)
11290     {
11291       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11292       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11293       /* dlclose (self); */
11294     }
11295   else
11296     puts (dlerror ());
11297
11298   return status;
11299 }
11300 _LT_EOF
11301   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11302   (eval $ac_link) 2>&5
11303   ac_status=$?
11304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11306     (./conftest; exit; ) >&5 2>/dev/null
11307     lt_status=$?
11308     case x$lt_status in
11309       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11310       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11311       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11312     esac
11313   else :
11314     # compilation failed
11315     lt_cv_dlopen_self=no
11316   fi
11317 fi
11318 rm -fr conftest*
11319
11320
11321 fi
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11323 $as_echo "$lt_cv_dlopen_self" >&6; }
11324
11325     if test "x$lt_cv_dlopen_self" = xyes; then
11326       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11327       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11328 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11329 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332           if test "$cross_compiling" = yes; then :
11333   lt_cv_dlopen_self_static=cross
11334 else
11335   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11336   lt_status=$lt_dlunknown
11337   cat > conftest.$ac_ext <<_LT_EOF
11338 #line 11338 "configure"
11339 #include "confdefs.h"
11340
11341 #if HAVE_DLFCN_H
11342 #include <dlfcn.h>
11343 #endif
11344
11345 #include <stdio.h>
11346
11347 #ifdef RTLD_GLOBAL
11348 #  define LT_DLGLOBAL           RTLD_GLOBAL
11349 #else
11350 #  ifdef DL_GLOBAL
11351 #    define LT_DLGLOBAL         DL_GLOBAL
11352 #  else
11353 #    define LT_DLGLOBAL         0
11354 #  endif
11355 #endif
11356
11357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11358    find out it does not work in some platform. */
11359 #ifndef LT_DLLAZY_OR_NOW
11360 #  ifdef RTLD_LAZY
11361 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11362 #  else
11363 #    ifdef DL_LAZY
11364 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11365 #    else
11366 #      ifdef RTLD_NOW
11367 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11368 #      else
11369 #        ifdef DL_NOW
11370 #          define LT_DLLAZY_OR_NOW      DL_NOW
11371 #        else
11372 #          define LT_DLLAZY_OR_NOW      0
11373 #        endif
11374 #      endif
11375 #    endif
11376 #  endif
11377 #endif
11378
11379 void fnord() { int i=42;}
11380 int main ()
11381 {
11382   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11383   int status = $lt_dlunknown;
11384
11385   if (self)
11386     {
11387       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11388       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11389       /* dlclose (self); */
11390     }
11391   else
11392     puts (dlerror ());
11393
11394   return status;
11395 }
11396 _LT_EOF
11397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11398   (eval $ac_link) 2>&5
11399   ac_status=$?
11400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11401   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11402     (./conftest; exit; ) >&5 2>/dev/null
11403     lt_status=$?
11404     case x$lt_status in
11405       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11406       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11407       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11408     esac
11409   else :
11410     # compilation failed
11411     lt_cv_dlopen_self_static=no
11412   fi
11413 fi
11414 rm -fr conftest*
11415
11416
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11419 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11420     fi
11421
11422     CPPFLAGS="$save_CPPFLAGS"
11423     LDFLAGS="$save_LDFLAGS"
11424     LIBS="$save_LIBS"
11425     ;;
11426   esac
11427
11428   case $lt_cv_dlopen_self in
11429   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11430   *) enable_dlopen_self=unknown ;;
11431   esac
11432
11433   case $lt_cv_dlopen_self_static in
11434   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11435   *) enable_dlopen_self_static=unknown ;;
11436   esac
11437 fi
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455 striplib=
11456 old_striplib=
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11458 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11459 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11460   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11461   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11463 $as_echo "yes" >&6; }
11464 else
11465 # FIXME - insert some real tests, host_os isn't really good enough
11466   case $host_os in
11467   darwin*)
11468     if test -n "$STRIP" ; then
11469       striplib="$STRIP -x"
11470       old_striplib="$STRIP -S"
11471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11472 $as_echo "yes" >&6; }
11473     else
11474       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11476     fi
11477     ;;
11478   *)
11479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11481     ;;
11482   esac
11483 fi
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496   # Report which library types will actually be built
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11498 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11500 $as_echo "$can_build_shared" >&6; }
11501
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11503 $as_echo_n "checking whether to build shared libraries... " >&6; }
11504   test "$can_build_shared" = "no" && enable_shared=no
11505
11506   # On AIX, shared libraries and static libraries use the same namespace, and
11507   # are all built from PIC.
11508   case $host_os in
11509   aix3*)
11510     test "$enable_shared" = yes && enable_static=no
11511     if test -n "$RANLIB"; then
11512       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11513       postinstall_cmds='$RANLIB $lib'
11514     fi
11515     ;;
11516
11517   aix[4-9]*)
11518     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11519       test "$enable_shared" = yes && enable_static=no
11520     fi
11521     ;;
11522   esac
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11524 $as_echo "$enable_shared" >&6; }
11525
11526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11527 $as_echo_n "checking whether to build static libraries... " >&6; }
11528   # Make sure either enable_shared or enable_static is yes.
11529   test "$enable_shared" = yes || enable_static=yes
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11531 $as_echo "$enable_static" >&6; }
11532
11533
11534
11535
11536 fi
11537 ac_ext=c
11538 ac_cpp='$CPP $CPPFLAGS'
11539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542
11543 CC="$lt_save_CC"
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557         ac_config_commands="$ac_config_commands libtool"
11558
11559
11560
11561
11562 # Only expand once:
11563
11564
11565
11566
11567 ac_header_dirent=no
11568 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11569   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11571 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11572 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
11573   $as_echo_n "(cached) " >&6
11574 else
11575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h.  */
11577 #include <sys/types.h>
11578 #include <$ac_hdr>
11579
11580 int
11581 main ()
11582 {
11583 if ((DIR *) 0)
11584 return 0;
11585   ;
11586   return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_compile "$LINENO"; then :
11590   eval "$as_ac_Header=yes"
11591 else
11592   eval "$as_ac_Header=no"
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 fi
11596 eval ac_res=\$$as_ac_Header
11597                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11598 $as_echo "$ac_res" >&6; }
11599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11600   cat >>confdefs.h <<_ACEOF
11601 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11602 _ACEOF
11603
11604 ac_header_dirent=$ac_hdr; break
11605 fi
11606
11607 done
11608 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11609 if test $ac_header_dirent = dirent.h; then
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11611 $as_echo_n "checking for library containing opendir... " >&6; }
11612 if test "${ac_cv_search_opendir+set}" = set; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615   ac_func_search_save_LIBS=$LIBS
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h.  */
11618
11619 /* Override any GCC internal prototype to avoid an error.
11620    Use char because int might match the return type of a GCC
11621    builtin and then its argument prototype would still apply.  */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 char opendir ();
11626 int
11627 main ()
11628 {
11629 return opendir ();
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 for ac_lib in '' dir; do
11635   if test -z "$ac_lib"; then
11636     ac_res="none required"
11637   else
11638     ac_res=-l$ac_lib
11639     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11640   fi
11641   if ac_fn_c_try_link "$LINENO"; then :
11642   ac_cv_search_opendir=$ac_res
11643 fi
11644 rm -f core conftest.err conftest.$ac_objext \
11645     conftest$ac_exeext
11646   if test "${ac_cv_search_opendir+set}" = set; then :
11647   break
11648 fi
11649 done
11650 if test "${ac_cv_search_opendir+set}" = set; then :
11651
11652 else
11653   ac_cv_search_opendir=no
11654 fi
11655 rm conftest.$ac_ext
11656 LIBS=$ac_func_search_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11659 $as_echo "$ac_cv_search_opendir" >&6; }
11660 ac_res=$ac_cv_search_opendir
11661 if test "$ac_res" != no; then :
11662   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11663
11664 fi
11665
11666 else
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11668 $as_echo_n "checking for library containing opendir... " >&6; }
11669 if test "${ac_cv_search_opendir+set}" = set; then :
11670   $as_echo_n "(cached) " >&6
11671 else
11672   ac_func_search_save_LIBS=$LIBS
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h.  */
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char opendir ();
11683 int
11684 main ()
11685 {
11686 return opendir ();
11687   ;
11688   return 0;
11689 }
11690 _ACEOF
11691 for ac_lib in '' x; do
11692   if test -z "$ac_lib"; then
11693     ac_res="none required"
11694   else
11695     ac_res=-l$ac_lib
11696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11697   fi
11698   if ac_fn_c_try_link "$LINENO"; then :
11699   ac_cv_search_opendir=$ac_res
11700 fi
11701 rm -f core conftest.err conftest.$ac_objext \
11702     conftest$ac_exeext
11703   if test "${ac_cv_search_opendir+set}" = set; then :
11704   break
11705 fi
11706 done
11707 if test "${ac_cv_search_opendir+set}" = set; then :
11708
11709 else
11710   ac_cv_search_opendir=no
11711 fi
11712 rm conftest.$ac_ext
11713 LIBS=$ac_func_search_save_LIBS
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11716 $as_echo "$ac_cv_search_opendir" >&6; }
11717 ac_res=$ac_cv_search_opendir
11718 if test "$ac_res" != no; then :
11719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11720
11721 fi
11722
11723 fi
11724
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11726 $as_echo_n "checking for ANSI C header files... " >&6; }
11727 if test "${ac_cv_header_stdc+set}" = set; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h.  */
11732 #include <stdlib.h>
11733 #include <stdarg.h>
11734 #include <string.h>
11735 #include <float.h>
11736
11737 int
11738 main ()
11739 {
11740
11741   ;
11742   return 0;
11743 }
11744 _ACEOF
11745 if ac_fn_c_try_compile "$LINENO"; then :
11746   ac_cv_header_stdc=yes
11747 else
11748   ac_cv_header_stdc=no
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751
11752 if test $ac_cv_header_stdc = yes; then
11753   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h.  */
11756 #include <string.h>
11757
11758 _ACEOF
11759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11760   $EGREP "memchr" >/dev/null 2>&1; then :
11761
11762 else
11763   ac_cv_header_stdc=no
11764 fi
11765 rm -f conftest*
11766
11767 fi
11768
11769 if test $ac_cv_header_stdc = yes; then
11770   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h.  */
11773 #include <stdlib.h>
11774
11775 _ACEOF
11776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11777   $EGREP "free" >/dev/null 2>&1; then :
11778
11779 else
11780   ac_cv_header_stdc=no
11781 fi
11782 rm -f conftest*
11783
11784 fi
11785
11786 if test $ac_cv_header_stdc = yes; then
11787   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11788   if test "$cross_compiling" = yes; then :
11789   :
11790 else
11791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h.  */
11793 #include <ctype.h>
11794 #include <stdlib.h>
11795 #if ((' ' & 0x0FF) == 0x020)
11796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11798 #else
11799 # define ISLOWER(c) \
11800                    (('a' <= (c) && (c) <= 'i') \
11801                      || ('j' <= (c) && (c) <= 'r') \
11802                      || ('s' <= (c) && (c) <= 'z'))
11803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11804 #endif
11805
11806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11807 int
11808 main ()
11809 {
11810   int i;
11811   for (i = 0; i < 256; i++)
11812     if (XOR (islower (i), ISLOWER (i))
11813         || toupper (i) != TOUPPER (i))
11814       return 2;
11815   return 0;
11816 }
11817 _ACEOF
11818 if ac_fn_c_try_run "$LINENO"; then :
11819
11820 else
11821   ac_cv_header_stdc=no
11822 fi
11823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11824   conftest.$ac_objext conftest.beam conftest.$ac_ext
11825 fi
11826
11827 fi
11828 fi
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11830 $as_echo "$ac_cv_header_stdc" >&6; }
11831 if test $ac_cv_header_stdc = yes; then
11832
11833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11834
11835 fi
11836
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11838 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11839 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11840   $as_echo_n "(cached) " >&6
11841 else
11842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h.  */
11844 #include <sys/types.h>
11845 #include <sys/wait.h>
11846 #ifndef WEXITSTATUS
11847 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11848 #endif
11849 #ifndef WIFEXITED
11850 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11851 #endif
11852
11853 int
11854 main ()
11855 {
11856   int s;
11857   wait (&s);
11858   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864   ac_cv_header_sys_wait_h=yes
11865 else
11866   ac_cv_header_sys_wait_h=no
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11871 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11872 if test $ac_cv_header_sys_wait_h = yes; then
11873
11874 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11875
11876 fi
11877
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11879 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11880 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11881   $as_echo_n "(cached) " >&6
11882 else
11883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h.  */
11885
11886 #include <stdbool.h>
11887 #ifndef bool
11888  "error: bool is not defined"
11889 #endif
11890 #ifndef false
11891  "error: false is not defined"
11892 #endif
11893 #if false
11894  "error: false is not 0"
11895 #endif
11896 #ifndef true
11897  "error: true is not defined"
11898 #endif
11899 #if true != 1
11900  "error: true is not 1"
11901 #endif
11902 #ifndef __bool_true_false_are_defined
11903  "error: __bool_true_false_are_defined is not defined"
11904 #endif
11905
11906         struct s { _Bool s: 1; _Bool t; } s;
11907
11908         char a[true == 1 ? 1 : -1];
11909         char b[false == 0 ? 1 : -1];
11910         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11911         char d[(bool) 0.5 == true ? 1 : -1];
11912         bool e = &s;
11913         char f[(_Bool) 0.0 == false ? 1 : -1];
11914         char g[true];
11915         char h[sizeof (_Bool)];
11916         char i[sizeof s.t];
11917         enum { j = false, k = true, l = false * true, m = true * 256 };
11918         /* The following fails for
11919            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11920         _Bool n[m];
11921         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11922         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11923 #       if defined __xlc__ || defined __GNUC__
11924          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11925             reported by James Lemley on 2005-10-05; see
11926             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11927             This test is not quite right, since xlc is allowed to
11928             reject this program, as the initializer for xlcbug is
11929             not one of the forms that C requires support for.
11930             However, doing the test right would require a runtime
11931             test, and that would make cross-compilation harder.
11932             Let us hope that IBM fixes the xlc bug, and also adds
11933             support for this kind of constant expression.  In the
11934             meantime, this test will reject xlc, which is OK, since
11935             our stdbool.h substitute should suffice.  We also test
11936             this with GCC, where it should work, to detect more
11937             quickly whether someone messes up the test in the
11938             future.  */
11939          char digs[] = "0123456789";
11940          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11941 #       endif
11942         /* Catch a bug in an HP-UX C compiler.  See
11943            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11944            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11945          */
11946         _Bool q = true;
11947         _Bool *pq = &q;
11948
11949 int
11950 main ()
11951 {
11952
11953         *pq |= q;
11954         *pq |= ! q;
11955         /* Refer to every declared value, to avoid compiler optimizations.  */
11956         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11957                 + !m + !n + !o + !p + !q + !pq);
11958
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 if ac_fn_c_try_compile "$LINENO"; then :
11964   ac_cv_header_stdbool_h=yes
11965 else
11966   ac_cv_header_stdbool_h=no
11967 fi
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11971 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11972 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11973 if test "x$ac_cv_type__Bool" = x""yes; then :
11974
11975 cat >>confdefs.h <<_ACEOF
11976 #define HAVE__BOOL 1
11977 _ACEOF
11978
11979
11980 fi
11981
11982 if test $ac_cv_header_stdbool_h = yes; then
11983
11984 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11985
11986 fi
11987
11988
11989 for ac_header in errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \
11990         utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \
11991         utime.h ulimit.h sys/resource.h gshadow.h lastlog.h \
11992         locale.h rpc/key_prot.h netdb.h
11993 do :
11994   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11995 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11997   cat >>confdefs.h <<_ACEOF
11998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11999 _ACEOF
12000
12001 fi
12002
12003 done
12004
12005
12006 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
12007 if test "x$ac_cv_header_shadow_h" = x""yes; then :
12008
12009 else
12010   as_fn_error $? "You need a libc with shadow.h" "$LINENO" 5
12011 fi
12012
12013
12014
12015 for ac_func in l64a fchmod fchown fsync futimes getgroups gethostname getspnam \
12016         gettimeofday getusershell getutent initgroups lchown lckpwdf lstat \
12017         lutimes memcpy memset setgroups sigaction strchr updwtmp updwtmpx innetgr \
12018         getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getaddrinfo
12019 do :
12020   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12023   cat >>confdefs.h <<_ACEOF
12024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025 _ACEOF
12026
12027 fi
12028 done
12029
12030 # Check whether --enable-largefile was given.
12031 if test "${enable_largefile+set}" = set; then :
12032   enableval=$enable_largefile;
12033 fi
12034
12035 if test "$enable_largefile" != no; then
12036
12037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12038 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12039 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042   ac_cv_sys_largefile_CC=no
12043      if test "$GCC" != yes; then
12044        ac_save_CC=$CC
12045        while :; do
12046          # IRIX 6.2 and later do not support large files by default,
12047          # so use the C compiler's -n32 option if that helps.
12048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h.  */
12050 #include <sys/types.h>
12051  /* Check that off_t can represent 2**63 - 1 correctly.
12052     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12053     since some C++ compilers masquerading as C compilers
12054     incorrectly reject 9223372036854775807.  */
12055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12056   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12057                        && LARGE_OFF_T % 2147483647 == 1)
12058                       ? 1 : -1];
12059 int
12060 main ()
12061 {
12062
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067          if ac_fn_c_try_compile "$LINENO"; then :
12068   break
12069 fi
12070 rm -f core conftest.err conftest.$ac_objext
12071          CC="$CC -n32"
12072          if ac_fn_c_try_compile "$LINENO"; then :
12073   ac_cv_sys_largefile_CC=' -n32'; break
12074 fi
12075 rm -f core conftest.err conftest.$ac_objext
12076          break
12077        done
12078        CC=$ac_save_CC
12079        rm -f conftest.$ac_ext
12080     fi
12081 fi
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12083 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12084   if test "$ac_cv_sys_largefile_CC" != no; then
12085     CC=$CC$ac_cv_sys_largefile_CC
12086   fi
12087
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12089 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12090 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
12091   $as_echo_n "(cached) " >&6
12092 else
12093   while :; do
12094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h.  */
12096 #include <sys/types.h>
12097  /* Check that off_t can represent 2**63 - 1 correctly.
12098     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12099     since some C++ compilers masquerading as C compilers
12100     incorrectly reject 9223372036854775807.  */
12101 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12102   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12103                        && LARGE_OFF_T % 2147483647 == 1)
12104                       ? 1 : -1];
12105 int
12106 main ()
12107 {
12108
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114   ac_cv_sys_file_offset_bits=no; break
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119 #define _FILE_OFFSET_BITS 64
12120 #include <sys/types.h>
12121  /* Check that off_t can represent 2**63 - 1 correctly.
12122     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12123     since some C++ compilers masquerading as C compilers
12124     incorrectly reject 9223372036854775807.  */
12125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12126   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12127                        && LARGE_OFF_T % 2147483647 == 1)
12128                       ? 1 : -1];
12129 int
12130 main ()
12131 {
12132
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 if ac_fn_c_try_compile "$LINENO"; then :
12138   ac_cv_sys_file_offset_bits=64; break
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141   ac_cv_sys_file_offset_bits=unknown
12142   break
12143 done
12144 fi
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12146 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12147 case $ac_cv_sys_file_offset_bits in #(
12148   no | unknown) ;;
12149   *)
12150 cat >>confdefs.h <<_ACEOF
12151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12152 _ACEOF
12153 ;;
12154 esac
12155 rm -rf conftest*
12156   if test $ac_cv_sys_file_offset_bits = unknown; then
12157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12158 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12159 if test "${ac_cv_sys_large_files+set}" = set; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   while :; do
12163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h.  */
12165 #include <sys/types.h>
12166  /* Check that off_t can represent 2**63 - 1 correctly.
12167     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12168     since some C++ compilers masquerading as C compilers
12169     incorrectly reject 9223372036854775807.  */
12170 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12171   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12172                        && LARGE_OFF_T % 2147483647 == 1)
12173                       ? 1 : -1];
12174 int
12175 main ()
12176 {
12177
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183   ac_cv_sys_large_files=no; break
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h.  */
12188 #define _LARGE_FILES 1
12189 #include <sys/types.h>
12190  /* Check that off_t can represent 2**63 - 1 correctly.
12191     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12192     since some C++ compilers masquerading as C compilers
12193     incorrectly reject 9223372036854775807.  */
12194 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12195   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12196                        && LARGE_OFF_T % 2147483647 == 1)
12197                       ? 1 : -1];
12198 int
12199 main ()
12200 {
12201
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 if ac_fn_c_try_compile "$LINENO"; then :
12207   ac_cv_sys_large_files=1; break
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210   ac_cv_sys_large_files=unknown
12211   break
12212 done
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12215 $as_echo "$ac_cv_sys_large_files" >&6; }
12216 case $ac_cv_sys_large_files in #(
12217   no | unknown) ;;
12218   *)
12219 cat >>confdefs.h <<_ACEOF
12220 #define _LARGE_FILES $ac_cv_sys_large_files
12221 _ACEOF
12222 ;;
12223 esac
12224 rm -rf conftest*
12225   fi
12226 fi
12227
12228
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12230 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12231 if test "${ac_cv_c_const+set}" = set; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h.  */
12236
12237 int
12238 main ()
12239 {
12240 /* FIXME: Include the comments suggested by Paul. */
12241 #ifndef __cplusplus
12242   /* Ultrix mips cc rejects this.  */
12243   typedef int charset[2];
12244   const charset cs;
12245   /* SunOS 4.1.1 cc rejects this.  */
12246   char const *const *pcpcc;
12247   char **ppc;
12248   /* NEC SVR4.0.2 mips cc rejects this.  */
12249   struct point {int x, y;};
12250   static struct point const zero = {0,0};
12251   /* AIX XL C 1.02.0.0 rejects this.
12252      It does not let you subtract one const X* pointer from another in
12253      an arm of an if-expression whose if-part is not a constant
12254      expression */
12255   const char *g = "string";
12256   pcpcc = &g + (g ? g-g : 0);
12257   /* HPUX 7.0 cc rejects these. */
12258   ++pcpcc;
12259   ppc = (char**) pcpcc;
12260   pcpcc = (char const *const *) ppc;
12261   { /* SCO 3.2v4 cc rejects this.  */
12262     char *t;
12263     char const *s = 0 ? (char *) 0 : (char const *) 0;
12264
12265     *t++ = 0;
12266     if (s) return 0;
12267   }
12268   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12269     int x[] = {25, 17};
12270     const int *foo = &x[0];
12271     ++foo;
12272   }
12273   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12274     typedef const int *iptr;
12275     iptr p = 0;
12276     ++p;
12277   }
12278   { /* AIX XL C 1.02.0.0 rejects this saying
12279        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12280     struct s { int j; const int *ap[3]; };
12281     struct s *b; b->j = 5;
12282   }
12283   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12284     const int foo = 10;
12285     if (!foo) return 0;
12286   }
12287   return !cs[0] && !zero.x;
12288 #endif
12289
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_c_try_compile "$LINENO"; then :
12295   ac_cv_c_const=yes
12296 else
12297   ac_cv_c_const=no
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12302 $as_echo "$ac_cv_c_const" >&6; }
12303 if test $ac_cv_c_const = no; then
12304
12305 $as_echo "#define const /**/" >>confdefs.h
12306
12307 fi
12308
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12310 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12311 if test "${ac_cv_type_uid_t+set}" = set; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h.  */
12316 #include <sys/types.h>
12317
12318 _ACEOF
12319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12320   $EGREP "uid_t" >/dev/null 2>&1; then :
12321   ac_cv_type_uid_t=yes
12322 else
12323   ac_cv_type_uid_t=no
12324 fi
12325 rm -f conftest*
12326
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12329 $as_echo "$ac_cv_type_uid_t" >&6; }
12330 if test $ac_cv_type_uid_t = no; then
12331
12332 $as_echo "#define uid_t int" >>confdefs.h
12333
12334
12335 $as_echo "#define gid_t int" >>confdefs.h
12336
12337 fi
12338
12339 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12340 if test "x$ac_cv_type_off_t" = x""yes; then :
12341
12342 else
12343
12344 cat >>confdefs.h <<_ACEOF
12345 #define off_t long int
12346 _ACEOF
12347
12348 fi
12349
12350 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12351 if test "x$ac_cv_type_pid_t" = x""yes; then :
12352
12353 else
12354
12355 cat >>confdefs.h <<_ACEOF
12356 #define pid_t int
12357 _ACEOF
12358
12359 fi
12360
12361 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12362 if test "x$ac_cv_type_mode_t" = x""yes; then :
12363
12364 else
12365
12366 cat >>confdefs.h <<_ACEOF
12367 #define mode_t int
12368 _ACEOF
12369
12370 fi
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12373 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12374 if test "${ac_cv_header_stat_broken+set}" = set; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h.  */
12379 #include <sys/types.h>
12380 #include <sys/stat.h>
12381
12382 #if defined S_ISBLK && defined S_IFDIR
12383 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12384 #endif
12385
12386 #if defined S_ISBLK && defined S_IFCHR
12387 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12388 #endif
12389
12390 #if defined S_ISLNK && defined S_IFREG
12391 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12392 #endif
12393
12394 #if defined S_ISSOCK && defined S_IFREG
12395 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12396 #endif
12397
12398 _ACEOF
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400   ac_cv_header_stat_broken=no
12401 else
12402   ac_cv_header_stat_broken=yes
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 fi
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12407 $as_echo "$ac_cv_header_stat_broken" >&6; }
12408 if test $ac_cv_header_stat_broken = yes; then
12409
12410 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12411
12412 fi
12413
12414 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12415 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
12416
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_STRUCT_STAT_ST_RDEV 1
12419 _ACEOF
12420
12421
12422 fi
12423
12424 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12425 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
12426
12427 cat >>confdefs.h <<_ACEOF
12428 #define HAVE_STRUCT_STAT_ST_ATIM 1
12429 _ACEOF
12430
12431
12432 fi
12433
12434 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
12435 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
12436
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
12439 _ACEOF
12440
12441
12442 fi
12443
12444 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
12445 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
12446
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_STRUCT_STAT_ST_MTIM 1
12449 _ACEOF
12450
12451
12452 fi
12453
12454 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
12455 if test "x$ac_cv_member_struct_stat_st_mtimensec" = x""yes; then :
12456
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
12459 _ACEOF
12460
12461
12462 fi
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12465 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12466 if test "${ac_cv_header_time+set}" = set; then :
12467   $as_echo_n "(cached) " >&6
12468 else
12469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h.  */
12471 #include <sys/types.h>
12472 #include <sys/time.h>
12473 #include <time.h>
12474
12475 int
12476 main ()
12477 {
12478 if ((struct tm *) 0)
12479 return 0;
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485   ac_cv_header_time=yes
12486 else
12487   ac_cv_header_time=no
12488 fi
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12492 $as_echo "$ac_cv_header_time" >&6; }
12493 if test $ac_cv_header_time = yes; then
12494
12495 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12496
12497 fi
12498
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12500 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12501 if test "${ac_cv_struct_tm+set}" = set; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h.  */
12506 #include <sys/types.h>
12507 #include <time.h>
12508
12509 int
12510 main ()
12511 {
12512 struct tm tm;
12513                                      int *p = &tm.tm_sec;
12514                                      return !p;
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_compile "$LINENO"; then :
12520   ac_cv_struct_tm=time.h
12521 else
12522   ac_cv_struct_tm=sys/time.h
12523 fi
12524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12525 fi
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12527 $as_echo "$ac_cv_struct_tm" >&6; }
12528 if test $ac_cv_struct_tm = sys/time.h; then
12529
12530 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12531
12532 fi
12533
12534
12535 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "#include <utmp.h>
12536 "
12537 if test "x$ac_cv_member_struct_utmp_ut_type" = x""yes; then :
12538
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_STRUCT_UTMP_UT_TYPE 1
12541 _ACEOF
12542
12543
12544 fi
12545 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "#include <utmp.h>
12546 "
12547 if test "x$ac_cv_member_struct_utmp_ut_id" = x""yes; then :
12548
12549 cat >>confdefs.h <<_ACEOF
12550 #define HAVE_STRUCT_UTMP_UT_ID 1
12551 _ACEOF
12552
12553
12554 fi
12555 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_name" "ac_cv_member_struct_utmp_ut_name" "#include <utmp.h>
12556 "
12557 if test "x$ac_cv_member_struct_utmp_ut_name" = x""yes; then :
12558
12559 cat >>confdefs.h <<_ACEOF
12560 #define HAVE_STRUCT_UTMP_UT_NAME 1
12561 _ACEOF
12562
12563
12564 fi
12565 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <utmp.h>
12566 "
12567 if test "x$ac_cv_member_struct_utmp_ut_user" = x""yes; then :
12568
12569 cat >>confdefs.h <<_ACEOF
12570 #define HAVE_STRUCT_UTMP_UT_USER 1
12571 _ACEOF
12572
12573
12574 fi
12575 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <utmp.h>
12576 "
12577 if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
12578
12579 cat >>confdefs.h <<_ACEOF
12580 #define HAVE_STRUCT_UTMP_UT_HOST 1
12581 _ACEOF
12582
12583
12584 fi
12585 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_syslen" "ac_cv_member_struct_utmp_ut_syslen" "#include <utmp.h>
12586 "
12587 if test "x$ac_cv_member_struct_utmp_ut_syslen" = x""yes; then :
12588
12589 cat >>confdefs.h <<_ACEOF
12590 #define HAVE_STRUCT_UTMP_UT_SYSLEN 1
12591 _ACEOF
12592
12593
12594 fi
12595 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "#include <utmp.h>
12596 "
12597 if test "x$ac_cv_member_struct_utmp_ut_addr" = x""yes; then :
12598
12599 cat >>confdefs.h <<_ACEOF
12600 #define HAVE_STRUCT_UTMP_UT_ADDR 1
12601 _ACEOF
12602
12603
12604 fi
12605 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "#include <utmp.h>
12606 "
12607 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = x""yes; then :
12608
12609 cat >>confdefs.h <<_ACEOF
12610 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
12611 _ACEOF
12612
12613
12614 fi
12615 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "#include <utmp.h>
12616 "
12617 if test "x$ac_cv_member_struct_utmp_ut_time" = x""yes; then :
12618
12619 cat >>confdefs.h <<_ACEOF
12620 #define HAVE_STRUCT_UTMP_UT_TIME 1
12621 _ACEOF
12622
12623
12624 fi
12625 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <utmp.h>
12626 "
12627 if test "x$ac_cv_member_struct_utmp_ut_xtime" = x""yes; then :
12628
12629 cat >>confdefs.h <<_ACEOF
12630 #define HAVE_STRUCT_UTMP_UT_XTIME 1
12631 _ACEOF
12632
12633
12634 fi
12635 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <utmp.h>
12636 "
12637 if test "x$ac_cv_member_struct_utmp_ut_tv" = x""yes; then :
12638
12639 cat >>confdefs.h <<_ACEOF
12640 #define HAVE_STRUCT_UTMP_UT_TV 1
12641 _ACEOF
12642
12643
12644 fi
12645
12646 if test "$ac_cv_header_utmpx_h" = "yes" &&
12647    test "$ac_cv_member_struct_utmp_ut_id" != "yes"; then
12648         as_fn_error $? "Systems with UTMPX and no ut_id field in the utmp structure are not supported" "$LINENO" 5
12649 fi
12650
12651 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_name" "ac_cv_member_struct_utmpx_ut_name" "#include <utmpx.h>
12652 "
12653 if test "x$ac_cv_member_struct_utmpx_ut_name" = x""yes; then :
12654
12655 cat >>confdefs.h <<_ACEOF
12656 #define HAVE_STRUCT_UTMPX_UT_NAME 1
12657 _ACEOF
12658
12659
12660 fi
12661 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <utmpx.h>
12662 "
12663 if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
12664
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_STRUCT_UTMPX_UT_HOST 1
12667 _ACEOF
12668
12669
12670 fi
12671 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h>
12672 "
12673 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = x""yes; then :
12674
12675 cat >>confdefs.h <<_ACEOF
12676 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
12677 _ACEOF
12678
12679
12680 fi
12681 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "#include <utmpx.h>
12682 "
12683 if test "x$ac_cv_member_struct_utmpx_ut_addr" = x""yes; then :
12684
12685 cat >>confdefs.h <<_ACEOF
12686 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
12687 _ACEOF
12688
12689
12690 fi
12691 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "#include <utmpx.h>
12692 "
12693 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = x""yes; then :
12694
12695 cat >>confdefs.h <<_ACEOF
12696 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
12697 _ACEOF
12698
12699
12700 fi
12701 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "#include <utmpx.h>
12702 "
12703 if test "x$ac_cv_member_struct_utmpx_ut_time" = x""yes; then :
12704
12705 cat >>confdefs.h <<_ACEOF
12706 #define HAVE_STRUCT_UTMPX_UT_TIME 1
12707 _ACEOF
12708
12709
12710 fi
12711 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <utmpx.h>
12712 "
12713 if test "x$ac_cv_member_struct_utmpx_ut_xtime" = x""yes; then :
12714
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_STRUCT_UTMPX_UT_XTIME 1
12717 _ACEOF
12718
12719
12720 fi
12721
12722
12723 if test "$ac_cv_header_lastlog_h" = "yes"; then
12724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ll_host in struct lastlog" >&5
12725 $as_echo_n "checking for ll_host in struct lastlog... " >&6; }
12726 if test "${ac_cv_struct_lastlog_ll_host+set}" = set; then :
12727   $as_echo_n "(cached) " >&6
12728 else
12729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h.  */
12731 #include <lastlog.h>
12732 int
12733 main ()
12734 {
12735 struct lastlog ll; char *cp = ll.ll_host;
12736
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_compile "$LINENO"; then :
12742   ac_cv_struct_lastlog_ll_host=yes
12743 else
12744   ac_cv_struct_lastlog_ll_host=no
12745
12746 fi
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_lastlog_ll_host" >&5
12751 $as_echo "$ac_cv_struct_lastlog_ll_host" >&6; }
12752
12753         if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then
12754
12755 $as_echo "#define HAVE_LL_HOST 1" >>confdefs.h
12756
12757         fi
12758 fi
12759
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
12761 $as_echo_n "checking type of array argument to getgroups... " >&6; }
12762 if test "${ac_cv_type_getgroups+set}" = set; then :
12763   $as_echo_n "(cached) " >&6
12764 else
12765   if test "$cross_compiling" = yes; then :
12766   ac_cv_type_getgroups=cross
12767 else
12768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h.  */
12770 /* Thanks to Mike Rendell for this test.  */
12771 $ac_includes_default
12772 #define NGID 256
12773 #undef MAX
12774 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12775
12776 int
12777 main ()
12778 {
12779   gid_t gidset[NGID];
12780   int i, n;
12781   union { gid_t gval; long int lval; }  val;
12782
12783   val.lval = -1;
12784   for (i = 0; i < NGID; i++)
12785     gidset[i] = val.gval;
12786   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12787                  gidset);
12788   /* Exit non-zero if getgroups seems to require an array of ints.  This
12789      happens when gid_t is short int but getgroups modifies an array
12790      of ints.  */
12791   return n > 0 && gidset[n] != val.gval;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_run "$LINENO"; then :
12795   ac_cv_type_getgroups=gid_t
12796 else
12797   ac_cv_type_getgroups=int
12798 fi
12799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12800   conftest.$ac_objext conftest.beam conftest.$ac_ext
12801 fi
12802
12803 if test $ac_cv_type_getgroups = cross; then
12804         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h.  */
12806 #include <unistd.h>
12807
12808 _ACEOF
12809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12810   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
12811   ac_cv_type_getgroups=gid_t
12812 else
12813   ac_cv_type_getgroups=int
12814 fi
12815 rm -f conftest*
12816
12817 fi
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
12820 $as_echo "$ac_cv_type_getgroups" >&6; }
12821
12822 cat >>confdefs.h <<_ACEOF
12823 #define GETGROUPS_T $ac_cv_type_getgroups
12824 _ACEOF
12825
12826
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12828 $as_echo_n "checking return type of signal handlers... " >&6; }
12829 if test "${ac_cv_type_signal+set}" = set; then :
12830   $as_echo_n "(cached) " >&6
12831 else
12832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h.  */
12834 #include <sys/types.h>
12835 #include <signal.h>
12836
12837 int
12838 main ()
12839 {
12840 return *(signal (0, 0)) (0) == 1;
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_compile "$LINENO"; then :
12846   ac_cv_type_signal=int
12847 else
12848   ac_cv_type_signal=void
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12853 $as_echo "$ac_cv_type_signal" >&6; }
12854
12855 cat >>confdefs.h <<_ACEOF
12856 #define RETSIGTYPE $ac_cv_type_signal
12857 _ACEOF
12858
12859
12860
12861
12862
12863   for ac_header in $ac_header_list
12864 do :
12865   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12867 "
12868 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12869   cat >>confdefs.h <<_ACEOF
12870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12871 _ACEOF
12872
12873 fi
12874
12875 done
12876
12877
12878
12879
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
12881 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
12882 if test "${ac_cv_func_utime_null+set}" = set; then :
12883   $as_echo_n "(cached) " >&6
12884 else
12885   rm -f conftest.data; >conftest.data
12886 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
12887 if test "$cross_compiling" = yes; then :
12888   ac_cv_func_utime_null='guessing yes'
12889 else
12890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h.  */
12892 $ac_includes_default
12893                #ifdef HAVE_UTIME_H
12894                # include <utime.h>
12895                #endif
12896 int
12897 main ()
12898 {
12899 struct stat s, t;
12900   return ! (stat ("conftest.data", &s) == 0
12901             && utime ("conftest.data", 0) == 0
12902             && stat ("conftest.data", &t) == 0
12903             && t.st_mtime >= s.st_mtime
12904             && t.st_mtime - s.st_mtime < 120);
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 if ac_fn_c_try_run "$LINENO"; then :
12910   ac_cv_func_utime_null=yes
12911 else
12912   ac_cv_func_utime_null=no
12913 fi
12914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12915   conftest.$ac_objext conftest.beam conftest.$ac_ext
12916 fi
12917
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
12920 $as_echo "$ac_cv_func_utime_null" >&6; }
12921 if test "x$ac_cv_func_utime_null" != xno; then
12922   ac_cv_func_utime_null=yes
12923
12924 $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
12925
12926 fi
12927 rm -f conftest.data
12928
12929 for ac_func in strftime
12930 do :
12931   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12932 if test "x$ac_cv_func_strftime" = x""yes; then :
12933   cat >>confdefs.h <<_ACEOF
12934 #define HAVE_STRFTIME 1
12935 _ACEOF
12936
12937 else
12938   # strftime is in -lintl on SCO UNIX.
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12940 $as_echo_n "checking for strftime in -lintl... " >&6; }
12941 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12942   $as_echo_n "(cached) " >&6
12943 else
12944   ac_check_lib_save_LIBS=$LIBS
12945 LIBS="-lintl  $LIBS"
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h.  */
12948
12949 /* Override any GCC internal prototype to avoid an error.
12950    Use char because int might match the return type of a GCC
12951    builtin and then its argument prototype would still apply.  */
12952 #ifdef __cplusplus
12953 extern "C"
12954 #endif
12955 char strftime ();
12956 int
12957 main ()
12958 {
12959 return strftime ();
12960   ;
12961   return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_link "$LINENO"; then :
12965   ac_cv_lib_intl_strftime=yes
12966 else
12967   ac_cv_lib_intl_strftime=no
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext \
12970     conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12974 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12975 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12976   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12977
12978 LIBS="-lintl $LIBS"
12979 fi
12980
12981 fi
12982 done
12983
12984 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
12985 if test "x$ac_cv_func_mkdir" = x""yes; then :
12986   $as_echo "#define HAVE_MKDIR 1" >>confdefs.h
12987
12988 else
12989   case " $LIBOBJS " in
12990   *" mkdir.$ac_objext "* ) ;;
12991   *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
12992  ;;
12993 esac
12994
12995 fi
12996
12997 ac_fn_c_check_func "$LINENO" "putgrent" "ac_cv_func_putgrent"
12998 if test "x$ac_cv_func_putgrent" = x""yes; then :
12999   $as_echo "#define HAVE_PUTGRENT 1" >>confdefs.h
13000
13001 else
13002   case " $LIBOBJS " in
13003   *" putgrent.$ac_objext "* ) ;;
13004   *) LIBOBJS="$LIBOBJS putgrent.$ac_objext"
13005  ;;
13006 esac
13007
13008 fi
13009
13010 ac_fn_c_check_func "$LINENO" "putpwent" "ac_cv_func_putpwent"
13011 if test "x$ac_cv_func_putpwent" = x""yes; then :
13012   $as_echo "#define HAVE_PUTPWENT 1" >>confdefs.h
13013
13014 else
13015   case " $LIBOBJS " in
13016   *" putpwent.$ac_objext "* ) ;;
13017   *) LIBOBJS="$LIBOBJS putpwent.$ac_objext"
13018  ;;
13019 esac
13020
13021 fi
13022
13023 ac_fn_c_check_func "$LINENO" "putspent" "ac_cv_func_putspent"
13024 if test "x$ac_cv_func_putspent" = x""yes; then :
13025   $as_echo "#define HAVE_PUTSPENT 1" >>confdefs.h
13026
13027 else
13028   case " $LIBOBJS " in
13029   *" putspent.$ac_objext "* ) ;;
13030   *) LIBOBJS="$LIBOBJS putspent.$ac_objext"
13031  ;;
13032 esac
13033
13034 fi
13035
13036 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
13037 if test "x$ac_cv_func_rename" = x""yes; then :
13038   $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13039
13040 else
13041   case " $LIBOBJS " in
13042   *" rename.$ac_objext "* ) ;;
13043   *) LIBOBJS="$LIBOBJS rename.$ac_objext"
13044  ;;
13045 esac
13046
13047 fi
13048
13049 ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
13050 if test "x$ac_cv_func_rmdir" = x""yes; then :
13051   $as_echo "#define HAVE_RMDIR 1" >>confdefs.h
13052
13053 else
13054   case " $LIBOBJS " in
13055   *" rmdir.$ac_objext "* ) ;;
13056   *) LIBOBJS="$LIBOBJS rmdir.$ac_objext"
13057  ;;
13058 esac
13059
13060 fi
13061
13062
13063 ac_fn_c_check_func "$LINENO" "sgetgrent" "ac_cv_func_sgetgrent"
13064 if test "x$ac_cv_func_sgetgrent" = x""yes; then :
13065   $as_echo "#define HAVE_SGETGRENT 1" >>confdefs.h
13066
13067 else
13068   case " $LIBOBJS " in
13069   *" sgetgrent.$ac_objext "* ) ;;
13070   *) LIBOBJS="$LIBOBJS sgetgrent.$ac_objext"
13071  ;;
13072 esac
13073
13074 fi
13075
13076 ac_fn_c_check_func "$LINENO" "sgetpwent" "ac_cv_func_sgetpwent"
13077 if test "x$ac_cv_func_sgetpwent" = x""yes; then :
13078   $as_echo "#define HAVE_SGETPWENT 1" >>confdefs.h
13079
13080 else
13081   case " $LIBOBJS " in
13082   *" sgetpwent.$ac_objext "* ) ;;
13083   *) LIBOBJS="$LIBOBJS sgetpwent.$ac_objext"
13084  ;;
13085 esac
13086
13087 fi
13088
13089 ac_fn_c_check_func "$LINENO" "sgetspent" "ac_cv_func_sgetspent"
13090 if test "x$ac_cv_func_sgetspent" = x""yes; then :
13091   $as_echo "#define HAVE_SGETSPENT 1" >>confdefs.h
13092
13093 else
13094   case " $LIBOBJS " in
13095   *" sgetspent.$ac_objext "* ) ;;
13096   *) LIBOBJS="$LIBOBJS sgetspent.$ac_objext"
13097  ;;
13098 esac
13099
13100 fi
13101
13102
13103 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13104 if test "x$ac_cv_func_snprintf" = x""yes; then :
13105   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
13106
13107 else
13108   case " $LIBOBJS " in
13109   *" snprintf.$ac_objext "* ) ;;
13110   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13111  ;;
13112 esac
13113
13114 fi
13115
13116 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13117 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
13118   $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13119
13120 else
13121   case " $LIBOBJS " in
13122   *" strcasecmp.$ac_objext "* ) ;;
13123   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
13124  ;;
13125 esac
13126
13127 fi
13128
13129 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13130 if test "x$ac_cv_func_strdup" = x""yes; then :
13131   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
13132
13133 else
13134   case " $LIBOBJS " in
13135   *" strdup.$ac_objext "* ) ;;
13136   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
13137  ;;
13138 esac
13139
13140 fi
13141
13142 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13143 if test "x$ac_cv_func_strerror" = x""yes; then :
13144   $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
13145
13146 else
13147   case " $LIBOBJS " in
13148   *" strerror.$ac_objext "* ) ;;
13149   *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
13150  ;;
13151 esac
13152
13153 fi
13154
13155 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
13156 if test "x$ac_cv_func_strstr" = x""yes; then :
13157   $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
13158
13159 else
13160   case " $LIBOBJS " in
13161   *" strstr.$ac_objext "* ) ;;
13162   *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
13163  ;;
13164 esac
13165
13166 fi
13167
13168
13169
13170 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
13171 if test "x$ac_cv_func_setpgrp" = x""yes; then :
13172
13173 fi
13174
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13176 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13177 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   if test "$cross_compiling" = yes; then :
13181   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
13182 else
13183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h.  */
13185 $ac_includes_default
13186 int
13187 main ()
13188 {
13189 /* If this system has a BSD-style setpgrp which takes arguments,
13190   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13191   exit successfully. */
13192   return setpgrp (1,1) != -1;
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_run "$LINENO"; then :
13198   ac_cv_func_setpgrp_void=no
13199 else
13200   ac_cv_func_setpgrp_void=yes
13201 fi
13202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13203   conftest.$ac_objext conftest.beam conftest.$ac_ext
13204 fi
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13208 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13209 if test $ac_cv_func_setpgrp_void = yes; then
13210
13211 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13212
13213 fi
13214
13215
13216 if test "$ac_cv_header_shadow_h" = "yes"; then
13217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working shadow group support" >&5
13218 $as_echo_n "checking for working shadow group support... " >&6; }
13219 if test "${ac_cv_libc_shadowgrp+set}" = set; then :
13220   $as_echo_n "(cached) " >&6
13221 else
13222   if test "$cross_compiling" = yes; then :
13223   ac_cv_libc_shadowgrp=no
13224
13225 else
13226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h.  */
13228
13229                                 #include <shadow.h>
13230                                 main()
13231                                 {
13232                                         struct sgrp *sg = sgetsgent("test:x::");
13233                                         /* NYS libc on Red Hat 3.0.3 has broken shadow group support */
13234                                         return !sg || !sg->sg_adm || !sg->sg_mem;
13235                                 }
13236
13237 _ACEOF
13238 if ac_fn_c_try_run "$LINENO"; then :
13239   ac_cv_libc_shadowgrp=yes
13240 else
13241   ac_cv_libc_shadowgrp=no
13242 fi
13243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13244   conftest.$ac_objext conftest.beam conftest.$ac_ext
13245 fi
13246
13247
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_shadowgrp" >&5
13250 $as_echo "$ac_cv_libc_shadowgrp" >&6; }
13251
13252         if test "$ac_cv_libc_shadowgrp" = "yes"; then
13253
13254 $as_echo "#define HAVE_SHADOWGRP 1" >>confdefs.h
13255
13256         fi
13257 fi
13258
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of shared mail directory" >&5
13260 $as_echo_n "checking location of shared mail directory... " >&6; }
13261 if test "${shadow_cv_maildir+set}" = set; then :
13262   $as_echo_n "(cached) " >&6
13263 else
13264   for shadow_cv_maildir in /var/mail /var/spool/mail /usr/spool/mail /usr/mail none; do
13265         if test -d $shadow_cv_maildir; then
13266                 break
13267         fi
13268 done
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_maildir" >&5
13271 $as_echo "$shadow_cv_maildir" >&6; }
13272 if test $shadow_cv_maildir != none; then
13273
13274 cat >>confdefs.h <<_ACEOF
13275 #define MAIL_SPOOL_DIR "$shadow_cv_maildir"
13276 _ACEOF
13277
13278 fi
13279
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of user mail file" >&5
13281 $as_echo_n "checking location of user mail file... " >&6; }
13282 if test "${shadow_cv_mailfile+set}" = set; then :
13283   $as_echo_n "(cached) " >&6
13284 else
13285   for shadow_cv_mailfile in Mailbox mailbox Mail mail .mail none; do
13286         if test -f $HOME/$shadow_cv_mailfile; then
13287                 break
13288         fi
13289 done
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_mailfile" >&5
13292 $as_echo "$shadow_cv_mailfile" >&6; }
13293 if test $shadow_cv_mailfile != none; then
13294
13295 cat >>confdefs.h <<_ACEOF
13296 #define MAIL_SPOOL_FILE "$shadow_cv_mailfile"
13297 _ACEOF
13298
13299 fi
13300
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of utmp" >&5
13302 $as_echo_n "checking location of utmp... " >&6; }
13303 if test "${shadow_cv_utmpdir+set}" = set; then :
13304   $as_echo_n "(cached) " >&6
13305 else
13306   for shadow_cv_utmpdir in /var/run /var/adm /usr/adm /etc none; do
13307         if test -f $shadow_cv_utmpdir/utmp; then
13308                 break
13309         fi
13310 done
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_utmpdir" >&5
13313 $as_echo "$shadow_cv_utmpdir" >&6; }
13314 if test "$shadow_cv_utmpdir" = "none"; then
13315         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: utmp file not found" >&5
13316 $as_echo "$as_me: WARNING: utmp file not found" >&2;}
13317 fi
13318
13319 cat >>confdefs.h <<_ACEOF
13320 #define _UTMP_FILE "$shadow_cv_utmpdir/utmp"
13321 _ACEOF
13322
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of faillog/lastlog/wtmp" >&5
13325 $as_echo_n "checking location of faillog/lastlog/wtmp... " >&6; }
13326 if test "${shadow_cv_logdir+set}" = set; then :
13327   $as_echo_n "(cached) " >&6
13328 else
13329   for shadow_cv_logdir in /var/log /var/adm /usr/adm /etc; do
13330         if test -d $shadow_cv_logdir; then
13331                 break
13332         fi
13333 done
13334 fi
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_logdir" >&5
13336 $as_echo "$shadow_cv_logdir" >&6; }
13337
13338 cat >>confdefs.h <<_ACEOF
13339 #define _WTMP_FILE "$shadow_cv_logdir/wtmp"
13340 _ACEOF
13341
13342
13343 cat >>confdefs.h <<_ACEOF
13344 #define LASTLOG_FILE "$shadow_cv_logdir/lastlog"
13345 _ACEOF
13346
13347
13348 cat >>confdefs.h <<_ACEOF
13349 #define FAILLOG_FILE "$shadow_cv_logdir/faillog"
13350 _ACEOF
13351
13352
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of the passwd program" >&5
13354 $as_echo_n "checking location of the passwd program... " >&6; }
13355 if test "${shadow_cv_passwd_dir+set}" = set; then :
13356   $as_echo_n "(cached) " >&6
13357 else
13358   if test -f /usr/bin/passwd; then
13359         shadow_cv_passwd_dir=/usr/bin
13360 else
13361         shadow_cv_passwd_dir=/bin
13362 fi
13363 fi
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_passwd_dir" >&5
13365 $as_echo "$shadow_cv_passwd_dir" >&6; }
13366
13367 cat >>confdefs.h <<_ACEOF
13368 #define PASSWD_PROGRAM "$shadow_cv_passwd_dir/passwd"
13369 _ACEOF
13370
13371
13372
13373 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13374
13375
13376 $as_echo "#define RLOGIN 1" >>confdefs.h
13377
13378
13379 $as_echo "#define RUSEROK 0" >>confdefs.h
13380
13381
13382 # Check whether --enable-shadowgrp was given.
13383 if test "${enable_shadowgrp+set}" = set; then :
13384   enableval=$enable_shadowgrp; case "${enableval}" in
13385          yes) enable_shadowgrp="yes" ;;
13386           no) enable_shadowgrp="no" ;;
13387            *) as_fn_error $? "bad value ${enableval} for --enable-shadowgrp" "$LINENO" 5  ;;
13388          esac
13389 else
13390   enable_shadowgrp="yes"
13391
13392 fi
13393
13394
13395 # Check whether --enable-man was given.
13396 if test "${enable_man+set}" = set; then :
13397   enableval=$enable_man; enable_man="${enableval}"
13398 else
13399   enable_man="no"
13400
13401 fi
13402
13403
13404 # Check whether --enable-account-tools-setuid was given.
13405 if test "${enable_account_tools_setuid+set}" = set; then :
13406   enableval=$enable_account_tools_setuid; case "${enableval}" in
13407          yes) enable_acct_tools_setuid="yes" ;;
13408           no) enable_acct_tools_setuid="no" ;;
13409            *) as_fn_error $? "bad value ${enableval} for --enable-account-tools-setuid" "$LINENO" 5
13410            ;;
13411          esac
13412 else
13413   enable_acct_tools_setuid="maybe"
13414
13415 fi
13416
13417
13418 # Check whether --enable-utmpx was given.
13419 if test "${enable_utmpx+set}" = set; then :
13420   enableval=$enable_utmpx; case "${enableval}" in
13421          yes) enable_utmpx="yes" ;;
13422           no) enable_utmpx="no" ;;
13423            *) as_fn_error $? "bad value ${enableval} for --enable-utmpx" "$LINENO" 5  ;;
13424          esac
13425 else
13426   enable_utmpx="no"
13427
13428 fi
13429
13430
13431
13432 # Check whether --with-audit was given.
13433 if test "${with_audit+set}" = set; then :
13434   withval=$with_audit; with_audit=$withval
13435 else
13436   with_audit=maybe
13437 fi
13438
13439
13440 # Check whether --with-libpam was given.
13441 if test "${with_libpam+set}" = set; then :
13442   withval=$with_libpam; with_libpam=$withval
13443 else
13444   with_libpam=maybe
13445 fi
13446
13447
13448 # Check whether --with-selinux was given.
13449 if test "${with_selinux+set}" = set; then :
13450   withval=$with_selinux; with_selinux=$withval
13451 else
13452   with_selinux=maybe
13453 fi
13454
13455
13456 # Check whether --with-skey was given.
13457 if test "${with_skey+set}" = set; then :
13458   withval=$with_skey; with_skey=$withval
13459 else
13460   with_skey=no
13461 fi
13462
13463
13464 # Check whether --with-libcrack was given.
13465 if test "${with_libcrack+set}" = set; then :
13466   withval=$with_libcrack; with_libcrack=$withval
13467 else
13468   with_libcrack=no
13469 fi
13470
13471
13472 # Check whether --with-sha-crypt was given.
13473 if test "${with_sha_crypt+set}" = set; then :
13474   withval=$with_sha_crypt; with_sha_crypt=$withval
13475 else
13476   with_sha_crypt=yes
13477 fi
13478
13479
13480 # Check whether --with-nscd was given.
13481 if test "${with_nscd+set}" = set; then :
13482   withval=$with_nscd; with_nscd=$withval
13483 else
13484   with_nscd=yes
13485 fi
13486
13487
13488 # Check whether --with-group-name-max-length was given.
13489 if test "${with_group_name_max_length+set}" = set; then :
13490   withval=$with_group_name_max_length; with_group_name_max_length=$withval
13491 else
13492   with_group_name_max_length=yes
13493 fi
13494
13495
13496 if test "$with_group_name_max_length" = "no" ; then
13497         with_group_name_max_length=0
13498 elif test "$with_group_name_max_length" = "yes" ; then
13499         with_group_name_max_length=16
13500 fi
13501
13502 cat >>confdefs.h <<_ACEOF
13503 #define GROUP_NAME_MAX_LENGTH $with_group_name_max_length
13504 _ACEOF
13505
13506
13507 GROUP_NAME_MAX_LENGTH="$with_group_name_max_length"
13508
13509  if test "x$with_sha_crypt" = "xyes"; then
13510   USE_SHA_CRYPT_TRUE=
13511   USE_SHA_CRYPT_FALSE='#'
13512 else
13513   USE_SHA_CRYPT_TRUE='#'
13514   USE_SHA_CRYPT_FALSE=
13515 fi
13516
13517 if test "$with_sha_crypt" = "yes"; then
13518
13519 $as_echo "#define USE_SHA_CRYPT 1" >>confdefs.h
13520
13521 fi
13522
13523 if test "$with_nscd" = "yes"; then
13524         ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
13525 if test "x$ac_cv_func_posix_spawn" = x""yes; then :
13526
13527 $as_echo "#define USE_NSCD 1" >>confdefs.h
13528
13529 else
13530   as_fn_error $? "posix_spawn is needed for nscd support" "$LINENO" 5
13531 fi
13532
13533 fi
13534
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13537 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13538 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   ac_func_search_save_LIBS=$LIBS
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544
13545 /* Override any GCC internal prototype to avoid an error.
13546    Use char because int might match the return type of a GCC
13547    builtin and then its argument prototype would still apply.  */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char inet_ntoa ();
13552 int
13553 main ()
13554 {
13555 return inet_ntoa ();
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 for ac_lib in '' inet; do
13561   if test -z "$ac_lib"; then
13562     ac_res="none required"
13563   else
13564     ac_res=-l$ac_lib
13565     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13566   fi
13567   if ac_fn_c_try_link "$LINENO"; then :
13568   ac_cv_search_inet_ntoa=$ac_res
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext \
13571     conftest$ac_exeext
13572   if test "${ac_cv_search_inet_ntoa+set}" = set; then :
13573   break
13574 fi
13575 done
13576 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
13577
13578 else
13579   ac_cv_search_inet_ntoa=no
13580 fi
13581 rm conftest.$ac_ext
13582 LIBS=$ac_func_search_save_LIBS
13583 fi
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13585 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13586 ac_res=$ac_cv_search_inet_ntoa
13587 if test "$ac_res" != no; then :
13588   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13589
13590 fi
13591
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13593 $as_echo_n "checking for library containing socket... " >&6; }
13594 if test "${ac_cv_search_socket+set}" = set; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597   ac_func_search_save_LIBS=$LIBS
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h.  */
13600
13601 /* Override any GCC internal prototype to avoid an error.
13602    Use char because int might match the return type of a GCC
13603    builtin and then its argument prototype would still apply.  */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 char socket ();
13608 int
13609 main ()
13610 {
13611 return socket ();
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 for ac_lib in '' socket; do
13617   if test -z "$ac_lib"; then
13618     ac_res="none required"
13619   else
13620     ac_res=-l$ac_lib
13621     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13622   fi
13623   if ac_fn_c_try_link "$LINENO"; then :
13624   ac_cv_search_socket=$ac_res
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext \
13627     conftest$ac_exeext
13628   if test "${ac_cv_search_socket+set}" = set; then :
13629   break
13630 fi
13631 done
13632 if test "${ac_cv_search_socket+set}" = set; then :
13633
13634 else
13635   ac_cv_search_socket=no
13636 fi
13637 rm conftest.$ac_ext
13638 LIBS=$ac_func_search_save_LIBS
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13641 $as_echo "$ac_cv_search_socket" >&6; }
13642 ac_res=$ac_cv_search_socket
13643 if test "$ac_res" != no; then :
13644   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13645
13646 fi
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13649 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13650 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   ac_func_search_save_LIBS=$LIBS
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h.  */
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658    Use char because int might match the return type of a GCC
13659    builtin and then its argument prototype would still apply.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char gethostbyname ();
13664 int
13665 main ()
13666 {
13667 return gethostbyname ();
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 for ac_lib in '' nsl; do
13673   if test -z "$ac_lib"; then
13674     ac_res="none required"
13675   else
13676     ac_res=-l$ac_lib
13677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13678   fi
13679   if ac_fn_c_try_link "$LINENO"; then :
13680   ac_cv_search_gethostbyname=$ac_res
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext \
13683     conftest$ac_exeext
13684   if test "${ac_cv_search_gethostbyname+set}" = set; then :
13685   break
13686 fi
13687 done
13688 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13689
13690 else
13691   ac_cv_search_gethostbyname=no
13692 fi
13693 rm conftest.$ac_ext
13694 LIBS=$ac_func_search_save_LIBS
13695 fi
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13697 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13698 ac_res=$ac_cv_search_gethostbyname
13699 if test "$ac_res" != no; then :
13700   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13701
13702 fi
13703
13704
13705 if test "$enable_shadowgrp" = "yes"; then
13706
13707 $as_echo "#define SHADOWGRP 1" >>confdefs.h
13708
13709 fi
13710  if test "x$enable_shadowgrp" = "xyes"; then
13711   SHADOWGRP_TRUE=
13712   SHADOWGRP_FALSE='#'
13713 else
13714   SHADOWGRP_TRUE='#'
13715   SHADOWGRP_FALSE=
13716 fi
13717
13718
13719 if test "$enable_man" = "yes"; then
13720                                 # Extract the first word of "xsltproc", so it can be a program name with args.
13721 set dummy xsltproc; ac_word=$2
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723 $as_echo_n "checking for $ac_word... " >&6; }
13724 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
13725   $as_echo_n "(cached) " >&6
13726 else
13727   case $XSLTPROC in
13728   [\\/]* | ?:[\\/]*)
13729   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13730   ;;
13731   *)
13732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735   IFS=$as_save_IFS
13736   test -z "$as_dir" && as_dir=.
13737     for ac_exec_ext in '' $ac_executable_extensions; do
13738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
13740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741     break 2
13742   fi
13743 done
13744   done
13745 IFS=$as_save_IFS
13746
13747   ;;
13748 esac
13749 fi
13750 XSLTPROC=$ac_cv_path_XSLTPROC
13751 if test -n "$XSLTPROC"; then
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13753 $as_echo "$XSLTPROC" >&6; }
13754 else
13755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757 fi
13758
13759
13760         if test -z "$XSLTPROC"; then
13761                 enable_man=no
13762         fi
13763
13764
13765   # check for the presence of the XML catalog
13766
13767 # Check whether --with-xml-catalog was given.
13768 if test "${with_xml_catalog+set}" = set; then :
13769   withval=$with_xml_catalog;
13770 else
13771   with_xml_catalog=/etc/xml/catalog
13772 fi
13773
13774   jh_found_xmlcatalog=true
13775   XML_CATALOG_FILE="$with_xml_catalog"
13776
13777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
13778 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
13779   if test -f "$XML_CATALOG_FILE"; then
13780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13781 $as_echo "found" >&6; }
13782   else
13783     jh_found_xmlcatalog=false
13784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13785 $as_echo "not found" >&6; }
13786   fi
13787
13788   # check for the xmlcatalog program
13789   # Extract the first word of "xmlcatalog", so it can be a program name with args.
13790 set dummy xmlcatalog; ac_word=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if test "${ac_cv_path_XMLCATALOG+set}" = set; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796   case $XMLCATALOG in
13797   [\\/]* | ?:[\\/]*)
13798   ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
13799   ;;
13800   *)
13801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804   IFS=$as_save_IFS
13805   test -z "$as_dir" && as_dir=.
13806     for ac_exec_ext in '' $ac_executable_extensions; do
13807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808     ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
13809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13810     break 2
13811   fi
13812 done
13813   done
13814 IFS=$as_save_IFS
13815
13816   test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
13817   ;;
13818 esac
13819 fi
13820 XMLCATALOG=$ac_cv_path_XMLCATALOG
13821 if test -n "$XMLCATALOG"; then
13822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
13823 $as_echo "$XMLCATALOG" >&6; }
13824 else
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 fi
13828
13829
13830   if test "x$XMLCATALOG" = xno; then
13831     jh_found_xmlcatalog=false
13832   fi
13833
13834   if $jh_found_xmlcatalog; then
13835     :
13836   else
13837     :
13838   fi
13839
13840
13841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
13842 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
13843   if $jh_found_xmlcatalog && \
13844      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
13845   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
13846   ac_status=$?
13847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13848   test $ac_status = 0; }; then
13849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13850 $as_echo "found" >&6; }
13851       else
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13853 $as_echo "not found" >&6; }
13854     enable_man=no
13855   fi
13856
13857
13858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets >= 1.70.1 in XML catalog" >&5
13859 $as_echo_n "checking for DocBook XSL Stylesheets >= 1.70.1 in XML catalog... " >&6; }
13860   if $jh_found_xmlcatalog && \
13861      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
13862   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
13863   ac_status=$?
13864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13865   test $ac_status = 0; }; then
13866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13867 $as_echo "found" >&6; }
13868       else
13869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13870 $as_echo "not found" >&6; }
13871     enable_man=no
13872   fi
13873
13874 fi
13875  if test "x$enable_man" != "xno"; then
13876   ENABLE_REGENERATE_MAN_TRUE=
13877   ENABLE_REGENERATE_MAN_FALSE='#'
13878 else
13879   ENABLE_REGENERATE_MAN_TRUE='#'
13880   ENABLE_REGENERATE_MAN_FALSE=
13881 fi
13882
13883
13884
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13886 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13887 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
13888   $as_echo_n "(cached) " >&6
13889 else
13890   ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lcrypt  $LIBS"
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h.  */
13894
13895 /* Override any GCC internal prototype to avoid an error.
13896    Use char because int might match the return type of a GCC
13897    builtin and then its argument prototype would still apply.  */
13898 #ifdef __cplusplus
13899 extern "C"
13900 #endif
13901 char crypt ();
13902 int
13903 main ()
13904 {
13905 return crypt ();
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 if ac_fn_c_try_link "$LINENO"; then :
13911   ac_cv_lib_crypt_crypt=yes
13912 else
13913   ac_cv_lib_crypt_crypt=no
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext \
13916     conftest$ac_exeext conftest.$ac_ext
13917 LIBS=$ac_check_lib_save_LIBS
13918 fi
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13920 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13921 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
13922   LIBCRYPT=-lcrypt
13923 else
13924   as_fn_error $? "crypt() not found" "$LINENO" 5
13925 fi
13926
13927
13928
13929 if test "$with_audit" != "no"; then
13930         ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
13931 if test "x$ac_cv_header_libaudit_h" = x""yes; then :
13932   audit_header="yes"
13933 else
13934   audit_header="no"
13935 fi
13936
13937
13938         if test "$audit_header$with_audit" = "noyes" ; then
13939                 as_fn_error $? "libaudit.h is missing" "$LINENO" 5
13940         elif test "$audit_header" = "yes"; then
13941                 ac_fn_c_check_decl "$LINENO" "AUDIT_ADD_USER" "ac_cv_have_decl_AUDIT_ADD_USER" "#include <libaudit.h>
13942 "
13943 if test "x$ac_cv_have_decl_AUDIT_ADD_USER" = x""yes; then :
13944
13945 else
13946   audit_header="no"
13947 fi
13948
13949                 ac_fn_c_check_decl "$LINENO" "AUDIT_DEL_USER" "ac_cv_have_decl_AUDIT_DEL_USER" "#include <libaudit.h>
13950 "
13951 if test "x$ac_cv_have_decl_AUDIT_DEL_USER" = x""yes; then :
13952
13953 else
13954   audit_header="no"
13955 fi
13956
13957                 ac_fn_c_check_decl "$LINENO" "AUDIT_ADD_GROUP" "ac_cv_have_decl_AUDIT_ADD_GROUP" "#include <libaudit.h>
13958 "
13959 if test "x$ac_cv_have_decl_AUDIT_ADD_GROUP" = x""yes; then :
13960
13961 else
13962   audit_header="no"
13963 fi
13964
13965                 ac_fn_c_check_decl "$LINENO" "AUDIT_DEL_GROUP" "ac_cv_have_decl_AUDIT_DEL_GROUP" "#include <libaudit.h>
13966 "
13967 if test "x$ac_cv_have_decl_AUDIT_DEL_GROUP" = x""yes; then :
13968
13969 else
13970   audit_header="no"
13971 fi
13972
13973                 if test "$audit_header$with_audit" = "noyes" ; then
13974                         as_fn_error $? "AUDIT_ADD_USER AUDIT_DEL_USER AUDIT_ADD_GROUP or AUDIT_DEL_GROUP missing from libaudit.h" "$LINENO" 5
13975                 fi
13976         fi
13977         if test "$audit_header" = "yes"; then
13978                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_acct_message in -laudit" >&5
13979 $as_echo_n "checking for audit_log_acct_message in -laudit... " >&6; }
13980 if test "${ac_cv_lib_audit_audit_log_acct_message+set}" = set; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   ac_check_lib_save_LIBS=$LIBS
13984 LIBS="-laudit  $LIBS"
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h.  */
13987
13988 /* Override any GCC internal prototype to avoid an error.
13989    Use char because int might match the return type of a GCC
13990    builtin and then its argument prototype would still apply.  */
13991 #ifdef __cplusplus
13992 extern "C"
13993 #endif
13994 char audit_log_acct_message ();
13995 int
13996 main ()
13997 {
13998 return audit_log_acct_message ();
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 if ac_fn_c_try_link "$LINENO"; then :
14004   ac_cv_lib_audit_audit_log_acct_message=yes
14005 else
14006   ac_cv_lib_audit_audit_log_acct_message=no
14007 fi
14008 rm -f core conftest.err conftest.$ac_objext \
14009     conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14011 fi
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
14013 $as_echo "$ac_cv_lib_audit_audit_log_acct_message" >&6; }
14014 if test "x$ac_cv_lib_audit_audit_log_acct_message" = x""yes; then :
14015   audit_lib="yes"
14016 else
14017   audit_lib="no"
14018 fi
14019
14020                 if test "$audit_lib$with_audit" = "noyes" ; then
14021                         as_fn_error $? "libaudit not found" "$LINENO" 5
14022                 elif test "$audit_lib" = "no" ; then
14023                         with_audit="no"
14024                 else
14025
14026 $as_echo "#define WITH_AUDIT 1" >>confdefs.h
14027
14028                         LIBAUDIT="-laudit"
14029                         with_audit="yes"
14030                 fi
14031         else
14032                 with_audit="no"
14033         fi
14034 fi
14035
14036
14037 if test "$with_libcrack" = "yes"; then
14038         echo "checking cracklib flavour, don't be surprised by the results"
14039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistCheck in -lcrack" >&5
14040 $as_echo_n "checking for FascistCheck in -lcrack... " >&6; }
14041 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then :
14042   $as_echo_n "(cached) " >&6
14043 else
14044   ac_check_lib_save_LIBS=$LIBS
14045 LIBS="-lcrack  $LIBS"
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h.  */
14048
14049 /* Override any GCC internal prototype to avoid an error.
14050    Use char because int might match the return type of a GCC
14051    builtin and then its argument prototype would still apply.  */
14052 #ifdef __cplusplus
14053 extern "C"
14054 #endif
14055 char FascistCheck ();
14056 int
14057 main ()
14058 {
14059 return FascistCheck ();
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_c_try_link "$LINENO"; then :
14065   ac_cv_lib_crack_FascistCheck=yes
14066 else
14067   ac_cv_lib_crack_FascistCheck=no
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext \
14070     conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14072 fi
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistCheck" >&5
14074 $as_echo "$ac_cv_lib_crack_FascistCheck" >&6; }
14075 if test "x$ac_cv_lib_crack_FascistCheck" = x""yes; then :
14076   LIBCRACK=-lcrack
14077 $as_echo "#define HAVE_LIBCRACK 1" >>confdefs.h
14078
14079 fi
14080
14081         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistHistory in -lcrack" >&5
14082 $as_echo_n "checking for FascistHistory in -lcrack... " >&6; }
14083 if test "${ac_cv_lib_crack_FascistHistory+set}" = set; then :
14084   $as_echo_n "(cached) " >&6
14085 else
14086   ac_check_lib_save_LIBS=$LIBS
14087 LIBS="-lcrack  $LIBS"
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h.  */
14090
14091 /* Override any GCC internal prototype to avoid an error.
14092    Use char because int might match the return type of a GCC
14093    builtin and then its argument prototype would still apply.  */
14094 #ifdef __cplusplus
14095 extern "C"
14096 #endif
14097 char FascistHistory ();
14098 int
14099 main ()
14100 {
14101 return FascistHistory ();
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 if ac_fn_c_try_link "$LINENO"; then :
14107   ac_cv_lib_crack_FascistHistory=yes
14108 else
14109   ac_cv_lib_crack_FascistHistory=no
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext \
14112     conftest$ac_exeext conftest.$ac_ext
14113 LIBS=$ac_check_lib_save_LIBS
14114 fi
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistHistory" >&5
14116 $as_echo "$ac_cv_lib_crack_FascistHistory" >&6; }
14117 if test "x$ac_cv_lib_crack_FascistHistory" = x""yes; then :
14118
14119 $as_echo "#define HAVE_LIBCRACK_HIST 1" >>confdefs.h
14120
14121 fi
14122
14123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistHistoryPw in -lcrack" >&5
14124 $as_echo_n "checking for FascistHistoryPw in -lcrack... " >&6; }
14125 if test "${ac_cv_lib_crack_FascistHistoryPw+set}" = set; then :
14126   $as_echo_n "(cached) " >&6
14127 else
14128   ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-lcrack  $LIBS"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h.  */
14132
14133 /* Override any GCC internal prototype to avoid an error.
14134    Use char because int might match the return type of a GCC
14135    builtin and then its argument prototype would still apply.  */
14136 #ifdef __cplusplus
14137 extern "C"
14138 #endif
14139 char FascistHistoryPw ();
14140 int
14141 main ()
14142 {
14143 return FascistHistoryPw ();
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 if ac_fn_c_try_link "$LINENO"; then :
14149   ac_cv_lib_crack_FascistHistoryPw=yes
14150 else
14151   ac_cv_lib_crack_FascistHistoryPw=no
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext \
14154     conftest$ac_exeext conftest.$ac_ext
14155 LIBS=$ac_check_lib_save_LIBS
14156 fi
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistHistoryPw" >&5
14158 $as_echo "$ac_cv_lib_crack_FascistHistoryPw" >&6; }
14159 if test "x$ac_cv_lib_crack_FascistHistoryPw" = x""yes; then :
14160
14161 $as_echo "#define HAVE_LIBCRACK_PW 1" >>confdefs.h
14162
14163 fi
14164
14165 fi
14166
14167
14168 if test "$with_selinux" != "no"; then
14169         for ac_header in selinux/selinux.h
14170 do :
14171   ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14172 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
14173   cat >>confdefs.h <<_ACEOF
14174 #define HAVE_SELINUX_SELINUX_H 1
14175 _ACEOF
14176  selinux_header="yes"
14177 else
14178   selinux_header="no"
14179 fi
14180
14181 done
14182
14183         if test "$selinux_header$with_selinux" = "noyes" ; then
14184                 as_fn_error $? "selinux/selinux.h is missing" "$LINENO" 5
14185         elif test "$selinux_header" = "yes" ; then
14186                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
14187 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
14188 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191   ac_check_lib_save_LIBS=$LIBS
14192 LIBS="-lselinux  $LIBS"
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h.  */
14195
14196 /* Override any GCC internal prototype to avoid an error.
14197    Use char because int might match the return type of a GCC
14198    builtin and then its argument prototype would still apply.  */
14199 #ifdef __cplusplus
14200 extern "C"
14201 #endif
14202 char is_selinux_enabled ();
14203 int
14204 main ()
14205 {
14206 return is_selinux_enabled ();
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 if ac_fn_c_try_link "$LINENO"; then :
14212   ac_cv_lib_selinux_is_selinux_enabled=yes
14213 else
14214   ac_cv_lib_selinux_is_selinux_enabled=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext \
14217     conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14219 fi
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
14221 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
14222 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
14223   selinux_lib="yes"
14224 else
14225   selinux_lib="no"
14226 fi
14227
14228                 if test "$selinux_lib$with_selinux" = "noyes" ; then
14229                         as_fn_error $? "libselinux not found" "$LINENO" 5
14230                 elif test "$selinux_lib" = "no" ; then
14231                         with_selinux="no"
14232                 else
14233
14234 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14235
14236                         LIBSELINUX="-lselinux"
14237                         with_selinux="yes"
14238                 fi
14239         else
14240                 with_selinux="no"
14241         fi
14242 fi
14243
14244
14245 if test "$with_libpam" != "no"; then
14246         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14247 $as_echo_n "checking for pam_start in -lpam... " >&6; }
14248 if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
14249   $as_echo_n "(cached) " >&6
14250 else
14251   ac_check_lib_save_LIBS=$LIBS
14252 LIBS="-lpam  $LIBS"
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h.  */
14255
14256 /* Override any GCC internal prototype to avoid an error.
14257    Use char because int might match the return type of a GCC
14258    builtin and then its argument prototype would still apply.  */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 char pam_start ();
14263 int
14264 main ()
14265 {
14266 return pam_start ();
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272   ac_cv_lib_pam_pam_start=yes
14273 else
14274   ac_cv_lib_pam_pam_start=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277     conftest$ac_exeext conftest.$ac_ext
14278 LIBS=$ac_check_lib_save_LIBS
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14281 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14282 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
14283   pam_lib="yes"
14284 else
14285   pam_lib="no"
14286 fi
14287
14288         if test "$pam_lib$with_libpam" = "noyes" ; then
14289                 as_fn_error $? "libpam not found" "$LINENO" 5
14290         fi
14291
14292         LIBPAM="-lpam"
14293         pam_conv_function="no"
14294
14295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpam_ttyconv in -lpam" >&5
14296 $as_echo_n "checking for openpam_ttyconv in -lpam... " >&6; }
14297 if test "${ac_cv_lib_pam_openpam_ttyconv+set}" = set; then :
14298   $as_echo_n "(cached) " >&6
14299 else
14300   ac_check_lib_save_LIBS=$LIBS
14301 LIBS="-lpam  $LIBS"
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h.  */
14304
14305 /* Override any GCC internal prototype to avoid an error.
14306    Use char because int might match the return type of a GCC
14307    builtin and then its argument prototype would still apply.  */
14308 #ifdef __cplusplus
14309 extern "C"
14310 #endif
14311 char openpam_ttyconv ();
14312 int
14313 main ()
14314 {
14315 return openpam_ttyconv ();
14316   ;
14317   return 0;
14318 }
14319 _ACEOF
14320 if ac_fn_c_try_link "$LINENO"; then :
14321   ac_cv_lib_pam_openpam_ttyconv=yes
14322 else
14323   ac_cv_lib_pam_openpam_ttyconv=no
14324 fi
14325 rm -f core conftest.err conftest.$ac_objext \
14326     conftest$ac_exeext conftest.$ac_ext
14327 LIBS=$ac_check_lib_save_LIBS
14328 fi
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_openpam_ttyconv" >&5
14330 $as_echo "$ac_cv_lib_pam_openpam_ttyconv" >&6; }
14331 if test "x$ac_cv_lib_pam_openpam_ttyconv" = x""yes; then :
14332   pam_conv_function="openpam_ttyconv"
14333 else
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for misc_conv in -lpam_misc" >&5
14335 $as_echo_n "checking for misc_conv in -lpam_misc... " >&6; }
14336 if test "${ac_cv_lib_pam_misc_misc_conv+set}" = set; then :
14337   $as_echo_n "(cached) " >&6
14338 else
14339   ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lpam_misc  $LIBS"
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h.  */
14343
14344 /* Override any GCC internal prototype to avoid an error.
14345    Use char because int might match the return type of a GCC
14346    builtin and then its argument prototype would still apply.  */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 char misc_conv ();
14351 int
14352 main ()
14353 {
14354 return misc_conv ();
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360   ac_cv_lib_pam_misc_misc_conv=yes
14361 else
14362   ac_cv_lib_pam_misc_misc_conv=no
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext \
14365     conftest$ac_exeext conftest.$ac_ext
14366 LIBS=$ac_check_lib_save_LIBS
14367 fi
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_misc_conv" >&5
14369 $as_echo "$ac_cv_lib_pam_misc_misc_conv" >&6; }
14370 if test "x$ac_cv_lib_pam_misc_misc_conv" = x""yes; then :
14371   pam_conv_function="misc_conv"; LIBPAM="$LIBPAM -lpam_misc"
14372 fi
14373
14374
14375 fi
14376
14377
14378         if test "$pam_conv_function$with_libpam" = "noyes" ; then
14379                 as_fn_error $? "PAM conversation function not found" "$LINENO" 5
14380         fi
14381
14382         pam_headers_found=no
14383         for ac_header in security/openpam.h security/pam_misc.h
14384 do :
14385   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #include <security/pam_appl.h>
14387 "
14388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14389   cat >>confdefs.h <<_ACEOF
14390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14391 _ACEOF
14392   pam_headers_found=yes ; break
14393 fi
14394
14395 done
14396
14397         if test "$pam_headers_found$with_libpam" = "noyes" ; then
14398                         as_fn_error $? "PAM headers not found" "$LINENO" 5
14399         fi
14400
14401
14402         if test "$pam_lib$pam_headers_found" = "yesyes" -a "$pam_conv_function" != "no" ; then
14403                 with_libpam="yes"
14404         else
14405                 with_libpam="no"
14406                 unset LIBPAM
14407         fi
14408 fi
14409 if test "$with_libpam" = "yes"; then
14410         ac_fn_c_check_decl "$LINENO" "PAM_ESTABLISH_CRED" "ac_cv_have_decl_PAM_ESTABLISH_CRED" "#include <security/pam_appl.h>
14411 "
14412 if test "x$ac_cv_have_decl_PAM_ESTABLISH_CRED" = x""yes; then :
14413   ac_have_decl=1
14414 else
14415   ac_have_decl=0
14416 fi
14417
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_DECL_PAM_ESTABLISH_CRED $ac_have_decl
14420 _ACEOF
14421 ac_fn_c_check_decl "$LINENO" "PAM_DELETE_CRED" "ac_cv_have_decl_PAM_DELETE_CRED" "#include <security/pam_appl.h>
14422 "
14423 if test "x$ac_cv_have_decl_PAM_DELETE_CRED" = x""yes; then :
14424   ac_have_decl=1
14425 else
14426   ac_have_decl=0
14427 fi
14428
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_DECL_PAM_DELETE_CRED $ac_have_decl
14431 _ACEOF
14432 ac_fn_c_check_decl "$LINENO" "PAM_NEW_AUTHTOK_REQD" "ac_cv_have_decl_PAM_NEW_AUTHTOK_REQD" "#include <security/pam_appl.h>
14433 "
14434 if test "x$ac_cv_have_decl_PAM_NEW_AUTHTOK_REQD" = x""yes; then :
14435   ac_have_decl=1
14436 else
14437   ac_have_decl=0
14438 fi
14439
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_DECL_PAM_NEW_AUTHTOK_REQD $ac_have_decl
14442 _ACEOF
14443 ac_fn_c_check_decl "$LINENO" "PAM_DATA_SILENT" "ac_cv_have_decl_PAM_DATA_SILENT" "#include <security/pam_appl.h>
14444 "
14445 if test "x$ac_cv_have_decl_PAM_DATA_SILENT" = x""yes; then :
14446   ac_have_decl=1
14447 else
14448   ac_have_decl=0
14449 fi
14450
14451 cat >>confdefs.h <<_ACEOF
14452 #define HAVE_DECL_PAM_DATA_SILENT $ac_have_decl
14453 _ACEOF
14454
14455
14456
14457         save_libs=$LIBS
14458         LIBS="$LIBS $LIBPAM"
14459         # We do not use AC_CHECK_FUNCS to avoid duplicated definition with
14460         # Linux PAM.
14461         ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
14462 if test "x$ac_cv_func_pam_fail_delay" = x""yes; then :
14463
14464 $as_echo "#define HAS_PAM_FAIL_DELAY 1" >>confdefs.h
14465
14466 fi
14467
14468         LIBS=$save_libs
14469
14470
14471 $as_echo "#define USE_PAM 1" >>confdefs.h
14472
14473
14474 cat >>confdefs.h <<_ACEOF
14475 #define SHADOW_PAM_CONVERSATION $pam_conv_function
14476 _ACEOF
14477
14478          if true; then
14479   USE_PAM_TRUE=
14480   USE_PAM_FALSE='#'
14481 else
14482   USE_PAM_TRUE='#'
14483   USE_PAM_FALSE=
14484 fi
14485
14486
14487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking use login and su access checking if PAM not used" >&5
14488 $as_echo_n "checking use login and su access checking if PAM not used... " >&6; }
14489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491 else
14492
14493 $as_echo "#define SU_ACCESS 1" >>confdefs.h
14494
14495          if false; then
14496   USE_PAM_TRUE=
14497   USE_PAM_FALSE='#'
14498 else
14499   USE_PAM_TRUE='#'
14500   USE_PAM_FALSE=
14501 fi
14502
14503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking use login and su access checking if PAM not used" >&5
14504 $as_echo_n "checking use login and su access checking if PAM not used... " >&6; }
14505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14506 $as_echo "yes" >&6; }
14507 fi
14508
14509 if test "$enable_acct_tools_setuid" != "no"; then
14510         if test "$with_libpam" != "yes"; then
14511                 if test "$enable_acct_tools_setuid" = "yes"; then
14512                         as_fn_error $? "PAM support is required for --enable-account-tools-setuid" "$LINENO" 5
14513                 else
14514                         enable_acct_tools_setuid="no"
14515                 fi
14516         else
14517                 enable_acct_tools_setuid="yes"
14518         fi
14519         if test "$enable_acct_tools_setuid" = "yes"; then
14520
14521 $as_echo "#define ACCT_TOOLS_SETUID 1" >>confdefs.h
14522
14523         fi
14524 fi
14525  if test "x$enable_acct_tools_setuid" = "xyes"; then
14526   ACCT_TOOLS_SETUID_TRUE=
14527   ACCT_TOOLS_SETUID_FALSE='#'
14528 else
14529   ACCT_TOOLS_SETUID_TRUE='#'
14530   ACCT_TOOLS_SETUID_FALSE=
14531 fi
14532
14533
14534
14535
14536 if test "$with_skey" = "yes"; then
14537         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5Init in -lmd" >&5
14538 $as_echo_n "checking for MD5Init in -lmd... " >&6; }
14539 if test "${ac_cv_lib_md_MD5Init+set}" = set; then :
14540   $as_echo_n "(cached) " >&6
14541 else
14542   ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-lmd  $LIBS"
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h.  */
14546
14547 /* Override any GCC internal prototype to avoid an error.
14548    Use char because int might match the return type of a GCC
14549    builtin and then its argument prototype would still apply.  */
14550 #ifdef __cplusplus
14551 extern "C"
14552 #endif
14553 char MD5Init ();
14554 int
14555 main ()
14556 {
14557 return MD5Init ();
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_link "$LINENO"; then :
14563   ac_cv_lib_md_MD5Init=yes
14564 else
14565   ac_cv_lib_md_MD5Init=no
14566 fi
14567 rm -f core conftest.err conftest.$ac_objext \
14568     conftest$ac_exeext conftest.$ac_ext
14569 LIBS=$ac_check_lib_save_LIBS
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_MD5Init" >&5
14572 $as_echo "$ac_cv_lib_md_MD5Init" >&6; }
14573 if test "x$ac_cv_lib_md_MD5Init" = x""yes; then :
14574   LIBMD=-lmd
14575 fi
14576
14577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeychallenge in -lskey" >&5
14578 $as_echo_n "checking for skeychallenge in -lskey... " >&6; }
14579 if test "${ac_cv_lib_skey_skeychallenge+set}" = set; then :
14580   $as_echo_n "(cached) " >&6
14581 else
14582   ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lskey  $LIBS"
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h.  */
14586
14587 /* Override any GCC internal prototype to avoid an error.
14588    Use char because int might match the return type of a GCC
14589    builtin and then its argument prototype would still apply.  */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 char skeychallenge ();
14594 int
14595 main ()
14596 {
14597 return skeychallenge ();
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 if ac_fn_c_try_link "$LINENO"; then :
14603   ac_cv_lib_skey_skeychallenge=yes
14604 else
14605   ac_cv_lib_skey_skeychallenge=no
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext \
14608     conftest$ac_exeext conftest.$ac_ext
14609 LIBS=$ac_check_lib_save_LIBS
14610 fi
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeychallenge" >&5
14612 $as_echo "$ac_cv_lib_skey_skeychallenge" >&6; }
14613 if test "x$ac_cv_lib_skey_skeychallenge" = x""yes; then :
14614   LIBSKEY=-lskey
14615 else
14616   as_fn_error $? "liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2" "$LINENO" 5
14617 fi
14618
14619
14620 $as_echo "#define SKEY 1" >>confdefs.h
14621
14622         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h.  */
14624
14625                 #include <stdio.h>
14626                 #include <skey.h>
14627
14628 int
14629 main ()
14630 {
14631
14632                 skeychallenge((void*)0, (void*)0, (void*)0, 0);
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 if ac_fn_c_try_compile "$LINENO"; then :
14639
14640 $as_echo "#define SKEY_BSD_STYLE 1" >>confdefs.h
14641
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 fi
14645
14646 if test "$enable_utmpx" = "yes"; then
14647         if test "$ac_cv_header_utmpx_h" != "yes"; then
14648                 as_fn_error $? "The utmpx.h header file is required for utmpx support." "$LINENO" 5
14649         fi
14650
14651 $as_echo "#define USE_UTMPX 1" >>confdefs.h
14652
14653 fi
14654
14655
14656 cat >>confdefs.h <<_ACEOF
14657 #define SHELL "$SHELL"
14658 _ACEOF
14659
14660
14661
14662
14663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14664 $as_echo_n "checking whether NLS is requested... " >&6; }
14665     # Check whether --enable-nls was given.
14666 if test "${enable_nls+set}" = set; then :
14667   enableval=$enable_nls; USE_NLS=$enableval
14668 else
14669   USE_NLS=yes
14670 fi
14671
14672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14673 $as_echo "$USE_NLS" >&6; }
14674
14675
14676
14677
14678       GETTEXT_MACRO_VERSION=0.18
14679
14680
14681
14682
14683 # Prepare PATH_SEPARATOR.
14684 # The user is always right.
14685 if test "${PATH_SEPARATOR+set}" != set; then
14686   echo "#! /bin/sh" >conf$$.sh
14687   echo  "exit 0"   >>conf$$.sh
14688   chmod +x conf$$.sh
14689   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14690     PATH_SEPARATOR=';'
14691   else
14692     PATH_SEPARATOR=:
14693   fi
14694   rm -f conf$$.sh
14695 fi
14696
14697 # Find out how to test for executable files. Don't use a zero-byte file,
14698 # as systems may use methods other than mode bits to determine executability.
14699 cat >conf$$.file <<_ASEOF
14700 #! /bin/sh
14701 exit 0
14702 _ASEOF
14703 chmod +x conf$$.file
14704 if test -x conf$$.file >/dev/null 2>&1; then
14705   ac_executable_p="test -x"
14706 else
14707   ac_executable_p="test -f"
14708 fi
14709 rm -f conf$$.file
14710
14711 # Extract the first word of "msgfmt", so it can be a program name with args.
14712 set dummy msgfmt; ac_word=$2
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14714 $as_echo_n "checking for $ac_word... " >&6; }
14715 if test "${ac_cv_path_MSGFMT+set}" = set; then :
14716   $as_echo_n "(cached) " >&6
14717 else
14718   case "$MSGFMT" in
14719   [\\/]* | ?:[\\/]*)
14720     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14721     ;;
14722   *)
14723     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14724     for ac_dir in $PATH; do
14725       IFS="$ac_save_IFS"
14726       test -z "$ac_dir" && ac_dir=.
14727       for ac_exec_ext in '' $ac_executable_extensions; do
14728         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14729           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14730           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14731      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14732             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14733             break 2
14734           fi
14735         fi
14736       done
14737     done
14738     IFS="$ac_save_IFS"
14739   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14740     ;;
14741 esac
14742 fi
14743 MSGFMT="$ac_cv_path_MSGFMT"
14744 if test "$MSGFMT" != ":"; then
14745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14746 $as_echo "$MSGFMT" >&6; }
14747 else
14748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14750 fi
14751
14752   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14753 set dummy gmsgfmt; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14755 $as_echo_n "checking for $ac_word... " >&6; }
14756 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
14757   $as_echo_n "(cached) " >&6
14758 else
14759   case $GMSGFMT in
14760   [\\/]* | ?:[\\/]*)
14761   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14762   ;;
14763   *)
14764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14766 do
14767   IFS=$as_save_IFS
14768   test -z "$as_dir" && as_dir=.
14769     for ac_exec_ext in '' $ac_executable_extensions; do
14770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14771     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14773     break 2
14774   fi
14775 done
14776   done
14777 IFS=$as_save_IFS
14778
14779   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14780   ;;
14781 esac
14782 fi
14783 GMSGFMT=$ac_cv_path_GMSGFMT
14784 if test -n "$GMSGFMT"; then
14785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14786 $as_echo "$GMSGFMT" >&6; }
14787 else
14788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14790 fi
14791
14792
14793
14794     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14795     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14796     *) MSGFMT_015=$MSGFMT ;;
14797   esac
14798
14799   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14800     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14801     *) GMSGFMT_015=$GMSGFMT ;;
14802   esac
14803
14804
14805
14806 # Prepare PATH_SEPARATOR.
14807 # The user is always right.
14808 if test "${PATH_SEPARATOR+set}" != set; then
14809   echo "#! /bin/sh" >conf$$.sh
14810   echo  "exit 0"   >>conf$$.sh
14811   chmod +x conf$$.sh
14812   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14813     PATH_SEPARATOR=';'
14814   else
14815     PATH_SEPARATOR=:
14816   fi
14817   rm -f conf$$.sh
14818 fi
14819
14820 # Find out how to test for executable files. Don't use a zero-byte file,
14821 # as systems may use methods other than mode bits to determine executability.
14822 cat >conf$$.file <<_ASEOF
14823 #! /bin/sh
14824 exit 0
14825 _ASEOF
14826 chmod +x conf$$.file
14827 if test -x conf$$.file >/dev/null 2>&1; then
14828   ac_executable_p="test -x"
14829 else
14830   ac_executable_p="test -f"
14831 fi
14832 rm -f conf$$.file
14833
14834 # Extract the first word of "xgettext", so it can be a program name with args.
14835 set dummy xgettext; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837 $as_echo_n "checking for $ac_word... " >&6; }
14838 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
14839   $as_echo_n "(cached) " >&6
14840 else
14841   case "$XGETTEXT" in
14842   [\\/]* | ?:[\\/]*)
14843     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14844     ;;
14845   *)
14846     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14847     for ac_dir in $PATH; do
14848       IFS="$ac_save_IFS"
14849       test -z "$ac_dir" && ac_dir=.
14850       for ac_exec_ext in '' $ac_executable_extensions; do
14851         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14852           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14853           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14854      (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
14855             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14856             break 2
14857           fi
14858         fi
14859       done
14860     done
14861     IFS="$ac_save_IFS"
14862   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14863     ;;
14864 esac
14865 fi
14866 XGETTEXT="$ac_cv_path_XGETTEXT"
14867 if test "$XGETTEXT" != ":"; then
14868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14869 $as_echo "$XGETTEXT" >&6; }
14870 else
14871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14873 fi
14874
14875     rm -f messages.po
14876
14877     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14878     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14879     *) XGETTEXT_015=$XGETTEXT ;;
14880   esac
14881
14882
14883
14884 # Prepare PATH_SEPARATOR.
14885 # The user is always right.
14886 if test "${PATH_SEPARATOR+set}" != set; then
14887   echo "#! /bin/sh" >conf$$.sh
14888   echo  "exit 0"   >>conf$$.sh
14889   chmod +x conf$$.sh
14890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14891     PATH_SEPARATOR=';'
14892   else
14893     PATH_SEPARATOR=:
14894   fi
14895   rm -f conf$$.sh
14896 fi
14897
14898 # Find out how to test for executable files. Don't use a zero-byte file,
14899 # as systems may use methods other than mode bits to determine executability.
14900 cat >conf$$.file <<_ASEOF
14901 #! /bin/sh
14902 exit 0
14903 _ASEOF
14904 chmod +x conf$$.file
14905 if test -x conf$$.file >/dev/null 2>&1; then
14906   ac_executable_p="test -x"
14907 else
14908   ac_executable_p="test -f"
14909 fi
14910 rm -f conf$$.file
14911
14912 # Extract the first word of "msgmerge", so it can be a program name with args.
14913 set dummy msgmerge; ac_word=$2
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14915 $as_echo_n "checking for $ac_word... " >&6; }
14916 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
14917   $as_echo_n "(cached) " >&6
14918 else
14919   case "$MSGMERGE" in
14920   [\\/]* | ?:[\\/]*)
14921     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14922     ;;
14923   *)
14924     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14925     for ac_dir in $PATH; do
14926       IFS="$ac_save_IFS"
14927       test -z "$ac_dir" && ac_dir=.
14928       for ac_exec_ext in '' $ac_executable_extensions; do
14929         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14930           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14931           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14932             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14933             break 2
14934           fi
14935         fi
14936       done
14937     done
14938     IFS="$ac_save_IFS"
14939   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14940     ;;
14941 esac
14942 fi
14943 MSGMERGE="$ac_cv_path_MSGMERGE"
14944 if test "$MSGMERGE" != ":"; then
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14946 $as_echo "$MSGMERGE" >&6; }
14947 else
14948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14950 fi
14951
14952
14953         test -n "$localedir" || localedir='${datadir}/locale'
14954
14955
14956     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14957
14958
14959   ac_config_commands="$ac_config_commands po-directories"
14960
14961
14962
14963       if test "X$prefix" = "XNONE"; then
14964     acl_final_prefix="$ac_default_prefix"
14965   else
14966     acl_final_prefix="$prefix"
14967   fi
14968   if test "X$exec_prefix" = "XNONE"; then
14969     acl_final_exec_prefix='${prefix}'
14970   else
14971     acl_final_exec_prefix="$exec_prefix"
14972   fi
14973   acl_save_prefix="$prefix"
14974   prefix="$acl_final_prefix"
14975   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14976   prefix="$acl_save_prefix"
14977
14978
14979 # Check whether --with-gnu-ld was given.
14980 if test "${with_gnu_ld+set}" = set; then :
14981   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14982 else
14983   with_gnu_ld=no
14984 fi
14985
14986 # Prepare PATH_SEPARATOR.
14987 # The user is always right.
14988 if test "${PATH_SEPARATOR+set}" != set; then
14989   echo "#! /bin/sh" >conf$$.sh
14990   echo  "exit 0"   >>conf$$.sh
14991   chmod +x conf$$.sh
14992   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14993     PATH_SEPARATOR=';'
14994   else
14995     PATH_SEPARATOR=:
14996   fi
14997   rm -f conf$$.sh
14998 fi
14999 ac_prog=ld
15000 if test "$GCC" = yes; then
15001   # Check if gcc -print-prog-name=ld gives a path.
15002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15003 $as_echo_n "checking for ld used by GCC... " >&6; }
15004   case $host in
15005   *-*-mingw*)
15006     # gcc leaves a trailing carriage return which upsets mingw
15007     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15008   *)
15009     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15010   esac
15011   case $ac_prog in
15012     # Accept absolute paths.
15013     [\\/]* | [A-Za-z]:[\\/]*)
15014       re_direlt='/[^/][^/]*/\.\./'
15015       # Canonicalize the path of ld
15016       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15017       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15018         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15019       done
15020       test -z "$LD" && LD="$ac_prog"
15021       ;;
15022   "")
15023     # If it fails, then pretend we aren't using GCC.
15024     ac_prog=ld
15025     ;;
15026   *)
15027     # If it is relative, then search for the first ld in PATH.
15028     with_gnu_ld=unknown
15029     ;;
15030   esac
15031 elif test "$with_gnu_ld" = yes; then
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15033 $as_echo_n "checking for GNU ld... " >&6; }
15034 else
15035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15036 $as_echo_n "checking for non-GNU ld... " >&6; }
15037 fi
15038 if test "${acl_cv_path_LD+set}" = set; then :
15039   $as_echo_n "(cached) " >&6
15040 else
15041   if test -z "$LD"; then
15042   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15043   for ac_dir in $PATH; do
15044     test -z "$ac_dir" && ac_dir=.
15045     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15046       acl_cv_path_LD="$ac_dir/$ac_prog"
15047       # Check to see if the program is GNU ld.  I'd rather use --version,
15048       # but apparently some GNU ld's only accept -v.
15049       # Break only if it was the GNU/non-GNU ld that we prefer.
15050       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15051       *GNU* | *'with BFD'*)
15052         test "$with_gnu_ld" != no && break ;;
15053       *)
15054         test "$with_gnu_ld" != yes && break ;;
15055       esac
15056     fi
15057   done
15058   IFS="$ac_save_ifs"
15059 else
15060   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15061 fi
15062 fi
15063
15064 LD="$acl_cv_path_LD"
15065 if test -n "$LD"; then
15066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15067 $as_echo "$LD" >&6; }
15068 else
15069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15070 $as_echo "no" >&6; }
15071 fi
15072 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15074 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15075 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
15076   $as_echo_n "(cached) " >&6
15077 else
15078   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15079 case `$LD -v 2>&1 </dev/null` in
15080 *GNU* | *'with BFD'*)
15081   acl_cv_prog_gnu_ld=yes ;;
15082 *)
15083   acl_cv_prog_gnu_ld=no ;;
15084 esac
15085 fi
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15087 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15088 with_gnu_ld=$acl_cv_prog_gnu_ld
15089
15090
15091
15092
15093                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15094 $as_echo_n "checking for shared library run path origin... " >&6; }
15095 if test "${acl_cv_rpath+set}" = set; then :
15096   $as_echo_n "(cached) " >&6
15097 else
15098
15099     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15100     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15101     . ./conftest.sh
15102     rm -f ./conftest.sh
15103     acl_cv_rpath=done
15104
15105 fi
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15107 $as_echo "$acl_cv_rpath" >&6; }
15108   wl="$acl_cv_wl"
15109   acl_libext="$acl_cv_libext"
15110   acl_shlibext="$acl_cv_shlibext"
15111   acl_libname_spec="$acl_cv_libname_spec"
15112   acl_library_names_spec="$acl_cv_library_names_spec"
15113   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15114   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15115   acl_hardcode_direct="$acl_cv_hardcode_direct"
15116   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15117     # Check whether --enable-rpath was given.
15118 if test "${enable_rpath+set}" = set; then :
15119   enableval=$enable_rpath; :
15120 else
15121   enable_rpath=yes
15122 fi
15123
15124
15125
15126
15127   acl_libdirstem=lib
15128   acl_libdirstem2=
15129   case "$host_os" in
15130     solaris*)
15131                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15132 $as_echo_n "checking for 64-bit host... " >&6; }
15133 if test "${gl_cv_solaris_64bit+set}" = set; then :
15134   $as_echo_n "(cached) " >&6
15135 else
15136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h.  */
15138
15139 #ifdef _LP64
15140 sixtyfour bits
15141 #endif
15142
15143 _ACEOF
15144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15146   gl_cv_solaris_64bit=yes
15147 else
15148   gl_cv_solaris_64bit=no
15149 fi
15150 rm -f conftest*
15151
15152
15153 fi
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15155 $as_echo "$gl_cv_solaris_64bit" >&6; }
15156       if test $gl_cv_solaris_64bit = yes; then
15157         acl_libdirstem=lib/64
15158         case "$host_cpu" in
15159           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15160           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15161         esac
15162       fi
15163       ;;
15164     *)
15165       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15166       if test -n "$searchpath"; then
15167         acl_save_IFS="${IFS=    }"; IFS=":"
15168         for searchdir in $searchpath; do
15169           if test -d "$searchdir"; then
15170             case "$searchdir" in
15171               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15172               */../ | */.. )
15173                 # Better ignore directories of this form. They are misleading.
15174                 ;;
15175               *) searchdir=`cd "$searchdir" && pwd`
15176                  case "$searchdir" in
15177                    */lib64 ) acl_libdirstem=lib64 ;;
15178                  esac ;;
15179             esac
15180           fi
15181         done
15182         IFS="$acl_save_IFS"
15183       fi
15184       ;;
15185   esac
15186   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199     use_additional=yes
15200
15201   acl_save_prefix="$prefix"
15202   prefix="$acl_final_prefix"
15203   acl_save_exec_prefix="$exec_prefix"
15204   exec_prefix="$acl_final_exec_prefix"
15205
15206     eval additional_includedir=\"$includedir\"
15207     eval additional_libdir=\"$libdir\"
15208
15209   exec_prefix="$acl_save_exec_prefix"
15210   prefix="$acl_save_prefix"
15211
15212
15213 # Check whether --with-libiconv-prefix was given.
15214 if test "${with_libiconv_prefix+set}" = set; then :
15215   withval=$with_libiconv_prefix;
15216     if test "X$withval" = "Xno"; then
15217       use_additional=no
15218     else
15219       if test "X$withval" = "X"; then
15220
15221   acl_save_prefix="$prefix"
15222   prefix="$acl_final_prefix"
15223   acl_save_exec_prefix="$exec_prefix"
15224   exec_prefix="$acl_final_exec_prefix"
15225
15226           eval additional_includedir=\"$includedir\"
15227           eval additional_libdir=\"$libdir\"
15228
15229   exec_prefix="$acl_save_exec_prefix"
15230   prefix="$acl_save_prefix"
15231
15232       else
15233         additional_includedir="$withval/include"
15234         additional_libdir="$withval/$acl_libdirstem"
15235         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15236            && ! test -d "$withval/$acl_libdirstem"; then
15237           additional_libdir="$withval/$acl_libdirstem2"
15238         fi
15239       fi
15240     fi
15241
15242 fi
15243
15244       LIBICONV=
15245   LTLIBICONV=
15246   INCICONV=
15247   LIBICONV_PREFIX=
15248       HAVE_LIBICONV=
15249   rpathdirs=
15250   ltrpathdirs=
15251   names_already_handled=
15252   names_next_round='iconv '
15253   while test -n "$names_next_round"; do
15254     names_this_round="$names_next_round"
15255     names_next_round=
15256     for name in $names_this_round; do
15257       already_handled=
15258       for n in $names_already_handled; do
15259         if test "$n" = "$name"; then
15260           already_handled=yes
15261           break
15262         fi
15263       done
15264       if test -z "$already_handled"; then
15265         names_already_handled="$names_already_handled $name"
15266                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15267         eval value=\"\$HAVE_LIB$uppername\"
15268         if test -n "$value"; then
15269           if test "$value" = yes; then
15270             eval value=\"\$LIB$uppername\"
15271             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15272             eval value=\"\$LTLIB$uppername\"
15273             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15274           else
15275                                     :
15276           fi
15277         else
15278                               found_dir=
15279           found_la=
15280           found_so=
15281           found_a=
15282           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15283           if test -n "$acl_shlibext"; then
15284             shrext=".$acl_shlibext"             # typically: shrext=.so
15285           else
15286             shrext=
15287           fi
15288           if test $use_additional = yes; then
15289             dir="$additional_libdir"
15290                                     if test -n "$acl_shlibext"; then
15291               if test -f "$dir/$libname$shrext"; then
15292                 found_dir="$dir"
15293                 found_so="$dir/$libname$shrext"
15294               else
15295                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15296                   ver=`(cd "$dir" && \
15297                         for f in "$libname$shrext".*; do echo "$f"; done \
15298                         | sed -e "s,^$libname$shrext\\\\.,," \
15299                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15300                         | sed 1q ) 2>/dev/null`
15301                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15302                     found_dir="$dir"
15303                     found_so="$dir/$libname$shrext.$ver"
15304                   fi
15305                 else
15306                   eval library_names=\"$acl_library_names_spec\"
15307                   for f in $library_names; do
15308                     if test -f "$dir/$f"; then
15309                       found_dir="$dir"
15310                       found_so="$dir/$f"
15311                       break
15312                     fi
15313                   done
15314                 fi
15315               fi
15316             fi
15317                         if test "X$found_dir" = "X"; then
15318               if test -f "$dir/$libname.$acl_libext"; then
15319                 found_dir="$dir"
15320                 found_a="$dir/$libname.$acl_libext"
15321               fi
15322             fi
15323             if test "X$found_dir" != "X"; then
15324               if test -f "$dir/$libname.la"; then
15325                 found_la="$dir/$libname.la"
15326               fi
15327             fi
15328           fi
15329           if test "X$found_dir" = "X"; then
15330             for x in $LDFLAGS $LTLIBICONV; do
15331
15332   acl_save_prefix="$prefix"
15333   prefix="$acl_final_prefix"
15334   acl_save_exec_prefix="$exec_prefix"
15335   exec_prefix="$acl_final_exec_prefix"
15336   eval x=\"$x\"
15337   exec_prefix="$acl_save_exec_prefix"
15338   prefix="$acl_save_prefix"
15339
15340               case "$x" in
15341                 -L*)
15342                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15343                                     if test -n "$acl_shlibext"; then
15344                     if test -f "$dir/$libname$shrext"; then
15345                       found_dir="$dir"
15346                       found_so="$dir/$libname$shrext"
15347                     else
15348                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15349                         ver=`(cd "$dir" && \
15350                               for f in "$libname$shrext".*; do echo "$f"; done \
15351                               | sed -e "s,^$libname$shrext\\\\.,," \
15352                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15353                               | sed 1q ) 2>/dev/null`
15354                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15355                           found_dir="$dir"
15356                           found_so="$dir/$libname$shrext.$ver"
15357                         fi
15358                       else
15359                         eval library_names=\"$acl_library_names_spec\"
15360                         for f in $library_names; do
15361                           if test -f "$dir/$f"; then
15362                             found_dir="$dir"
15363                             found_so="$dir/$f"
15364                             break
15365                           fi
15366                         done
15367                       fi
15368                     fi
15369                   fi
15370                                     if test "X$found_dir" = "X"; then
15371                     if test -f "$dir/$libname.$acl_libext"; then
15372                       found_dir="$dir"
15373                       found_a="$dir/$libname.$acl_libext"
15374                     fi
15375                   fi
15376                   if test "X$found_dir" != "X"; then
15377                     if test -f "$dir/$libname.la"; then
15378                       found_la="$dir/$libname.la"
15379                     fi
15380                   fi
15381                   ;;
15382               esac
15383               if test "X$found_dir" != "X"; then
15384                 break
15385               fi
15386             done
15387           fi
15388           if test "X$found_dir" != "X"; then
15389                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15390             if test "X$found_so" != "X"; then
15391                                                         if test "$enable_rpath" = no \
15392                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15393                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15394                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15395               else
15396                                                                                 haveit=
15397                 for x in $ltrpathdirs; do
15398                   if test "X$x" = "X$found_dir"; then
15399                     haveit=yes
15400                     break
15401                   fi
15402                 done
15403                 if test -z "$haveit"; then
15404                   ltrpathdirs="$ltrpathdirs $found_dir"
15405                 fi
15406                                 if test "$acl_hardcode_direct" = yes; then
15407                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15408                 else
15409                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15410                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15411                                                             haveit=
15412                     for x in $rpathdirs; do
15413                       if test "X$x" = "X$found_dir"; then
15414                         haveit=yes
15415                         break
15416                       fi
15417                     done
15418                     if test -z "$haveit"; then
15419                       rpathdirs="$rpathdirs $found_dir"
15420                     fi
15421                   else
15422                                                                                 haveit=
15423                     for x in $LDFLAGS $LIBICONV; do
15424
15425   acl_save_prefix="$prefix"
15426   prefix="$acl_final_prefix"
15427   acl_save_exec_prefix="$exec_prefix"
15428   exec_prefix="$acl_final_exec_prefix"
15429   eval x=\"$x\"
15430   exec_prefix="$acl_save_exec_prefix"
15431   prefix="$acl_save_prefix"
15432
15433                       if test "X$x" = "X-L$found_dir"; then
15434                         haveit=yes
15435                         break
15436                       fi
15437                     done
15438                     if test -z "$haveit"; then
15439                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15440                     fi
15441                     if test "$acl_hardcode_minus_L" != no; then
15442                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15443                     else
15444                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15445                     fi
15446                   fi
15447                 fi
15448               fi
15449             else
15450               if test "X$found_a" != "X"; then
15451                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15452               else
15453                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15454               fi
15455             fi
15456                         additional_includedir=
15457             case "$found_dir" in
15458               */$acl_libdirstem | */$acl_libdirstem/)
15459                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15460                 if test "$name" = 'iconv'; then
15461                   LIBICONV_PREFIX="$basedir"
15462                 fi
15463                 additional_includedir="$basedir/include"
15464                 ;;
15465               */$acl_libdirstem2 | */$acl_libdirstem2/)
15466                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15467                 if test "$name" = 'iconv'; then
15468                   LIBICONV_PREFIX="$basedir"
15469                 fi
15470                 additional_includedir="$basedir/include"
15471                 ;;
15472             esac
15473             if test "X$additional_includedir" != "X"; then
15474                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15475                 haveit=
15476                 if test "X$additional_includedir" = "X/usr/local/include"; then
15477                   if test -n "$GCC"; then
15478                     case $host_os in
15479                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15480                     esac
15481                   fi
15482                 fi
15483                 if test -z "$haveit"; then
15484                   for x in $CPPFLAGS $INCICONV; do
15485
15486   acl_save_prefix="$prefix"
15487   prefix="$acl_final_prefix"
15488   acl_save_exec_prefix="$exec_prefix"
15489   exec_prefix="$acl_final_exec_prefix"
15490   eval x=\"$x\"
15491   exec_prefix="$acl_save_exec_prefix"
15492   prefix="$acl_save_prefix"
15493
15494                     if test "X$x" = "X-I$additional_includedir"; then
15495                       haveit=yes
15496                       break
15497                     fi
15498                   done
15499                   if test -z "$haveit"; then
15500                     if test -d "$additional_includedir"; then
15501                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15502                     fi
15503                   fi
15504                 fi
15505               fi
15506             fi
15507                         if test -n "$found_la"; then
15508                                                         save_libdir="$libdir"
15509               case "$found_la" in
15510                 */* | *\\*) . "$found_la" ;;
15511                 *) . "./$found_la" ;;
15512               esac
15513               libdir="$save_libdir"
15514                             for dep in $dependency_libs; do
15515                 case "$dep" in
15516                   -L*)
15517                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15518                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15519                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15520                       haveit=
15521                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15522                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15523                         if test -n "$GCC"; then
15524                           case $host_os in
15525                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15526                           esac
15527                         fi
15528                       fi
15529                       if test -z "$haveit"; then
15530                         haveit=
15531                         for x in $LDFLAGS $LIBICONV; do
15532
15533   acl_save_prefix="$prefix"
15534   prefix="$acl_final_prefix"
15535   acl_save_exec_prefix="$exec_prefix"
15536   exec_prefix="$acl_final_exec_prefix"
15537   eval x=\"$x\"
15538   exec_prefix="$acl_save_exec_prefix"
15539   prefix="$acl_save_prefix"
15540
15541                           if test "X$x" = "X-L$additional_libdir"; then
15542                             haveit=yes
15543                             break
15544                           fi
15545                         done
15546                         if test -z "$haveit"; then
15547                           if test -d "$additional_libdir"; then
15548                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15549                           fi
15550                         fi
15551                         haveit=
15552                         for x in $LDFLAGS $LTLIBICONV; do
15553
15554   acl_save_prefix="$prefix"
15555   prefix="$acl_final_prefix"
15556   acl_save_exec_prefix="$exec_prefix"
15557   exec_prefix="$acl_final_exec_prefix"
15558   eval x=\"$x\"
15559   exec_prefix="$acl_save_exec_prefix"
15560   prefix="$acl_save_prefix"
15561
15562                           if test "X$x" = "X-L$additional_libdir"; then
15563                             haveit=yes
15564                             break
15565                           fi
15566                         done
15567                         if test -z "$haveit"; then
15568                           if test -d "$additional_libdir"; then
15569                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15570                           fi
15571                         fi
15572                       fi
15573                     fi
15574                     ;;
15575                   -R*)
15576                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15577                     if test "$enable_rpath" != no; then
15578                                                                   haveit=
15579                       for x in $rpathdirs; do
15580                         if test "X$x" = "X$dir"; then
15581                           haveit=yes
15582                           break
15583                         fi
15584                       done
15585                       if test -z "$haveit"; then
15586                         rpathdirs="$rpathdirs $dir"
15587                       fi
15588                                                                   haveit=
15589                       for x in $ltrpathdirs; do
15590                         if test "X$x" = "X$dir"; then
15591                           haveit=yes
15592                           break
15593                         fi
15594                       done
15595                       if test -z "$haveit"; then
15596                         ltrpathdirs="$ltrpathdirs $dir"
15597                       fi
15598                     fi
15599                     ;;
15600                   -l*)
15601                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15602                     ;;
15603                   *.la)
15604                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15605                     ;;
15606                   *)
15607                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15608                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15609                     ;;
15610                 esac
15611               done
15612             fi
15613           else
15614                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15615             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15616           fi
15617         fi
15618       fi
15619     done
15620   done
15621   if test "X$rpathdirs" != "X"; then
15622     if test -n "$acl_hardcode_libdir_separator"; then
15623                         alldirs=
15624       for found_dir in $rpathdirs; do
15625         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15626       done
15627             acl_save_libdir="$libdir"
15628       libdir="$alldirs"
15629       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15630       libdir="$acl_save_libdir"
15631       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15632     else
15633             for found_dir in $rpathdirs; do
15634         acl_save_libdir="$libdir"
15635         libdir="$found_dir"
15636         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15637         libdir="$acl_save_libdir"
15638         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15639       done
15640     fi
15641   fi
15642   if test "X$ltrpathdirs" != "X"; then
15643             for found_dir in $ltrpathdirs; do
15644       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15645     done
15646   fi
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15679 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15680 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
15681   $as_echo_n "(cached) " >&6
15682 else
15683   gt_save_LIBS="$LIBS"
15684      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15685      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h.  */
15687 #include <CoreFoundation/CFPreferences.h>
15688 int
15689 main ()
15690 {
15691 CFPreferencesCopyAppValue(NULL, NULL)
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_c_try_link "$LINENO"; then :
15697   gt_cv_func_CFPreferencesCopyAppValue=yes
15698 else
15699   gt_cv_func_CFPreferencesCopyAppValue=no
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext \
15702     conftest$ac_exeext conftest.$ac_ext
15703      LIBS="$gt_save_LIBS"
15704 fi
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15706 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15707   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15708
15709 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15710
15711   fi
15712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15713 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15714 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
15715   $as_echo_n "(cached) " >&6
15716 else
15717   gt_save_LIBS="$LIBS"
15718      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h.  */
15721 #include <CoreFoundation/CFLocale.h>
15722 int
15723 main ()
15724 {
15725 CFLocaleCopyCurrent();
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 if ac_fn_c_try_link "$LINENO"; then :
15731   gt_cv_func_CFLocaleCopyCurrent=yes
15732 else
15733   gt_cv_func_CFLocaleCopyCurrent=no
15734 fi
15735 rm -f core conftest.err conftest.$ac_objext \
15736     conftest$ac_exeext conftest.$ac_ext
15737      LIBS="$gt_save_LIBS"
15738 fi
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15740 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15741   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15742
15743 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15744
15745   fi
15746   INTL_MACOSX_LIBS=
15747   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15748     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15749   fi
15750
15751
15752
15753
15754
15755
15756   LIBINTL=
15757   LTLIBINTL=
15758   POSUB=
15759
15760     case " $gt_needs " in
15761     *" need-formatstring-macros "*) gt_api_version=3 ;;
15762     *" need-ngettext "*) gt_api_version=2 ;;
15763     *) gt_api_version=1 ;;
15764   esac
15765   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15766   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15767
15768     if test "$USE_NLS" = "yes"; then
15769     gt_use_preinstalled_gnugettext=no
15770
15771
15772         if test $gt_api_version -ge 3; then
15773           gt_revision_test_code='
15774 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15775 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15776 #endif
15777 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15778 '
15779         else
15780           gt_revision_test_code=
15781         fi
15782         if test $gt_api_version -ge 2; then
15783           gt_expression_test_code=' + * ngettext ("", "", 0)'
15784         else
15785           gt_expression_test_code=
15786         fi
15787
15788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15789 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15790 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
15791   $as_echo_n "(cached) " >&6
15792 else
15793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h.  */
15795 #include <libintl.h>
15796 $gt_revision_test_code
15797 extern int _nl_msg_cat_cntr;
15798 extern int *_nl_domain_bindings;
15799 int
15800 main ()
15801 {
15802 bindtextdomain ("", "");
15803 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_link "$LINENO"; then :
15809   eval "$gt_func_gnugettext_libc=yes"
15810 else
15811   eval "$gt_func_gnugettext_libc=no"
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext \
15814     conftest$ac_exeext conftest.$ac_ext
15815 fi
15816 eval ac_res=\$$gt_func_gnugettext_libc
15817                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15818 $as_echo "$ac_res" >&6; }
15819
15820         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15821
15822
15823
15824
15825
15826           am_save_CPPFLAGS="$CPPFLAGS"
15827
15828   for element in $INCICONV; do
15829     haveit=
15830     for x in $CPPFLAGS; do
15831
15832   acl_save_prefix="$prefix"
15833   prefix="$acl_final_prefix"
15834   acl_save_exec_prefix="$exec_prefix"
15835   exec_prefix="$acl_final_exec_prefix"
15836   eval x=\"$x\"
15837   exec_prefix="$acl_save_exec_prefix"
15838   prefix="$acl_save_prefix"
15839
15840       if test "X$x" = "X$element"; then
15841         haveit=yes
15842         break
15843       fi
15844     done
15845     if test -z "$haveit"; then
15846       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15847     fi
15848   done
15849
15850
15851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15852 $as_echo_n "checking for iconv... " >&6; }
15853 if test "${am_cv_func_iconv+set}" = set; then :
15854   $as_echo_n "(cached) " >&6
15855 else
15856
15857     am_cv_func_iconv="no, consider installing GNU libiconv"
15858     am_cv_lib_iconv=no
15859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h.  */
15861 #include <stdlib.h>
15862 #include <iconv.h>
15863 int
15864 main ()
15865 {
15866 iconv_t cd = iconv_open("","");
15867        iconv(cd,NULL,NULL,NULL,NULL);
15868        iconv_close(cd);
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 if ac_fn_c_try_link "$LINENO"; then :
15874   am_cv_func_iconv=yes
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext \
15877     conftest$ac_exeext conftest.$ac_ext
15878     if test "$am_cv_func_iconv" != yes; then
15879       am_save_LIBS="$LIBS"
15880       LIBS="$LIBS $LIBICONV"
15881       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h.  */
15883 #include <stdlib.h>
15884 #include <iconv.h>
15885 int
15886 main ()
15887 {
15888 iconv_t cd = iconv_open("","");
15889          iconv(cd,NULL,NULL,NULL,NULL);
15890          iconv_close(cd);
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_link "$LINENO"; then :
15896   am_cv_lib_iconv=yes
15897         am_cv_func_iconv=yes
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext \
15900     conftest$ac_exeext conftest.$ac_ext
15901       LIBS="$am_save_LIBS"
15902     fi
15903
15904 fi
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15906 $as_echo "$am_cv_func_iconv" >&6; }
15907   if test "$am_cv_func_iconv" = yes; then
15908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15909 $as_echo_n "checking for working iconv... " >&6; }
15910 if test "${am_cv_func_iconv_works+set}" = set; then :
15911   $as_echo_n "(cached) " >&6
15912 else
15913
15914             am_save_LIBS="$LIBS"
15915       if test $am_cv_lib_iconv = yes; then
15916         LIBS="$LIBS $LIBICONV"
15917       fi
15918       if test "$cross_compiling" = yes; then :
15919   case "$host_os" in
15920            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15921            *)            am_cv_func_iconv_works="guessing yes" ;;
15922          esac
15923 else
15924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h.  */
15926
15927 #include <iconv.h>
15928 #include <string.h>
15929 int main ()
15930 {
15931   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15932      returns.  */
15933   {
15934     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15935     if (cd_utf8_to_88591 != (iconv_t)(-1))
15936       {
15937         static const char input[] = "\342\202\254"; /* EURO SIGN */
15938         char buf[10];
15939         const char *inptr = input;
15940         size_t inbytesleft = strlen (input);
15941         char *outptr = buf;
15942         size_t outbytesleft = sizeof (buf);
15943         size_t res = iconv (cd_utf8_to_88591,
15944                             (char **) &inptr, &inbytesleft,
15945                             &outptr, &outbytesleft);
15946         if (res == 0)
15947           return 1;
15948       }
15949   }
15950   /* Test against Solaris 10 bug: Failures are not distinguishable from
15951      successful returns.  */
15952   {
15953     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15954     if (cd_ascii_to_88591 != (iconv_t)(-1))
15955       {
15956         static const char input[] = "\263";
15957         char buf[10];
15958         const char *inptr = input;
15959         size_t inbytesleft = strlen (input);
15960         char *outptr = buf;
15961         size_t outbytesleft = sizeof (buf);
15962         size_t res = iconv (cd_ascii_to_88591,
15963                             (char **) &inptr, &inbytesleft,
15964                             &outptr, &outbytesleft);
15965         if (res == 0)
15966           return 1;
15967       }
15968   }
15969 #if 0 /* This bug could be worked around by the caller.  */
15970   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15971   {
15972     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15973     if (cd_88591_to_utf8 != (iconv_t)(-1))
15974       {
15975         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15976         char buf[50];
15977         const char *inptr = input;
15978         size_t inbytesleft = strlen (input);
15979         char *outptr = buf;
15980         size_t outbytesleft = sizeof (buf);
15981         size_t res = iconv (cd_88591_to_utf8,
15982                             (char **) &inptr, &inbytesleft,
15983                             &outptr, &outbytesleft);
15984         if ((int)res > 0)
15985           return 1;
15986       }
15987   }
15988 #endif
15989   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15990      provided.  */
15991   if (/* Try standardized names.  */
15992       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15993       /* Try IRIX, OSF/1 names.  */
15994       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15995       /* Try AIX names.  */
15996       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15997       /* Try HP-UX names.  */
15998       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15999     return 1;
16000   return 0;
16001 }
16002 _ACEOF
16003 if ac_fn_c_try_run "$LINENO"; then :
16004   am_cv_func_iconv_works=yes
16005 else
16006   am_cv_func_iconv_works=no
16007 fi
16008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16009   conftest.$ac_objext conftest.beam conftest.$ac_ext
16010 fi
16011
16012       LIBS="$am_save_LIBS"
16013
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16016 $as_echo "$am_cv_func_iconv_works" >&6; }
16017     case "$am_cv_func_iconv_works" in
16018       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16019       *)   am_func_iconv=yes ;;
16020     esac
16021   else
16022     am_func_iconv=no am_cv_lib_iconv=no
16023   fi
16024   if test "$am_func_iconv" = yes; then
16025
16026 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16027
16028   fi
16029   if test "$am_cv_lib_iconv" = yes; then
16030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16031 $as_echo_n "checking how to link with libiconv... " >&6; }
16032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16033 $as_echo "$LIBICONV" >&6; }
16034   else
16035             CPPFLAGS="$am_save_CPPFLAGS"
16036     LIBICONV=
16037     LTLIBICONV=
16038   fi
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050     use_additional=yes
16051
16052   acl_save_prefix="$prefix"
16053   prefix="$acl_final_prefix"
16054   acl_save_exec_prefix="$exec_prefix"
16055   exec_prefix="$acl_final_exec_prefix"
16056
16057     eval additional_includedir=\"$includedir\"
16058     eval additional_libdir=\"$libdir\"
16059
16060   exec_prefix="$acl_save_exec_prefix"
16061   prefix="$acl_save_prefix"
16062
16063
16064 # Check whether --with-libintl-prefix was given.
16065 if test "${with_libintl_prefix+set}" = set; then :
16066   withval=$with_libintl_prefix;
16067     if test "X$withval" = "Xno"; then
16068       use_additional=no
16069     else
16070       if test "X$withval" = "X"; then
16071
16072   acl_save_prefix="$prefix"
16073   prefix="$acl_final_prefix"
16074   acl_save_exec_prefix="$exec_prefix"
16075   exec_prefix="$acl_final_exec_prefix"
16076
16077           eval additional_includedir=\"$includedir\"
16078           eval additional_libdir=\"$libdir\"
16079
16080   exec_prefix="$acl_save_exec_prefix"
16081   prefix="$acl_save_prefix"
16082
16083       else
16084         additional_includedir="$withval/include"
16085         additional_libdir="$withval/$acl_libdirstem"
16086         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16087            && ! test -d "$withval/$acl_libdirstem"; then
16088           additional_libdir="$withval/$acl_libdirstem2"
16089         fi
16090       fi
16091     fi
16092
16093 fi
16094
16095       LIBINTL=
16096   LTLIBINTL=
16097   INCINTL=
16098   LIBINTL_PREFIX=
16099       HAVE_LIBINTL=
16100   rpathdirs=
16101   ltrpathdirs=
16102   names_already_handled=
16103   names_next_round='intl '
16104   while test -n "$names_next_round"; do
16105     names_this_round="$names_next_round"
16106     names_next_round=
16107     for name in $names_this_round; do
16108       already_handled=
16109       for n in $names_already_handled; do
16110         if test "$n" = "$name"; then
16111           already_handled=yes
16112           break
16113         fi
16114       done
16115       if test -z "$already_handled"; then
16116         names_already_handled="$names_already_handled $name"
16117                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16118         eval value=\"\$HAVE_LIB$uppername\"
16119         if test -n "$value"; then
16120           if test "$value" = yes; then
16121             eval value=\"\$LIB$uppername\"
16122             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16123             eval value=\"\$LTLIB$uppername\"
16124             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16125           else
16126                                     :
16127           fi
16128         else
16129                               found_dir=
16130           found_la=
16131           found_so=
16132           found_a=
16133           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16134           if test -n "$acl_shlibext"; then
16135             shrext=".$acl_shlibext"             # typically: shrext=.so
16136           else
16137             shrext=
16138           fi
16139           if test $use_additional = yes; then
16140             dir="$additional_libdir"
16141                                     if test -n "$acl_shlibext"; then
16142               if test -f "$dir/$libname$shrext"; then
16143                 found_dir="$dir"
16144                 found_so="$dir/$libname$shrext"
16145               else
16146                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16147                   ver=`(cd "$dir" && \
16148                         for f in "$libname$shrext".*; do echo "$f"; done \
16149                         | sed -e "s,^$libname$shrext\\\\.,," \
16150                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16151                         | sed 1q ) 2>/dev/null`
16152                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16153                     found_dir="$dir"
16154                     found_so="$dir/$libname$shrext.$ver"
16155                   fi
16156                 else
16157                   eval library_names=\"$acl_library_names_spec\"
16158                   for f in $library_names; do
16159                     if test -f "$dir/$f"; then
16160                       found_dir="$dir"
16161                       found_so="$dir/$f"
16162                       break
16163                     fi
16164                   done
16165                 fi
16166               fi
16167             fi
16168                         if test "X$found_dir" = "X"; then
16169               if test -f "$dir/$libname.$acl_libext"; then
16170                 found_dir="$dir"
16171                 found_a="$dir/$libname.$acl_libext"
16172               fi
16173             fi
16174             if test "X$found_dir" != "X"; then
16175               if test -f "$dir/$libname.la"; then
16176                 found_la="$dir/$libname.la"
16177               fi
16178             fi
16179           fi
16180           if test "X$found_dir" = "X"; then
16181             for x in $LDFLAGS $LTLIBINTL; do
16182
16183   acl_save_prefix="$prefix"
16184   prefix="$acl_final_prefix"
16185   acl_save_exec_prefix="$exec_prefix"
16186   exec_prefix="$acl_final_exec_prefix"
16187   eval x=\"$x\"
16188   exec_prefix="$acl_save_exec_prefix"
16189   prefix="$acl_save_prefix"
16190
16191               case "$x" in
16192                 -L*)
16193                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16194                                     if test -n "$acl_shlibext"; then
16195                     if test -f "$dir/$libname$shrext"; then
16196                       found_dir="$dir"
16197                       found_so="$dir/$libname$shrext"
16198                     else
16199                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16200                         ver=`(cd "$dir" && \
16201                               for f in "$libname$shrext".*; do echo "$f"; done \
16202                               | sed -e "s,^$libname$shrext\\\\.,," \
16203                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16204                               | sed 1q ) 2>/dev/null`
16205                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16206                           found_dir="$dir"
16207                           found_so="$dir/$libname$shrext.$ver"
16208                         fi
16209                       else
16210                         eval library_names=\"$acl_library_names_spec\"
16211                         for f in $library_names; do
16212                           if test -f "$dir/$f"; then
16213                             found_dir="$dir"
16214                             found_so="$dir/$f"
16215                             break
16216                           fi
16217                         done
16218                       fi
16219                     fi
16220                   fi
16221                                     if test "X$found_dir" = "X"; then
16222                     if test -f "$dir/$libname.$acl_libext"; then
16223                       found_dir="$dir"
16224                       found_a="$dir/$libname.$acl_libext"
16225                     fi
16226                   fi
16227                   if test "X$found_dir" != "X"; then
16228                     if test -f "$dir/$libname.la"; then
16229                       found_la="$dir/$libname.la"
16230                     fi
16231                   fi
16232                   ;;
16233               esac
16234               if test "X$found_dir" != "X"; then
16235                 break
16236               fi
16237             done
16238           fi
16239           if test "X$found_dir" != "X"; then
16240                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16241             if test "X$found_so" != "X"; then
16242                                                         if test "$enable_rpath" = no \
16243                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16244                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16245                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16246               else
16247                                                                                 haveit=
16248                 for x in $ltrpathdirs; do
16249                   if test "X$x" = "X$found_dir"; then
16250                     haveit=yes
16251                     break
16252                   fi
16253                 done
16254                 if test -z "$haveit"; then
16255                   ltrpathdirs="$ltrpathdirs $found_dir"
16256                 fi
16257                                 if test "$acl_hardcode_direct" = yes; then
16258                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16259                 else
16260                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16261                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16262                                                             haveit=
16263                     for x in $rpathdirs; do
16264                       if test "X$x" = "X$found_dir"; then
16265                         haveit=yes
16266                         break
16267                       fi
16268                     done
16269                     if test -z "$haveit"; then
16270                       rpathdirs="$rpathdirs $found_dir"
16271                     fi
16272                   else
16273                                                                                 haveit=
16274                     for x in $LDFLAGS $LIBINTL; do
16275
16276   acl_save_prefix="$prefix"
16277   prefix="$acl_final_prefix"
16278   acl_save_exec_prefix="$exec_prefix"
16279   exec_prefix="$acl_final_exec_prefix"
16280   eval x=\"$x\"
16281   exec_prefix="$acl_save_exec_prefix"
16282   prefix="$acl_save_prefix"
16283
16284                       if test "X$x" = "X-L$found_dir"; then
16285                         haveit=yes
16286                         break
16287                       fi
16288                     done
16289                     if test -z "$haveit"; then
16290                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16291                     fi
16292                     if test "$acl_hardcode_minus_L" != no; then
16293                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16294                     else
16295                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16296                     fi
16297                   fi
16298                 fi
16299               fi
16300             else
16301               if test "X$found_a" != "X"; then
16302                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16303               else
16304                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16305               fi
16306             fi
16307                         additional_includedir=
16308             case "$found_dir" in
16309               */$acl_libdirstem | */$acl_libdirstem/)
16310                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16311                 if test "$name" = 'intl'; then
16312                   LIBINTL_PREFIX="$basedir"
16313                 fi
16314                 additional_includedir="$basedir/include"
16315                 ;;
16316               */$acl_libdirstem2 | */$acl_libdirstem2/)
16317                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16318                 if test "$name" = 'intl'; then
16319                   LIBINTL_PREFIX="$basedir"
16320                 fi
16321                 additional_includedir="$basedir/include"
16322                 ;;
16323             esac
16324             if test "X$additional_includedir" != "X"; then
16325                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16326                 haveit=
16327                 if test "X$additional_includedir" = "X/usr/local/include"; then
16328                   if test -n "$GCC"; then
16329                     case $host_os in
16330                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16331                     esac
16332                   fi
16333                 fi
16334                 if test -z "$haveit"; then
16335                   for x in $CPPFLAGS $INCINTL; do
16336
16337   acl_save_prefix="$prefix"
16338   prefix="$acl_final_prefix"
16339   acl_save_exec_prefix="$exec_prefix"
16340   exec_prefix="$acl_final_exec_prefix"
16341   eval x=\"$x\"
16342   exec_prefix="$acl_save_exec_prefix"
16343   prefix="$acl_save_prefix"
16344
16345                     if test "X$x" = "X-I$additional_includedir"; then
16346                       haveit=yes
16347                       break
16348                     fi
16349                   done
16350                   if test -z "$haveit"; then
16351                     if test -d "$additional_includedir"; then
16352                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16353                     fi
16354                   fi
16355                 fi
16356               fi
16357             fi
16358                         if test -n "$found_la"; then
16359                                                         save_libdir="$libdir"
16360               case "$found_la" in
16361                 */* | *\\*) . "$found_la" ;;
16362                 *) . "./$found_la" ;;
16363               esac
16364               libdir="$save_libdir"
16365                             for dep in $dependency_libs; do
16366                 case "$dep" in
16367                   -L*)
16368                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16369                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16370                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16371                       haveit=
16372                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16373                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16374                         if test -n "$GCC"; then
16375                           case $host_os in
16376                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16377                           esac
16378                         fi
16379                       fi
16380                       if test -z "$haveit"; then
16381                         haveit=
16382                         for x in $LDFLAGS $LIBINTL; do
16383
16384   acl_save_prefix="$prefix"
16385   prefix="$acl_final_prefix"
16386   acl_save_exec_prefix="$exec_prefix"
16387   exec_prefix="$acl_final_exec_prefix"
16388   eval x=\"$x\"
16389   exec_prefix="$acl_save_exec_prefix"
16390   prefix="$acl_save_prefix"
16391
16392                           if test "X$x" = "X-L$additional_libdir"; then
16393                             haveit=yes
16394                             break
16395                           fi
16396                         done
16397                         if test -z "$haveit"; then
16398                           if test -d "$additional_libdir"; then
16399                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16400                           fi
16401                         fi
16402                         haveit=
16403                         for x in $LDFLAGS $LTLIBINTL; do
16404
16405   acl_save_prefix="$prefix"
16406   prefix="$acl_final_prefix"
16407   acl_save_exec_prefix="$exec_prefix"
16408   exec_prefix="$acl_final_exec_prefix"
16409   eval x=\"$x\"
16410   exec_prefix="$acl_save_exec_prefix"
16411   prefix="$acl_save_prefix"
16412
16413                           if test "X$x" = "X-L$additional_libdir"; then
16414                             haveit=yes
16415                             break
16416                           fi
16417                         done
16418                         if test -z "$haveit"; then
16419                           if test -d "$additional_libdir"; then
16420                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16421                           fi
16422                         fi
16423                       fi
16424                     fi
16425                     ;;
16426                   -R*)
16427                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16428                     if test "$enable_rpath" != no; then
16429                                                                   haveit=
16430                       for x in $rpathdirs; do
16431                         if test "X$x" = "X$dir"; then
16432                           haveit=yes
16433                           break
16434                         fi
16435                       done
16436                       if test -z "$haveit"; then
16437                         rpathdirs="$rpathdirs $dir"
16438                       fi
16439                                                                   haveit=
16440                       for x in $ltrpathdirs; do
16441                         if test "X$x" = "X$dir"; then
16442                           haveit=yes
16443                           break
16444                         fi
16445                       done
16446                       if test -z "$haveit"; then
16447                         ltrpathdirs="$ltrpathdirs $dir"
16448                       fi
16449                     fi
16450                     ;;
16451                   -l*)
16452                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16453                     ;;
16454                   *.la)
16455                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16456                     ;;
16457                   *)
16458                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16459                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16460                     ;;
16461                 esac
16462               done
16463             fi
16464           else
16465                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16466             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16467           fi
16468         fi
16469       fi
16470     done
16471   done
16472   if test "X$rpathdirs" != "X"; then
16473     if test -n "$acl_hardcode_libdir_separator"; then
16474                         alldirs=
16475       for found_dir in $rpathdirs; do
16476         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16477       done
16478             acl_save_libdir="$libdir"
16479       libdir="$alldirs"
16480       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16481       libdir="$acl_save_libdir"
16482       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16483     else
16484             for found_dir in $rpathdirs; do
16485         acl_save_libdir="$libdir"
16486         libdir="$found_dir"
16487         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16488         libdir="$acl_save_libdir"
16489         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16490       done
16491     fi
16492   fi
16493   if test "X$ltrpathdirs" != "X"; then
16494             for found_dir in $ltrpathdirs; do
16495       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16496     done
16497   fi
16498
16499
16500
16501
16502
16503
16504           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16505 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16506 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
16507   $as_echo_n "(cached) " >&6
16508 else
16509   gt_save_CPPFLAGS="$CPPFLAGS"
16510             CPPFLAGS="$CPPFLAGS $INCINTL"
16511             gt_save_LIBS="$LIBS"
16512             LIBS="$LIBS $LIBINTL"
16513                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h.  */
16515 #include <libintl.h>
16516 $gt_revision_test_code
16517 extern int _nl_msg_cat_cntr;
16518 extern
16519 #ifdef __cplusplus
16520 "C"
16521 #endif
16522 const char *_nl_expand_alias (const char *);
16523 int
16524 main ()
16525 {
16526 bindtextdomain ("", "");
16527 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_link "$LINENO"; then :
16533   eval "$gt_func_gnugettext_libintl=yes"
16534 else
16535   eval "$gt_func_gnugettext_libintl=no"
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext \
16538     conftest$ac_exeext conftest.$ac_ext
16539                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16540               LIBS="$LIBS $LIBICONV"
16541               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h.  */
16543 #include <libintl.h>
16544 $gt_revision_test_code
16545 extern int _nl_msg_cat_cntr;
16546 extern
16547 #ifdef __cplusplus
16548 "C"
16549 #endif
16550 const char *_nl_expand_alias (const char *);
16551 int
16552 main ()
16553 {
16554 bindtextdomain ("", "");
16555 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 if ac_fn_c_try_link "$LINENO"; then :
16561   LIBINTL="$LIBINTL $LIBICONV"
16562                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16563                 eval "$gt_func_gnugettext_libintl=yes"
16564
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext \
16567     conftest$ac_exeext conftest.$ac_ext
16568             fi
16569             CPPFLAGS="$gt_save_CPPFLAGS"
16570             LIBS="$gt_save_LIBS"
16571 fi
16572 eval ac_res=\$$gt_func_gnugettext_libintl
16573                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16574 $as_echo "$ac_res" >&6; }
16575         fi
16576
16577                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16578            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16579                 && test "$PACKAGE" != gettext-runtime \
16580                 && test "$PACKAGE" != gettext-tools; }; then
16581           gt_use_preinstalled_gnugettext=yes
16582         else
16583                     LIBINTL=
16584           LTLIBINTL=
16585           INCINTL=
16586         fi
16587
16588
16589
16590     if test -n "$INTL_MACOSX_LIBS"; then
16591       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16592          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16593                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16594         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16595       fi
16596     fi
16597
16598     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16599        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16600
16601 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16602
16603     else
16604       USE_NLS=no
16605     fi
16606   fi
16607
16608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16609 $as_echo_n "checking whether to use NLS... " >&6; }
16610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16611 $as_echo "$USE_NLS" >&6; }
16612   if test "$USE_NLS" = "yes"; then
16613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16614 $as_echo_n "checking where the gettext function comes from... " >&6; }
16615     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16616       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16617         gt_source="external libintl"
16618       else
16619         gt_source="libc"
16620       fi
16621     else
16622       gt_source="included intl directory"
16623     fi
16624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16625 $as_echo "$gt_source" >&6; }
16626   fi
16627
16628   if test "$USE_NLS" = "yes"; then
16629
16630     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16631       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16632         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16633 $as_echo_n "checking how to link with libintl... " >&6; }
16634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16635 $as_echo "$LIBINTL" >&6; }
16636
16637   for element in $INCINTL; do
16638     haveit=
16639     for x in $CPPFLAGS; do
16640
16641   acl_save_prefix="$prefix"
16642   prefix="$acl_final_prefix"
16643   acl_save_exec_prefix="$exec_prefix"
16644   exec_prefix="$acl_final_exec_prefix"
16645   eval x=\"$x\"
16646   exec_prefix="$acl_save_exec_prefix"
16647   prefix="$acl_save_prefix"
16648
16649       if test "X$x" = "X$element"; then
16650         haveit=yes
16651         break
16652       fi
16653     done
16654     if test -z "$haveit"; then
16655       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16656     fi
16657   done
16658
16659       fi
16660
16661
16662 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16663
16664
16665 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16666
16667     fi
16668
16669         POSUB=po
16670   fi
16671
16672
16673
16674     INTLLIBS="$LIBINTL"
16675
16676
16677
16678
16679
16680
16681  if test "x$USE_NLS" = "xyes"; then
16682   USE_NLS_TRUE=
16683   USE_NLS_FALSE='#'
16684 else
16685   USE_NLS_TRUE='#'
16686   USE_NLS_FALSE=
16687 fi
16688
16689
16690 ac_config_files="$ac_config_files Makefile po/Makefile.in doc/Makefile man/Makefile man/config.xml man/po/Makefile man/cs/Makefile man/de/Makefile man/es/Makefile man/fi/Makefile man/fr/Makefile man/hu/Makefile man/id/Makefile man/it/Makefile man/ja/Makefile man/ko/Makefile man/pl/Makefile man/pt_BR/Makefile man/ru/Makefile man/sv/Makefile man/tr/Makefile man/zh_CN/Makefile man/zh_TW/Makefile libmisc/Makefile lib/Makefile src/Makefile contrib/Makefile etc/Makefile etc/pam.d/Makefile shadow.spec"
16691
16692 cat >confcache <<\_ACEOF
16693 # This file is a shell script that caches the results of configure
16694 # tests run on this system so they can be shared between configure
16695 # scripts and configure runs, see configure's option --config-cache.
16696 # It is not useful on other systems.  If it contains results you don't
16697 # want to keep, you may remove or edit it.
16698 #
16699 # config.status only pays attention to the cache file if you give it
16700 # the --recheck option to rerun configure.
16701 #
16702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16704 # following values.
16705
16706 _ACEOF
16707
16708 # The following way of writing the cache mishandles newlines in values,
16709 # but we know of no workaround that is simple, portable, and efficient.
16710 # So, we kill variables containing newlines.
16711 # Ultrix sh set writes to stderr and can't be redirected directly,
16712 # and sets the high bit in the cache file unless we assign to the vars.
16713 (
16714   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16715     eval ac_val=\$$ac_var
16716     case $ac_val in #(
16717     *${as_nl}*)
16718       case $ac_var in #(
16719       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16720 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16721       esac
16722       case $ac_var in #(
16723       _ | IFS | as_nl) ;; #(
16724       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16725       *) { eval $ac_var=; unset $ac_var;} ;;
16726       esac ;;
16727     esac
16728   done
16729
16730   (set) 2>&1 |
16731     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16732     *${as_nl}ac_space=\ *)
16733       # `set' does not quote correctly, so add quotes: double-quote
16734       # substitution turns \\\\ into \\, and sed turns \\ into \.
16735       sed -n \
16736         "s/'/'\\\\''/g;
16737           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16738       ;; #(
16739     *)
16740       # `set' quotes correctly as required by POSIX, so do not add quotes.
16741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16742       ;;
16743     esac |
16744     sort
16745 ) |
16746   sed '
16747      /^ac_cv_env_/b end
16748      t clear
16749      :clear
16750      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16751      t end
16752      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16753      :end' >>confcache
16754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16755   if test -w "$cache_file"; then
16756     test "x$cache_file" != "x/dev/null" &&
16757       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16758 $as_echo "$as_me: updating cache $cache_file" >&6;}
16759     cat confcache >$cache_file
16760   else
16761     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16763   fi
16764 fi
16765 rm -f confcache
16766
16767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16768 # Let make expand exec_prefix.
16769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16770
16771 DEFS=-DHAVE_CONFIG_H
16772
16773 ac_libobjs=
16774 ac_ltlibobjs=
16775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16776   # 1. Remove the extension, and $U if already installed.
16777   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16778   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16779   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16780   #    will be set to the directory where LIBOBJS objects are built.
16781   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16782   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16783 done
16784 LIBOBJS=$ac_libobjs
16785
16786 LTLIBOBJS=$ac_ltlibobjs
16787
16788
16789  if test -n "$EXEEXT"; then
16790   am__EXEEXT_TRUE=
16791   am__EXEEXT_FALSE='#'
16792 else
16793   am__EXEEXT_TRUE='#'
16794   am__EXEEXT_FALSE=
16795 fi
16796
16797 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16798   as_fn_error $? "conditional \"AMDEP\" was never defined.
16799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16800 fi
16801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16802   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16804 fi
16805 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16806   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16808 fi
16809 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16810   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16812 fi
16813 if test -z "${USE_SHA_CRYPT_TRUE}" && test -z "${USE_SHA_CRYPT_FALSE}"; then
16814   as_fn_error $? "conditional \"USE_SHA_CRYPT\" was never defined.
16815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16816 fi
16817 if test -z "${SHADOWGRP_TRUE}" && test -z "${SHADOWGRP_FALSE}"; then
16818   as_fn_error $? "conditional \"SHADOWGRP\" was never defined.
16819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16820 fi
16821 if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
16822   as_fn_error $? "conditional \"ENABLE_REGENERATE_MAN\" was never defined.
16823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16824 fi
16825 if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
16826   as_fn_error $? "conditional \"USE_PAM\" was never defined.
16827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16828 fi
16829 if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
16830   as_fn_error $? "conditional \"USE_PAM\" was never defined.
16831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16832 fi
16833 if test -z "${ACCT_TOOLS_SETUID_TRUE}" && test -z "${ACCT_TOOLS_SETUID_FALSE}"; then
16834   as_fn_error $? "conditional \"ACCT_TOOLS_SETUID\" was never defined.
16835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16836 fi
16837 if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
16838   as_fn_error $? "conditional \"USE_NLS\" was never defined.
16839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16840 fi
16841
16842 : ${CONFIG_STATUS=./config.status}
16843 ac_write_fail=0
16844 ac_clean_files_save=$ac_clean_files
16845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16847 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16848 as_write_fail=0
16849 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16850 #! $SHELL
16851 # Generated by $as_me.
16852 # Run this file to recreate the current configuration.
16853 # Compiler output produced by configure, useful for debugging
16854 # configure, is in config.log if it exists.
16855
16856 debug=false
16857 ac_cs_recheck=false
16858 ac_cs_silent=false
16859
16860 SHELL=\${CONFIG_SHELL-$SHELL}
16861 export SHELL
16862 _ASEOF
16863 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16864 ## -------------------- ##
16865 ## M4sh Initialization. ##
16866 ## -------------------- ##
16867
16868 # Be more Bourne compatible
16869 DUALCASE=1; export DUALCASE # for MKS sh
16870 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16871   emulate sh
16872   NULLCMD=:
16873   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16874   # is contrary to our usage.  Disable this feature.
16875   alias -g '${1+"$@"}'='"$@"'
16876   setopt NO_GLOB_SUBST
16877 else
16878   case `(set -o) 2>/dev/null` in #(
16879   *posix*) :
16880     set -o posix ;; #(
16881   *) :
16882      ;;
16883 esac
16884 fi
16885
16886
16887 as_nl='
16888 '
16889 export as_nl
16890 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16891 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16894 # Prefer a ksh shell builtin over an external printf program on Solaris,
16895 # but without wasting forks for bash or zsh.
16896 if test -z "$BASH_VERSION$ZSH_VERSION" \
16897     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16898   as_echo='print -r --'
16899   as_echo_n='print -rn --'
16900 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16901   as_echo='printf %s\n'
16902   as_echo_n='printf %s'
16903 else
16904   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16905     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16906     as_echo_n='/usr/ucb/echo -n'
16907   else
16908     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16909     as_echo_n_body='eval
16910       arg=$1;
16911       case $arg in #(
16912       *"$as_nl"*)
16913         expr "X$arg" : "X\\(.*\\)$as_nl";
16914         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16915       esac;
16916       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16917     '
16918     export as_echo_n_body
16919     as_echo_n='sh -c $as_echo_n_body as_echo'
16920   fi
16921   export as_echo_body
16922   as_echo='sh -c $as_echo_body as_echo'
16923 fi
16924
16925 # The user is always right.
16926 if test "${PATH_SEPARATOR+set}" != set; then
16927   PATH_SEPARATOR=:
16928   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16929     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16930       PATH_SEPARATOR=';'
16931   }
16932 fi
16933
16934
16935 # IFS
16936 # We need space, tab and new line, in precisely that order.  Quoting is
16937 # there to prevent editors from complaining about space-tab.
16938 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16939 # splitting by setting IFS to empty value.)
16940 IFS=" ""        $as_nl"
16941
16942 # Find who we are.  Look in the path if we contain no directory separator.
16943 case $0 in #((
16944   *[\\/]* ) as_myself=$0 ;;
16945   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16946 for as_dir in $PATH
16947 do
16948   IFS=$as_save_IFS
16949   test -z "$as_dir" && as_dir=.
16950     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16951   done
16952 IFS=$as_save_IFS
16953
16954      ;;
16955 esac
16956 # We did not find ourselves, most probably we were run as `sh COMMAND'
16957 # in which case we are not to be found in the path.
16958 if test "x$as_myself" = x; then
16959   as_myself=$0
16960 fi
16961 if test ! -f "$as_myself"; then
16962   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16963   exit 1
16964 fi
16965
16966 # Unset variables that we do not need and which cause bugs (e.g. in
16967 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16968 # suppresses any "Segmentation fault" message there.  '((' could
16969 # trigger a bug in pdksh 5.2.14.
16970 for as_var in BASH_ENV ENV MAIL MAILPATH
16971 do eval test x\${$as_var+set} = xset \
16972   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16973 done
16974 PS1='$ '
16975 PS2='> '
16976 PS4='+ '
16977
16978 # NLS nuisances.
16979 LC_ALL=C
16980 export LC_ALL
16981 LANGUAGE=C
16982 export LANGUAGE
16983
16984 # CDPATH.
16985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16986
16987
16988 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16989 # ----------------------------------------
16990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16992 # script with STATUS, using 1 if that was 0.
16993 as_fn_error ()
16994 {
16995   as_status=$1; test $as_status -eq 0 && as_status=1
16996   if test "$4"; then
16997     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16998     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16999   fi
17000   $as_echo "$as_me: error: $2" >&2
17001   as_fn_exit $as_status
17002 } # as_fn_error
17003
17004
17005 # as_fn_set_status STATUS
17006 # -----------------------
17007 # Set $? to STATUS, without forking.
17008 as_fn_set_status ()
17009 {
17010   return $1
17011 } # as_fn_set_status
17012
17013 # as_fn_exit STATUS
17014 # -----------------
17015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17016 as_fn_exit ()
17017 {
17018   set +e
17019   as_fn_set_status $1
17020   exit $1
17021 } # as_fn_exit
17022
17023 # as_fn_unset VAR
17024 # ---------------
17025 # Portably unset VAR.
17026 as_fn_unset ()
17027 {
17028   { eval $1=; unset $1;}
17029 }
17030 as_unset=as_fn_unset
17031 # as_fn_append VAR VALUE
17032 # ----------------------
17033 # Append the text in VALUE to the end of the definition contained in VAR. Take
17034 # advantage of any shell optimizations that allow amortized linear growth over
17035 # repeated appends, instead of the typical quadratic growth present in naive
17036 # implementations.
17037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17038   eval 'as_fn_append ()
17039   {
17040     eval $1+=\$2
17041   }'
17042 else
17043   as_fn_append ()
17044   {
17045     eval $1=\$$1\$2
17046   }
17047 fi # as_fn_append
17048
17049 # as_fn_arith ARG...
17050 # ------------------
17051 # Perform arithmetic evaluation on the ARGs, and store the result in the
17052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17053 # must be portable across $(()) and expr.
17054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17055   eval 'as_fn_arith ()
17056   {
17057     as_val=$(( $* ))
17058   }'
17059 else
17060   as_fn_arith ()
17061   {
17062     as_val=`expr "$@" || test $? -eq 1`
17063   }
17064 fi # as_fn_arith
17065
17066
17067 if expr a : '\(a\)' >/dev/null 2>&1 &&
17068    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17069   as_expr=expr
17070 else
17071   as_expr=false
17072 fi
17073
17074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17075   as_basename=basename
17076 else
17077   as_basename=false
17078 fi
17079
17080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17081   as_dirname=dirname
17082 else
17083   as_dirname=false
17084 fi
17085
17086 as_me=`$as_basename -- "$0" ||
17087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17088          X"$0" : 'X\(//\)$' \| \
17089          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17090 $as_echo X/"$0" |
17091     sed '/^.*\/\([^/][^/]*\)\/*$/{
17092             s//\1/
17093             q
17094           }
17095           /^X\/\(\/\/\)$/{
17096             s//\1/
17097             q
17098           }
17099           /^X\/\(\/\).*/{
17100             s//\1/
17101             q
17102           }
17103           s/.*/./; q'`
17104
17105 # Avoid depending upon Character Ranges.
17106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17109 as_cr_digits='0123456789'
17110 as_cr_alnum=$as_cr_Letters$as_cr_digits
17111
17112 ECHO_C= ECHO_N= ECHO_T=
17113 case `echo -n x` in #(((((
17114 -n*)
17115   case `echo 'xy\c'` in
17116   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17117   xy)  ECHO_C='\c';;
17118   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17119        ECHO_T=' ';;
17120   esac;;
17121 *)
17122   ECHO_N='-n';;
17123 esac
17124
17125 rm -f conf$$ conf$$.exe conf$$.file
17126 if test -d conf$$.dir; then
17127   rm -f conf$$.dir/conf$$.file
17128 else
17129   rm -f conf$$.dir
17130   mkdir conf$$.dir 2>/dev/null
17131 fi
17132 if (echo >conf$$.file) 2>/dev/null; then
17133   if ln -s conf$$.file conf$$ 2>/dev/null; then
17134     as_ln_s='ln -s'
17135     # ... but there are two gotchas:
17136     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17137     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17138     # In both cases, we have to default to `cp -p'.
17139     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17140       as_ln_s='cp -p'
17141   elif ln conf$$.file conf$$ 2>/dev/null; then
17142     as_ln_s=ln
17143   else
17144     as_ln_s='cp -p'
17145   fi
17146 else
17147   as_ln_s='cp -p'
17148 fi
17149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17150 rmdir conf$$.dir 2>/dev/null
17151
17152
17153 # as_fn_mkdir_p
17154 # -------------
17155 # Create "$as_dir" as a directory, including parents if necessary.
17156 as_fn_mkdir_p ()
17157 {
17158
17159   case $as_dir in #(
17160   -*) as_dir=./$as_dir;;
17161   esac
17162   test -d "$as_dir" || eval $as_mkdir_p || {
17163     as_dirs=
17164     while :; do
17165       case $as_dir in #(
17166       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17167       *) as_qdir=$as_dir;;
17168       esac
17169       as_dirs="'$as_qdir' $as_dirs"
17170       as_dir=`$as_dirname -- "$as_dir" ||
17171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17172          X"$as_dir" : 'X\(//\)[^/]' \| \
17173          X"$as_dir" : 'X\(//\)$' \| \
17174          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17175 $as_echo X"$as_dir" |
17176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17177             s//\1/
17178             q
17179           }
17180           /^X\(\/\/\)[^/].*/{
17181             s//\1/
17182             q
17183           }
17184           /^X\(\/\/\)$/{
17185             s//\1/
17186             q
17187           }
17188           /^X\(\/\).*/{
17189             s//\1/
17190             q
17191           }
17192           s/.*/./; q'`
17193       test -d "$as_dir" && break
17194     done
17195     test -z "$as_dirs" || eval "mkdir $as_dirs"
17196   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17197
17198
17199 } # as_fn_mkdir_p
17200 if mkdir -p . 2>/dev/null; then
17201   as_mkdir_p='mkdir -p "$as_dir"'
17202 else
17203   test -d ./-p && rmdir ./-p
17204   as_mkdir_p=false
17205 fi
17206
17207 if test -x / >/dev/null 2>&1; then
17208   as_test_x='test -x'
17209 else
17210   if ls -dL / >/dev/null 2>&1; then
17211     as_ls_L_option=L
17212   else
17213     as_ls_L_option=
17214   fi
17215   as_test_x='
17216     eval sh -c '\''
17217       if test -d "$1"; then
17218         test -d "$1/.";
17219       else
17220         case $1 in #(
17221         -*)set "./$1";;
17222         esac;
17223         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17224         ???[sx]*):;;*)false;;esac;fi
17225     '\'' sh
17226   '
17227 fi
17228 as_executable_p=$as_test_x
17229
17230 # Sed expression to map a string onto a valid CPP name.
17231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17232
17233 # Sed expression to map a string onto a valid variable name.
17234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17235
17236
17237 exec 6>&1
17238 ## ----------------------------------- ##
17239 ## Main body of $CONFIG_STATUS script. ##
17240 ## ----------------------------------- ##
17241 _ASEOF
17242 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17243
17244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17245 # Save the log message, to keep $0 and so on meaningful, and to
17246 # report actual input values of CONFIG_FILES etc. instead of their
17247 # values after options handling.
17248 ac_log="
17249 This file was extended by $as_me, which was
17250 generated by GNU Autoconf 2.67.  Invocation command line was
17251
17252   CONFIG_FILES    = $CONFIG_FILES
17253   CONFIG_HEADERS  = $CONFIG_HEADERS
17254   CONFIG_LINKS    = $CONFIG_LINKS
17255   CONFIG_COMMANDS = $CONFIG_COMMANDS
17256   $ $0 $@
17257
17258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17259 "
17260
17261 _ACEOF
17262
17263 case $ac_config_files in *"
17264 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17265 esac
17266
17267 case $ac_config_headers in *"
17268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17269 esac
17270
17271
17272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273 # Files that config.status was made for.
17274 config_files="$ac_config_files"
17275 config_headers="$ac_config_headers"
17276 config_commands="$ac_config_commands"
17277
17278 _ACEOF
17279
17280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17281 ac_cs_usage="\
17282 \`$as_me' instantiates files and other configuration actions
17283 from templates according to the current configuration.  Unless the files
17284 and actions are specified as TAGs, all are instantiated by default.
17285
17286 Usage: $0 [OPTION]... [TAG]...
17287
17288   -h, --help       print this help, then exit
17289   -V, --version    print version number and configuration settings, then exit
17290       --config     print configuration, then exit
17291   -q, --quiet, --silent
17292                    do not print progress messages
17293   -d, --debug      don't remove temporary files
17294       --recheck    update $as_me by reconfiguring in the same conditions
17295       --file=FILE[:TEMPLATE]
17296                    instantiate the configuration file FILE
17297       --header=FILE[:TEMPLATE]
17298                    instantiate the configuration header FILE
17299
17300 Configuration files:
17301 $config_files
17302
17303 Configuration headers:
17304 $config_headers
17305
17306 Configuration commands:
17307 $config_commands
17308
17309 Report bugs to the package provider."
17310
17311 _ACEOF
17312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17314 ac_cs_version="\\
17315 config.status
17316 configured by $0, generated by GNU Autoconf 2.67,
17317   with options \\"\$ac_cs_config\\"
17318
17319 Copyright (C) 2010 Free Software Foundation, Inc.
17320 This config.status script is free software; the Free Software Foundation
17321 gives unlimited permission to copy, distribute and modify it."
17322
17323 ac_pwd='$ac_pwd'
17324 srcdir='$srcdir'
17325 INSTALL='$INSTALL'
17326 MKDIR_P='$MKDIR_P'
17327 AWK='$AWK'
17328 test -n "\$AWK" || AWK=awk
17329 _ACEOF
17330
17331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17332 # The default lists apply if the user does not specify any file.
17333 ac_need_defaults=:
17334 while test $# != 0
17335 do
17336   case $1 in
17337   --*=?*)
17338     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17339     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17340     ac_shift=:
17341     ;;
17342   --*=)
17343     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17344     ac_optarg=
17345     ac_shift=:
17346     ;;
17347   *)
17348     ac_option=$1
17349     ac_optarg=$2
17350     ac_shift=shift
17351     ;;
17352   esac
17353
17354   case $ac_option in
17355   # Handling of the options.
17356   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17357     ac_cs_recheck=: ;;
17358   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17359     $as_echo "$ac_cs_version"; exit ;;
17360   --config | --confi | --conf | --con | --co | --c )
17361     $as_echo "$ac_cs_config"; exit ;;
17362   --debug | --debu | --deb | --de | --d | -d )
17363     debug=: ;;
17364   --file | --fil | --fi | --f )
17365     $ac_shift
17366     case $ac_optarg in
17367     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17368     '') as_fn_error $? "missing file argument" ;;
17369     esac
17370     as_fn_append CONFIG_FILES " '$ac_optarg'"
17371     ac_need_defaults=false;;
17372   --header | --heade | --head | --hea )
17373     $ac_shift
17374     case $ac_optarg in
17375     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17376     esac
17377     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17378     ac_need_defaults=false;;
17379   --he | --h)
17380     # Conflict between --help and --header
17381     as_fn_error $? "ambiguous option: \`$1'
17382 Try \`$0 --help' for more information.";;
17383   --help | --hel | -h )
17384     $as_echo "$ac_cs_usage"; exit ;;
17385   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17386   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17387     ac_cs_silent=: ;;
17388
17389   # This is an error.
17390   -*) as_fn_error $? "unrecognized option: \`$1'
17391 Try \`$0 --help' for more information." ;;
17392
17393   *) as_fn_append ac_config_targets " $1"
17394      ac_need_defaults=false ;;
17395
17396   esac
17397   shift
17398 done
17399
17400 ac_configure_extra_args=
17401
17402 if $ac_cs_silent; then
17403   exec 6>/dev/null
17404   ac_configure_extra_args="$ac_configure_extra_args --silent"
17405 fi
17406
17407 _ACEOF
17408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 if \$ac_cs_recheck; then
17410   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17411   shift
17412   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17413   CONFIG_SHELL='$SHELL'
17414   export CONFIG_SHELL
17415   exec "\$@"
17416 fi
17417
17418 _ACEOF
17419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17420 exec 5>>config.log
17421 {
17422   echo
17423   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17424 ## Running $as_me. ##
17425 _ASBOX
17426   $as_echo "$ac_log"
17427 } >&5
17428
17429 _ACEOF
17430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17431 #
17432 # INIT-COMMANDS
17433 #
17434 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17435
17436
17437 # The HP-UX ksh and POSIX shell print the target directory to stdout
17438 # if CDPATH is set.
17439 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17440
17441 sed_quote_subst='$sed_quote_subst'
17442 double_quote_subst='$double_quote_subst'
17443 delay_variable_subst='$delay_variable_subst'
17444 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17445 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17446 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17447 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17448 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17449 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17450 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17451 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17452 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17453 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17454 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17455 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17456 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17457 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17458 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17459 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17460 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17461 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17462 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17463 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17464 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17465 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17466 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17467 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17468 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17469 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17470 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17471 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17472 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17473 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17474 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17475 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17476 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17477 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17478 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17479 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17480 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17481 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17482 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17483 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17484 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17485 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17486 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17487 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17488 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"`'
17489 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"`'
17490 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17491 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17492 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17493 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17494 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17495 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17496 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17497 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17498 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17499 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17500 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17501 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17502 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17503 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17504 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17505 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17506 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17507 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17508 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17509 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17510 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17511 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17512 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17513 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17514 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17515 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17516 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17517 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17518 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17519 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17520 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17521 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17522 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17523 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17524 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17525 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17526 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17527 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17528 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17529 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17530 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17531 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17532 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17533 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17534 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17535 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17536 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17537 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17538 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17539 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17540 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17541 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17542 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17543 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17544 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17545 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17546 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17547 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17548 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17549 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17550 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17551 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17552 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17553 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17554 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17555 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17556 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17557 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17558 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17559 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17560 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17561 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17562
17563 LTCC='$LTCC'
17564 LTCFLAGS='$LTCFLAGS'
17565 compiler='$compiler_DEFAULT'
17566
17567 # Quote evaled strings.
17568 for var in SED \
17569 GREP \
17570 EGREP \
17571 FGREP \
17572 LD \
17573 NM \
17574 LN_S \
17575 lt_SP2NL \
17576 lt_NL2SP \
17577 reload_flag \
17578 OBJDUMP \
17579 deplibs_check_method \
17580 file_magic_cmd \
17581 AR \
17582 AR_FLAGS \
17583 STRIP \
17584 RANLIB \
17585 CC \
17586 CFLAGS \
17587 compiler \
17588 lt_cv_sys_global_symbol_pipe \
17589 lt_cv_sys_global_symbol_to_cdecl \
17590 lt_cv_sys_global_symbol_to_c_name_address \
17591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17592 SHELL \
17593 ECHO \
17594 lt_prog_compiler_no_builtin_flag \
17595 lt_prog_compiler_wl \
17596 lt_prog_compiler_pic \
17597 lt_prog_compiler_static \
17598 lt_cv_prog_compiler_c_o \
17599 need_locks \
17600 DSYMUTIL \
17601 NMEDIT \
17602 LIPO \
17603 OTOOL \
17604 OTOOL64 \
17605 shrext_cmds \
17606 export_dynamic_flag_spec \
17607 whole_archive_flag_spec \
17608 compiler_needs_object \
17609 with_gnu_ld \
17610 allow_undefined_flag \
17611 no_undefined_flag \
17612 hardcode_libdir_flag_spec \
17613 hardcode_libdir_flag_spec_ld \
17614 hardcode_libdir_separator \
17615 fix_srcfile_path \
17616 exclude_expsyms \
17617 include_expsyms \
17618 file_list_spec \
17619 variables_saved_for_relink \
17620 libname_spec \
17621 library_names_spec \
17622 soname_spec \
17623 finish_eval \
17624 old_striplib \
17625 striplib; do
17626     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17627     *[\\\\\\\`\\"\\\$]*)
17628       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17629       ;;
17630     *)
17631       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17632       ;;
17633     esac
17634 done
17635
17636 # Double-quote double-evaled strings.
17637 for var in reload_cmds \
17638 old_postinstall_cmds \
17639 old_postuninstall_cmds \
17640 old_archive_cmds \
17641 extract_expsyms_cmds \
17642 old_archive_from_new_cmds \
17643 old_archive_from_expsyms_cmds \
17644 archive_cmds \
17645 archive_expsym_cmds \
17646 module_cmds \
17647 module_expsym_cmds \
17648 export_symbols_cmds \
17649 prelink_cmds \
17650 postinstall_cmds \
17651 postuninstall_cmds \
17652 finish_cmds \
17653 sys_lib_search_path_spec \
17654 sys_lib_dlsearch_path_spec; do
17655     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17656     *[\\\\\\\`\\"\\\$]*)
17657       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17658       ;;
17659     *)
17660       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17661       ;;
17662     esac
17663 done
17664
17665 # Fix-up fallback echo if it was mangled by the above quoting rules.
17666 case \$lt_ECHO in
17667 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17668   ;;
17669 esac
17670
17671 ac_aux_dir='$ac_aux_dir'
17672 xsi_shell='$xsi_shell'
17673 lt_shell_append='$lt_shell_append'
17674
17675 # See if we are running on zsh, and set the options which allow our
17676 # commands through without removal of \ escapes INIT.
17677 if test -n "\${ZSH_VERSION+set}" ; then
17678    setopt NO_GLOB_SUBST
17679 fi
17680
17681
17682     PACKAGE='$PACKAGE'
17683     VERSION='$VERSION'
17684     TIMESTAMP='$TIMESTAMP'
17685     RM='$RM'
17686     ofile='$ofile'
17687
17688
17689
17690 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17691     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17692     # from automake < 1.5.
17693     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17694     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17695     LINGUAS="${LINGUAS-%UNSET%}"
17696
17697
17698 _ACEOF
17699
17700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17701
17702 # Handling of arguments.
17703 for ac_config_target in $ac_config_targets
17704 do
17705   case $ac_config_target in
17706     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17707     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17708     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17709     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17710     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17711     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17712     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17713     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17714     "man/config.xml") CONFIG_FILES="$CONFIG_FILES man/config.xml" ;;
17715     "man/po/Makefile") CONFIG_FILES="$CONFIG_FILES man/po/Makefile" ;;
17716     "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
17717     "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
17718     "man/es/Makefile") CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
17719     "man/fi/Makefile") CONFIG_FILES="$CONFIG_FILES man/fi/Makefile" ;;
17720     "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
17721     "man/hu/Makefile") CONFIG_FILES="$CONFIG_FILES man/hu/Makefile" ;;
17722     "man/id/Makefile") CONFIG_FILES="$CONFIG_FILES man/id/Makefile" ;;
17723     "man/it/Makefile") CONFIG_FILES="$CONFIG_FILES man/it/Makefile" ;;
17724     "man/ja/Makefile") CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
17725     "man/ko/Makefile") CONFIG_FILES="$CONFIG_FILES man/ko/Makefile" ;;
17726     "man/pl/Makefile") CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
17727     "man/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
17728     "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
17729     "man/sv/Makefile") CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
17730     "man/tr/Makefile") CONFIG_FILES="$CONFIG_FILES man/tr/Makefile" ;;
17731     "man/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES man/zh_CN/Makefile" ;;
17732     "man/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES man/zh_TW/Makefile" ;;
17733     "libmisc/Makefile") CONFIG_FILES="$CONFIG_FILES libmisc/Makefile" ;;
17734     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17735     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17736     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17737     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
17738     "etc/pam.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/pam.d/Makefile" ;;
17739     "shadow.spec") CONFIG_FILES="$CONFIG_FILES shadow.spec" ;;
17740
17741   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17742   esac
17743 done
17744
17745
17746 # If the user did not use the arguments to specify the items to instantiate,
17747 # then the envvar interface is used.  Set only those that are not.
17748 # We use the long form for the default assignment because of an extremely
17749 # bizarre bug on SunOS 4.1.3.
17750 if $ac_need_defaults; then
17751   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17752   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17753   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17754 fi
17755
17756 # Have a temporary directory for convenience.  Make it in the build tree
17757 # simply because there is no reason against having it here, and in addition,
17758 # creating and moving files from /tmp can sometimes cause problems.
17759 # Hook for its removal unless debugging.
17760 # Note that there is a small window in which the directory will not be cleaned:
17761 # after its creation but before its name has been assigned to `$tmp'.
17762 $debug ||
17763 {
17764   tmp=
17765   trap 'exit_status=$?
17766   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17767 ' 0
17768   trap 'as_fn_exit 1' 1 2 13 15
17769 }
17770 # Create a (secure) tmp directory for tmp files.
17771
17772 {
17773   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17774   test -n "$tmp" && test -d "$tmp"
17775 }  ||
17776 {
17777   tmp=./conf$$-$RANDOM
17778   (umask 077 && mkdir "$tmp")
17779 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17780
17781 # Set up the scripts for CONFIG_FILES section.
17782 # No need to generate them if there are no CONFIG_FILES.
17783 # This happens for instance with `./config.status config.h'.
17784 if test -n "$CONFIG_FILES"; then
17785
17786
17787 ac_cr=`echo X | tr X '\015'`
17788 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17789 # But we know of no other shell where ac_cr would be empty at this
17790 # point, so we can use a bashism as a fallback.
17791 if test "x$ac_cr" = x; then
17792   eval ac_cr=\$\'\\r\'
17793 fi
17794 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17796   ac_cs_awk_cr='\\r'
17797 else
17798   ac_cs_awk_cr=$ac_cr
17799 fi
17800
17801 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17802 _ACEOF
17803
17804
17805 {
17806   echo "cat >conf$$subs.awk <<_ACEOF" &&
17807   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17808   echo "_ACEOF"
17809 } >conf$$subs.sh ||
17810   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17812 ac_delim='%!_!# '
17813 for ac_last_try in false false false false false :; do
17814   . ./conf$$subs.sh ||
17815     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17816
17817   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17818   if test $ac_delim_n = $ac_delim_num; then
17819     break
17820   elif $ac_last_try; then
17821     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17822   else
17823     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17824   fi
17825 done
17826 rm -f conf$$subs.sh
17827
17828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17829 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17830 _ACEOF
17831 sed -n '
17832 h
17833 s/^/S["/; s/!.*/"]=/
17834 p
17835 g
17836 s/^[^!]*!//
17837 :repl
17838 t repl
17839 s/'"$ac_delim"'$//
17840 t delim
17841 :nl
17842 h
17843 s/\(.\{148\}\)..*/\1/
17844 t more1
17845 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17846 p
17847 n
17848 b repl
17849 :more1
17850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17851 p
17852 g
17853 s/.\{148\}//
17854 t nl
17855 :delim
17856 h
17857 s/\(.\{148\}\)..*/\1/
17858 t more2
17859 s/["\\]/\\&/g; s/^/"/; s/$/"/
17860 p
17861 b
17862 :more2
17863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17864 p
17865 g
17866 s/.\{148\}//
17867 t delim
17868 ' <conf$$subs.awk | sed '
17869 /^[^""]/{
17870   N
17871   s/\n//
17872 }
17873 ' >>$CONFIG_STATUS || ac_write_fail=1
17874 rm -f conf$$subs.awk
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876 _ACAWK
17877 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17878   for (key in S) S_is_set[key] = 1
17879   FS = "\a"
17880
17881 }
17882 {
17883   line = $ 0
17884   nfields = split(line, field, "@")
17885   substed = 0
17886   len = length(field[1])
17887   for (i = 2; i < nfields; i++) {
17888     key = field[i]
17889     keylen = length(key)
17890     if (S_is_set[key]) {
17891       value = S[key]
17892       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17893       len += length(value) + length(field[++i])
17894       substed = 1
17895     } else
17896       len += 1 + keylen
17897   }
17898
17899   print line
17900 }
17901
17902 _ACAWK
17903 _ACEOF
17904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17905 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17906   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17907 else
17908   cat
17909 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17910   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17911 _ACEOF
17912
17913 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17914 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17915 # trailing colons and then remove the whole line if VPATH becomes empty
17916 # (actually we leave an empty line to preserve line numbers).
17917 if test "x$srcdir" = x.; then
17918   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17919 h
17920 s///
17921 s/^/:/
17922 s/[      ]*$/:/
17923 s/:\$(srcdir):/:/g
17924 s/:\${srcdir}:/:/g
17925 s/:@srcdir@:/:/g
17926 s/^:*//
17927 s/:*$//
17928 x
17929 s/\(=[   ]*\).*/\1/
17930 G
17931 s/\n//
17932 s/^[^=]*=[       ]*$//
17933 }'
17934 fi
17935
17936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17937 fi # test -n "$CONFIG_FILES"
17938
17939 # Set up the scripts for CONFIG_HEADERS section.
17940 # No need to generate them if there are no CONFIG_HEADERS.
17941 # This happens for instance with `./config.status Makefile'.
17942 if test -n "$CONFIG_HEADERS"; then
17943 cat >"$tmp/defines.awk" <<\_ACAWK ||
17944 BEGIN {
17945 _ACEOF
17946
17947 # Transform confdefs.h into an awk script `defines.awk', embedded as
17948 # here-document in config.status, that substitutes the proper values into
17949 # config.h.in to produce config.h.
17950
17951 # Create a delimiter string that does not exist in confdefs.h, to ease
17952 # handling of long lines.
17953 ac_delim='%!_!# '
17954 for ac_last_try in false false :; do
17955   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17956   if test -z "$ac_t"; then
17957     break
17958   elif $ac_last_try; then
17959     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17960   else
17961     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17962   fi
17963 done
17964
17965 # For the awk script, D is an array of macro values keyed by name,
17966 # likewise P contains macro parameters if any.  Preserve backslash
17967 # newline sequences.
17968
17969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17970 sed -n '
17971 s/.\{148\}/&'"$ac_delim"'/g
17972 t rset
17973 :rset
17974 s/^[     ]*#[    ]*define[       ][      ]*/ /
17975 t def
17976 d
17977 :def
17978 s/\\$//
17979 t bsnl
17980 s/["\\]/\\&/g
17981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17982 D["\1"]=" \3"/p
17983 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17984 d
17985 :bsnl
17986 s/["\\]/\\&/g
17987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17988 D["\1"]=" \3\\\\\\n"\\/p
17989 t cont
17990 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17991 t cont
17992 d
17993 :cont
17994 n
17995 s/.\{148\}/&'"$ac_delim"'/g
17996 t clear
17997 :clear
17998 s/\\$//
17999 t bsnlc
18000 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18001 d
18002 :bsnlc
18003 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18004 b cont
18005 ' <confdefs.h | sed '
18006 s/'"$ac_delim"'/"\\\
18007 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18008
18009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18010   for (key in D) D_is_set[key] = 1
18011   FS = "\a"
18012 }
18013 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18014   line = \$ 0
18015   split(line, arg, " ")
18016   if (arg[1] == "#") {
18017     defundef = arg[2]
18018     mac1 = arg[3]
18019   } else {
18020     defundef = substr(arg[1], 2)
18021     mac1 = arg[2]
18022   }
18023   split(mac1, mac2, "(") #)
18024   macro = mac2[1]
18025   prefix = substr(line, 1, index(line, defundef) - 1)
18026   if (D_is_set[macro]) {
18027     # Preserve the white space surrounding the "#".
18028     print prefix "define", macro P[macro] D[macro]
18029     next
18030   } else {
18031     # Replace #undef with comments.  This is necessary, for example,
18032     # in the case of _POSIX_SOURCE, which is predefined and required
18033     # on some systems where configure will not decide to define it.
18034     if (defundef == "undef") {
18035       print "/*", prefix defundef, macro, "*/"
18036       next
18037     }
18038   }
18039 }
18040 { print }
18041 _ACAWK
18042 _ACEOF
18043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18044   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18045 fi # test -n "$CONFIG_HEADERS"
18046
18047
18048 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18049 shift
18050 for ac_tag
18051 do
18052   case $ac_tag in
18053   :[FHLC]) ac_mode=$ac_tag; continue;;
18054   esac
18055   case $ac_mode$ac_tag in
18056   :[FHL]*:*);;
18057   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18058   :[FH]-) ac_tag=-:-;;
18059   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18060   esac
18061   ac_save_IFS=$IFS
18062   IFS=:
18063   set x $ac_tag
18064   IFS=$ac_save_IFS
18065   shift
18066   ac_file=$1
18067   shift
18068
18069   case $ac_mode in
18070   :L) ac_source=$1;;
18071   :[FH])
18072     ac_file_inputs=
18073     for ac_f
18074     do
18075       case $ac_f in
18076       -) ac_f="$tmp/stdin";;
18077       *) # Look for the file first in the build tree, then in the source tree
18078          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18079          # because $ac_f cannot contain `:'.
18080          test -f "$ac_f" ||
18081            case $ac_f in
18082            [\\/$]*) false;;
18083            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18084            esac ||
18085            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18086       esac
18087       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18088       as_fn_append ac_file_inputs " '$ac_f'"
18089     done
18090
18091     # Let's still pretend it is `configure' which instantiates (i.e., don't
18092     # use $as_me), people would be surprised to read:
18093     #    /* config.h.  Generated by config.status.  */
18094     configure_input='Generated from '`
18095           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18096         `' by configure.'
18097     if test x"$ac_file" != x-; then
18098       configure_input="$ac_file.  $configure_input"
18099       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18100 $as_echo "$as_me: creating $ac_file" >&6;}
18101     fi
18102     # Neutralize special characters interpreted by sed in replacement strings.
18103     case $configure_input in #(
18104     *\&* | *\|* | *\\* )
18105        ac_sed_conf_input=`$as_echo "$configure_input" |
18106        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18107     *) ac_sed_conf_input=$configure_input;;
18108     esac
18109
18110     case $ac_tag in
18111     *:-:* | *:-) cat >"$tmp/stdin" \
18112       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
18113     esac
18114     ;;
18115   esac
18116
18117   ac_dir=`$as_dirname -- "$ac_file" ||
18118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18119          X"$ac_file" : 'X\(//\)[^/]' \| \
18120          X"$ac_file" : 'X\(//\)$' \| \
18121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18122 $as_echo X"$ac_file" |
18123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18124             s//\1/
18125             q
18126           }
18127           /^X\(\/\/\)[^/].*/{
18128             s//\1/
18129             q
18130           }
18131           /^X\(\/\/\)$/{
18132             s//\1/
18133             q
18134           }
18135           /^X\(\/\).*/{
18136             s//\1/
18137             q
18138           }
18139           s/.*/./; q'`
18140   as_dir="$ac_dir"; as_fn_mkdir_p
18141   ac_builddir=.
18142
18143 case "$ac_dir" in
18144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18145 *)
18146   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18147   # A ".." for each directory in $ac_dir_suffix.
18148   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18149   case $ac_top_builddir_sub in
18150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18152   esac ;;
18153 esac
18154 ac_abs_top_builddir=$ac_pwd
18155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18156 # for backward compatibility:
18157 ac_top_builddir=$ac_top_build_prefix
18158
18159 case $srcdir in
18160   .)  # We are building in place.
18161     ac_srcdir=.
18162     ac_top_srcdir=$ac_top_builddir_sub
18163     ac_abs_top_srcdir=$ac_pwd ;;
18164   [\\/]* | ?:[\\/]* )  # Absolute name.
18165     ac_srcdir=$srcdir$ac_dir_suffix;
18166     ac_top_srcdir=$srcdir
18167     ac_abs_top_srcdir=$srcdir ;;
18168   *) # Relative name.
18169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18170     ac_top_srcdir=$ac_top_build_prefix$srcdir
18171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18172 esac
18173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18174
18175
18176   case $ac_mode in
18177   :F)
18178   #
18179   # CONFIG_FILE
18180   #
18181
18182   case $INSTALL in
18183   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18184   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18185   esac
18186   ac_MKDIR_P=$MKDIR_P
18187   case $MKDIR_P in
18188   [\\/$]* | ?:[\\/]* ) ;;
18189   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18190   esac
18191 _ACEOF
18192
18193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18194 # If the template does not know about datarootdir, expand it.
18195 # FIXME: This hack should be removed a few years after 2.60.
18196 ac_datarootdir_hack=; ac_datarootdir_seen=
18197 ac_sed_dataroot='
18198 /datarootdir/ {
18199   p
18200   q
18201 }
18202 /@datadir@/p
18203 /@docdir@/p
18204 /@infodir@/p
18205 /@localedir@/p
18206 /@mandir@/p'
18207 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18208 *datarootdir*) ac_datarootdir_seen=yes;;
18209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18210   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18211 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18212 _ACEOF
18213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18214   ac_datarootdir_hack='
18215   s&@datadir@&$datadir&g
18216   s&@docdir@&$docdir&g
18217   s&@infodir@&$infodir&g
18218   s&@localedir@&$localedir&g
18219   s&@mandir@&$mandir&g
18220   s&\\\${datarootdir}&$datarootdir&g' ;;
18221 esac
18222 _ACEOF
18223
18224 # Neutralize VPATH when `$srcdir' = `.'.
18225 # Shell code in configure.ac might set extrasub.
18226 # FIXME: do we really want to maintain this feature?
18227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18228 ac_sed_extra="$ac_vpsub
18229 $extrasub
18230 _ACEOF
18231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18232 :t
18233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18234 s|@configure_input@|$ac_sed_conf_input|;t t
18235 s&@top_builddir@&$ac_top_builddir_sub&;t t
18236 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18237 s&@srcdir@&$ac_srcdir&;t t
18238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18239 s&@top_srcdir@&$ac_top_srcdir&;t t
18240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18241 s&@builddir@&$ac_builddir&;t t
18242 s&@abs_builddir@&$ac_abs_builddir&;t t
18243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18244 s&@INSTALL@&$ac_INSTALL&;t t
18245 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18246 $ac_datarootdir_hack
18247 "
18248 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18249   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18250
18251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18252   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18253   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18254   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18255 which seems to be undefined.  Please make sure it is defined" >&5
18256 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18257 which seems to be undefined.  Please make sure it is defined" >&2;}
18258
18259   rm -f "$tmp/stdin"
18260   case $ac_file in
18261   -) cat "$tmp/out" && rm -f "$tmp/out";;
18262   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18263   esac \
18264   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18265  ;;
18266   :H)
18267   #
18268   # CONFIG_HEADER
18269   #
18270   if test x"$ac_file" != x-; then
18271     {
18272       $as_echo "/* $configure_input  */" \
18273       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18274     } >"$tmp/config.h" \
18275       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18276     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18277       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18278 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18279     else
18280       rm -f "$ac_file"
18281       mv "$tmp/config.h" "$ac_file" \
18282         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18283     fi
18284   else
18285     $as_echo "/* $configure_input  */" \
18286       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18287       || as_fn_error $? "could not create -" "$LINENO" 5
18288   fi
18289 # Compute "$ac_file"'s index in $config_headers.
18290 _am_arg="$ac_file"
18291 _am_stamp_count=1
18292 for _am_header in $config_headers :; do
18293   case $_am_header in
18294     $_am_arg | $_am_arg:* )
18295       break ;;
18296     * )
18297       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18298   esac
18299 done
18300 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18301 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302          X"$_am_arg" : 'X\(//\)[^/]' \| \
18303          X"$_am_arg" : 'X\(//\)$' \| \
18304          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18305 $as_echo X"$_am_arg" |
18306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18307             s//\1/
18308             q
18309           }
18310           /^X\(\/\/\)[^/].*/{
18311             s//\1/
18312             q
18313           }
18314           /^X\(\/\/\)$/{
18315             s//\1/
18316             q
18317           }
18318           /^X\(\/\).*/{
18319             s//\1/
18320             q
18321           }
18322           s/.*/./; q'`/stamp-h$_am_stamp_count
18323  ;;
18324
18325   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18326 $as_echo "$as_me: executing $ac_file commands" >&6;}
18327  ;;
18328   esac
18329
18330
18331   case $ac_file$ac_mode in
18332     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18333   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18334   # are listed without --file.  Let's play safe and only enable the eval
18335   # if we detect the quoting.
18336   case $CONFIG_FILES in
18337   *\'*) eval set x "$CONFIG_FILES" ;;
18338   *)   set x $CONFIG_FILES ;;
18339   esac
18340   shift
18341   for mf
18342   do
18343     # Strip MF so we end up with the name of the file.
18344     mf=`echo "$mf" | sed -e 's/:.*$//'`
18345     # Check whether this is an Automake generated Makefile or not.
18346     # We used to match only the files named `Makefile.in', but
18347     # some people rename them; so instead we look at the file content.
18348     # Grep'ing the first line is not enough: some people post-process
18349     # each Makefile.in and add a new line on top of each file to say so.
18350     # Grep'ing the whole file is not good either: AIX grep has a line
18351     # limit of 2048, but all sed's we know have understand at least 4000.
18352     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18353       dirpart=`$as_dirname -- "$mf" ||
18354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18355          X"$mf" : 'X\(//\)[^/]' \| \
18356          X"$mf" : 'X\(//\)$' \| \
18357          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18358 $as_echo X"$mf" |
18359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18360             s//\1/
18361             q
18362           }
18363           /^X\(\/\/\)[^/].*/{
18364             s//\1/
18365             q
18366           }
18367           /^X\(\/\/\)$/{
18368             s//\1/
18369             q
18370           }
18371           /^X\(\/\).*/{
18372             s//\1/
18373             q
18374           }
18375           s/.*/./; q'`
18376     else
18377       continue
18378     fi
18379     # Extract the definition of DEPDIR, am__include, and am__quote
18380     # from the Makefile without running `make'.
18381     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18382     test -z "$DEPDIR" && continue
18383     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18384     test -z "am__include" && continue
18385     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18386     # When using ansi2knr, U may be empty or an underscore; expand it
18387     U=`sed -n 's/^U = //p' < "$mf"`
18388     # Find all dependency output files, they are included files with
18389     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18390     # simplest approach to changing $(DEPDIR) to its actual value in the
18391     # expansion.
18392     for file in `sed -n "
18393       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18394          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18395       # Make sure the directory exists.
18396       test -f "$dirpart/$file" && continue
18397       fdir=`$as_dirname -- "$file" ||
18398 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18399          X"$file" : 'X\(//\)[^/]' \| \
18400          X"$file" : 'X\(//\)$' \| \
18401          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18402 $as_echo X"$file" |
18403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18404             s//\1/
18405             q
18406           }
18407           /^X\(\/\/\)[^/].*/{
18408             s//\1/
18409             q
18410           }
18411           /^X\(\/\/\)$/{
18412             s//\1/
18413             q
18414           }
18415           /^X\(\/\).*/{
18416             s//\1/
18417             q
18418           }
18419           s/.*/./; q'`
18420       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18421       # echo "creating $dirpart/$file"
18422       echo '# dummy' > "$dirpart/$file"
18423     done
18424   done
18425 }
18426  ;;
18427     "libtool":C)
18428
18429     # See if we are running on zsh, and set the options which allow our
18430     # commands through without removal of \ escapes.
18431     if test -n "${ZSH_VERSION+set}" ; then
18432       setopt NO_GLOB_SUBST
18433     fi
18434
18435     cfgfile="${ofile}T"
18436     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18437     $RM "$cfgfile"
18438
18439     cat <<_LT_EOF >> "$cfgfile"
18440 #! $SHELL
18441
18442 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18443 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18444 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18445 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18446 #
18447 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18448 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18449 #   Written by Gordon Matzigkeit, 1996
18450 #
18451 #   This file is part of GNU Libtool.
18452 #
18453 # GNU Libtool is free software; you can redistribute it and/or
18454 # modify it under the terms of the GNU General Public License as
18455 # published by the Free Software Foundation; either version 2 of
18456 # the License, or (at your option) any later version.
18457 #
18458 # As a special exception to the GNU General Public License,
18459 # if you distribute this file as part of a program or library that
18460 # is built using GNU Libtool, you may include this file under the
18461 # same distribution terms that you use for the rest of that program.
18462 #
18463 # GNU Libtool is distributed in the hope that it will be useful,
18464 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18465 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18466 # GNU General Public License for more details.
18467 #
18468 # You should have received a copy of the GNU General Public License
18469 # along with GNU Libtool; see the file COPYING.  If not, a copy
18470 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18471 # obtained by writing to the Free Software Foundation, Inc.,
18472 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18473
18474
18475 # The names of the tagged configurations supported by this script.
18476 available_tags=""
18477
18478 # ### BEGIN LIBTOOL CONFIG
18479
18480 # Whether or not to build shared libraries.
18481 build_libtool_libs=$enable_shared
18482
18483 # Whether or not to build static libraries.
18484 build_old_libs=$enable_static
18485
18486 # Which release of libtool.m4 was used?
18487 macro_version=$macro_version
18488 macro_revision=$macro_revision
18489
18490 # What type of objects to build.
18491 pic_mode=$pic_mode
18492
18493 # Whether or not to optimize for fast installation.
18494 fast_install=$enable_fast_install
18495
18496 # The host system.
18497 host_alias=$host_alias
18498 host=$host
18499 host_os=$host_os
18500
18501 # The build system.
18502 build_alias=$build_alias
18503 build=$build
18504 build_os=$build_os
18505
18506 # A sed program that does not truncate output.
18507 SED=$lt_SED
18508
18509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18510 Xsed="\$SED -e 1s/^X//"
18511
18512 # A grep program that handles long lines.
18513 GREP=$lt_GREP
18514
18515 # An ERE matcher.
18516 EGREP=$lt_EGREP
18517
18518 # A literal string matcher.
18519 FGREP=$lt_FGREP
18520
18521 # A BSD- or MS-compatible name lister.
18522 NM=$lt_NM
18523
18524 # Whether we need soft or hard links.
18525 LN_S=$lt_LN_S
18526
18527 # What is the maximum length of a command?
18528 max_cmd_len=$max_cmd_len
18529
18530 # Object file suffix (normally "o").
18531 objext=$ac_objext
18532
18533 # Executable file suffix (normally "").
18534 exeext=$exeext
18535
18536 # whether the shell understands "unset".
18537 lt_unset=$lt_unset
18538
18539 # turn spaces into newlines.
18540 SP2NL=$lt_lt_SP2NL
18541
18542 # turn newlines into spaces.
18543 NL2SP=$lt_lt_NL2SP
18544
18545 # How to create reloadable object files.
18546 reload_flag=$lt_reload_flag
18547 reload_cmds=$lt_reload_cmds
18548
18549 # An object symbol dumper.
18550 OBJDUMP=$lt_OBJDUMP
18551
18552 # Method to check whether dependent libraries are shared objects.
18553 deplibs_check_method=$lt_deplibs_check_method
18554
18555 # Command to use when deplibs_check_method == "file_magic".
18556 file_magic_cmd=$lt_file_magic_cmd
18557
18558 # The archiver.
18559 AR=$lt_AR
18560 AR_FLAGS=$lt_AR_FLAGS
18561
18562 # A symbol stripping program.
18563 STRIP=$lt_STRIP
18564
18565 # Commands used to install an old-style archive.
18566 RANLIB=$lt_RANLIB
18567 old_postinstall_cmds=$lt_old_postinstall_cmds
18568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18569
18570 # A C compiler.
18571 LTCC=$lt_CC
18572
18573 # LTCC compiler flags.
18574 LTCFLAGS=$lt_CFLAGS
18575
18576 # Take the output of nm and produce a listing of raw symbols and C names.
18577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18578
18579 # Transform the output of nm in a proper C declaration.
18580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18581
18582 # Transform the output of nm in a C name address pair.
18583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18584
18585 # Transform the output of nm in a C name address pair when lib prefix is needed.
18586 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18587
18588 # The name of the directory that contains temporary libtool files.
18589 objdir=$objdir
18590
18591 # Shell to use when invoking shell scripts.
18592 SHELL=$lt_SHELL
18593
18594 # An echo program that does not interpret backslashes.
18595 ECHO=$lt_ECHO
18596
18597 # Used to examine libraries when file_magic_cmd begins with "file".
18598 MAGIC_CMD=$MAGIC_CMD
18599
18600 # Must we lock files when doing compilation?
18601 need_locks=$lt_need_locks
18602
18603 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18604 DSYMUTIL=$lt_DSYMUTIL
18605
18606 # Tool to change global to local symbols on Mac OS X.
18607 NMEDIT=$lt_NMEDIT
18608
18609 # Tool to manipulate fat objects and archives on Mac OS X.
18610 LIPO=$lt_LIPO
18611
18612 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18613 OTOOL=$lt_OTOOL
18614
18615 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18616 OTOOL64=$lt_OTOOL64
18617
18618 # Old archive suffix (normally "a").
18619 libext=$libext
18620
18621 # Shared library suffix (normally ".so").
18622 shrext_cmds=$lt_shrext_cmds
18623
18624 # The commands to extract the exported symbol list from a shared archive.
18625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18626
18627 # Variables whose values should be saved in libtool wrapper scripts and
18628 # restored at link time.
18629 variables_saved_for_relink=$lt_variables_saved_for_relink
18630
18631 # Do we need the "lib" prefix for modules?
18632 need_lib_prefix=$need_lib_prefix
18633
18634 # Do we need a version for libraries?
18635 need_version=$need_version
18636
18637 # Library versioning type.
18638 version_type=$version_type
18639
18640 # Shared library runtime path variable.
18641 runpath_var=$runpath_var
18642
18643 # Shared library path variable.
18644 shlibpath_var=$shlibpath_var
18645
18646 # Is shlibpath searched before the hard-coded library search path?
18647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18648
18649 # Format of library name prefix.
18650 libname_spec=$lt_libname_spec
18651
18652 # List of archive names.  First name is the real one, the rest are links.
18653 # The last name is the one that the linker finds with -lNAME
18654 library_names_spec=$lt_library_names_spec
18655
18656 # The coded name of the library, if different from the real name.
18657 soname_spec=$lt_soname_spec
18658
18659 # Command to use after installation of a shared archive.
18660 postinstall_cmds=$lt_postinstall_cmds
18661
18662 # Command to use after uninstallation of a shared archive.
18663 postuninstall_cmds=$lt_postuninstall_cmds
18664
18665 # Commands used to finish a libtool library installation in a directory.
18666 finish_cmds=$lt_finish_cmds
18667
18668 # As "finish_cmds", except a single script fragment to be evaled but
18669 # not shown.
18670 finish_eval=$lt_finish_eval
18671
18672 # Whether we should hardcode library paths into libraries.
18673 hardcode_into_libs=$hardcode_into_libs
18674
18675 # Compile-time system search path for libraries.
18676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18677
18678 # Run-time system search path for libraries.
18679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18680
18681 # Whether dlopen is supported.
18682 dlopen_support=$enable_dlopen
18683
18684 # Whether dlopen of programs is supported.
18685 dlopen_self=$enable_dlopen_self
18686
18687 # Whether dlopen of statically linked programs is supported.
18688 dlopen_self_static=$enable_dlopen_self_static
18689
18690 # Commands to strip libraries.
18691 old_striplib=$lt_old_striplib
18692 striplib=$lt_striplib
18693
18694
18695 # The linker used to build libraries.
18696 LD=$lt_LD
18697
18698 # Commands used to build an old-style archive.
18699 old_archive_cmds=$lt_old_archive_cmds
18700
18701 # A language specific compiler.
18702 CC=$lt_compiler
18703
18704 # Is the compiler the GNU compiler?
18705 with_gcc=$GCC
18706
18707 # Compiler flag to turn off builtin functions.
18708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18709
18710 # How to pass a linker flag through the compiler.
18711 wl=$lt_lt_prog_compiler_wl
18712
18713 # Additional compiler flags for building library objects.
18714 pic_flag=$lt_lt_prog_compiler_pic
18715
18716 # Compiler flag to prevent dynamic linking.
18717 link_static_flag=$lt_lt_prog_compiler_static
18718
18719 # Does compiler simultaneously support -c and -o options?
18720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18721
18722 # Whether or not to add -lc for building shared libraries.
18723 build_libtool_need_lc=$archive_cmds_need_lc
18724
18725 # Whether or not to disallow shared libs when runtime libs are static.
18726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18727
18728 # Compiler flag to allow reflexive dlopens.
18729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18730
18731 # Compiler flag to generate shared objects directly from archives.
18732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18733
18734 # Whether the compiler copes with passing no objects directly.
18735 compiler_needs_object=$lt_compiler_needs_object
18736
18737 # Create an old-style archive from a shared archive.
18738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18739
18740 # Create a temporary old-style archive to link instead of a shared archive.
18741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18742
18743 # Commands used to build a shared archive.
18744 archive_cmds=$lt_archive_cmds
18745 archive_expsym_cmds=$lt_archive_expsym_cmds
18746
18747 # Commands used to build a loadable module if different from building
18748 # a shared archive.
18749 module_cmds=$lt_module_cmds
18750 module_expsym_cmds=$lt_module_expsym_cmds
18751
18752 # Whether we are building with GNU ld or not.
18753 with_gnu_ld=$lt_with_gnu_ld
18754
18755 # Flag that allows shared libraries with undefined symbols to be built.
18756 allow_undefined_flag=$lt_allow_undefined_flag
18757
18758 # Flag that enforces no undefined symbols.
18759 no_undefined_flag=$lt_no_undefined_flag
18760
18761 # Flag to hardcode \$libdir into a binary during linking.
18762 # This must work even if \$libdir does not exist
18763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18764
18765 # If ld is used when linking, flag to hardcode \$libdir into a binary
18766 # during linking.  This must work even if \$libdir does not exist.
18767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18768
18769 # Whether we need a single "-rpath" flag with a separated argument.
18770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18771
18772 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18773 # DIR into the resulting binary.
18774 hardcode_direct=$hardcode_direct
18775
18776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18777 # DIR into the resulting binary and the resulting library dependency is
18778 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18779 # library is relocated.
18780 hardcode_direct_absolute=$hardcode_direct_absolute
18781
18782 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18783 # into the resulting binary.
18784 hardcode_minus_L=$hardcode_minus_L
18785
18786 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18787 # into the resulting binary.
18788 hardcode_shlibpath_var=$hardcode_shlibpath_var
18789
18790 # Set to "yes" if building a shared library automatically hardcodes DIR
18791 # into the library and all subsequent libraries and executables linked
18792 # against it.
18793 hardcode_automatic=$hardcode_automatic
18794
18795 # Set to yes if linker adds runtime paths of dependent libraries
18796 # to runtime path list.
18797 inherit_rpath=$inherit_rpath
18798
18799 # Whether libtool must link a program against all its dependency libraries.
18800 link_all_deplibs=$link_all_deplibs
18801
18802 # Fix the shell variable \$srcfile for the compiler.
18803 fix_srcfile_path=$lt_fix_srcfile_path
18804
18805 # Set to "yes" if exported symbols are required.
18806 always_export_symbols=$always_export_symbols
18807
18808 # The commands to list exported symbols.
18809 export_symbols_cmds=$lt_export_symbols_cmds
18810
18811 # Symbols that should not be listed in the preloaded symbols.
18812 exclude_expsyms=$lt_exclude_expsyms
18813
18814 # Symbols that must always be exported.
18815 include_expsyms=$lt_include_expsyms
18816
18817 # Commands necessary for linking programs (against libraries) with templates.
18818 prelink_cmds=$lt_prelink_cmds
18819
18820 # Specify filename containing input files.
18821 file_list_spec=$lt_file_list_spec
18822
18823 # How to hardcode a shared library path into an executable.
18824 hardcode_action=$hardcode_action
18825
18826 # ### END LIBTOOL CONFIG
18827
18828 _LT_EOF
18829
18830   case $host_os in
18831   aix3*)
18832     cat <<\_LT_EOF >> "$cfgfile"
18833 # AIX sometimes has problems with the GCC collect2 program.  For some
18834 # reason, if we set the COLLECT_NAMES environment variable, the problems
18835 # vanish in a puff of smoke.
18836 if test "X${COLLECT_NAMES+set}" != Xset; then
18837   COLLECT_NAMES=
18838   export COLLECT_NAMES
18839 fi
18840 _LT_EOF
18841     ;;
18842   esac
18843
18844
18845 ltmain="$ac_aux_dir/ltmain.sh"
18846
18847
18848   # We use sed instead of cat because bash on DJGPP gets confused if
18849   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18850   # text mode, it properly converts lines to CR/LF.  This bash problem
18851   # is reportedly fixed, but why not run on old versions too?
18852   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18853     || (rm -f "$cfgfile"; exit 1)
18854
18855   case $xsi_shell in
18856   yes)
18857     cat << \_LT_EOF >> "$cfgfile"
18858
18859 # func_dirname file append nondir_replacement
18860 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18861 # otherwise set result to NONDIR_REPLACEMENT.
18862 func_dirname ()
18863 {
18864   case ${1} in
18865     */*) func_dirname_result="${1%/*}${2}" ;;
18866     *  ) func_dirname_result="${3}" ;;
18867   esac
18868 }
18869
18870 # func_basename file
18871 func_basename ()
18872 {
18873   func_basename_result="${1##*/}"
18874 }
18875
18876 # func_dirname_and_basename file append nondir_replacement
18877 # perform func_basename and func_dirname in a single function
18878 # call:
18879 #   dirname:  Compute the dirname of FILE.  If nonempty,
18880 #             add APPEND to the result, otherwise set result
18881 #             to NONDIR_REPLACEMENT.
18882 #             value returned in "$func_dirname_result"
18883 #   basename: Compute filename of FILE.
18884 #             value retuned in "$func_basename_result"
18885 # Implementation must be kept synchronized with func_dirname
18886 # and func_basename. For efficiency, we do not delegate to
18887 # those functions but instead duplicate the functionality here.
18888 func_dirname_and_basename ()
18889 {
18890   case ${1} in
18891     */*) func_dirname_result="${1%/*}${2}" ;;
18892     *  ) func_dirname_result="${3}" ;;
18893   esac
18894   func_basename_result="${1##*/}"
18895 }
18896
18897 # func_stripname prefix suffix name
18898 # strip PREFIX and SUFFIX off of NAME.
18899 # PREFIX and SUFFIX must not contain globbing or regex special
18900 # characters, hashes, percent signs, but SUFFIX may contain a leading
18901 # dot (in which case that matches only a dot).
18902 func_stripname ()
18903 {
18904   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18905   # positional parameters, so assign one to ordinary parameter first.
18906   func_stripname_result=${3}
18907   func_stripname_result=${func_stripname_result#"${1}"}
18908   func_stripname_result=${func_stripname_result%"${2}"}
18909 }
18910
18911 # func_opt_split
18912 func_opt_split ()
18913 {
18914   func_opt_split_opt=${1%%=*}
18915   func_opt_split_arg=${1#*=}
18916 }
18917
18918 # func_lo2o object
18919 func_lo2o ()
18920 {
18921   case ${1} in
18922     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18923     *)    func_lo2o_result=${1} ;;
18924   esac
18925 }
18926
18927 # func_xform libobj-or-source
18928 func_xform ()
18929 {
18930   func_xform_result=${1%.*}.lo
18931 }
18932
18933 # func_arith arithmetic-term...
18934 func_arith ()
18935 {
18936   func_arith_result=$(( $* ))
18937 }
18938
18939 # func_len string
18940 # STRING may not start with a hyphen.
18941 func_len ()
18942 {
18943   func_len_result=${#1}
18944 }
18945
18946 _LT_EOF
18947     ;;
18948   *) # Bourne compatible functions.
18949     cat << \_LT_EOF >> "$cfgfile"
18950
18951 # func_dirname file append nondir_replacement
18952 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18953 # otherwise set result to NONDIR_REPLACEMENT.
18954 func_dirname ()
18955 {
18956   # Extract subdirectory from the argument.
18957   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18958   if test "X$func_dirname_result" = "X${1}"; then
18959     func_dirname_result="${3}"
18960   else
18961     func_dirname_result="$func_dirname_result${2}"
18962   fi
18963 }
18964
18965 # func_basename file
18966 func_basename ()
18967 {
18968   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18969 }
18970
18971
18972 # func_stripname prefix suffix name
18973 # strip PREFIX and SUFFIX off of NAME.
18974 # PREFIX and SUFFIX must not contain globbing or regex special
18975 # characters, hashes, percent signs, but SUFFIX may contain a leading
18976 # dot (in which case that matches only a dot).
18977 # func_strip_suffix prefix name
18978 func_stripname ()
18979 {
18980   case ${2} in
18981     .*) func_stripname_result=`$ECHO "X${3}" \
18982            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18983     *)  func_stripname_result=`$ECHO "X${3}" \
18984            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18985   esac
18986 }
18987
18988 # sed scripts:
18989 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18990 my_sed_long_arg='1s/^-[^=]*=//'
18991
18992 # func_opt_split
18993 func_opt_split ()
18994 {
18995   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18996   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18997 }
18998
18999 # func_lo2o object
19000 func_lo2o ()
19001 {
19002   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19003 }
19004
19005 # func_xform libobj-or-source
19006 func_xform ()
19007 {
19008   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19009 }
19010
19011 # func_arith arithmetic-term...
19012 func_arith ()
19013 {
19014   func_arith_result=`expr "$@"`
19015 }
19016
19017 # func_len string
19018 # STRING may not start with a hyphen.
19019 func_len ()
19020 {
19021   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19022 }
19023
19024 _LT_EOF
19025 esac
19026
19027 case $lt_shell_append in
19028   yes)
19029     cat << \_LT_EOF >> "$cfgfile"
19030
19031 # func_append var value
19032 # Append VALUE to the end of shell variable VAR.
19033 func_append ()
19034 {
19035   eval "$1+=\$2"
19036 }
19037 _LT_EOF
19038     ;;
19039   *)
19040     cat << \_LT_EOF >> "$cfgfile"
19041
19042 # func_append var value
19043 # Append VALUE to the end of shell variable VAR.
19044 func_append ()
19045 {
19046   eval "$1=\$$1\$2"
19047 }
19048
19049 _LT_EOF
19050     ;;
19051   esac
19052
19053
19054   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19055     || (rm -f "$cfgfile"; exit 1)
19056
19057   mv -f "$cfgfile" "$ofile" ||
19058     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19059   chmod +x "$ofile"
19060
19061  ;;
19062     "po-directories":C)
19063     for ac_file in $CONFIG_FILES; do
19064       # Support "outfile[:infile[:infile...]]"
19065       case "$ac_file" in
19066         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19067       esac
19068       # PO directories have a Makefile.in generated from Makefile.in.in.
19069       case "$ac_file" in */Makefile.in)
19070         # Adjust a relative srcdir.
19071         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19072         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19073         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19074         # In autoconf-2.13 it is called $ac_given_srcdir.
19075         # In autoconf-2.50 it is called $srcdir.
19076         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19077         case "$ac_given_srcdir" in
19078           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19079           /*) top_srcdir="$ac_given_srcdir" ;;
19080           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19081         esac
19082         # Treat a directory as a PO directory if and only if it has a
19083         # POTFILES.in file. This allows packages to have multiple PO
19084         # directories under different names or in different locations.
19085         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19086           rm -f "$ac_dir/POTFILES"
19087           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19088           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19089           POMAKEFILEDEPS="POTFILES.in"
19090           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19091           # on $ac_dir but don't depend on user-specified configuration
19092           # parameters.
19093           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19094             # The LINGUAS file contains the set of available languages.
19095             if test -n "$OBSOLETE_ALL_LINGUAS"; then
19096               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19097             fi
19098             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19099             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19100             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19101             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19102           else
19103             # The set of available languages was given in configure.in.
19104             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19105             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19106           fi
19107           # Compute POFILES
19108           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19109           # Compute UPDATEPOFILES
19110           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19111           # Compute DUMMYPOFILES
19112           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19113           # Compute GMOFILES
19114           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19115           case "$ac_given_srcdir" in
19116             .) srcdirpre= ;;
19117             *) srcdirpre='$(srcdir)/' ;;
19118           esac
19119           POFILES=
19120           UPDATEPOFILES=
19121           DUMMYPOFILES=
19122           GMOFILES=
19123           for lang in $ALL_LINGUAS; do
19124             POFILES="$POFILES $srcdirpre$lang.po"
19125             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19126             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19127             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19128           done
19129           # CATALOGS depends on both $ac_dir and the user's LINGUAS
19130           # environment variable.
19131           INST_LINGUAS=
19132           if test -n "$ALL_LINGUAS"; then
19133             for presentlang in $ALL_LINGUAS; do
19134               useit=no
19135               if test "%UNSET%" != "$LINGUAS"; then
19136                 desiredlanguages="$LINGUAS"
19137               else
19138                 desiredlanguages="$ALL_LINGUAS"
19139               fi
19140               for desiredlang in $desiredlanguages; do
19141                 # Use the presentlang catalog if desiredlang is
19142                 #   a. equal to presentlang, or
19143                 #   b. a variant of presentlang (because in this case,
19144                 #      presentlang can be used as a fallback for messages
19145                 #      which are not translated in the desiredlang catalog).
19146                 case "$desiredlang" in
19147                   "$presentlang"*) useit=yes;;
19148                 esac
19149               done
19150               if test $useit = yes; then
19151                 INST_LINGUAS="$INST_LINGUAS $presentlang"
19152               fi
19153             done
19154           fi
19155           CATALOGS=
19156           if test -n "$INST_LINGUAS"; then
19157             for lang in $INST_LINGUAS; do
19158               CATALOGS="$CATALOGS $lang.gmo"
19159             done
19160           fi
19161           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19162           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"
19163           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19164             if test -f "$f"; then
19165               case "$f" in
19166                 *.orig | *.bak | *~) ;;
19167                 *) cat "$f" >> "$ac_dir/Makefile" ;;
19168               esac
19169             fi
19170           done
19171         fi
19172         ;;
19173       esac
19174     done ;;
19175
19176   esac
19177 done # for ac_tag
19178
19179
19180 as_fn_exit 0
19181 _ACEOF
19182 ac_clean_files=$ac_clean_files_save
19183
19184 test $ac_write_fail = 0 ||
19185   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19186
19187
19188 # configure is writing to config.log, and then calls config.status.
19189 # config.status does its own redirection, appending to config.log.
19190 # Unfortunately, on DOS this fails, as config.log is still kept open
19191 # by configure, so config.status won't be able to write to it; its
19192 # output is simply discarded.  So we exec the FD to /dev/null,
19193 # effectively closing config.log, so it can be properly (re)opened and
19194 # appended to by config.status.  When coming back to configure, we
19195 # need to make the FD available again.
19196 if test "$no_create" != yes; then
19197   ac_cs_success=:
19198   ac_config_status_args=
19199   test "$silent" = yes &&
19200     ac_config_status_args="$ac_config_status_args --quiet"
19201   exec 5>/dev/null
19202   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19203   exec 5>>config.log
19204   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19205   # would make configure fail if this is the last instruction.
19206   $ac_cs_success || as_fn_exit 1
19207 fi
19208 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19209   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19210 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19211 fi
19212
19213
19214 echo
19215 echo "shadow will be compiled with the following features:"
19216 echo
19217 echo "  auditing support:               $with_audit"
19218 echo "  CrackLib support:               $with_libcrack"
19219 echo "  PAM support:                    $with_libpam"
19220 if test "$with_libpam" = "yes"; then
19221 echo "  suid account management tools:  $enable_acct_tools_setuid"
19222 fi
19223 echo "  SELinux support:                $with_selinux"
19224 echo "  shadow group support:           $enable_shadowgrp"
19225 echo "  S/Key support:                  $with_skey"
19226 echo "  SHA passwords encryption:       $with_sha_crypt"
19227 echo "  nscd support:                   $with_nscd"
19228 echo