]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Add bug closure for Simon Paillard's man page fixes
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for linux nfs-utils 1.2.3.
4 #
5 # Report bugs to <linux-nfs@vger.kernel.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: linux-nfs@vger.kernel.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='linux nfs-utils'
703 PACKAGE_TARNAME='nfs-utils'
704 PACKAGE_VERSION='1.2.3'
705 PACKAGE_STRING='linux nfs-utils 1.2.3'
706 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
707 PACKAGE_URL=''
708
709 ac_default_prefix=/usr
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_unique_file="support/include/config.h.in"
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 ACLOCAL_AMFLAGS
751 AM_CFLAGS
752 LDFLAGS_FOR_BUILD
753 CPPFLAGS_FOR_BUILD
754 CXXFLAGS_FOR_BUILD
755 CFLAGS_FOR_BUILD
756 LIBOBJS
757 ALLOCA
758 K5VERS
759 KRBLDFLAGS
760 KRBCFLAGS
761 KRBLIBS
762 KRBDIR
763 LIBBLKID
764 LIBBSD
765 LIBCRYPT
766 LIBSOCKET
767 RPCSECGSS_LIBS
768 RPCSECGSS_CFLAGS
769 GSSGLUE_LIBS
770 GSSGLUE_CFLAGS
771 PKG_CONFIG
772 LIBNSL
773 CC_FOR_BUILD
774 CXXCPP
775 OTOOL64
776 OTOOL
777 LIPO
778 NMEDIT
779 DSYMUTIL
780 lt_ECHO
781 RANLIB
782 AR
783 OBJDUMP
784 NM
785 ac_ct_DUMPBIN
786 DUMPBIN
787 LD
788 FGREP
789 SED
790 LIBTOOL
791 LN_S
792 am__fastdepCXX_FALSE
793 am__fastdepCXX_TRUE
794 CXXDEPMODE
795 ac_ct_CXX
796 CXXFLAGS
797 CXX
798 HAVE_TCP_WRAPPER
799 HAVE_LIBWRAP
800 LIBWRAP
801 LIBCAP
802 EGREP
803 GREP
804 CPP
805 AM_CPPFLAGS
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__quote
813 am__include
814 DEPDIR
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 MOUNT_CONFIG_FALSE
823 MOUNT_CONFIG_TRUE
824 enable_mountconfig
825 mountfile
826 CONFIG_IPV6_FALSE
827 CONFIG_IPV6_TRUE
828 enable_ipv6
829 CONFIG_MOUNT_FALSE
830 CONFIG_MOUNT_TRUE
831 CONFIG_RPCGEN_FALSE
832 CONFIG_RPCGEN_TRUE
833 RPCGEN_PATH
834 kprefix
835 CONFIG_GSS_FALSE
836 CONFIG_GSS_TRUE
837 enable_gss
838 SVCGSSD
839 GSSD
840 CONFIG_NFSV41_FALSE
841 CONFIG_NFSV41_TRUE
842 enable_nfsv41
843 CONFIG_NFSV4_FALSE
844 CONFIG_NFSV4_TRUE
845 enable_nfsv4
846 IDMAPD
847 enable_nfsv3
848 startstatd
849 statduser
850 statedir
851 RELEASE
852 MAINT
853 MAINTAINER_MODE_FALSE
854 MAINTAINER_MODE_TRUE
855 am__untar
856 am__tar
857 AMTAR
858 am__leading_dot
859 SET_MAKE
860 AWK
861 mkdir_p
862 MKDIR_P
863 INSTALL_STRIP_PROGRAM
864 STRIP
865 install_sh
866 MAKEINFO
867 AUTOHEADER
868 AUTOMAKE
869 AUTOCONF
870 ACLOCAL
871 VERSION
872 PACKAGE
873 CYGPATH_W
874 am__isrc
875 INSTALL_DATA
876 INSTALL_SCRIPT
877 INSTALL_PROGRAM
878 host_os
879 host_vendor
880 host_cpu
881 host
882 build_os
883 build_vendor
884 build_cpu
885 build
886 target_alias
887 host_alias
888 build_alias
889 LIBS
890 ECHO_T
891 ECHO_N
892 ECHO_C
893 DEFS
894 mandir
895 localedir
896 libdir
897 psdir
898 pdfdir
899 dvidir
900 htmldir
901 infodir
902 docdir
903 oldincludedir
904 includedir
905 localstatedir
906 sharedstatedir
907 sysconfdir
908 datadir
909 datarootdir
910 libexecdir
911 sbindir
912 bindir
913 program_transform_name
914 prefix
915 exec_prefix
916 PACKAGE_URL
917 PACKAGE_BUGREPORT
918 PACKAGE_STRING
919 PACKAGE_VERSION
920 PACKAGE_TARNAME
921 PACKAGE_NAME
922 PATH_SEPARATOR
923 SHELL'
924 ac_subst_files=''
925 ac_user_opts='
926 enable_option_checking
927 enable_maintainer_mode
928 with_release
929 with_statedir
930 with_statduser
931 with_start_statd
932 enable_nfsv3
933 enable_nfsv4
934 enable_nfsv41
935 enable_gss
936 enable_kprefix
937 with_rpcgen
938 enable_uuid
939 enable_mount
940 enable_tirpc
941 enable_ipv6
942 enable_mountconfig
943 with_mountfile
944 with_tirpcinclude
945 enable_dependency_tracking
946 enable_caps
947 with_tcp_wrappers
948 enable_largefile
949 enable_shared
950 enable_static
951 with_pic
952 enable_fast_install
953 with_gnu_ld
954 enable_libtool_lock
955 with_krb5
956 '
957       ac_precious_vars='build_alias
958 host_alias
959 target_alias
960 CC
961 CFLAGS
962 LDFLAGS
963 LIBS
964 CPPFLAGS
965 CPP
966 CXX
967 CXXFLAGS
968 CCC
969 CXXCPP
970 PKG_CONFIG
971 GSSGLUE_CFLAGS
972 GSSGLUE_LIBS
973 RPCSECGSS_CFLAGS
974 RPCSECGSS_LIBS'
975
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
998
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029   # If the previous option needs an argument, assign it.
1030   if test -n "$ac_prev"; then
1031     eval $ac_prev=\$ac_option
1032     ac_prev=
1033     continue
1034   fi
1035
1036   case $ac_option in
1037   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038   *)    ac_optarg=yes ;;
1039   esac
1040
1041   # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043   case $ac_dashdash$ac_option in
1044   --)
1045     ac_dashdash=yes ;;
1046
1047   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048     ac_prev=bindir ;;
1049   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050     bindir=$ac_optarg ;;
1051
1052   -build | --build | --buil | --bui | --bu)
1053     ac_prev=build_alias ;;
1054   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055     build_alias=$ac_optarg ;;
1056
1057   -cache-file | --cache-file | --cache-fil | --cache-fi \
1058   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059     ac_prev=cache_file ;;
1060   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062     cache_file=$ac_optarg ;;
1063
1064   --config-cache | -C)
1065     cache_file=config.cache ;;
1066
1067   -datadir | --datadir | --datadi | --datad)
1068     ac_prev=datadir ;;
1069   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070     datadir=$ac_optarg ;;
1071
1072   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073   | --dataroo | --dataro | --datar)
1074     ac_prev=datarootdir ;;
1075   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077     datarootdir=$ac_optarg ;;
1078
1079   -disable-* | --disable-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error "invalid feature name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval enable_$ac_useropt=no ;;
1094
1095   -docdir | --docdir | --docdi | --doc | --do)
1096     ac_prev=docdir ;;
1097   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098     docdir=$ac_optarg ;;
1099
1100   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101     ac_prev=dvidir ;;
1102   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103     dvidir=$ac_optarg ;;
1104
1105   -enable-* | --enable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error "invalid feature name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval enable_$ac_useropt=\$ac_optarg ;;
1120
1121   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123   | --exec | --exe | --ex)
1124     ac_prev=exec_prefix ;;
1125   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127   | --exec=* | --exe=* | --ex=*)
1128     exec_prefix=$ac_optarg ;;
1129
1130   -gas | --gas | --ga | --g)
1131     # Obsolete; use --with-gas.
1132     with_gas=yes ;;
1133
1134   -help | --help | --hel | --he | -h)
1135     ac_init_help=long ;;
1136   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137     ac_init_help=recursive ;;
1138   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139     ac_init_help=short ;;
1140
1141   -host | --host | --hos | --ho)
1142     ac_prev=host_alias ;;
1143   -host=* | --host=* | --hos=* | --ho=*)
1144     host_alias=$ac_optarg ;;
1145
1146   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147     ac_prev=htmldir ;;
1148   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149   | --ht=*)
1150     htmldir=$ac_optarg ;;
1151
1152   -includedir | --includedir | --includedi | --included | --include \
1153   | --includ | --inclu | --incl | --inc)
1154     ac_prev=includedir ;;
1155   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156   | --includ=* | --inclu=* | --incl=* | --inc=*)
1157     includedir=$ac_optarg ;;
1158
1159   -infodir | --infodir | --infodi | --infod | --info | --inf)
1160     ac_prev=infodir ;;
1161   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162     infodir=$ac_optarg ;;
1163
1164   -libdir | --libdir | --libdi | --libd)
1165     ac_prev=libdir ;;
1166   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167     libdir=$ac_optarg ;;
1168
1169   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170   | --libexe | --libex | --libe)
1171     ac_prev=libexecdir ;;
1172   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173   | --libexe=* | --libex=* | --libe=*)
1174     libexecdir=$ac_optarg ;;
1175
1176   -localedir | --localedir | --localedi | --localed | --locale)
1177     ac_prev=localedir ;;
1178   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179     localedir=$ac_optarg ;;
1180
1181   -localstatedir | --localstatedir | --localstatedi | --localstated \
1182   | --localstate | --localstat | --localsta | --localst | --locals)
1183     ac_prev=localstatedir ;;
1184   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186     localstatedir=$ac_optarg ;;
1187
1188   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189     ac_prev=mandir ;;
1190   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191     mandir=$ac_optarg ;;
1192
1193   -nfp | --nfp | --nf)
1194     # Obsolete; use --without-fp.
1195     with_fp=no ;;
1196
1197   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198   | --no-cr | --no-c | -n)
1199     no_create=yes ;;
1200
1201   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203     no_recursion=yes ;;
1204
1205   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207   | --oldin | --oldi | --old | --ol | --o)
1208     ac_prev=oldincludedir ;;
1209   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212     oldincludedir=$ac_optarg ;;
1213
1214   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215     ac_prev=prefix ;;
1216   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217     prefix=$ac_optarg ;;
1218
1219   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220   | --program-pre | --program-pr | --program-p)
1221     ac_prev=program_prefix ;;
1222   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224     program_prefix=$ac_optarg ;;
1225
1226   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227   | --program-suf | --program-su | --program-s)
1228     ac_prev=program_suffix ;;
1229   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231     program_suffix=$ac_optarg ;;
1232
1233   -program-transform-name | --program-transform-name \
1234   | --program-transform-nam | --program-transform-na \
1235   | --program-transform-n | --program-transform- \
1236   | --program-transform | --program-transfor \
1237   | --program-transfo | --program-transf \
1238   | --program-trans | --program-tran \
1239   | --progr-tra | --program-tr | --program-t)
1240     ac_prev=program_transform_name ;;
1241   -program-transform-name=* | --program-transform-name=* \
1242   | --program-transform-nam=* | --program-transform-na=* \
1243   | --program-transform-n=* | --program-transform-=* \
1244   | --program-transform=* | --program-transfor=* \
1245   | --program-transfo=* | --program-transf=* \
1246   | --program-trans=* | --program-tran=* \
1247   | --progr-tra=* | --program-tr=* | --program-t=*)
1248     program_transform_name=$ac_optarg ;;
1249
1250   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251     ac_prev=pdfdir ;;
1252   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253     pdfdir=$ac_optarg ;;
1254
1255   -psdir | --psdir | --psdi | --psd | --ps)
1256     ac_prev=psdir ;;
1257   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258     psdir=$ac_optarg ;;
1259
1260   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261   | -silent | --silent | --silen | --sile | --sil)
1262     silent=yes ;;
1263
1264   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265     ac_prev=sbindir ;;
1266   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267   | --sbi=* | --sb=*)
1268     sbindir=$ac_optarg ;;
1269
1270   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272   | --sharedst | --shareds | --shared | --share | --shar \
1273   | --sha | --sh)
1274     ac_prev=sharedstatedir ;;
1275   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278   | --sha=* | --sh=*)
1279     sharedstatedir=$ac_optarg ;;
1280
1281   -site | --site | --sit)
1282     ac_prev=site ;;
1283   -site=* | --site=* | --sit=*)
1284     site=$ac_optarg ;;
1285
1286   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287     ac_prev=srcdir ;;
1288   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289     srcdir=$ac_optarg ;;
1290
1291   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292   | --syscon | --sysco | --sysc | --sys | --sy)
1293     ac_prev=sysconfdir ;;
1294   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296     sysconfdir=$ac_optarg ;;
1297
1298   -target | --target | --targe | --targ | --tar | --ta | --t)
1299     ac_prev=target_alias ;;
1300   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301     target_alias=$ac_optarg ;;
1302
1303   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304     verbose=yes ;;
1305
1306   -version | --version | --versio | --versi | --vers | -V)
1307     ac_init_version=: ;;
1308
1309   -with-* | --with-*)
1310     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313       as_fn_error "invalid package name: $ac_useropt"
1314     ac_useropt_orig=$ac_useropt
1315     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316     case $ac_user_opts in
1317       *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321          ac_unrecognized_sep=', ';;
1322     esac
1323     eval with_$ac_useropt=\$ac_optarg ;;
1324
1325   -without-* | --without-*)
1326     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329       as_fn_error "invalid package name: $ac_useropt"
1330     ac_useropt_orig=$ac_useropt
1331     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332     case $ac_user_opts in
1333       *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337          ac_unrecognized_sep=', ';;
1338     esac
1339     eval with_$ac_useropt=no ;;
1340
1341   --x)
1342     # Obsolete; use --with-x.
1343     with_x=yes ;;
1344
1345   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346   | --x-incl | --x-inc | --x-in | --x-i)
1347     ac_prev=x_includes ;;
1348   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350     x_includes=$ac_optarg ;;
1351
1352   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354     ac_prev=x_libraries ;;
1355   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357     x_libraries=$ac_optarg ;;
1358
1359   -*) as_fn_error "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1361     ;;
1362
1363   *=*)
1364     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365     # Reject names that are not valid shell variable names.
1366     case $ac_envvar in #(
1367       '' | [0-9]* | *[!_$as_cr_alnum]* )
1368       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1369     esac
1370     eval $ac_envvar=\$ac_optarg
1371     export $ac_envvar ;;
1372
1373   *)
1374     # FIXME: should be removed in autoconf 3.0.
1375     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1379     ;;
1380
1381   esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386   as_fn_error "missing argument to $ac_option"
1387 fi
1388
1389 if test -n "$ac_unrecognized_opts"; then
1390   case $enable_option_checking in
1391     no) ;;
1392     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1393     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394   esac
1395 fi
1396
1397 # Check all directory arguments for consistency.
1398 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399                 datadir sysconfdir sharedstatedir localstatedir includedir \
1400                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401                 libdir localedir mandir
1402 do
1403   eval ac_val=\$$ac_var
1404   # Remove trailing slashes.
1405   case $ac_val in
1406     */ )
1407       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408       eval $ac_var=\$ac_val;;
1409   esac
1410   # Be sure to have absolute directory names.
1411   case $ac_val in
1412     [\\/$]* | ?:[\\/]* )  continue;;
1413     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414   esac
1415   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1417
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1424
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427   if test "x$build_alias" = x; then
1428     cross_compiling=maybe
1429     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430     If a cross compiler is detected then cross compile mode will be used." >&2
1431   elif test "x$build_alias" != "x$host_alias"; then
1432     cross_compiling=yes
1433   fi
1434 fi
1435
1436 ac_tool_prefix=
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438
1439 test "$silent" = yes && exec 6>/dev/null
1440
1441
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445   as_fn_error "working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447   as_fn_error "pwd does not report name of working directory"
1448
1449
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452   ac_srcdir_defaulted=yes
1453   # Try the directory containing this script, then the parent directory.
1454   ac_confdir=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456          X"$as_myself" : 'X\(//\)[^/]' \| \
1457          X"$as_myself" : 'X\(//\)$' \| \
1458          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\/\)[^/].*/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\/\)$/{
1469             s//\1/
1470             q
1471           }
1472           /^X\(\/\).*/{
1473             s//\1/
1474             q
1475           }
1476           s/.*/./; q'`
1477   srcdir=$ac_confdir
1478   if test ! -r "$srcdir/$ac_unique_file"; then
1479     srcdir=..
1480   fi
1481 else
1482   ac_srcdir_defaulted=no
1483 fi
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1487 fi
1488 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1489 ac_abs_confdir=`(
1490         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1491         pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494   srcdir=.
1495 fi
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504   eval ac_env_${ac_var}_value=\$${ac_var}
1505   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1508
1509 #
1510 # Report the --help message.
1511 #
1512 if test "$ac_init_help" = "long"; then
1513   # Omit some internal or obsolete options to make the list less imposing.
1514   # This message is too long to be a string in the A/UX 3.1 sh.
1515   cat <<_ACEOF
1516 \`configure' configures linux nfs-utils 1.2.3 to adapt to many kinds of systems.
1517
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1519
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE.  See below for descriptions of some of the useful variables.
1522
1523 Defaults for the options are specified in brackets.
1524
1525 Configuration:
1526   -h, --help              display this help and exit
1527       --help=short        display options specific to this package
1528       --help=recursive    display the short help of all the included packages
1529   -V, --version           display version information and exit
1530   -q, --quiet, --silent   do not print \`checking...' messages
1531       --cache-file=FILE   cache test results in FILE [disabled]
1532   -C, --config-cache      alias for \`--cache-file=config.cache'
1533   -n, --no-create         do not create output files
1534       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1535
1536 Installation directories:
1537   --prefix=PREFIX         install architecture-independent files in PREFIX
1538                           [$ac_default_prefix]
1539   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1540                           [PREFIX]
1541
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1546
1547 For better control, use the options below.
1548
1549 Fine tuning of the installation directories:
1550   --bindir=DIR            user executables [EPREFIX/bin]
1551   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1552   --libexecdir=DIR        program executables [EPREFIX/libexec]
1553   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1554   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1555   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1556   --libdir=DIR            object code libraries [EPREFIX/lib]
1557   --includedir=DIR        C header files [PREFIX/include]
1558   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1559   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1560   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1561   --infodir=DIR           info documentation [DATAROOTDIR/info]
1562   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1563   --mandir=DIR            man documentation [DATAROOTDIR/man]
1564   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1565   --htmldir=DIR           html documentation [DOCDIR]
1566   --dvidir=DIR            dvi documentation [DOCDIR]
1567   --pdfdir=DIR            pdf documentation [DOCDIR]
1568   --psdir=DIR             ps documentation [DOCDIR]
1569 _ACEOF
1570
1571   cat <<\_ACEOF
1572
1573 Program names:
1574   --program-prefix=PREFIX            prepend PREFIX to installed program names
1575   --program-suffix=SUFFIX            append SUFFIX to installed program names
1576   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1577
1578 System types:
1579   --build=BUILD     configure for building on BUILD [guessed]
1580   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1581 _ACEOF
1582 fi
1583
1584 if test -n "$ac_init_help"; then
1585   case $ac_init_help in
1586      short | recursive ) echo "Configuration of linux nfs-utils 1.2.3:";;
1587    esac
1588   cat <<\_ACEOF
1589
1590 Optional Features:
1591   --disable-option-checking  ignore unrecognized --enable/--with options
1592   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1593   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1594   --enable-maintainer-mode  enable make rules and dependencies not useful
1595                           (and sometimes confusing) to the casual installer
1596   --enable-nfsv3          enable support for NFSv3 [default=yes]
1597   --enable-nfsv4          enable support for NFSv4 [default=yes]
1598   --enable-nfsv41         enable support for NFSv41 [default=no]
1599   --enable-gss            enable support for rpcsec_gss [default=yes]
1600   --enable-kprefix        install progs as rpc.knfsd etc
1601   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1602   --enable-mount          Create mount.nfs and don't use the util-linux
1603                           mount(8) functionality. [default=yes]
1604   --enable-tirpc          enable use of TI-RPC [default=yes]
1605   --enable-ipv6           enable support for IPv6 [default=no]
1606   --enable-mountconfig    enable mount to use a configuration file
1607   --disable-dependency-tracking  speeds up one-time build
1608   --enable-dependency-tracking   do not reject slow dependency extractors
1609   --disable-caps          Disable capabilities support
1610   --disable-largefile     omit support for large files
1611   --enable-shared[=PKGS]  build shared libraries [default=yes]
1612   --enable-static[=PKGS]  build static libraries [default=yes]
1613   --enable-fast-install[=PKGS]
1614                           optimize for fast installation [default=yes]
1615   --disable-libtool-lock  avoid locking (might break parallel builds)
1616
1617 Optional Packages:
1618   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1619   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1620   --with-release=XXX      set release to XXX [1]
1621   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1622   --with-statduser=rpcuser
1623                           statd to run under [rpcuser or nobody]
1624   --with-start-statd=scriptname
1625                           When an nfs filesystems is mounted with locking, run
1626                           this script
1627   --with-rpcgen=internal  use internal rpcgen instead of system one
1628   --with-mountfile=filename
1629                           Using filename as the NFS mount options file
1630                           [/etc/nfsmounts.conf]
1631   --with-tirpcinclude=DIR use TI-RPC headers in DIR
1632   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1633                  (optionally in PATH)
1634   --with-pic              try to use only PIC/non-PIC objects [default=use
1635                           both]
1636   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1637   --with-krb5=DIR         use Kerberos v5 installation in DIR
1638
1639 Some influential environment variables:
1640   CC          C compiler command
1641   CFLAGS      C compiler flags
1642   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1643               nonstandard directory <lib dir>
1644   LIBS        libraries to pass to the linker, e.g. -l<library>
1645   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1646               you have headers in a nonstandard directory <include dir>
1647   CPP         C preprocessor
1648   CXX         C++ compiler command
1649   CXXFLAGS    C++ compiler flags
1650   CXXCPP      C++ preprocessor
1651   PKG_CONFIG  path to pkg-config utility
1652   GSSGLUE_CFLAGS
1653               C compiler flags for GSSGLUE, overriding pkg-config
1654   GSSGLUE_LIBS
1655               linker flags for GSSGLUE, overriding pkg-config
1656   RPCSECGSS_CFLAGS
1657               C compiler flags for RPCSECGSS, overriding pkg-config
1658   RPCSECGSS_LIBS
1659               linker flags for RPCSECGSS, overriding pkg-config
1660
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1663
1664 Report bugs to <linux-nfs@vger.kernel.org>.
1665 _ACEOF
1666 ac_status=$?
1667 fi
1668
1669 if test "$ac_init_help" = "recursive"; then
1670   # If there are subdirs, report their specific --help.
1671   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1672     test -d "$ac_dir" ||
1673       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1674       continue
1675     ac_builddir=.
1676
1677 case "$ac_dir" in
1678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *)
1680   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1681   # A ".." for each directory in $ac_dir_suffix.
1682   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1683   case $ac_top_builddir_sub in
1684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686   esac ;;
1687 esac
1688 ac_abs_top_builddir=$ac_pwd
1689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690 # for backward compatibility:
1691 ac_top_builddir=$ac_top_build_prefix
1692
1693 case $srcdir in
1694   .)  # We are building in place.
1695     ac_srcdir=.
1696     ac_top_srcdir=$ac_top_builddir_sub
1697     ac_abs_top_srcdir=$ac_pwd ;;
1698   [\\/]* | ?:[\\/]* )  # Absolute name.
1699     ac_srcdir=$srcdir$ac_dir_suffix;
1700     ac_top_srcdir=$srcdir
1701     ac_abs_top_srcdir=$srcdir ;;
1702   *) # Relative name.
1703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704     ac_top_srcdir=$ac_top_build_prefix$srcdir
1705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1706 esac
1707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1708
1709     cd "$ac_dir" || { ac_status=$?; continue; }
1710     # Check for guested configure.
1711     if test -f "$ac_srcdir/configure.gnu"; then
1712       echo &&
1713       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714     elif test -f "$ac_srcdir/configure"; then
1715       echo &&
1716       $SHELL "$ac_srcdir/configure" --help=recursive
1717     else
1718       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719     fi || ac_status=$?
1720     cd "$ac_pwd" || { ac_status=$?; break; }
1721   done
1722 fi
1723
1724 test -n "$ac_init_help" && exit $ac_status
1725 if $ac_init_version; then
1726   cat <<\_ACEOF
1727 linux nfs-utils configure 1.2.3
1728 generated by GNU Autoconf 2.65
1729
1730 Copyright (C) 2009 Free Software Foundation, Inc.
1731 This configure script is free software; the Free Software Foundation
1732 gives unlimited permission to copy, distribute and modify it.
1733 _ACEOF
1734   exit
1735 fi
1736
1737 ## ------------------------ ##
1738 ## Autoconf initialization. ##
1739 ## ------------------------ ##
1740
1741 # ac_fn_c_try_compile LINENO
1742 # --------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_compile ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   rm -f conftest.$ac_objext
1748   if { { ac_try="$ac_compile"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_compile") 2>conftest.err
1756   ac_status=$?
1757   if test -s conftest.err; then
1758     grep -v '^ *+' conftest.err >conftest.er1
1759     cat conftest.er1 >&5
1760     mv -f conftest.er1 conftest.err
1761   fi
1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763   test $ac_status = 0; } && {
1764          test -z "$ac_c_werror_flag" ||
1765          test ! -s conftest.err
1766        } && test -s conftest.$ac_objext; then :
1767   ac_retval=0
1768 else
1769   $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772         ac_retval=1
1773 fi
1774   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775   as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_compile
1778
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   rm -f conftest.$ac_objext conftest$ac_exeext
1786   if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_link") 2>conftest.err
1794   ac_status=$?
1795   if test -s conftest.err; then
1796     grep -v '^ *+' conftest.err >conftest.er1
1797     cat conftest.er1 >&5
1798     mv -f conftest.er1 conftest.err
1799   fi
1800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801   test $ac_status = 0; } && {
1802          test -z "$ac_c_werror_flag" ||
1803          test ! -s conftest.err
1804        } && test -s conftest$ac_exeext && {
1805          test "$cross_compiling" = yes ||
1806          $as_test_x conftest$ac_exeext
1807        }; then :
1808   ac_retval=0
1809 else
1810   $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813         ac_retval=1
1814 fi
1815   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817   # interfere with the next link command; also delete a directory that is
1818   # left behind by Apple's compiler.  We do this before executing the actions.
1819   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821   as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_link
1824
1825 # ac_fn_c_try_cpp LINENO
1826 # ----------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_cpp ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839   ac_status=$?
1840   if test -s conftest.err; then
1841     grep -v '^ *+' conftest.err >conftest.er1
1842     cat conftest.er1 >&5
1843     mv -f conftest.er1 conftest.err
1844   fi
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } >/dev/null && {
1847          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1848          test ! -s conftest.err
1849        }; then :
1850   ac_retval=0
1851 else
1852   $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855     ac_retval=1
1856 fi
1857   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_cpp
1861
1862 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1865 # the include files in INCLUDES and setting the cache variable VAR
1866 # accordingly.
1867 ac_fn_c_check_header_mongrel ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874   $as_echo_n "(cached) " >&6
1875 fi
1876 eval ac_res=\$$3
1877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 else
1880   # Is the header compilable?
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1882 $as_echo_n "checking $2 usability... " >&6; }
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 $4
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889   ac_header_compiler=yes
1890 else
1891   ac_header_compiler=no
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1895 $as_echo "$ac_header_compiler" >&6; }
1896
1897 # Is the header present?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1899 $as_echo_n "checking $2 presence... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 #include <$2>
1903 _ACEOF
1904 if ac_fn_c_try_cpp "$LINENO"; then :
1905   ac_header_preproc=yes
1906 else
1907   ac_header_preproc=no
1908 fi
1909 rm -f conftest.err conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1911 $as_echo "$ac_header_preproc" >&6; }
1912
1913 # So?  What about this header?
1914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1915   yes:no: )
1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1917 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920     ;;
1921   no:yes:* )
1922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1923 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1925 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1927 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1929 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 ( cat <<\_ASBOX
1933 ## ---------------------------------------- ##
1934 ## Report this to linux-nfs@vger.kernel.org ##
1935 ## ---------------------------------------- ##
1936 _ASBOX
1937      ) | sed "s/^/$as_me: WARNING:     /" >&2
1938     ;;
1939 esac
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1943   $as_echo_n "(cached) " >&6
1944 else
1945   eval "$3=\$ac_header_compiler"
1946 fi
1947 eval ac_res=\$$3
1948                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 fi
1951   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_header_mongrel
1954
1955 # ac_fn_c_try_run LINENO
1956 # ----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1958 # that executables *can* be run.
1959 ac_fn_c_try_run ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969   (eval "$ac_link") 2>&5
1970   ac_status=$?
1971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1973   { { case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979   (eval "$ac_try") 2>&5
1980   ac_status=$?
1981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982   test $ac_status = 0; }; }; then :
1983   ac_retval=0
1984 else
1985   $as_echo "$as_me: program exited with status $ac_status" >&5
1986        $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989        ac_retval=$ac_status
1990 fi
1991   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993   as_fn_set_status $ac_retval
1994
1995 } # ac_fn_c_try_run
1996
1997 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1998 # -------------------------------------------------------
1999 # Tests whether HEADER exists and can be compiled using the include files in
2000 # INCLUDES, setting the cache variable VAR accordingly.
2001 ac_fn_c_check_header_compile ()
2002 {
2003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2007   $as_echo_n "(cached) " >&6
2008 else
2009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h.  */
2011 $4
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   eval "$3=yes"
2016 else
2017   eval "$3=no"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 eval ac_res=\$$3
2022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025
2026 } # ac_fn_c_check_header_compile
2027
2028 # ac_fn_c_check_func LINENO FUNC VAR
2029 # ----------------------------------
2030 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2031 ac_fn_c_check_func ()
2032 {
2033   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2037   $as_echo_n "(cached) " >&6
2038 else
2039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2043 #define $2 innocuous_$2
2044
2045 /* System header to define __stub macros and hopefully few prototypes,
2046     which can conflict with char $2 (); below.
2047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2048     <limits.h> exists even on freestanding compilers.  */
2049
2050 #ifdef __STDC__
2051 # include <limits.h>
2052 #else
2053 # include <assert.h>
2054 #endif
2055
2056 #undef $2
2057
2058 /* Override any GCC internal prototype to avoid an error.
2059    Use char because int might match the return type of a GCC
2060    builtin and then its argument prototype would still apply.  */
2061 #ifdef __cplusplus
2062 extern "C"
2063 #endif
2064 char $2 ();
2065 /* The GNU C library defines this for functions which it implements
2066     to always fail with ENOSYS.  Some functions are actually named
2067     something starting with __ and the normal name is an alias.  */
2068 #if defined __stub_$2 || defined __stub___$2
2069 choke me
2070 #endif
2071
2072 int
2073 main ()
2074 {
2075 return $2 ();
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_link "$LINENO"; then :
2081   eval "$3=yes"
2082 else
2083   eval "$3=no"
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext \
2086     conftest$ac_exeext conftest.$ac_ext
2087 fi
2088 eval ac_res=\$$3
2089                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092
2093 } # ac_fn_c_check_func
2094
2095 # ac_fn_cxx_try_compile LINENO
2096 # ----------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_compile ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   rm -f conftest.$ac_objext
2102   if { { ac_try="$ac_compile"
2103 case "(($ac_try" in
2104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105   *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109   (eval "$ac_compile") 2>conftest.err
2110   ac_status=$?
2111   if test -s conftest.err; then
2112     grep -v '^ *+' conftest.err >conftest.er1
2113     cat conftest.er1 >&5
2114     mv -f conftest.er1 conftest.err
2115   fi
2116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117   test $ac_status = 0; } && {
2118          test -z "$ac_cxx_werror_flag" ||
2119          test ! -s conftest.err
2120        } && test -s conftest.$ac_objext; then :
2121   ac_retval=0
2122 else
2123   $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126         ac_retval=1
2127 fi
2128   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129   as_fn_set_status $ac_retval
2130
2131 } # ac_fn_cxx_try_compile
2132
2133 # ac_fn_cxx_try_cpp LINENO
2134 # ------------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_cxx_try_cpp ()
2137 {
2138   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139   if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147   ac_status=$?
2148   if test -s conftest.err; then
2149     grep -v '^ *+' conftest.err >conftest.er1
2150     cat conftest.er1 >&5
2151     mv -f conftest.er1 conftest.err
2152   fi
2153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154   test $ac_status = 0; } >/dev/null && {
2155          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2156          test ! -s conftest.err
2157        }; then :
2158   ac_retval=0
2159 else
2160   $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163     ac_retval=1
2164 fi
2165   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166   as_fn_set_status $ac_retval
2167
2168 } # ac_fn_cxx_try_cpp
2169
2170 # ac_fn_cxx_try_link LINENO
2171 # -------------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_link ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   rm -f conftest.$ac_objext conftest$ac_exeext
2177   if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180   *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184   (eval "$ac_link") 2>conftest.err
2185   ac_status=$?
2186   if test -s conftest.err; then
2187     grep -v '^ *+' conftest.err >conftest.er1
2188     cat conftest.er1 >&5
2189     mv -f conftest.er1 conftest.err
2190   fi
2191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192   test $ac_status = 0; } && {
2193          test -z "$ac_cxx_werror_flag" ||
2194          test ! -s conftest.err
2195        } && test -s conftest$ac_exeext && {
2196          test "$cross_compiling" = yes ||
2197          $as_test_x conftest$ac_exeext
2198        }; then :
2199   ac_retval=0
2200 else
2201   $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204         ac_retval=1
2205 fi
2206   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2207   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2208   # interfere with the next link command; also delete a directory that is
2209   # left behind by Apple's compiler.  We do this before executing the actions.
2210   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212   as_fn_set_status $ac_retval
2213
2214 } # ac_fn_cxx_try_link
2215
2216 # ac_fn_c_check_decl LINENO SYMBOL VAR
2217 # ------------------------------------
2218 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2219 ac_fn_c_check_decl ()
2220 {
2221   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2223 $as_echo_n "checking whether $2 is declared... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225   $as_echo_n "(cached) " >&6
2226 else
2227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h.  */
2229 $4
2230 int
2231 main ()
2232 {
2233 #ifndef $2
2234   (void) $2;
2235 #endif
2236
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242   eval "$3=yes"
2243 else
2244   eval "$3=no"
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 eval ac_res=\$$3
2249                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252
2253 } # ac_fn_c_check_decl
2254
2255 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2256 # -------------------------------------------
2257 # Tests whether TYPE exists after having included INCLUDES, setting cache
2258 # variable VAR accordingly.
2259 ac_fn_c_check_type ()
2260 {
2261   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263 $as_echo_n "checking for $2... " >&6; }
2264 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2265   $as_echo_n "(cached) " >&6
2266 else
2267   eval "$3=no"
2268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 $4
2271 int
2272 main ()
2273 {
2274 if (sizeof ($2))
2275          return 0;
2276   ;
2277   return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h.  */
2283 $4
2284 int
2285 main ()
2286 {
2287 if (sizeof (($2)))
2288             return 0;
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294
2295 else
2296   eval "$3=yes"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 eval ac_res=\$$3
2303                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306
2307 } # ac_fn_c_check_type
2308
2309 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2310 # --------------------------------------------
2311 # Tries to find the compile-time value of EXPR in a program that includes
2312 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2313 # computed
2314 ac_fn_c_compute_int ()
2315 {
2316   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317   if test "$cross_compiling" = yes; then
2318     # Depending upon the size, compute the lo and hi bounds.
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h.  */
2321 $4
2322 int
2323 main ()
2324 {
2325 static int test_array [1 - 2 * !(($2) >= 0)];
2326 test_array [0] = 0
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333   ac_lo=0 ac_mid=0
2334   while :; do
2335     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h.  */
2337 $4
2338 int
2339 main ()
2340 {
2341 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2342 test_array [0] = 0
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349   ac_hi=$ac_mid; break
2350 else
2351   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2352                         if test $ac_lo -le $ac_mid; then
2353                           ac_lo= ac_hi=
2354                           break
2355                         fi
2356                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359   done
2360 else
2361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 int
2365 main ()
2366 {
2367 static int test_array [1 - 2 * !(($2) < 0)];
2368 test_array [0] = 0
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 if ac_fn_c_try_compile "$LINENO"; then :
2375   ac_hi=-1 ac_mid=-1
2376   while :; do
2377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h.  */
2379 $4
2380 int
2381 main ()
2382 {
2383 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2384 test_array [0] = 0
2385
2386   ;
2387   return 0;
2388 }
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391   ac_lo=$ac_mid; break
2392 else
2393   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2394                         if test $ac_mid -le $ac_hi; then
2395                           ac_lo= ac_hi=
2396                           break
2397                         fi
2398                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401   done
2402 else
2403   ac_lo= ac_hi=
2404 fi
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 fi
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 # Binary search between lo and hi bounds.
2409 while test "x$ac_lo" != "x$ac_hi"; do
2410   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 $4
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2418 test_array [0] = 0
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   ac_hi=$ac_mid
2426 else
2427   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 done
2431 case $ac_lo in #((
2432 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2433 '') ac_retval=1 ;;
2434 esac
2435   else
2436     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h.  */
2438 $4
2439 static long int longval () { return $2; }
2440 static unsigned long int ulongval () { return $2; }
2441 #include <stdio.h>
2442 #include <stdlib.h>
2443 int
2444 main ()
2445 {
2446
2447   FILE *f = fopen ("conftest.val", "w");
2448   if (! f)
2449     return 1;
2450   if (($2) < 0)
2451     {
2452       long int i = longval ();
2453       if (i != ($2))
2454         return 1;
2455       fprintf (f, "%ld", i);
2456     }
2457   else
2458     {
2459       unsigned long int i = ulongval ();
2460       if (i != ($2))
2461         return 1;
2462       fprintf (f, "%lu", i);
2463     }
2464   /* Do not output a trailing newline, as this causes \r\n confusion
2465      on some platforms.  */
2466   return ferror (f) || fclose (f) != 0;
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 if ac_fn_c_try_run "$LINENO"; then :
2473   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2474 else
2475   ac_retval=1
2476 fi
2477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2478   conftest.$ac_objext conftest.beam conftest.$ac_ext
2479 rm -f conftest.val
2480
2481   fi
2482   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483   as_fn_set_status $ac_retval
2484
2485 } # ac_fn_c_compute_int
2486 cat >config.log <<_ACEOF
2487 This file contains any messages produced by compilers while
2488 running configure, to aid debugging if configure makes a mistake.
2489
2490 It was created by linux nfs-utils $as_me 1.2.3, which was
2491 generated by GNU Autoconf 2.65.  Invocation command line was
2492
2493   $ $0 $@
2494
2495 _ACEOF
2496 exec 5>>config.log
2497 {
2498 cat <<_ASUNAME
2499 ## --------- ##
2500 ## Platform. ##
2501 ## --------- ##
2502
2503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2508
2509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2510 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2511
2512 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2513 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2515 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2516 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2517 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2518 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2519
2520 _ASUNAME
2521
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527     $as_echo "PATH: $as_dir"
2528   done
2529 IFS=$as_save_IFS
2530
2531 } >&5
2532
2533 cat >&5 <<_ACEOF
2534
2535
2536 ## ----------- ##
2537 ## Core tests. ##
2538 ## ----------- ##
2539
2540 _ACEOF
2541
2542
2543 # Keep a trace of the command line.
2544 # Strip out --no-create and --no-recursion so they do not pile up.
2545 # Strip out --silent because we don't want to record it for future runs.
2546 # Also quote any args containing shell meta-characters.
2547 # Make two passes to allow for proper duplicate-argument suppression.
2548 ac_configure_args=
2549 ac_configure_args0=
2550 ac_configure_args1=
2551 ac_must_keep_next=false
2552 for ac_pass in 1 2
2553 do
2554   for ac_arg
2555   do
2556     case $ac_arg in
2557     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2558     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2559     | -silent | --silent | --silen | --sile | --sil)
2560       continue ;;
2561     *\'*)
2562       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2563     esac
2564     case $ac_pass in
2565     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2566     2)
2567       as_fn_append ac_configure_args1 " '$ac_arg'"
2568       if test $ac_must_keep_next = true; then
2569         ac_must_keep_next=false # Got value, back to normal.
2570       else
2571         case $ac_arg in
2572           *=* | --config-cache | -C | -disable-* | --disable-* \
2573           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2574           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2575           | -with-* | --with-* | -without-* | --without-* | --x)
2576             case "$ac_configure_args0 " in
2577               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2578             esac
2579             ;;
2580           -* ) ac_must_keep_next=true ;;
2581         esac
2582       fi
2583       as_fn_append ac_configure_args " '$ac_arg'"
2584       ;;
2585     esac
2586   done
2587 done
2588 { ac_configure_args0=; unset ac_configure_args0;}
2589 { ac_configure_args1=; unset ac_configure_args1;}
2590
2591 # When interrupted or exit'd, cleanup temporary files, and complete
2592 # config.log.  We remove comments because anyway the quotes in there
2593 # would cause problems or look ugly.
2594 # WARNING: Use '\'' to represent an apostrophe within the trap.
2595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2596 trap 'exit_status=$?
2597   # Save into config.log some information that might help in debugging.
2598   {
2599     echo
2600
2601     cat <<\_ASBOX
2602 ## ---------------- ##
2603 ## Cache variables. ##
2604 ## ---------------- ##
2605 _ASBOX
2606     echo
2607     # The following way of writing the cache mishandles newlines in values,
2608 (
2609   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2610     eval ac_val=\$$ac_var
2611     case $ac_val in #(
2612     *${as_nl}*)
2613       case $ac_var in #(
2614       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2616       esac
2617       case $ac_var in #(
2618       _ | IFS | as_nl) ;; #(
2619       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2620       *) { eval $ac_var=; unset $ac_var;} ;;
2621       esac ;;
2622     esac
2623   done
2624   (set) 2>&1 |
2625     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2626     *${as_nl}ac_space=\ *)
2627       sed -n \
2628         "s/'\''/'\''\\\\'\'''\''/g;
2629           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2630       ;; #(
2631     *)
2632       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2633       ;;
2634     esac |
2635     sort
2636 )
2637     echo
2638
2639     cat <<\_ASBOX
2640 ## ----------------- ##
2641 ## Output variables. ##
2642 ## ----------------- ##
2643 _ASBOX
2644     echo
2645     for ac_var in $ac_subst_vars
2646     do
2647       eval ac_val=\$$ac_var
2648       case $ac_val in
2649       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2650       esac
2651       $as_echo "$ac_var='\''$ac_val'\''"
2652     done | sort
2653     echo
2654
2655     if test -n "$ac_subst_files"; then
2656       cat <<\_ASBOX
2657 ## ------------------- ##
2658 ## File substitutions. ##
2659 ## ------------------- ##
2660 _ASBOX
2661       echo
2662       for ac_var in $ac_subst_files
2663       do
2664         eval ac_val=\$$ac_var
2665         case $ac_val in
2666         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2667         esac
2668         $as_echo "$ac_var='\''$ac_val'\''"
2669       done | sort
2670       echo
2671     fi
2672
2673     if test -s confdefs.h; then
2674       cat <<\_ASBOX
2675 ## ----------- ##
2676 ## confdefs.h. ##
2677 ## ----------- ##
2678 _ASBOX
2679       echo
2680       cat confdefs.h
2681       echo
2682     fi
2683     test "$ac_signal" != 0 &&
2684       $as_echo "$as_me: caught signal $ac_signal"
2685     $as_echo "$as_me: exit $exit_status"
2686   } >&5
2687   rm -f core *.core core.conftest.* &&
2688     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2689     exit $exit_status
2690 ' 0
2691 for ac_signal in 1 2 13 15; do
2692   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2693 done
2694 ac_signal=0
2695
2696 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2697 rm -f -r conftest* confdefs.h
2698
2699 $as_echo "/* confdefs.h */" > confdefs.h
2700
2701 # Predefined preprocessor variables.
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_NAME "$PACKAGE_NAME"
2705 _ACEOF
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2709 _ACEOF
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2713 _ACEOF
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_STRING "$PACKAGE_STRING"
2717 _ACEOF
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2721 _ACEOF
2722
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_URL "$PACKAGE_URL"
2725 _ACEOF
2726
2727
2728 # Let the site file select an alternate cache file if it wants to.
2729 # Prefer an explicitly selected file to automatically selected ones.
2730 ac_site_file1=NONE
2731 ac_site_file2=NONE
2732 if test -n "$CONFIG_SITE"; then
2733   ac_site_file1=$CONFIG_SITE
2734 elif test "x$prefix" != xNONE; then
2735   ac_site_file1=$prefix/share/config.site
2736   ac_site_file2=$prefix/etc/config.site
2737 else
2738   ac_site_file1=$ac_default_prefix/share/config.site
2739   ac_site_file2=$ac_default_prefix/etc/config.site
2740 fi
2741 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2742 do
2743   test "x$ac_site_file" = xNONE && continue
2744   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2745     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2746 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2747     sed 's/^/| /' "$ac_site_file" >&5
2748     . "$ac_site_file"
2749   fi
2750 done
2751
2752 if test -r "$cache_file"; then
2753   # Some versions of bash will fail to source /dev/null (special files
2754   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2755   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2756     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2757 $as_echo "$as_me: loading cache $cache_file" >&6;}
2758     case $cache_file in
2759       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2760       *)                      . "./$cache_file";;
2761     esac
2762   fi
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2765 $as_echo "$as_me: creating cache $cache_file" >&6;}
2766   >$cache_file
2767 fi
2768
2769 # Check that the precious variables saved in the cache have kept the same
2770 # value.
2771 ac_cache_corrupted=false
2772 for ac_var in $ac_precious_vars; do
2773   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2774   eval ac_new_set=\$ac_env_${ac_var}_set
2775   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2776   eval ac_new_val=\$ac_env_${ac_var}_value
2777   case $ac_old_set,$ac_new_set in
2778     set,)
2779       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2780 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2781       ac_cache_corrupted=: ;;
2782     ,set)
2783       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2784 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2785       ac_cache_corrupted=: ;;
2786     ,);;
2787     *)
2788       if test "x$ac_old_val" != "x$ac_new_val"; then
2789         # differences in whitespace do not lead to failure.
2790         ac_old_val_w=`echo x $ac_old_val`
2791         ac_new_val_w=`echo x $ac_new_val`
2792         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2793           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2794 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2795           ac_cache_corrupted=:
2796         else
2797           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2798 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2799           eval $ac_var=\$ac_old_val
2800         fi
2801         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2802 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2803         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2804 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2805       fi;;
2806   esac
2807   # Pass precious variables to config.status.
2808   if test "$ac_new_set" = set; then
2809     case $ac_new_val in
2810     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2811     *) ac_arg=$ac_var=$ac_new_val ;;
2812     esac
2813     case " $ac_configure_args " in
2814       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2815       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2816     esac
2817   fi
2818 done
2819 if $ac_cache_corrupted; then
2820   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2823 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2824   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2825 fi
2826 ## -------------------- ##
2827 ## Main body of script. ##
2828 ## -------------------- ##
2829
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835
2836
2837 ac_aux_dir=
2838 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2839   for ac_t in install-sh install.sh shtool; do
2840     if test -f "$ac_dir/$ac_t"; then
2841       ac_aux_dir=$ac_dir
2842       ac_install_sh="$ac_aux_dir/$ac_t -c"
2843       break 2
2844     fi
2845   done
2846 done
2847 if test -z "$ac_aux_dir"; then
2848   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2849 fi
2850
2851 # These three variables are undocumented and unsupported,
2852 # and are intended to be withdrawn in a future Autoconf release.
2853 # They can cause serious problems if a builder's source tree is in a directory
2854 # whose full name contains unusual characters.
2855 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2856 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2857 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2858
2859
2860 # Make sure we can run config.sub.
2861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2862   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2865 $as_echo_n "checking build system type... " >&6; }
2866 if test "${ac_cv_build+set}" = set; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   ac_build_alias=$build_alias
2870 test "x$ac_build_alias" = x &&
2871   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2872 test "x$ac_build_alias" = x &&
2873   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2874 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2875   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2876
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2879 $as_echo "$ac_cv_build" >&6; }
2880 case $ac_cv_build in
2881 *-*-*) ;;
2882 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2883 esac
2884 build=$ac_cv_build
2885 ac_save_IFS=$IFS; IFS='-'
2886 set x $ac_cv_build
2887 shift
2888 build_cpu=$1
2889 build_vendor=$2
2890 shift; shift
2891 # Remember, the first character of IFS is used to create $*,
2892 # except with old shells:
2893 build_os=$*
2894 IFS=$ac_save_IFS
2895 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2896
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2899 $as_echo_n "checking host system type... " >&6; }
2900 if test "${ac_cv_host+set}" = set; then :
2901   $as_echo_n "(cached) " >&6
2902 else
2903   if test "x$host_alias" = x; then
2904   ac_cv_host=$ac_cv_build
2905 else
2906   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2907     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2908 fi
2909
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2912 $as_echo "$ac_cv_host" >&6; }
2913 case $ac_cv_host in
2914 *-*-*) ;;
2915 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2916 esac
2917 host=$ac_cv_host
2918 ac_save_IFS=$IFS; IFS='-'
2919 set x $ac_cv_host
2920 shift
2921 host_cpu=$1
2922 host_vendor=$2
2923 shift; shift
2924 # Remember, the first character of IFS is used to create $*,
2925 # except with old shells:
2926 host_os=$*
2927 IFS=$ac_save_IFS
2928 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2929
2930
2931
2932 am__api_version='1.11'
2933
2934 # Find a good install program.  We prefer a C program (faster),
2935 # so one script is as good as another.  But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2940 # AIX /bin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # OS/2's system install, which has a completely different semantic
2946 # ./install, which can be erroneously created by make from ./install.sh.
2947 # Reject install programs that cannot install multiple files.
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2949 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2950 if test -z "$INSTALL"; then
2951 if test "${ac_cv_path_install+set}" = set; then :
2952   $as_echo_n "(cached) " >&6
2953 else
2954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959     # Account for people who put trailing slashes in PATH elements.
2960 case $as_dir/ in #((
2961   ./ | .// | /[cC]/* | \
2962   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2963   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2964   /usr/ucb/* ) ;;
2965   *)
2966     # OSF1 and SCO ODT 3.0 have their own names for install.
2967     # Don't use installbsd from OSF since it installs stuff as root
2968     # by default.
2969     for ac_prog in ginstall scoinst install; do
2970       for ac_exec_ext in '' $ac_executable_extensions; do
2971         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2972           if test $ac_prog = install &&
2973             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974             # AIX install.  It has an incompatible calling convention.
2975             :
2976           elif test $ac_prog = install &&
2977             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978             # program-specific install script used by HP pwplus--don't use.
2979             :
2980           else
2981             rm -rf conftest.one conftest.two conftest.dir
2982             echo one > conftest.one
2983             echo two > conftest.two
2984             mkdir conftest.dir
2985             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2986               test -s conftest.one && test -s conftest.two &&
2987               test -s conftest.dir/conftest.one &&
2988               test -s conftest.dir/conftest.two
2989             then
2990               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991               break 3
2992             fi
2993           fi
2994         fi
2995       done
2996     done
2997     ;;
2998 esac
2999
3000   done
3001 IFS=$as_save_IFS
3002
3003 rm -rf conftest.one conftest.two conftest.dir
3004
3005 fi
3006   if test "${ac_cv_path_install+set}" = set; then
3007     INSTALL=$ac_cv_path_install
3008   else
3009     # As a last resort, use the slow shell script.  Don't cache a
3010     # value for INSTALL within a source directory, because that will
3011     # break other packages using the cache if that directory is
3012     # removed, or if the value is a relative name.
3013     INSTALL=$ac_install_sh
3014   fi
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3017 $as_echo "$INSTALL" >&6; }
3018
3019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3020 # It thinks the first close brace ends the variable substitution.
3021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3022
3023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3024
3025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3028 $as_echo_n "checking whether build environment is sane... " >&6; }
3029 # Just in case
3030 sleep 1
3031 echo timestamp > conftest.file
3032 # Reject unsafe characters in $srcdir or the absolute working directory
3033 # name.  Accept space and tab only in the latter.
3034 am_lf='
3035 '
3036 case `pwd` in
3037   *[\\\"\#\$\&\'\`$am_lf]*)
3038     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3039 esac
3040 case $srcdir in
3041   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3042     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3043 esac
3044
3045 # Do `set' in a subshell so we don't clobber the current shell's
3046 # arguments.  Must try -L first in case configure is actually a
3047 # symlink; some systems play weird games with the mod time of symlinks
3048 # (eg FreeBSD returns the mod time of the symlink's containing
3049 # directory).
3050 if (
3051    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3052    if test "$*" = "X"; then
3053       # -L didn't work.
3054       set X `ls -t "$srcdir/configure" conftest.file`
3055    fi
3056    rm -f conftest.file
3057    if test "$*" != "X $srcdir/configure conftest.file" \
3058       && test "$*" != "X conftest.file $srcdir/configure"; then
3059
3060       # If neither matched, then we have a broken ls.  This can happen
3061       # if, for instance, CONFIG_SHELL is bash and it inherits a
3062       # broken ls alias from the environment.  This has actually
3063       # happened.  Such a system could not be considered "sane".
3064       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3065 alias in your environment" "$LINENO" 5
3066    fi
3067
3068    test "$2" = conftest.file
3069    )
3070 then
3071    # Ok.
3072    :
3073 else
3074    as_fn_error "newly created file is older than distributed files!
3075 Check your system clock" "$LINENO" 5
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3078 $as_echo "yes" >&6; }
3079 test "$program_prefix" != NONE &&
3080   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3084 # Double any \ or $.
3085 # By default was `s,x,x', remove it if useless.
3086 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3087 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3088
3089 # expand $ac_aux_dir to an absolute path
3090 am_aux_dir=`cd $ac_aux_dir && pwd`
3091
3092 if test x"${MISSING+set}" != xset; then
3093   case $am_aux_dir in
3094   *\ * | *\     *)
3095     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3096   *)
3097     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3098   esac
3099 fi
3100 # Use eval to expand $SHELL
3101 if eval "$MISSING --run true"; then
3102   am_missing_run="$MISSING --run "
3103 else
3104   am_missing_run=
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3106 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3107 fi
3108
3109 if test x"${install_sh}" != xset; then
3110   case $am_aux_dir in
3111   *\ * | *\     *)
3112     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3113   *)
3114     install_sh="\${SHELL} $am_aux_dir/install-sh"
3115   esac
3116 fi
3117
3118 # Installed binaries are usually stripped using `strip' when the user
3119 # run `make install-strip'.  However `strip' might not be the right
3120 # tool to use in cross-compilation environments, therefore Automake
3121 # will honor the `STRIP' environment variable to overrule this program.
3122 if test "$cross_compiling" != no; then
3123   if test -n "$ac_tool_prefix"; then
3124   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}strip; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if test "${ac_cv_prog_STRIP+set}" = set; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if test -n "$STRIP"; then
3132   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137   IFS=$as_save_IFS
3138   test -z "$as_dir" && as_dir=.
3139     for ac_exec_ext in '' $ac_executable_extensions; do
3140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146   done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 STRIP=$ac_cv_prog_STRIP
3152 if test -n "$STRIP"; then
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3154 $as_echo "$STRIP" >&6; }
3155 else
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161 fi
3162 if test -z "$ac_cv_prog_STRIP"; then
3163   ac_ct_STRIP=$STRIP
3164   # Extract the first word of "strip", so it can be a program name with args.
3165 set dummy strip; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$ac_ct_STRIP"; then
3172   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181     ac_cv_prog_ac_ct_STRIP="strip"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3192 if test -n "$ac_ct_STRIP"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3194 $as_echo "$ac_ct_STRIP" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200   if test "x$ac_ct_STRIP" = x; then
3201     STRIP=":"
3202   else
3203     case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209     STRIP=$ac_ct_STRIP
3210   fi
3211 else
3212   STRIP="$ac_cv_prog_STRIP"
3213 fi
3214
3215 fi
3216 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3217
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3219 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3220 if test -z "$MKDIR_P"; then
3221   if test "${ac_cv_path_mkdir+set}" = set; then :
3222   $as_echo_n "(cached) " >&6
3223 else
3224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229     for ac_prog in mkdir gmkdir; do
3230          for ac_exec_ext in '' $ac_executable_extensions; do
3231            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3232            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3233              'mkdir (GNU coreutils) '* | \
3234              'mkdir (coreutils) '* | \
3235              'mkdir (fileutils) '4.1*)
3236                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3237                break 3;;
3238            esac
3239          done
3240        done
3241   done
3242 IFS=$as_save_IFS
3243
3244 fi
3245
3246   test -d ./--version && rmdir ./--version
3247   if test "${ac_cv_path_mkdir+set}" = set; then
3248     MKDIR_P="$ac_cv_path_mkdir -p"
3249   else
3250     # As a last resort, use the slow shell script.  Don't cache a
3251     # value for MKDIR_P within a source directory, because that will
3252     # break other packages using the cache if that directory is
3253     # removed, or if the value is a relative name.
3254     MKDIR_P="$ac_install_sh -d"
3255   fi
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3258 $as_echo "$MKDIR_P" >&6; }
3259
3260 mkdir_p="$MKDIR_P"
3261 case $mkdir_p in
3262   [\\/$]* | ?:[\\/]*) ;;
3263   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3264 esac
3265
3266 for ac_prog in gawk mawk nawk awk
3267 do
3268   # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_AWK+set}" = set; then :
3273   $as_echo_n "(cached) " >&6
3274 else
3275   if test -n "$AWK"; then
3276   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283     for ac_exec_ext in '' $ac_executable_extensions; do
3284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285     ac_cv_prog_AWK="$ac_prog"
3286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287     break 2
3288   fi
3289 done
3290   done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 AWK=$ac_cv_prog_AWK
3296 if test -n "$AWK"; then
3297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3298 $as_echo "$AWK" >&6; }
3299 else
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305   test -n "$AWK" && break
3306 done
3307
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3310 set x ${MAKE-make}
3311 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3312 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3313   $as_echo_n "(cached) " >&6
3314 else
3315   cat >conftest.make <<\_ACEOF
3316 SHELL = /bin/sh
3317 all:
3318         @echo '@@@%%%=$(MAKE)=@@@%%%'
3319 _ACEOF
3320 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3322   *@@@%%%=?*=@@@%%%*)
3323     eval ac_cv_prog_make_${ac_make}_set=yes;;
3324   *)
3325     eval ac_cv_prog_make_${ac_make}_set=no;;
3326 esac
3327 rm -f conftest.make
3328 fi
3329 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3332   SET_MAKE=
3333 else
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336   SET_MAKE="MAKE=${MAKE-make}"
3337 fi
3338
3339 rm -rf .tst 2>/dev/null
3340 mkdir .tst 2>/dev/null
3341 if test -d .tst; then
3342   am__leading_dot=.
3343 else
3344   am__leading_dot=_
3345 fi
3346 rmdir .tst 2>/dev/null
3347
3348 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3349   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3350   # is not polluted with repeated "-I."
3351   am__isrc=' -I$(srcdir)'
3352   # test to see if srcdir already configured
3353   if test -f $srcdir/config.status; then
3354     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3355   fi
3356 fi
3357
3358 # test whether we have cygpath
3359 if test -z "$CYGPATH_W"; then
3360   if (cygpath --version) >/dev/null 2>/dev/null; then
3361     CYGPATH_W='cygpath -w'
3362   else
3363     CYGPATH_W=echo
3364   fi
3365 fi
3366
3367
3368 # Define the identity of the package.
3369  PACKAGE='nfs-utils'
3370  VERSION='1.2.3'
3371
3372
3373 cat >>confdefs.h <<_ACEOF
3374 #define PACKAGE "$PACKAGE"
3375 _ACEOF
3376
3377
3378 cat >>confdefs.h <<_ACEOF
3379 #define VERSION "$VERSION"
3380 _ACEOF
3381
3382 # Some tools Automake needs.
3383
3384 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3385
3386
3387 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3388
3389
3390 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3391
3392
3393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3394
3395
3396 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3397
3398 # We need awk for the "check" target.  The system "awk" is bad on
3399 # some platforms.
3400 # Always define AMTAR for backward compatibility.
3401
3402 AMTAR=${AMTAR-"${am_missing_run}tar"}
3403
3404 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3405
3406
3407
3408
3409
3410
3411
3412
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3415     # Check whether --enable-maintainer-mode was given.
3416 if test "${enable_maintainer_mode+set}" = set; then :
3417   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3418 else
3419   USE_MAINTAINER_MODE=no
3420 fi
3421
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3424    if test $USE_MAINTAINER_MODE = yes; then
3425   MAINTAINER_MODE_TRUE=
3426   MAINTAINER_MODE_FALSE='#'
3427 else
3428   MAINTAINER_MODE_TRUE='#'
3429   MAINTAINER_MODE_FALSE=
3430 fi
3431
3432   MAINT=$MAINTAINER_MODE_TRUE
3433
3434
3435
3436
3437 # Check whether --with-release was given.
3438 if test "${with_release+set}" = set; then :
3439   withval=$with_release; RELEASE=$withval
3440 else
3441   RELEASE=1
3442 fi
3443
3444
3445
3446 # Check whether --with-statedir was given.
3447 if test "${with_statedir+set}" = set; then :
3448   withval=$with_statedir; statedir=$withval
3449 else
3450   statedir=/var/lib/nfs
3451 fi
3452
3453
3454
3455 # Check whether --with-statduser was given.
3456 if test "${with_statduser+set}" = set; then :
3457   withval=$with_statduser; statduser=$withval
3458 else
3459   if test "x$cross_compiling" = "xno"; then
3460                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3461                         statduser=rpcuser
3462                 else
3463                         statduser=nobody
3464                 fi
3465         else
3466                 statduser=nobody
3467         fi
3468 fi
3469
3470
3471
3472 # Check whether --with-start-statd was given.
3473 if test "${with_start_statd+set}" = set; then :
3474   withval=$with_start_statd; startstatd=$withval
3475 else
3476   startstatd=/usr/sbin/start-statd
3477
3478 fi
3479
3480
3481
3482 cat >>confdefs.h <<_ACEOF
3483 #define START_STATD "$startstatd"
3484 _ACEOF
3485
3486 # Check whether --enable-nfsv3 was given.
3487 if test "${enable_nfsv3+set}" = set; then :
3488   enableval=$enable_nfsv3; enable_nfsv3=$enableval
3489 else
3490   enable_nfsv3=yes
3491 fi
3492
3493         if test "$enable_nfsv3" = yes; then
3494
3495 $as_echo "#define NFS3_SUPPORTED 1" >>confdefs.h
3496
3497         else
3498                 enable_nfsv3=
3499         fi
3500
3501 # Check whether --enable-nfsv4 was given.
3502 if test "${enable_nfsv4+set}" = set; then :
3503   enableval=$enable_nfsv4; enable_nfsv4=$enableval
3504 else
3505   enable_nfsv4=yes
3506 fi
3507
3508         if test "$enable_nfsv4" = yes; then
3509
3510 $as_echo "#define NFS4_SUPPORTED 1" >>confdefs.h
3511
3512                 IDMAPD=idmapd
3513         else
3514                 enable_nfsv4=
3515                 IDMAPD=
3516         fi
3517
3518
3519          if test "$enable_nfsv4" = "yes"; then
3520   CONFIG_NFSV4_TRUE=
3521   CONFIG_NFSV4_FALSE='#'
3522 else
3523   CONFIG_NFSV4_TRUE='#'
3524   CONFIG_NFSV4_FALSE=
3525 fi
3526
3527
3528 # Check whether --enable-nfsv41 was given.
3529 if test "${enable_nfsv41+set}" = set; then :
3530   enableval=$enable_nfsv41; enable_nfsv41=$enableval
3531 else
3532   enable_nfsv41=no
3533 fi
3534
3535         if test "$enable_nfsv41" = yes; then
3536
3537 $as_echo "#define NFS41_SUPPORTED 1" >>confdefs.h
3538
3539         else
3540                 enable_nfsv41=
3541         fi
3542
3543          if test "$enable_nfsv41" = "yes"; then
3544   CONFIG_NFSV41_TRUE=
3545   CONFIG_NFSV41_FALSE='#'
3546 else
3547   CONFIG_NFSV41_TRUE='#'
3548   CONFIG_NFSV41_FALSE=
3549 fi
3550
3551
3552 # Check whether --enable-gss was given.
3553 if test "${enable_gss+set}" = set; then :
3554   enableval=$enable_gss; enable_gss=$enableval
3555 else
3556   enable_gss=yes
3557 fi
3558
3559         if test "$enable_gss" = yes; then
3560
3561 $as_echo "#define GSS_SUPPORTED 1" >>confdefs.h
3562
3563                 GSSD=gssd
3564                 SVCGSSD=svcgssd
3565         else
3566                 enable_gss=
3567                 GSSD=
3568                 SVCGSSD=
3569         fi
3570
3571
3572
3573          if test "$enable_gss" = "yes"; then
3574   CONFIG_GSS_TRUE=
3575   CONFIG_GSS_FALSE='#'
3576 else
3577   CONFIG_GSS_TRUE='#'
3578   CONFIG_GSS_FALSE=
3579 fi
3580
3581 # Check whether --enable-kprefix was given.
3582 if test "${enable_kprefix+set}" = set; then :
3583   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3584 else
3585   kprefix=
3586 fi
3587
3588
3589
3590 # Check whether --with-rpcgen was given.
3591 if test "${with_rpcgen+set}" = set; then :
3592   withval=$with_rpcgen; rpcgen_path=$withval
3593 else
3594   rpcgen_path=yes
3595 fi
3596
3597         RPCGEN_PATH=
3598         if test "$rpcgen_path" == "yes"; then
3599             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3600             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3601         elif test "$rpcgen_path" != "internal"; then
3602             RPCGEN_PATH=$rpcgen_path
3603         fi
3604
3605          if test "$RPCGEN_PATH" == ""; then
3606   CONFIG_RPCGEN_TRUE=
3607   CONFIG_RPCGEN_FALSE='#'
3608 else
3609   CONFIG_RPCGEN_TRUE='#'
3610   CONFIG_RPCGEN_FALSE=
3611 fi
3612
3613 # Check whether --enable-uuid was given.
3614 if test "${enable_uuid+set}" = set; then :
3615   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3616 else
3617   choose_blkid=default
3618 fi
3619
3620 # Check whether --enable-mount was given.
3621 if test "${enable_mount+set}" = set; then :
3622   enableval=$enable_mount; enable_mount=$enableval
3623 else
3624   enable_mount=yes
3625 fi
3626
3627          if test "$enable_mount" = "yes"; then
3628   CONFIG_MOUNT_TRUE=
3629   CONFIG_MOUNT_FALSE='#'
3630 else
3631   CONFIG_MOUNT_TRUE='#'
3632   CONFIG_MOUNT_FALSE=
3633 fi
3634
3635 # Check whether --enable-tirpc was given.
3636 if test "${enable_tirpc+set}" = set; then :
3637   enableval=$enable_tirpc; enable_tirpc=$enableval
3638 else
3639   enable_tirpc='yes'
3640 fi
3641
3642 # Check whether --enable-ipv6 was given.
3643 if test "${enable_ipv6+set}" = set; then :
3644   enableval=$enable_ipv6; enable_ipv6=$enableval
3645 else
3646   enable_ipv6=no
3647 fi
3648
3649         if test "$enable_ipv6" = yes; then
3650
3651 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3652
3653         else
3654                 enable_ipv6=
3655         fi
3656
3657          if test "$enable_ipv6" = "yes"; then
3658   CONFIG_IPV6_TRUE=
3659   CONFIG_IPV6_FALSE='#'
3660 else
3661   CONFIG_IPV6_TRUE='#'
3662   CONFIG_IPV6_FALSE=
3663 fi
3664
3665
3666 if test "$enable_mount" = yes; then
3667         # Check whether --enable-mountconfig was given.
3668 if test "${enable_mountconfig+set}" = set; then :
3669   enableval=$enable_mountconfig; mountconfig=$enableval
3670 else
3671   mountconfig=no
3672 fi
3673
3674         if test "$enable_mountconfig" = yes; then
3675
3676 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3677
3678
3679 # Check whether --with-mountfile was given.
3680 if test "${with_mountfile+set}" = set; then :
3681   withval=$with_mountfile; mountfile=$withval
3682 else
3683   mountfile=/etc/nfsmount.conf
3684 fi
3685
3686
3687
3688 cat >>confdefs.h <<_ACEOF
3689 #define MOUNTOPTS_CONFFILE "$mountfile"
3690 _ACEOF
3691
3692         else
3693                 enable_mountconfig=
3694         fi
3695
3696          if test "$enable_mountconfig" = "yes"; then
3697   MOUNT_CONFIG_TRUE=
3698   MOUNT_CONFIG_FALSE='#'
3699 else
3700   MOUNT_CONFIG_TRUE='#'
3701   MOUNT_CONFIG_FALSE=
3702 fi
3703
3704 else
3705          if test "$enable_mount" = "yes"; then
3706   MOUNT_CONFIG_TRUE=
3707   MOUNT_CONFIG_FALSE='#'
3708 else
3709   MOUNT_CONFIG_TRUE='#'
3710   MOUNT_CONFIG_FALSE=
3711 fi
3712
3713 fi
3714
3715 DEPDIR="${am__leading_dot}deps"
3716
3717 ac_config_commands="$ac_config_commands depfiles"
3718
3719
3720 am_make=${MAKE-make}
3721 cat > confinc << 'END'
3722 am__doit:
3723         @echo this is the am__doit target
3724 .PHONY: am__doit
3725 END
3726 # If we don't find an include directive, just comment out the code.
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3728 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3729 am__include="#"
3730 am__quote=
3731 _am_result=none
3732 # First try GNU make style include.
3733 echo "include confinc" > confmf
3734 # Ignore all kinds of additional output from `make'.
3735 case `$am_make -s -f confmf 2> /dev/null` in #(
3736 *the\ am__doit\ target*)
3737   am__include=include
3738   am__quote=
3739   _am_result=GNU
3740   ;;
3741 esac
3742 # Now try BSD make style include.
3743 if test "$am__include" = "#"; then
3744    echo '.include "confinc"' > confmf
3745    case `$am_make -s -f confmf 2> /dev/null` in #(
3746    *the\ am__doit\ target*)
3747      am__include=.include
3748      am__quote="\""
3749      _am_result=BSD
3750      ;;
3751    esac
3752 fi
3753
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3756 $as_echo "$_am_result" >&6; }
3757 rm -f confinc confmf
3758
3759 # Check whether --enable-dependency-tracking was given.
3760 if test "${enable_dependency_tracking+set}" = set; then :
3761   enableval=$enable_dependency_tracking;
3762 fi
3763
3764 if test "x$enable_dependency_tracking" != xno; then
3765   am_depcomp="$ac_aux_dir/depcomp"
3766   AMDEPBACKSLASH='\'
3767 fi
3768  if test "x$enable_dependency_tracking" != xno; then
3769   AMDEP_TRUE=
3770   AMDEP_FALSE='#'
3771 else
3772   AMDEP_TRUE='#'
3773   AMDEP_FALSE=
3774 fi
3775
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 if test -n "$ac_tool_prefix"; then
3783   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_CC+set}" = set; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   if test -n "$CC"; then
3791   ac_cv_prog_CC="$CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_exec_ext in '' $ac_executable_extensions; do
3799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805   done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3814 else
3815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819
3820 fi
3821 if test -z "$ac_cv_prog_CC"; then
3822   ac_ct_CC=$CC
3823   # Extract the first word of "gcc", so it can be a program name with args.
3824 set dummy gcc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   if test -n "$ac_ct_CC"; then
3831   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838     for ac_exec_ext in '' $ac_executable_extensions; do
3839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840     ac_cv_prog_ac_ct_CC="gcc"
3841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842     break 2
3843   fi
3844 done
3845   done
3846 IFS=$as_save_IFS
3847
3848 fi
3849 fi
3850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851 if test -n "$ac_ct_CC"; then
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853 $as_echo "$ac_ct_CC" >&6; }
3854 else
3855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3857 fi
3858
3859   if test "x$ac_ct_CC" = x; then
3860     CC=""
3861   else
3862     case $cross_compiling:$ac_tool_warned in
3863 yes:)
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3866 ac_tool_warned=yes ;;
3867 esac
3868     CC=$ac_ct_CC
3869   fi
3870 else
3871   CC="$ac_cv_prog_CC"
3872 fi
3873
3874 if test -z "$CC"; then
3875           if test -n "$ac_tool_prefix"; then
3876     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   if test -n "$CC"; then
3884   ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891     for ac_exec_ext in '' $ac_executable_extensions; do
3892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893     ac_cv_prog_CC="${ac_tool_prefix}cc"
3894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895     break 2
3896   fi
3897 done
3898   done
3899 IFS=$as_save_IFS
3900
3901 fi
3902 fi
3903 CC=$ac_cv_prog_CC
3904 if test -n "$CC"; then
3905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 $as_echo "$CC" >&6; }
3907 else
3908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3910 fi
3911
3912
3913   fi
3914 fi
3915 if test -z "$CC"; then
3916   # Extract the first word of "cc", so it can be a program name with args.
3917 set dummy cc; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if test "${ac_cv_prog_CC+set}" = set; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   if test -n "$CC"; then
3924   ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926   ac_prog_rejected=no
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932     for ac_exec_ext in '' $ac_executable_extensions; do
3933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3935        ac_prog_rejected=yes
3936        continue
3937      fi
3938     ac_cv_prog_CC="cc"
3939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940     break 2
3941   fi
3942 done
3943   done
3944 IFS=$as_save_IFS
3945
3946 if test $ac_prog_rejected = yes; then
3947   # We found a bogon in the path, so make sure we never use it.
3948   set dummy $ac_cv_prog_CC
3949   shift
3950   if test $# != 0; then
3951     # We chose a different compiler from the bogus one.
3952     # However, it has the same basename, so the bogon will be chosen
3953     # first if we set CC to just the basename; use the full file name.
3954     shift
3955     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3956   fi
3957 fi
3958 fi
3959 fi
3960 CC=$ac_cv_prog_CC
3961 if test -n "$CC"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963 $as_echo "$CC" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970 fi
3971 if test -z "$CC"; then
3972   if test -n "$ac_tool_prefix"; then
3973   for ac_prog in cl.exe
3974   do
3975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_CC+set}" = set; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   if test -n "$CC"; then
3983   ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990     for ac_exec_ext in '' $ac_executable_extensions; do
3991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997   done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 CC=$ac_cv_prog_CC
4003 if test -n "$CC"; then
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4006 else
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011
4012     test -n "$CC" && break
4013   done
4014 fi
4015 if test -z "$CC"; then
4016   ac_ct_CC=$CC
4017   for ac_prog in cl.exe
4018 do
4019   # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   if test -n "$ac_ct_CC"; then
4027   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034     for ac_exec_ext in '' $ac_executable_extensions; do
4035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036     ac_cv_prog_ac_ct_CC="$ac_prog"
4037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041   done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049 $as_echo "$ac_ct_CC" >&6; }
4050 else
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056   test -n "$ac_ct_CC" && break
4057 done
4058
4059   if test "x$ac_ct_CC" = x; then
4060     CC=""
4061   else
4062     case $cross_compiling:$ac_tool_warned in
4063 yes:)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068     CC=$ac_ct_CC
4069   fi
4070 fi
4071
4072 fi
4073
4074
4075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error "no acceptable C compiler found in \$PATH
4078 See \`config.log' for more details." "$LINENO" 5; }
4079
4080 # Provide some information about the compiler.
4081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4082 set X $ac_compile
4083 ac_compiler=$2
4084 for ac_option in --version -v -V -qversion; do
4085   { { ac_try="$ac_compiler $ac_option >&5"
4086 case "(($ac_try" in
4087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088   *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4093   ac_status=$?
4094   if test -s conftest.err; then
4095     sed '10a\
4096 ... rest of stderr output deleted ...
4097          10q' conftest.err >conftest.er1
4098     cat conftest.er1 >&5
4099   fi
4100   rm -f conftest.er1 conftest.err
4101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102   test $ac_status = 0; }
4103 done
4104
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h.  */
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 ac_clean_files_save=$ac_clean_files
4117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4118 # Try to create an executable without -o first, disregard a.out.
4119 # It will help us diagnose broken compilers, and finding out an intuition
4120 # of exeext.
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4122 $as_echo_n "checking whether the C compiler works... " >&6; }
4123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4124
4125 # The possible output files:
4126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4127
4128 ac_rmfiles=
4129 for ac_file in $ac_files
4130 do
4131   case $ac_file in
4132     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4133     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4134   esac
4135 done
4136 rm -f $ac_rmfiles
4137
4138 if { { ac_try="$ac_link_default"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145   (eval "$ac_link_default") 2>&5
4146   ac_status=$?
4147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148   test $ac_status = 0; }; then :
4149   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4151 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4152 # so that the user can short-circuit this test for compilers unknown to
4153 # Autoconf.
4154 for ac_file in $ac_files ''
4155 do
4156   test -f "$ac_file" || continue
4157   case $ac_file in
4158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4159         ;;
4160     [ab].out )
4161         # We found the default executable, but exeext='' is most
4162         # certainly right.
4163         break;;
4164     *.* )
4165         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4166         then :; else
4167            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4168         fi
4169         # We set ac_cv_exeext here because the later test for it is not
4170         # safe: cross compilers may not add the suffix if given an `-o'
4171         # argument, so we may need to know it at that point already.
4172         # Even if this section looks crufty: it has the advantage of
4173         # actually working.
4174         break;;
4175     * )
4176         break;;
4177   esac
4178 done
4179 test "$ac_cv_exeext" = no && ac_cv_exeext=
4180
4181 else
4182   ac_file=''
4183 fi
4184 if test -z "$ac_file"; then :
4185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 { as_fn_set_status 77
4193 as_fn_error "C compiler cannot create executables
4194 See \`config.log' for more details." "$LINENO" 5; }; }
4195 else
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197 $as_echo "yes" >&6; }
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4200 $as_echo_n "checking for C compiler default output file name... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4202 $as_echo "$ac_file" >&6; }
4203 ac_exeext=$ac_cv_exeext
4204
4205 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4206 ac_clean_files=$ac_clean_files_save
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4208 $as_echo_n "checking for suffix of executables... " >&6; }
4209 if { { ac_try="$ac_link"
4210 case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216   (eval "$ac_link") 2>&5
4217   ac_status=$?
4218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219   test $ac_status = 0; }; then :
4220   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4221 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4222 # work properly (i.e., refer to `conftest.exe'), while it won't with
4223 # `rm'.
4224 for ac_file in conftest.exe conftest conftest.*; do
4225   test -f "$ac_file" || continue
4226   case $ac_file in
4227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4228     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4229           break;;
4230     * ) break;;
4231   esac
4232 done
4233 else
4234   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error "cannot compute suffix of executables: cannot compile and link
4237 See \`config.log' for more details." "$LINENO" 5; }
4238 fi
4239 rm -f conftest conftest$ac_cv_exeext
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4241 $as_echo "$ac_cv_exeext" >&6; }
4242
4243 rm -f conftest.$ac_ext
4244 EXEEXT=$ac_cv_exeext
4245 ac_exeext=$EXEEXT
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h.  */
4248 #include <stdio.h>
4249 int
4250 main ()
4251 {
4252 FILE *f = fopen ("conftest.out", "w");
4253  return ferror (f) || fclose (f) != 0;
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 ac_clean_files="$ac_clean_files conftest.out"
4260 # Check that the compiler produces executables we can run.  If not, either
4261 # the compiler is broken, or we cross compile.
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4263 $as_echo_n "checking whether we are cross compiling... " >&6; }
4264 if test "$cross_compiling" != yes; then
4265   { { ac_try="$ac_link"
4266 case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272   (eval "$ac_link") 2>&5
4273   ac_status=$?
4274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275   test $ac_status = 0; }
4276   if { ac_try='./conftest$ac_cv_exeext'
4277   { { case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283   (eval "$ac_try") 2>&5
4284   ac_status=$?
4285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286   test $ac_status = 0; }; }; then
4287     cross_compiling=no
4288   else
4289     if test "$cross_compiling" = maybe; then
4290         cross_compiling=yes
4291     else
4292         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error "cannot run C compiled programs.
4295 If you meant to cross compile, use \`--host'.
4296 See \`config.log' for more details." "$LINENO" 5; }
4297     fi
4298   fi
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4301 $as_echo "$cross_compiling" >&6; }
4302
4303 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4304 ac_clean_files=$ac_clean_files_save
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4306 $as_echo_n "checking for suffix of object files... " >&6; }
4307 if test "${ac_cv_objext+set}" = set; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h.  */
4312
4313 int
4314 main ()
4315 {
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.o conftest.obj
4322 if { { ac_try="$ac_compile"
4323 case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329   (eval "$ac_compile") 2>&5
4330   ac_status=$?
4331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332   test $ac_status = 0; }; then :
4333   for ac_file in conftest.o conftest.obj conftest.*; do
4334   test -f "$ac_file" || continue;
4335   case $ac_file in
4336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4337     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4338        break;;
4339   esac
4340 done
4341 else
4342   $as_echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error "cannot compute suffix of object files: cannot compile
4348 See \`config.log' for more details." "$LINENO" 5; }
4349 fi
4350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4353 $as_echo "$ac_cv_objext" >&6; }
4354 OBJEXT=$ac_cv_objext
4355 ac_objext=$OBJEXT
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4357 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4358 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363
4364 int
4365 main ()
4366 {
4367 #ifndef __GNUC__
4368        choke me
4369 #endif
4370
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376   ac_compiler_gnu=yes
4377 else
4378   ac_compiler_gnu=no
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4385 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4386 if test $ac_compiler_gnu = yes; then
4387   GCC=yes
4388 else
4389   GCC=
4390 fi
4391 ac_test_CFLAGS=${CFLAGS+set}
4392 ac_save_CFLAGS=$CFLAGS
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4394 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4395 if test "${ac_cv_prog_cc_g+set}" = set; then :
4396   $as_echo_n "(cached) " >&6
4397 else
4398   ac_save_c_werror_flag=$ac_c_werror_flag
4399    ac_c_werror_flag=yes
4400    ac_cv_prog_cc_g=no
4401    CFLAGS="-g"
4402    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h.  */
4404
4405 int
4406 main ()
4407 {
4408
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 if ac_fn_c_try_compile "$LINENO"; then :
4414   ac_cv_prog_cc_g=yes
4415 else
4416   CFLAGS=""
4417       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h.  */
4419
4420 int
4421 main ()
4422 {
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429
4430 else
4431   ac_c_werror_flag=$ac_save_c_werror_flag
4432          CFLAGS="-g"
4433          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h.  */
4435
4436 int
4437 main ()
4438 {
4439
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 if ac_fn_c_try_compile "$LINENO"; then :
4445   ac_cv_prog_cc_g=yes
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452    ac_c_werror_flag=$ac_save_c_werror_flag
4453 fi
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4455 $as_echo "$ac_cv_prog_cc_g" >&6; }
4456 if test "$ac_test_CFLAGS" = set; then
4457   CFLAGS=$ac_save_CFLAGS
4458 elif test $ac_cv_prog_cc_g = yes; then
4459   if test "$GCC" = yes; then
4460     CFLAGS="-g -O2"
4461   else
4462     CFLAGS="-g"
4463   fi
4464 else
4465   if test "$GCC" = yes; then
4466     CFLAGS="-O2"
4467   else
4468     CFLAGS=
4469   fi
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4472 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4473 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   ac_cv_prog_cc_c89=no
4477 ac_save_CC=$CC
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480 #include <stdarg.h>
4481 #include <stdio.h>
4482 #include <sys/types.h>
4483 #include <sys/stat.h>
4484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4485 struct buf { int x; };
4486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4487 static char *e (p, i)
4488      char **p;
4489      int i;
4490 {
4491   return p[i];
4492 }
4493 static char *f (char * (*g) (char **, int), char **p, ...)
4494 {
4495   char *s;
4496   va_list v;
4497   va_start (v,p);
4498   s = g (p, va_arg (v,int));
4499   va_end (v);
4500   return s;
4501 }
4502
4503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4504    function prototypes and stuff, but not '\xHH' hex character constants.
4505    These don't provoke an error unfortunately, instead are silently treated
4506    as 'x'.  The following induces an error, until -std is added to get
4507    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4508    array size at least.  It's necessary to write '\x00'==0 to get something
4509    that's true only with -std.  */
4510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4511
4512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4513    inside strings and character constants.  */
4514 #define FOO(x) 'x'
4515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4516
4517 int test (int i, double x);
4518 struct s1 {int (*f) (int a);};
4519 struct s2 {int (*f) (double a);};
4520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4521 int argc;
4522 char **argv;
4523 int
4524 main ()
4525 {
4526 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4532         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4533 do
4534   CC="$ac_save_CC $ac_arg"
4535   if ac_fn_c_try_compile "$LINENO"; then :
4536   ac_cv_prog_cc_c89=$ac_arg
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext
4539   test "x$ac_cv_prog_cc_c89" != "xno" && break
4540 done
4541 rm -f conftest.$ac_ext
4542 CC=$ac_save_CC
4543
4544 fi
4545 # AC_CACHE_VAL
4546 case "x$ac_cv_prog_cc_c89" in
4547   x)
4548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4549 $as_echo "none needed" >&6; } ;;
4550   xno)
4551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4552 $as_echo "unsupported" >&6; } ;;
4553   *)
4554     CC="$CC $ac_cv_prog_cc_c89"
4555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4557 esac
4558 if test "x$ac_cv_prog_cc_c89" != xno; then :
4559
4560 fi
4561
4562 ac_ext=c
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567
4568 depcc="$CC"   am_compiler_list=
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571 $as_echo_n "checking dependency style of $depcc... " >&6; }
4572 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4576   # We make a subdir and do the tests there.  Otherwise we can end up
4577   # making bogus files that we don't know about and never remove.  For
4578   # instance it was reported that on HP-UX the gcc test will end up
4579   # making a dummy file named `D' -- because `-MD' means `put the output
4580   # in D'.
4581   mkdir conftest.dir
4582   # Copy depcomp to subdir because otherwise we won't find it if we're
4583   # using a relative directory.
4584   cp "$am_depcomp" conftest.dir
4585   cd conftest.dir
4586   # We will build objects and dependencies in a subdirectory because
4587   # it helps to detect inapplicable dependency modes.  For instance
4588   # both Tru64's cc and ICC support -MD to output dependencies as a
4589   # side effect of compilation, but ICC will put the dependencies in
4590   # the current directory while Tru64 will put them in the object
4591   # directory.
4592   mkdir sub
4593
4594   am_cv_CC_dependencies_compiler_type=none
4595   if test "$am_compiler_list" = ""; then
4596      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4597   fi
4598   am__universal=false
4599   case " $depcc " in #(
4600      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4601      esac
4602
4603   for depmode in $am_compiler_list; do
4604     # Setup a source with many dependencies, because some compilers
4605     # like to wrap large dependency lists on column 80 (with \), and
4606     # we should not choose a depcomp mode which is confused by this.
4607     #
4608     # We need to recreate these files for each test, as the compiler may
4609     # overwrite some of them when testing with obscure command lines.
4610     # This happens at least with the AIX C compiler.
4611     : > sub/conftest.c
4612     for i in 1 2 3 4 5 6; do
4613       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4614       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4615       # Solaris 8's {/usr,}/bin/sh.
4616       touch sub/conftst$i.h
4617     done
4618     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4619
4620     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4621     # mode.  It turns out that the SunPro C++ compiler does not properly
4622     # handle `-M -o', and we need to detect this.  Also, some Intel
4623     # versions had trouble with output in subdirs
4624     am__obj=sub/conftest.${OBJEXT-o}
4625     am__minus_obj="-o $am__obj"
4626     case $depmode in
4627     gcc)
4628       # This depmode causes a compiler race in universal mode.
4629       test "$am__universal" = false || continue
4630       ;;
4631     nosideeffect)
4632       # after this tag, mechanisms are not by side-effect, so they'll
4633       # only be used when explicitly requested
4634       if test "x$enable_dependency_tracking" = xyes; then
4635         continue
4636       else
4637         break
4638       fi
4639       ;;
4640     msvisualcpp | msvcmsys)
4641       # This compiler won't grok `-c -o', but also, the minuso test has
4642       # not run yet.  These depmodes are late enough in the game, and
4643       # so weak that their functioning should not be impacted.
4644       am__obj=conftest.${OBJEXT-o}
4645       am__minus_obj=
4646       ;;
4647     none) break ;;
4648     esac
4649     if depmode=$depmode \
4650        source=sub/conftest.c object=$am__obj \
4651        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4652        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4653          >/dev/null 2>conftest.err &&
4654        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4655        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4657        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658       # icc doesn't choke on unknown options, it will just issue warnings
4659       # or remarks (even with -Werror).  So we grep stderr for any message
4660       # that says an option was ignored or not supported.
4661       # When given -MP, icc 7.0 and 7.1 complain thusly:
4662       #   icc: Command line warning: ignoring option '-M'; no argument required
4663       # The diagnosis changed in icc 8.0:
4664       #   icc: Command line remark: option '-MP' not supported
4665       if (grep 'ignoring option' conftest.err ||
4666           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667         am_cv_CC_dependencies_compiler_type=$depmode
4668         break
4669       fi
4670     fi
4671   done
4672
4673   cd ..
4674   rm -rf conftest.dir
4675 else
4676   am_cv_CC_dependencies_compiler_type=none
4677 fi
4678
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4683
4684  if
4685   test "x$enable_dependency_tracking" != xno \
4686   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4687   am__fastdepCC_TRUE=
4688   am__fastdepCC_FALSE='#'
4689 else
4690   am__fastdepCC_TRUE='#'
4691   am__fastdepCC_FALSE=
4692 fi
4693
4694
4695
4696 ac_ext=c
4697 ac_cpp='$CPP $CPPFLAGS'
4698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4702 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4703 # On Suns, sometimes $CPP names a directory.
4704 if test -n "$CPP" && test -d "$CPP"; then
4705   CPP=
4706 fi
4707 if test -z "$CPP"; then
4708   if test "${ac_cv_prog_CPP+set}" = set; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711       # Double quotes because CPP needs to be expanded
4712     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4713     do
4714       ac_preproc_ok=false
4715 for ac_c_preproc_warn_flag in '' yes
4716 do
4717   # Use a header file that comes with gcc, so configuring glibc
4718   # with a fresh cross-compiler works.
4719   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720   # <limits.h> exists even on freestanding compilers.
4721   # On the NeXT, cc -E runs the code through the compiler's parser,
4722   # not just through cpp. "Syntax error" is here to catch this case.
4723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h.  */
4725 #ifdef __STDC__
4726 # include <limits.h>
4727 #else
4728 # include <assert.h>
4729 #endif
4730                      Syntax error
4731 _ACEOF
4732 if ac_fn_c_try_cpp "$LINENO"; then :
4733
4734 else
4735   # Broken: fails on valid input.
4736 continue
4737 fi
4738 rm -f conftest.err conftest.$ac_ext
4739
4740   # OK, works on sane cases.  Now check whether nonexistent headers
4741   # can be detected and how.
4742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744 #include <ac_nonexistent.h>
4745 _ACEOF
4746 if ac_fn_c_try_cpp "$LINENO"; then :
4747   # Broken: success on invalid input.
4748 continue
4749 else
4750   # Passes both tests.
4751 ac_preproc_ok=:
4752 break
4753 fi
4754 rm -f conftest.err conftest.$ac_ext
4755
4756 done
4757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4758 rm -f conftest.err conftest.$ac_ext
4759 if $ac_preproc_ok; then :
4760   break
4761 fi
4762
4763     done
4764     ac_cv_prog_CPP=$CPP
4765
4766 fi
4767   CPP=$ac_cv_prog_CPP
4768 else
4769   ac_cv_prog_CPP=$CPP
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4772 $as_echo "$CPP" >&6; }
4773 ac_preproc_ok=false
4774 for ac_c_preproc_warn_flag in '' yes
4775 do
4776   # Use a header file that comes with gcc, so configuring glibc
4777   # with a fresh cross-compiler works.
4778   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779   # <limits.h> exists even on freestanding compilers.
4780   # On the NeXT, cc -E runs the code through the compiler's parser,
4781   # not just through cpp. "Syntax error" is here to catch this case.
4782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784 #ifdef __STDC__
4785 # include <limits.h>
4786 #else
4787 # include <assert.h>
4788 #endif
4789                      Syntax error
4790 _ACEOF
4791 if ac_fn_c_try_cpp "$LINENO"; then :
4792
4793 else
4794   # Broken: fails on valid input.
4795 continue
4796 fi
4797 rm -f conftest.err conftest.$ac_ext
4798
4799   # OK, works on sane cases.  Now check whether nonexistent headers
4800   # can be detected and how.
4801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h.  */
4803 #include <ac_nonexistent.h>
4804 _ACEOF
4805 if ac_fn_c_try_cpp "$LINENO"; then :
4806   # Broken: success on invalid input.
4807 continue
4808 else
4809   # Passes both tests.
4810 ac_preproc_ok=:
4811 break
4812 fi
4813 rm -f conftest.err conftest.$ac_ext
4814
4815 done
4816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4817 rm -f conftest.err conftest.$ac_ext
4818 if $ac_preproc_ok; then :
4819
4820 else
4821   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4823 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4824 See \`config.log' for more details." "$LINENO" 5; }
4825 fi
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4835 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4836 if test "${ac_cv_path_GREP+set}" = set; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   if test -z "$GREP"; then
4840   ac_path_GREP_found=false
4841   # Loop through the user's path and test for each of PROGNAME-LIST
4842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4844 do
4845   IFS=$as_save_IFS
4846   test -z "$as_dir" && as_dir=.
4847     for ac_prog in grep ggrep; do
4848     for ac_exec_ext in '' $ac_executable_extensions; do
4849       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4850       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4851 # Check for GNU ac_path_GREP and select it if it is found.
4852   # Check for GNU $ac_path_GREP
4853 case `"$ac_path_GREP" --version 2>&1` in
4854 *GNU*)
4855   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4856 *)
4857   ac_count=0
4858   $as_echo_n 0123456789 >"conftest.in"
4859   while :
4860   do
4861     cat "conftest.in" "conftest.in" >"conftest.tmp"
4862     mv "conftest.tmp" "conftest.in"
4863     cp "conftest.in" "conftest.nl"
4864     $as_echo 'GREP' >> "conftest.nl"
4865     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4866     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4867     as_fn_arith $ac_count + 1 && ac_count=$as_val
4868     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4869       # Best one so far, save it but keep looking for a better one
4870       ac_cv_path_GREP="$ac_path_GREP"
4871       ac_path_GREP_max=$ac_count
4872     fi
4873     # 10*(2^10) chars as input seems more than enough
4874     test $ac_count -gt 10 && break
4875   done
4876   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4877 esac
4878
4879       $ac_path_GREP_found && break 3
4880     done
4881   done
4882   done
4883 IFS=$as_save_IFS
4884   if test -z "$ac_cv_path_GREP"; then
4885     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4886   fi
4887 else
4888   ac_cv_path_GREP=$GREP
4889 fi
4890
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4893 $as_echo "$ac_cv_path_GREP" >&6; }
4894  GREP="$ac_cv_path_GREP"
4895
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4898 $as_echo_n "checking for egrep... " >&6; }
4899 if test "${ac_cv_path_EGREP+set}" = set; then :
4900   $as_echo_n "(cached) " >&6
4901 else
4902   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4903    then ac_cv_path_EGREP="$GREP -E"
4904    else
4905      if test -z "$EGREP"; then
4906   ac_path_EGREP_found=false
4907   # Loop through the user's path and test for each of PROGNAME-LIST
4908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913     for ac_prog in egrep; do
4914     for ac_exec_ext in '' $ac_executable_extensions; do
4915       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4916       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4917 # Check for GNU ac_path_EGREP and select it if it is found.
4918   # Check for GNU $ac_path_EGREP
4919 case `"$ac_path_EGREP" --version 2>&1` in
4920 *GNU*)
4921   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4922 *)
4923   ac_count=0
4924   $as_echo_n 0123456789 >"conftest.in"
4925   while :
4926   do
4927     cat "conftest.in" "conftest.in" >"conftest.tmp"
4928     mv "conftest.tmp" "conftest.in"
4929     cp "conftest.in" "conftest.nl"
4930     $as_echo 'EGREP' >> "conftest.nl"
4931     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4932     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4933     as_fn_arith $ac_count + 1 && ac_count=$as_val
4934     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4935       # Best one so far, save it but keep looking for a better one
4936       ac_cv_path_EGREP="$ac_path_EGREP"
4937       ac_path_EGREP_max=$ac_count
4938     fi
4939     # 10*(2^10) chars as input seems more than enough
4940     test $ac_count -gt 10 && break
4941   done
4942   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4943 esac
4944
4945       $ac_path_EGREP_found && break 3
4946     done
4947   done
4948   done
4949 IFS=$as_save_IFS
4950   if test -z "$ac_cv_path_EGREP"; then
4951     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4952   fi
4953 else
4954   ac_cv_path_EGREP=$EGREP
4955 fi
4956
4957    fi
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4960 $as_echo "$ac_cv_path_EGREP" >&6; }
4961  EGREP="$ac_cv_path_EGREP"
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4965 $as_echo_n "checking for ANSI C header files... " >&6; }
4966 if test "${ac_cv_header_stdc+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h.  */
4971 #include <stdlib.h>
4972 #include <stdarg.h>
4973 #include <string.h>
4974 #include <float.h>
4975
4976 int
4977 main ()
4978 {
4979
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985   ac_cv_header_stdc=yes
4986 else
4987   ac_cv_header_stdc=no
4988 fi
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990
4991 if test $ac_cv_header_stdc = yes; then
4992   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h.  */
4995 #include <string.h>
4996
4997 _ACEOF
4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999   $EGREP "memchr" >/dev/null 2>&1; then :
5000
5001 else
5002   ac_cv_header_stdc=no
5003 fi
5004 rm -f conftest*
5005
5006 fi
5007
5008 if test $ac_cv_header_stdc = yes; then
5009   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h.  */
5012 #include <stdlib.h>
5013
5014 _ACEOF
5015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5016   $EGREP "free" >/dev/null 2>&1; then :
5017
5018 else
5019   ac_cv_header_stdc=no
5020 fi
5021 rm -f conftest*
5022
5023 fi
5024
5025 if test $ac_cv_header_stdc = yes; then
5026   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5027   if test "$cross_compiling" = yes; then :
5028   :
5029 else
5030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h.  */
5032 #include <ctype.h>
5033 #include <stdlib.h>
5034 #if ((' ' & 0x0FF) == 0x020)
5035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5037 #else
5038 # define ISLOWER(c) \
5039                    (('a' <= (c) && (c) <= 'i') \
5040                      || ('j' <= (c) && (c) <= 'r') \
5041                      || ('s' <= (c) && (c) <= 'z'))
5042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5043 #endif
5044
5045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5046 int
5047 main ()
5048 {
5049   int i;
5050   for (i = 0; i < 256; i++)
5051     if (XOR (islower (i), ISLOWER (i))
5052         || toupper (i) != TOUPPER (i))
5053       return 2;
5054   return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_c_try_run "$LINENO"; then :
5058
5059 else
5060   ac_cv_header_stdc=no
5061 fi
5062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5063   conftest.$ac_objext conftest.beam conftest.$ac_ext
5064 fi
5065
5066 fi
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5069 $as_echo "$ac_cv_header_stdc" >&6; }
5070 if test $ac_cv_header_stdc = yes; then
5071
5072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5073
5074 fi
5075
5076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5078                   inttypes.h stdint.h unistd.h
5079 do :
5080   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5082 "
5083 eval as_val=\$$as_ac_Header
5084    if test "x$as_val" = x""yes; then :
5085   cat >>confdefs.h <<_ACEOF
5086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087 _ACEOF
5088
5089 fi
5090
5091 done
5092
5093
5094
5095
5096
5097 # Check whether --with-tirpcinclude was given.
5098 if test "${with_tirpcinclude+set}" = set; then :
5099   withval=$with_tirpcinclude; tirpc_header_dir=$withval
5100 else
5101   tirpc_header_dir=/usr/include/tirpc
5102 fi
5103
5104
5105
5106   if test "$enable_tirpc" != "no"; then
5107
5108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
5109 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
5110 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   ac_check_lib_save_LIBS=$LIBS
5114 LIBS="-ltirpc  $LIBS"
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h.  */
5117
5118 /* Override any GCC internal prototype to avoid an error.
5119    Use char because int might match the return type of a GCC
5120    builtin and then its argument prototype would still apply.  */
5121 #ifdef __cplusplus
5122 extern "C"
5123 #endif
5124 char clnt_tli_create ();
5125 int
5126 main ()
5127 {
5128 return clnt_tli_create ();
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_link "$LINENO"; then :
5134   ac_cv_lib_tirpc_clnt_tli_create=yes
5135 else
5136   ac_cv_lib_tirpc_clnt_tli_create=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext \
5139     conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5143 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5144 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then :
5145   cat >>confdefs.h <<_ACEOF
5146 #define HAVE_LIBTIRPC 1
5147 _ACEOF
5148
5149   LIBS="-ltirpc $LIBS"
5150
5151 else
5152   if test "$enable_tirpc" = "yes"; then
5153                         as_fn_error "libtirpc not found." "$LINENO" 5
5154                   else
5155                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5156 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5157                         enable_tirpc="no"
5158                   fi
5159 fi
5160
5161   fi
5162
5163   if test "$enable_tirpc" != "no"; then
5164             for ac_header in ${tirpc_header_dir}/netconfig.h
5165 do :
5166   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5167 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5168 eval as_val=\$$as_ac_Header
5169    if test "x$as_val" = x""yes; then :
5170   cat >>confdefs.h <<_ACEOF
5171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172 _ACEOF
5173  AM_CPPFLAGS="-I${tirpc_header_dir}"
5174
5175 else
5176   if test "$enable_tirpc" = "yes"; then
5177                          as_fn_error "libtirpc headers not found." "$LINENO" 5
5178                        else
5179                          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5180 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5181                          enable_tirpc="no"
5182                        fi
5183 fi
5184
5185 done
5186
5187
5188   fi
5189
5190
5191
5192
5193
5194     ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5195 if test "x$ac_cv_func_prctl" = x""yes; then :
5196
5197 fi
5198
5199
5200   # Check whether --enable-caps was given.
5201 if test "${enable_caps+set}" = set; then :
5202   enableval=$enable_caps;
5203 fi
5204
5205
5206   LIBCAP=
5207
5208   if test "x$enable_caps" != "xno" ; then
5209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5210 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5211 if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   ac_check_lib_save_LIBS=$LIBS
5215 LIBS="-lcap  $LIBS"
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h.  */
5218
5219 /* Override any GCC internal prototype to avoid an error.
5220    Use char because int might match the return type of a GCC
5221    builtin and then its argument prototype would still apply.  */
5222 #ifdef __cplusplus
5223 extern "C"
5224 #endif
5225 char cap_get_proc ();
5226 int
5227 main ()
5228 {
5229 return cap_get_proc ();
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 if ac_fn_c_try_link "$LINENO"; then :
5235   ac_cv_lib_cap_cap_get_proc=yes
5236 else
5237   ac_cv_lib_cap_cap_get_proc=no
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext \
5240     conftest$ac_exeext conftest.$ac_ext
5241 LIBS=$ac_check_lib_save_LIBS
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5244 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5245 if test "x$ac_cv_lib_cap_cap_get_proc" = x""yes; then :
5246   LIBCAP=-lcap
5247 fi
5248
5249
5250     for ac_header in sys/capability.h
5251 do :
5252   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5253 if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
5254   cat >>confdefs.h <<_ACEOF
5255 #define HAVE_SYS_CAPABILITY_H 1
5256 _ACEOF
5257
5258 else
5259   test "x$enable_caps" = "xyes" && as_fn_error "libcap headers not found." "$LINENO" 5
5260 fi
5261
5262 done
5263
5264   fi
5265
5266
5267
5268
5269
5270 # Check whether user wants TCP wrappers support
5271
5272   TCPW_MSG="no"
5273
5274 # Check whether --with-tcp-wrappers was given.
5275 if test "${with_tcp_wrappers+set}" = set; then :
5276   withval=$with_tcp_wrappers; with_tcpw=$withval
5277 else
5278   with_tcpw=yes
5279 fi
5280
5281         if test "x$with_tcpw" != "xno" ; then
5282             saved_LIBS="$LIBS"
5283             saved_LDFLAGS="$LDFLAGS"
5284             saved_CPPFLAGS="$CPPFLAGS"
5285             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5286                 if test -d "${with_tcpw}/lib"; then
5287                     if test -n "${need_dash_r}"; then
5288                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5289                     else
5290                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5291                     fi
5292                 else
5293                     if test -n "${need_dash_r}"; then
5294                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5295                     else
5296                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5297                     fi
5298                 fi
5299                 if test -d "${with_tcpw}/include"; then
5300                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5301                 else
5302                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5303                 fi
5304             fi
5305             LIBWRAP="-lwrap"
5306             LIBS="$LIBWRAP $LIBS"
5307             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5308 $as_echo_n "checking for libwrap... " >&6; }
5309             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h.  */
5311
5312                 #include <tcpd.h>
5313                 int deny_severity = 0, allow_severity = 0;
5314
5315 int
5316 main ()
5317 {
5318 hosts_access(0);
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_link "$LINENO"; then :
5324
5325                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5327
5328
5329 $as_echo "#define LIBWRAP 1" >>confdefs.h
5330
5331
5332 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5333
5334
5335 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5336
5337                 TCPW_MSG="yes"
5338
5339 else
5340
5341                 as_fn_error "*** libwrap missing" "$LINENO" 5
5342
5343
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext \
5346     conftest$ac_exeext conftest.$ac_ext
5347             LIBS="$saved_LIBS"
5348         fi
5349
5350
5351
5352
5353
5354 # Arrange for large-file support
5355 # Check whether --enable-largefile was given.
5356 if test "${enable_largefile+set}" = set; then :
5357   enableval=$enable_largefile;
5358 fi
5359
5360 if test "$enable_largefile" != no; then
5361
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5363 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5364 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   ac_cv_sys_largefile_CC=no
5368      if test "$GCC" != yes; then
5369        ac_save_CC=$CC
5370        while :; do
5371          # IRIX 6.2 and later do not support large files by default,
5372          # so use the C compiler's -n32 option if that helps.
5373          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h.  */
5375 #include <sys/types.h>
5376  /* Check that off_t can represent 2**63 - 1 correctly.
5377     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5378     since some C++ compilers masquerading as C compilers
5379     incorrectly reject 9223372036854775807.  */
5380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5381   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5382                        && LARGE_OFF_T % 2147483647 == 1)
5383                       ? 1 : -1];
5384 int
5385 main ()
5386 {
5387
5388   ;
5389   return 0;
5390 }
5391 _ACEOF
5392          if ac_fn_c_try_compile "$LINENO"; then :
5393   break
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext
5396          CC="$CC -n32"
5397          if ac_fn_c_try_compile "$LINENO"; then :
5398   ac_cv_sys_largefile_CC=' -n32'; break
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext
5401          break
5402        done
5403        CC=$ac_save_CC
5404        rm -f conftest.$ac_ext
5405     fi
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5408 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5409   if test "$ac_cv_sys_largefile_CC" != no; then
5410     CC=$CC$ac_cv_sys_largefile_CC
5411   fi
5412
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5414 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5415 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   while :; do
5419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h.  */
5421 #include <sys/types.h>
5422  /* Check that off_t can represent 2**63 - 1 correctly.
5423     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5424     since some C++ compilers masquerading as C compilers
5425     incorrectly reject 9223372036854775807.  */
5426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5427   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5428                        && LARGE_OFF_T % 2147483647 == 1)
5429                       ? 1 : -1];
5430 int
5431 main ()
5432 {
5433
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439   ac_cv_sys_file_offset_bits=no; break
5440 fi
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h.  */
5444 #define _FILE_OFFSET_BITS 64
5445 #include <sys/types.h>
5446  /* Check that off_t can represent 2**63 - 1 correctly.
5447     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448     since some C++ compilers masquerading as C compilers
5449     incorrectly reject 9223372036854775807.  */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452                        && LARGE_OFF_T % 2147483647 == 1)
5453                       ? 1 : -1];
5454 int
5455 main ()
5456 {
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463   ac_cv_sys_file_offset_bits=64; break
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466   ac_cv_sys_file_offset_bits=unknown
5467   break
5468 done
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5471 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5472 case $ac_cv_sys_file_offset_bits in #(
5473   no | unknown) ;;
5474   *)
5475 cat >>confdefs.h <<_ACEOF
5476 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5477 _ACEOF
5478 ;;
5479 esac
5480 rm -rf conftest*
5481   if test $ac_cv_sys_file_offset_bits = unknown; then
5482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5483 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5484 if test "${ac_cv_sys_large_files+set}" = set; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   while :; do
5488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h.  */
5490 #include <sys/types.h>
5491  /* Check that off_t can represent 2**63 - 1 correctly.
5492     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5493     since some C++ compilers masquerading as C compilers
5494     incorrectly reject 9223372036854775807.  */
5495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5496   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5497                        && LARGE_OFF_T % 2147483647 == 1)
5498                       ? 1 : -1];
5499 int
5500 main ()
5501 {
5502
5503   ;
5504   return 0;
5505 }
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508   ac_cv_sys_large_files=no; break
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h.  */
5513 #define _LARGE_FILES 1
5514 #include <sys/types.h>
5515  /* Check that off_t can represent 2**63 - 1 correctly.
5516     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517     since some C++ compilers masquerading as C compilers
5518     incorrectly reject 9223372036854775807.  */
5519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521                        && LARGE_OFF_T % 2147483647 == 1)
5522                       ? 1 : -1];
5523 int
5524 main ()
5525 {
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532   ac_cv_sys_large_files=1; break
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535   ac_cv_sys_large_files=unknown
5536   break
5537 done
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5540 $as_echo "$ac_cv_sys_large_files" >&6; }
5541 case $ac_cv_sys_large_files in #(
5542   no | unknown) ;;
5543   *)
5544 cat >>confdefs.h <<_ACEOF
5545 #define _LARGE_FILES $ac_cv_sys_large_files
5546 _ACEOF
5547 ;;
5548 esac
5549 rm -rf conftest*
5550   fi
5551 fi
5552
5553
5554
5555 ac_config_headers="$ac_config_headers support/include/config.h"
5556
5557
5558 # Checks for programs.
5559 ac_ext=cpp
5560 ac_cpp='$CXXCPP $CPPFLAGS'
5561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5564 if test -z "$CXX"; then
5565   if test -n "$CCC"; then
5566     CXX=$CCC
5567   else
5568     if test -n "$ac_tool_prefix"; then
5569   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5570   do
5571     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if test "${ac_cv_prog_CXX+set}" = set; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   if test -n "$CXX"; then
5579   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586     for ac_exec_ext in '' $ac_executable_extensions; do
5587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593   done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 CXX=$ac_cv_prog_CXX
5599 if test -n "$CXX"; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5601 $as_echo "$CXX" >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608     test -n "$CXX" && break
5609   done
5610 fi
5611 if test -z "$CXX"; then
5612   ac_ct_CXX=$CXX
5613   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5614 do
5615   # Extract the first word of "$ac_prog", so it can be a program name with args.
5616 set dummy $ac_prog; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   if test -n "$ac_ct_CXX"; then
5623   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632     ac_cv_prog_ac_ct_CXX="$ac_prog"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5643 if test -n "$ac_ct_CXX"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5645 $as_echo "$ac_ct_CXX" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651
5652   test -n "$ac_ct_CXX" && break
5653 done
5654
5655   if test "x$ac_ct_CXX" = x; then
5656     CXX="g++"
5657   else
5658     case $cross_compiling:$ac_tool_warned in
5659 yes:)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664     CXX=$ac_ct_CXX
5665   fi
5666 fi
5667
5668   fi
5669 fi
5670 # Provide some information about the compiler.
5671 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5672 set X $ac_compile
5673 ac_compiler=$2
5674 for ac_option in --version -v -V -qversion; do
5675   { { ac_try="$ac_compiler $ac_option >&5"
5676 case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5683   ac_status=$?
5684   if test -s conftest.err; then
5685     sed '10a\
5686 ... rest of stderr output deleted ...
5687          10q' conftest.err >conftest.er1
5688     cat conftest.er1 >&5
5689   fi
5690   rm -f conftest.er1 conftest.err
5691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692   test $ac_status = 0; }
5693 done
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5696 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5698   $as_echo_n "(cached) " >&6
5699 else
5700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h.  */
5702
5703 int
5704 main ()
5705 {
5706 #ifndef __GNUC__
5707        choke me
5708 #endif
5709
5710   ;
5711   return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_cxx_try_compile "$LINENO"; then :
5715   ac_compiler_gnu=yes
5716 else
5717   ac_compiler_gnu=no
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5721
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5724 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5725 if test $ac_compiler_gnu = yes; then
5726   GXX=yes
5727 else
5728   GXX=
5729 fi
5730 ac_test_CXXFLAGS=${CXXFLAGS+set}
5731 ac_save_CXXFLAGS=$CXXFLAGS
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5733 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5734 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5738    ac_cxx_werror_flag=yes
5739    ac_cv_prog_cxx_g=no
5740    CXXFLAGS="-g"
5741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h.  */
5743
5744 int
5745 main ()
5746 {
5747
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_cxx_try_compile "$LINENO"; then :
5753   ac_cv_prog_cxx_g=yes
5754 else
5755   CXXFLAGS=""
5756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758
5759 int
5760 main ()
5761 {
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 if ac_fn_cxx_try_compile "$LINENO"; then :
5768
5769 else
5770   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5771          CXXFLAGS="-g"
5772          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h.  */
5774
5775 int
5776 main ()
5777 {
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 if ac_fn_cxx_try_compile "$LINENO"; then :
5784   ac_cv_prog_cxx_g=yes
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5794 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5795 if test "$ac_test_CXXFLAGS" = set; then
5796   CXXFLAGS=$ac_save_CXXFLAGS
5797 elif test $ac_cv_prog_cxx_g = yes; then
5798   if test "$GXX" = yes; then
5799     CXXFLAGS="-g -O2"
5800   else
5801     CXXFLAGS="-g"
5802   fi
5803 else
5804   if test "$GXX" = yes; then
5805     CXXFLAGS="-O2"
5806   else
5807     CXXFLAGS=
5808   fi
5809 fi
5810 ac_ext=c
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815
5816 depcc="$CXX"  am_compiler_list=
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5819 $as_echo_n "checking dependency style of $depcc... " >&6; }
5820 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5821   $as_echo_n "(cached) " >&6
5822 else
5823   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5824   # We make a subdir and do the tests there.  Otherwise we can end up
5825   # making bogus files that we don't know about and never remove.  For
5826   # instance it was reported that on HP-UX the gcc test will end up
5827   # making a dummy file named `D' -- because `-MD' means `put the output
5828   # in D'.
5829   mkdir conftest.dir
5830   # Copy depcomp to subdir because otherwise we won't find it if we're
5831   # using a relative directory.
5832   cp "$am_depcomp" conftest.dir
5833   cd conftest.dir
5834   # We will build objects and dependencies in a subdirectory because
5835   # it helps to detect inapplicable dependency modes.  For instance
5836   # both Tru64's cc and ICC support -MD to output dependencies as a
5837   # side effect of compilation, but ICC will put the dependencies in
5838   # the current directory while Tru64 will put them in the object
5839   # directory.
5840   mkdir sub
5841
5842   am_cv_CXX_dependencies_compiler_type=none
5843   if test "$am_compiler_list" = ""; then
5844      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5845   fi
5846   am__universal=false
5847   case " $depcc " in #(
5848      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5849      esac
5850
5851   for depmode in $am_compiler_list; do
5852     # Setup a source with many dependencies, because some compilers
5853     # like to wrap large dependency lists on column 80 (with \), and
5854     # we should not choose a depcomp mode which is confused by this.
5855     #
5856     # We need to recreate these files for each test, as the compiler may
5857     # overwrite some of them when testing with obscure command lines.
5858     # This happens at least with the AIX C compiler.
5859     : > sub/conftest.c
5860     for i in 1 2 3 4 5 6; do
5861       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5862       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5863       # Solaris 8's {/usr,}/bin/sh.
5864       touch sub/conftst$i.h
5865     done
5866     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5867
5868     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5869     # mode.  It turns out that the SunPro C++ compiler does not properly
5870     # handle `-M -o', and we need to detect this.  Also, some Intel
5871     # versions had trouble with output in subdirs
5872     am__obj=sub/conftest.${OBJEXT-o}
5873     am__minus_obj="-o $am__obj"
5874     case $depmode in
5875     gcc)
5876       # This depmode causes a compiler race in universal mode.
5877       test "$am__universal" = false || continue
5878       ;;
5879     nosideeffect)
5880       # after this tag, mechanisms are not by side-effect, so they'll
5881       # only be used when explicitly requested
5882       if test "x$enable_dependency_tracking" = xyes; then
5883         continue
5884       else
5885         break
5886       fi
5887       ;;
5888     msvisualcpp | msvcmsys)
5889       # This compiler won't grok `-c -o', but also, the minuso test has
5890       # not run yet.  These depmodes are late enough in the game, and
5891       # so weak that their functioning should not be impacted.
5892       am__obj=conftest.${OBJEXT-o}
5893       am__minus_obj=
5894       ;;
5895     none) break ;;
5896     esac
5897     if depmode=$depmode \
5898        source=sub/conftest.c object=$am__obj \
5899        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5900        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5901          >/dev/null 2>conftest.err &&
5902        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5903        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5904        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5905        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5906       # icc doesn't choke on unknown options, it will just issue warnings
5907       # or remarks (even with -Werror).  So we grep stderr for any message
5908       # that says an option was ignored or not supported.
5909       # When given -MP, icc 7.0 and 7.1 complain thusly:
5910       #   icc: Command line warning: ignoring option '-M'; no argument required
5911       # The diagnosis changed in icc 8.0:
5912       #   icc: Command line remark: option '-MP' not supported
5913       if (grep 'ignoring option' conftest.err ||
5914           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5915         am_cv_CXX_dependencies_compiler_type=$depmode
5916         break
5917       fi
5918     fi
5919   done
5920
5921   cd ..
5922   rm -rf conftest.dir
5923 else
5924   am_cv_CXX_dependencies_compiler_type=none
5925 fi
5926
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5929 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5930 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5931
5932  if
5933   test "x$enable_dependency_tracking" != xno \
5934   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5935   am__fastdepCXX_TRUE=
5936   am__fastdepCXX_FALSE='#'
5937 else
5938   am__fastdepCXX_TRUE='#'
5939   am__fastdepCXX_FALSE=
5940 fi
5941
5942
5943 ac_ext=c
5944 ac_cpp='$CPP $CPPFLAGS'
5945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948 if test -n "$ac_tool_prefix"; then
5949   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if test "${ac_cv_prog_CC+set}" = set; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if test -n "$CC"; then
5957   ac_cv_prog_CC="$CC" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964     for ac_exec_ext in '' $ac_executable_extensions; do
5965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971   done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 CC=$ac_cv_prog_CC
5977 if test -n "$CC"; then
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5979 $as_echo "$CC" >&6; }
5980 else
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984
5985
5986 fi
5987 if test -z "$ac_cv_prog_CC"; then
5988   ac_ct_CC=$CC
5989   # Extract the first word of "gcc", so it can be a program name with args.
5990 set dummy gcc; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   if test -n "$ac_ct_CC"; then
5997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004     for ac_exec_ext in '' $ac_executable_extensions; do
6005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006     ac_cv_prog_ac_ct_CC="gcc"
6007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011   done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6017 if test -n "$ac_ct_CC"; then
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6019 $as_echo "$ac_ct_CC" >&6; }
6020 else
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6023 fi
6024
6025   if test "x$ac_ct_CC" = x; then
6026     CC=""
6027   else
6028     case $cross_compiling:$ac_tool_warned in
6029 yes:)
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032 ac_tool_warned=yes ;;
6033 esac
6034     CC=$ac_ct_CC
6035   fi
6036 else
6037   CC="$ac_cv_prog_CC"
6038 fi
6039
6040 if test -z "$CC"; then
6041           if test -n "$ac_tool_prefix"; then
6042     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}cc; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_CC+set}" = set; then :
6047   $as_echo_n "(cached) " >&6
6048 else
6049   if test -n "$CC"; then
6050   ac_cv_prog_CC="$CC" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057     for ac_exec_ext in '' $ac_executable_extensions; do
6058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059     ac_cv_prog_CC="${ac_tool_prefix}cc"
6060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064   done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 CC=$ac_cv_prog_CC
6070 if test -n "$CC"; then
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6072 $as_echo "$CC" >&6; }
6073 else
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078
6079   fi
6080 fi
6081 if test -z "$CC"; then
6082   # Extract the first word of "cc", so it can be a program name with args.
6083 set dummy cc; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if test "${ac_cv_prog_CC+set}" = set; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089   if test -n "$CC"; then
6090   ac_cv_prog_CC="$CC" # Let the user override the test.
6091 else
6092   ac_prog_rejected=no
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6101        ac_prog_rejected=yes
6102        continue
6103      fi
6104     ac_cv_prog_CC="cc"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 if test $ac_prog_rejected = yes; then
6113   # We found a bogon in the path, so make sure we never use it.
6114   set dummy $ac_cv_prog_CC
6115   shift
6116   if test $# != 0; then
6117     # We chose a different compiler from the bogus one.
6118     # However, it has the same basename, so the bogon will be chosen
6119     # first if we set CC to just the basename; use the full file name.
6120     shift
6121     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6122   fi
6123 fi
6124 fi
6125 fi
6126 CC=$ac_cv_prog_CC
6127 if test -n "$CC"; then
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6129 $as_echo "$CC" >&6; }
6130 else
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$CC"; then
6138   if test -n "$ac_tool_prefix"; then
6139   for ac_prog in cl.exe
6140   do
6141     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_CC+set}" = set; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$CC"; then
6149   ac_cv_prog_CC="$CC" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 CC=$ac_cv_prog_CC
6169 if test -n "$CC"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6171 $as_echo "$CC" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178     test -n "$CC" && break
6179   done
6180 fi
6181 if test -z "$CC"; then
6182   ac_ct_CC=$CC
6183   for ac_prog in cl.exe
6184 do
6185   # Extract the first word of "$ac_prog", so it can be a program name with args.
6186 set dummy $ac_prog; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   if test -n "$ac_ct_CC"; then
6193   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202     ac_cv_prog_ac_ct_CC="$ac_prog"
6203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207   done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6213 if test -n "$ac_ct_CC"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6215 $as_echo "$ac_ct_CC" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222   test -n "$ac_ct_CC" && break
6223 done
6224
6225   if test "x$ac_ct_CC" = x; then
6226     CC=""
6227   else
6228     case $cross_compiling:$ac_tool_warned in
6229 yes:)
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232 ac_tool_warned=yes ;;
6233 esac
6234     CC=$ac_ct_CC
6235   fi
6236 fi
6237
6238 fi
6239
6240
6241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6243 as_fn_error "no acceptable C compiler found in \$PATH
6244 See \`config.log' for more details." "$LINENO" 5; }
6245
6246 # Provide some information about the compiler.
6247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6248 set X $ac_compile
6249 ac_compiler=$2
6250 for ac_option in --version -v -V -qversion; do
6251   { { ac_try="$ac_compiler $ac_option >&5"
6252 case "(($ac_try" in
6253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254   *) ac_try_echo=$ac_try;;
6255 esac
6256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6257 $as_echo "$ac_try_echo"; } >&5
6258   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6259   ac_status=$?
6260   if test -s conftest.err; then
6261     sed '10a\
6262 ... rest of stderr output deleted ...
6263          10q' conftest.err >conftest.er1
6264     cat conftest.er1 >&5
6265   fi
6266   rm -f conftest.er1 conftest.err
6267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268   test $ac_status = 0; }
6269 done
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6272 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6273 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6274   $as_echo_n "(cached) " >&6
6275 else
6276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h.  */
6278
6279 int
6280 main ()
6281 {
6282 #ifndef __GNUC__
6283        choke me
6284 #endif
6285
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291   ac_compiler_gnu=yes
6292 else
6293   ac_compiler_gnu=no
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6297
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6300 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6301 if test $ac_compiler_gnu = yes; then
6302   GCC=yes
6303 else
6304   GCC=
6305 fi
6306 ac_test_CFLAGS=${CFLAGS+set}
6307 ac_save_CFLAGS=$CFLAGS
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6309 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6310 if test "${ac_cv_prog_cc_g+set}" = set; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   ac_save_c_werror_flag=$ac_c_werror_flag
6314    ac_c_werror_flag=yes
6315    ac_cv_prog_cc_g=no
6316    CFLAGS="-g"
6317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h.  */
6319
6320 int
6321 main ()
6322 {
6323
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329   ac_cv_prog_cc_g=yes
6330 else
6331   CFLAGS=""
6332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h.  */
6334
6335 int
6336 main ()
6337 {
6338
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344
6345 else
6346   ac_c_werror_flag=$ac_save_c_werror_flag
6347          CFLAGS="-g"
6348          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h.  */
6350
6351 int
6352 main ()
6353 {
6354
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360   ac_cv_prog_cc_g=yes
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367    ac_c_werror_flag=$ac_save_c_werror_flag
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6370 $as_echo "$ac_cv_prog_cc_g" >&6; }
6371 if test "$ac_test_CFLAGS" = set; then
6372   CFLAGS=$ac_save_CFLAGS
6373 elif test $ac_cv_prog_cc_g = yes; then
6374   if test "$GCC" = yes; then
6375     CFLAGS="-g -O2"
6376   else
6377     CFLAGS="-g"
6378   fi
6379 else
6380   if test "$GCC" = yes; then
6381     CFLAGS="-O2"
6382   else
6383     CFLAGS=
6384   fi
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6387 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6388 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   ac_cv_prog_cc_c89=no
6392 ac_save_CC=$CC
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h.  */
6395 #include <stdarg.h>
6396 #include <stdio.h>
6397 #include <sys/types.h>
6398 #include <sys/stat.h>
6399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6400 struct buf { int x; };
6401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6402 static char *e (p, i)
6403      char **p;
6404      int i;
6405 {
6406   return p[i];
6407 }
6408 static char *f (char * (*g) (char **, int), char **p, ...)
6409 {
6410   char *s;
6411   va_list v;
6412   va_start (v,p);
6413   s = g (p, va_arg (v,int));
6414   va_end (v);
6415   return s;
6416 }
6417
6418 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6419    function prototypes and stuff, but not '\xHH' hex character constants.
6420    These don't provoke an error unfortunately, instead are silently treated
6421    as 'x'.  The following induces an error, until -std is added to get
6422    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6423    array size at least.  It's necessary to write '\x00'==0 to get something
6424    that's true only with -std.  */
6425 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6426
6427 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6428    inside strings and character constants.  */
6429 #define FOO(x) 'x'
6430 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6431
6432 int test (int i, double x);
6433 struct s1 {int (*f) (int a);};
6434 struct s2 {int (*f) (double a);};
6435 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6436 int argc;
6437 char **argv;
6438 int
6439 main ()
6440 {
6441 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6447         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6448 do
6449   CC="$ac_save_CC $ac_arg"
6450   if ac_fn_c_try_compile "$LINENO"; then :
6451   ac_cv_prog_cc_c89=$ac_arg
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext
6454   test "x$ac_cv_prog_cc_c89" != "xno" && break
6455 done
6456 rm -f conftest.$ac_ext
6457 CC=$ac_save_CC
6458
6459 fi
6460 # AC_CACHE_VAL
6461 case "x$ac_cv_prog_cc_c89" in
6462   x)
6463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6464 $as_echo "none needed" >&6; } ;;
6465   xno)
6466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6467 $as_echo "unsupported" >&6; } ;;
6468   *)
6469     CC="$CC $ac_cv_prog_cc_c89"
6470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6471 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6472 esac
6473 if test "x$ac_cv_prog_cc_c89" != xno; then :
6474
6475 fi
6476
6477 ac_ext=c
6478 ac_cpp='$CPP $CPPFLAGS'
6479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482
6483 depcc="$CC"   am_compiler_list=
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6486 $as_echo_n "checking dependency style of $depcc... " >&6; }
6487 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6491   # We make a subdir and do the tests there.  Otherwise we can end up
6492   # making bogus files that we don't know about and never remove.  For
6493   # instance it was reported that on HP-UX the gcc test will end up
6494   # making a dummy file named `D' -- because `-MD' means `put the output
6495   # in D'.
6496   mkdir conftest.dir
6497   # Copy depcomp to subdir because otherwise we won't find it if we're
6498   # using a relative directory.
6499   cp "$am_depcomp" conftest.dir
6500   cd conftest.dir
6501   # We will build objects and dependencies in a subdirectory because
6502   # it helps to detect inapplicable dependency modes.  For instance
6503   # both Tru64's cc and ICC support -MD to output dependencies as a
6504   # side effect of compilation, but ICC will put the dependencies in
6505   # the current directory while Tru64 will put them in the object
6506   # directory.
6507   mkdir sub
6508
6509   am_cv_CC_dependencies_compiler_type=none
6510   if test "$am_compiler_list" = ""; then
6511      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6512   fi
6513   am__universal=false
6514   case " $depcc " in #(
6515      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6516      esac
6517
6518   for depmode in $am_compiler_list; do
6519     # Setup a source with many dependencies, because some compilers
6520     # like to wrap large dependency lists on column 80 (with \), and
6521     # we should not choose a depcomp mode which is confused by this.
6522     #
6523     # We need to recreate these files for each test, as the compiler may
6524     # overwrite some of them when testing with obscure command lines.
6525     # This happens at least with the AIX C compiler.
6526     : > sub/conftest.c
6527     for i in 1 2 3 4 5 6; do
6528       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6529       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6530       # Solaris 8's {/usr,}/bin/sh.
6531       touch sub/conftst$i.h
6532     done
6533     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6534
6535     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6536     # mode.  It turns out that the SunPro C++ compiler does not properly
6537     # handle `-M -o', and we need to detect this.  Also, some Intel
6538     # versions had trouble with output in subdirs
6539     am__obj=sub/conftest.${OBJEXT-o}
6540     am__minus_obj="-o $am__obj"
6541     case $depmode in
6542     gcc)
6543       # This depmode causes a compiler race in universal mode.
6544       test "$am__universal" = false || continue
6545       ;;
6546     nosideeffect)
6547       # after this tag, mechanisms are not by side-effect, so they'll
6548       # only be used when explicitly requested
6549       if test "x$enable_dependency_tracking" = xyes; then
6550         continue
6551       else
6552         break
6553       fi
6554       ;;
6555     msvisualcpp | msvcmsys)
6556       # This compiler won't grok `-c -o', but also, the minuso test has
6557       # not run yet.  These depmodes are late enough in the game, and
6558       # so weak that their functioning should not be impacted.
6559       am__obj=conftest.${OBJEXT-o}
6560       am__minus_obj=
6561       ;;
6562     none) break ;;
6563     esac
6564     if depmode=$depmode \
6565        source=sub/conftest.c object=$am__obj \
6566        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6567        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6568          >/dev/null 2>conftest.err &&
6569        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6570        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6571        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6572        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6573       # icc doesn't choke on unknown options, it will just issue warnings
6574       # or remarks (even with -Werror).  So we grep stderr for any message
6575       # that says an option was ignored or not supported.
6576       # When given -MP, icc 7.0 and 7.1 complain thusly:
6577       #   icc: Command line warning: ignoring option '-M'; no argument required
6578       # The diagnosis changed in icc 8.0:
6579       #   icc: Command line remark: option '-MP' not supported
6580       if (grep 'ignoring option' conftest.err ||
6581           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6582         am_cv_CC_dependencies_compiler_type=$depmode
6583         break
6584       fi
6585     fi
6586   done
6587
6588   cd ..
6589   rm -rf conftest.dir
6590 else
6591   am_cv_CC_dependencies_compiler_type=none
6592 fi
6593
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6596 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6598
6599  if
6600   test "x$enable_dependency_tracking" != xno \
6601   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6602   am__fastdepCC_TRUE=
6603   am__fastdepCC_FALSE='#'
6604 else
6605   am__fastdepCC_TRUE='#'
6606   am__fastdepCC_FALSE=
6607 fi
6608
6609
6610 ac_ext=c
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6617 # On Suns, sometimes $CPP names a directory.
6618 if test -n "$CPP" && test -d "$CPP"; then
6619   CPP=
6620 fi
6621 if test -z "$CPP"; then
6622   if test "${ac_cv_prog_CPP+set}" = set; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625       # Double quotes because CPP needs to be expanded
6626     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6627     do
6628       ac_preproc_ok=false
6629 for ac_c_preproc_warn_flag in '' yes
6630 do
6631   # Use a header file that comes with gcc, so configuring glibc
6632   # with a fresh cross-compiler works.
6633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6634   # <limits.h> exists even on freestanding compilers.
6635   # On the NeXT, cc -E runs the code through the compiler's parser,
6636   # not just through cpp. "Syntax error" is here to catch this case.
6637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h.  */
6639 #ifdef __STDC__
6640 # include <limits.h>
6641 #else
6642 # include <assert.h>
6643 #endif
6644                      Syntax error
6645 _ACEOF
6646 if ac_fn_c_try_cpp "$LINENO"; then :
6647
6648 else
6649   # Broken: fails on valid input.
6650 continue
6651 fi
6652 rm -f conftest.err conftest.$ac_ext
6653
6654   # OK, works on sane cases.  Now check whether nonexistent headers
6655   # can be detected and how.
6656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h.  */
6658 #include <ac_nonexistent.h>
6659 _ACEOF
6660 if ac_fn_c_try_cpp "$LINENO"; then :
6661   # Broken: success on invalid input.
6662 continue
6663 else
6664   # Passes both tests.
6665 ac_preproc_ok=:
6666 break
6667 fi
6668 rm -f conftest.err conftest.$ac_ext
6669
6670 done
6671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6672 rm -f conftest.err conftest.$ac_ext
6673 if $ac_preproc_ok; then :
6674   break
6675 fi
6676
6677     done
6678     ac_cv_prog_CPP=$CPP
6679
6680 fi
6681   CPP=$ac_cv_prog_CPP
6682 else
6683   ac_cv_prog_CPP=$CPP
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6686 $as_echo "$CPP" >&6; }
6687 ac_preproc_ok=false
6688 for ac_c_preproc_warn_flag in '' yes
6689 do
6690   # Use a header file that comes with gcc, so configuring glibc
6691   # with a fresh cross-compiler works.
6692   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6693   # <limits.h> exists even on freestanding compilers.
6694   # On the NeXT, cc -E runs the code through the compiler's parser,
6695   # not just through cpp. "Syntax error" is here to catch this case.
6696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h.  */
6698 #ifdef __STDC__
6699 # include <limits.h>
6700 #else
6701 # include <assert.h>
6702 #endif
6703                      Syntax error
6704 _ACEOF
6705 if ac_fn_c_try_cpp "$LINENO"; then :
6706
6707 else
6708   # Broken: fails on valid input.
6709 continue
6710 fi
6711 rm -f conftest.err conftest.$ac_ext
6712
6713   # OK, works on sane cases.  Now check whether nonexistent headers
6714   # can be detected and how.
6715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h.  */
6717 #include <ac_nonexistent.h>
6718 _ACEOF
6719 if ac_fn_c_try_cpp "$LINENO"; then :
6720   # Broken: success on invalid input.
6721 continue
6722 else
6723   # Passes both tests.
6724 ac_preproc_ok=:
6725 break
6726 fi
6727 rm -f conftest.err conftest.$ac_ext
6728
6729 done
6730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6731 rm -f conftest.err conftest.$ac_ext
6732 if $ac_preproc_ok; then :
6733
6734 else
6735   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6737 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6738 See \`config.log' for more details." "$LINENO" 5; }
6739 fi
6740
6741 ac_ext=c
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6749 $as_echo_n "checking whether ln -s works... " >&6; }
6750 LN_S=$as_ln_s
6751 if test "$LN_S" = "ln -s"; then
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6753 $as_echo "yes" >&6; }
6754 else
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6756 $as_echo "no, using $LN_S" >&6; }
6757 fi
6758
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6760 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6761 set x ${MAKE-make}
6762 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6763 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   cat >conftest.make <<\_ACEOF
6767 SHELL = /bin/sh
6768 all:
6769         @echo '@@@%%%=$(MAKE)=@@@%%%'
6770 _ACEOF
6771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6772 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6773   *@@@%%%=?*=@@@%%%*)
6774     eval ac_cv_prog_make_${ac_make}_set=yes;;
6775   *)
6776     eval ac_cv_prog_make_${ac_make}_set=no;;
6777 esac
6778 rm -f conftest.make
6779 fi
6780 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6782 $as_echo "yes" >&6; }
6783   SET_MAKE=
6784 else
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787   SET_MAKE="MAKE=${MAKE-make}"
6788 fi
6789
6790 case `pwd` in
6791   *\ * | *\     *)
6792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6793 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6794 esac
6795
6796
6797
6798 macro_version='2.2.6b'
6799 macro_revision='1.3017'
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813 ltmain="$ac_aux_dir/ltmain.sh"
6814
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6816 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6817 if test "${ac_cv_path_SED+set}" = set; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6821      for ac_i in 1 2 3 4 5 6 7; do
6822        ac_script="$ac_script$as_nl$ac_script"
6823      done
6824      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6825      { ac_script=; unset ac_script;}
6826      if test -z "$SED"; then
6827   ac_path_SED_found=false
6828   # Loop through the user's path and test for each of PROGNAME-LIST
6829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_prog in sed gsed; do
6835     for ac_exec_ext in '' $ac_executable_extensions; do
6836       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6837       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6838 # Check for GNU ac_path_SED and select it if it is found.
6839   # Check for GNU $ac_path_SED
6840 case `"$ac_path_SED" --version 2>&1` in
6841 *GNU*)
6842   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6843 *)
6844   ac_count=0
6845   $as_echo_n 0123456789 >"conftest.in"
6846   while :
6847   do
6848     cat "conftest.in" "conftest.in" >"conftest.tmp"
6849     mv "conftest.tmp" "conftest.in"
6850     cp "conftest.in" "conftest.nl"
6851     $as_echo '' >> "conftest.nl"
6852     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6854     as_fn_arith $ac_count + 1 && ac_count=$as_val
6855     if test $ac_count -gt ${ac_path_SED_max-0}; then
6856       # Best one so far, save it but keep looking for a better one
6857       ac_cv_path_SED="$ac_path_SED"
6858       ac_path_SED_max=$ac_count
6859     fi
6860     # 10*(2^10) chars as input seems more than enough
6861     test $ac_count -gt 10 && break
6862   done
6863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6864 esac
6865
6866       $ac_path_SED_found && break 3
6867     done
6868   done
6869   done
6870 IFS=$as_save_IFS
6871   if test -z "$ac_cv_path_SED"; then
6872     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6873   fi
6874 else
6875   ac_cv_path_SED=$SED
6876 fi
6877
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6880 $as_echo "$ac_cv_path_SED" >&6; }
6881  SED="$ac_cv_path_SED"
6882   rm -f conftest.sed
6883
6884 test -z "$SED" && SED=sed
6885 Xsed="$SED -e 1s/^X//"
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6898 $as_echo_n "checking for fgrep... " >&6; }
6899 if test "${ac_cv_path_FGREP+set}" = set; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6903    then ac_cv_path_FGREP="$GREP -F"
6904    else
6905      if test -z "$FGREP"; then
6906   ac_path_FGREP_found=false
6907   # Loop through the user's path and test for each of PROGNAME-LIST
6908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913     for ac_prog in fgrep; do
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6916       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6917 # Check for GNU ac_path_FGREP and select it if it is found.
6918   # Check for GNU $ac_path_FGREP
6919 case `"$ac_path_FGREP" --version 2>&1` in
6920 *GNU*)
6921   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6922 *)
6923   ac_count=0
6924   $as_echo_n 0123456789 >"conftest.in"
6925   while :
6926   do
6927     cat "conftest.in" "conftest.in" >"conftest.tmp"
6928     mv "conftest.tmp" "conftest.in"
6929     cp "conftest.in" "conftest.nl"
6930     $as_echo 'FGREP' >> "conftest.nl"
6931     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6932     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6933     as_fn_arith $ac_count + 1 && ac_count=$as_val
6934     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6935       # Best one so far, save it but keep looking for a better one
6936       ac_cv_path_FGREP="$ac_path_FGREP"
6937       ac_path_FGREP_max=$ac_count
6938     fi
6939     # 10*(2^10) chars as input seems more than enough
6940     test $ac_count -gt 10 && break
6941   done
6942   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6943 esac
6944
6945       $ac_path_FGREP_found && break 3
6946     done
6947   done
6948   done
6949 IFS=$as_save_IFS
6950   if test -z "$ac_cv_path_FGREP"; then
6951     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6952   fi
6953 else
6954   ac_cv_path_FGREP=$FGREP
6955 fi
6956
6957    fi
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6960 $as_echo "$ac_cv_path_FGREP" >&6; }
6961  FGREP="$ac_cv_path_FGREP"
6962
6963
6964 test -z "$GREP" && GREP=grep
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984 # Check whether --with-gnu-ld was given.
6985 if test "${with_gnu_ld+set}" = set; then :
6986   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6987 else
6988   with_gnu_ld=no
6989 fi
6990
6991 ac_prog=ld
6992 if test "$GCC" = yes; then
6993   # Check if gcc -print-prog-name=ld gives a path.
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6995 $as_echo_n "checking for ld used by $CC... " >&6; }
6996   case $host in
6997   *-*-mingw*)
6998     # gcc leaves a trailing carriage return which upsets mingw
6999     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7000   *)
7001     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7002   esac
7003   case $ac_prog in
7004     # Accept absolute paths.
7005     [\\/]* | ?:[\\/]*)
7006       re_direlt='/[^/][^/]*/\.\./'
7007       # Canonicalize the pathname of ld
7008       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7009       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7010         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7011       done
7012       test -z "$LD" && LD="$ac_prog"
7013       ;;
7014   "")
7015     # If it fails, then pretend we aren't using GCC.
7016     ac_prog=ld
7017     ;;
7018   *)
7019     # If it is relative, then search for the first ld in PATH.
7020     with_gnu_ld=unknown
7021     ;;
7022   esac
7023 elif test "$with_gnu_ld" = yes; then
7024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7025 $as_echo_n "checking for GNU ld... " >&6; }
7026 else
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7028 $as_echo_n "checking for non-GNU ld... " >&6; }
7029 fi
7030 if test "${lt_cv_path_LD+set}" = set; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   if test -z "$LD"; then
7034   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7035   for ac_dir in $PATH; do
7036     IFS="$lt_save_ifs"
7037     test -z "$ac_dir" && ac_dir=.
7038     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7039       lt_cv_path_LD="$ac_dir/$ac_prog"
7040       # Check to see if the program is GNU ld.  I'd rather use --version,
7041       # but apparently some variants of GNU ld only accept -v.
7042       # Break only if it was the GNU/non-GNU ld that we prefer.
7043       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7044       *GNU* | *'with BFD'*)
7045         test "$with_gnu_ld" != no && break
7046         ;;
7047       *)
7048         test "$with_gnu_ld" != yes && break
7049         ;;
7050       esac
7051     fi
7052   done
7053   IFS="$lt_save_ifs"
7054 else
7055   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7056 fi
7057 fi
7058
7059 LD="$lt_cv_path_LD"
7060 if test -n "$LD"; then
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7062 $as_echo "$LD" >&6; }
7063 else
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7070 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7074 case `$LD -v 2>&1 </dev/null` in
7075 *GNU* | *'with BFD'*)
7076   lt_cv_prog_gnu_ld=yes
7077   ;;
7078 *)
7079   lt_cv_prog_gnu_ld=no
7080   ;;
7081 esac
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7085 with_gnu_ld=$lt_cv_prog_gnu_ld
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7096 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7097 if test "${lt_cv_path_NM+set}" = set; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   if test -n "$NM"; then
7101   # Let the user override the test.
7102   lt_cv_path_NM="$NM"
7103 else
7104   lt_nm_to_check="${ac_tool_prefix}nm"
7105   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7106     lt_nm_to_check="$lt_nm_to_check nm"
7107   fi
7108   for lt_tmp_nm in $lt_nm_to_check; do
7109     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7110     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7111       IFS="$lt_save_ifs"
7112       test -z "$ac_dir" && ac_dir=.
7113       tmp_nm="$ac_dir/$lt_tmp_nm"
7114       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7115         # Check to see if the nm accepts a BSD-compat flag.
7116         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7117         #   nm: unknown option "B" ignored
7118         # Tru64's nm complains that /dev/null is an invalid object file
7119         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7120         */dev/null* | *'Invalid file or object type'*)
7121           lt_cv_path_NM="$tmp_nm -B"
7122           break
7123           ;;
7124         *)
7125           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7126           */dev/null*)
7127             lt_cv_path_NM="$tmp_nm -p"
7128             break
7129             ;;
7130           *)
7131             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7132             continue # so that we can try to find one that supports BSD flags
7133             ;;
7134           esac
7135           ;;
7136         esac
7137       fi
7138     done
7139     IFS="$lt_save_ifs"
7140   done
7141   : ${lt_cv_path_NM=no}
7142 fi
7143 fi
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7145 $as_echo "$lt_cv_path_NM" >&6; }
7146 if test "$lt_cv_path_NM" != "no"; then
7147   NM="$lt_cv_path_NM"
7148 else
7149   # Didn't find any BSD compatible name lister, look for dumpbin.
7150   if test -n "$ac_tool_prefix"; then
7151   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7152   do
7153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   if test -n "$DUMPBIN"; then
7161   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168     for ac_exec_ext in '' $ac_executable_extensions; do
7169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175   done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 DUMPBIN=$ac_cv_prog_DUMPBIN
7181 if test -n "$DUMPBIN"; then
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7183 $as_echo "$DUMPBIN" >&6; }
7184 else
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189
7190     test -n "$DUMPBIN" && break
7191   done
7192 fi
7193 if test -z "$DUMPBIN"; then
7194   ac_ct_DUMPBIN=$DUMPBIN
7195   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7196 do
7197   # Extract the first word of "$ac_prog", so it can be a program name with args.
7198 set dummy $ac_prog; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test -n "$ac_ct_DUMPBIN"; then
7205   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219   done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7225 if test -n "$ac_ct_DUMPBIN"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7227 $as_echo "$ac_ct_DUMPBIN" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233
7234   test -n "$ac_ct_DUMPBIN" && break
7235 done
7236
7237   if test "x$ac_ct_DUMPBIN" = x; then
7238     DUMPBIN=":"
7239   else
7240     case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246     DUMPBIN=$ac_ct_DUMPBIN
7247   fi
7248 fi
7249
7250
7251   if test "$DUMPBIN" != ":"; then
7252     NM="$DUMPBIN"
7253   fi
7254 fi
7255 test -z "$NM" && NM=nm
7256
7257
7258
7259
7260
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7263 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7264 if test "${lt_cv_nm_interface+set}" = set; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   lt_cv_nm_interface="BSD nm"
7268   echo "int some_variable = 0;" > conftest.$ac_ext
7269   (eval echo "\"\$as_me:7269: $ac_compile\"" >&5)
7270   (eval "$ac_compile" 2>conftest.err)
7271   cat conftest.err >&5
7272   (eval echo "\"\$as_me:7272: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7273   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7274   cat conftest.err >&5
7275   (eval echo "\"\$as_me:7275: output\"" >&5)
7276   cat conftest.out >&5
7277   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7278     lt_cv_nm_interface="MS dumpbin"
7279   fi
7280   rm -f conftest*
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7283 $as_echo "$lt_cv_nm_interface" >&6; }
7284
7285 # find the maximum length of command line arguments
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7287 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7288 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291     i=0
7292   teststring="ABCD"
7293
7294   case $build_os in
7295   msdosdjgpp*)
7296     # On DJGPP, this test can blow up pretty badly due to problems in libc
7297     # (any single argument exceeding 2000 bytes causes a buffer overrun
7298     # during glob expansion).  Even if it were fixed, the result of this
7299     # check would be larger than it should be.
7300     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7301     ;;
7302
7303   gnu*)
7304     # Under GNU Hurd, this test is not required because there is
7305     # no limit to the length of command line arguments.
7306     # Libtool will interpret -1 as no limit whatsoever
7307     lt_cv_sys_max_cmd_len=-1;
7308     ;;
7309
7310   cygwin* | mingw* | cegcc*)
7311     # On Win9x/ME, this test blows up -- it succeeds, but takes
7312     # about 5 minutes as the teststring grows exponentially.
7313     # Worse, since 9x/ME are not pre-emptively multitasking,
7314     # you end up with a "frozen" computer, even though with patience
7315     # the test eventually succeeds (with a max line length of 256k).
7316     # Instead, let's just punt: use the minimum linelength reported by
7317     # all of the supported platforms: 8192 (on NT/2K/XP).
7318     lt_cv_sys_max_cmd_len=8192;
7319     ;;
7320
7321   amigaos*)
7322     # On AmigaOS with pdksh, this test takes hours, literally.
7323     # So we just punt and use a minimum line length of 8192.
7324     lt_cv_sys_max_cmd_len=8192;
7325     ;;
7326
7327   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7328     # This has been around since 386BSD, at least.  Likely further.
7329     if test -x /sbin/sysctl; then
7330       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7331     elif test -x /usr/sbin/sysctl; then
7332       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7333     else
7334       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7335     fi
7336     # And add a safety zone
7337     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7338     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7339     ;;
7340
7341   interix*)
7342     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7343     lt_cv_sys_max_cmd_len=196608
7344     ;;
7345
7346   osf*)
7347     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7348     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7349     # nice to cause kernel panics so lets avoid the loop below.
7350     # First set a reasonable default.
7351     lt_cv_sys_max_cmd_len=16384
7352     #
7353     if test -x /sbin/sysconfig; then
7354       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7355         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7356       esac
7357     fi
7358     ;;
7359   sco3.2v5*)
7360     lt_cv_sys_max_cmd_len=102400
7361     ;;
7362   sysv5* | sco5v6* | sysv4.2uw2*)
7363     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7364     if test -n "$kargmax"; then
7365       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7366     else
7367       lt_cv_sys_max_cmd_len=32768
7368     fi
7369     ;;
7370   *)
7371     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7372     if test -n "$lt_cv_sys_max_cmd_len"; then
7373       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7374       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7375     else
7376       # Make teststring a little bigger before we do anything with it.
7377       # a 1K string should be a reasonable start.
7378       for i in 1 2 3 4 5 6 7 8 ; do
7379         teststring=$teststring$teststring
7380       done
7381       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7382       # If test is not a shell built-in, we'll probably end up computing a
7383       # maximum length that is only half of the actual maximum length, but
7384       # we can't tell.
7385       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7386                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7387               test $i != 17 # 1/2 MB should be enough
7388       do
7389         i=`expr $i + 1`
7390         teststring=$teststring$teststring
7391       done
7392       # Only check the string length outside the loop.
7393       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7394       teststring=
7395       # Add a significant safety factor because C++ compilers can tack on
7396       # massive amounts of additional arguments before passing them to the
7397       # linker.  It appears as though 1/2 is a usable value.
7398       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7399     fi
7400     ;;
7401   esac
7402
7403 fi
7404
7405 if test -n $lt_cv_sys_max_cmd_len ; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7407 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7410 $as_echo "none" >&6; }
7411 fi
7412 max_cmd_len=$lt_cv_sys_max_cmd_len
7413
7414
7415
7416
7417
7418
7419 : ${CP="cp -f"}
7420 : ${MV="mv -f"}
7421 : ${RM="rm -f"}
7422
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7424 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7425 # Try some XSI features
7426 xsi_shell=no
7427 ( _lt_dummy="a/b/c"
7428   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7429       = c,a/b,, \
7430     && eval 'test $(( 1 + 1 )) -eq 2 \
7431     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7432   && xsi_shell=yes
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7434 $as_echo "$xsi_shell" >&6; }
7435
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7438 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7439 lt_shell_append=no
7440 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7441     >/dev/null 2>&1 \
7442   && lt_shell_append=yes
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7444 $as_echo "$lt_shell_append" >&6; }
7445
7446
7447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7448   lt_unset=unset
7449 else
7450   lt_unset=false
7451 fi
7452
7453
7454
7455
7456
7457 # test EBCDIC or ASCII
7458 case `echo X|tr X '\101'` in
7459  A) # ASCII based system
7460     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7461   lt_SP2NL='tr \040 \012'
7462   lt_NL2SP='tr \015\012 \040\040'
7463   ;;
7464  *) # EBCDIC based system
7465   lt_SP2NL='tr \100 \n'
7466   lt_NL2SP='tr \r\n \100\100'
7467   ;;
7468 esac
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7479 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7480 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   lt_cv_ld_reload_flag='-r'
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7486 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7487 reload_flag=$lt_cv_ld_reload_flag
7488 case $reload_flag in
7489 "" | " "*) ;;
7490 *) reload_flag=" $reload_flag" ;;
7491 esac
7492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7493 case $host_os in
7494   darwin*)
7495     if test "$GCC" = yes; then
7496       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7497     else
7498       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7499     fi
7500     ;;
7501 esac
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 if test -n "$ac_tool_prefix"; then
7512   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   if test -n "$OBJDUMP"; then
7520   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527     for ac_exec_ext in '' $ac_executable_extensions; do
7528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534   done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 OBJDUMP=$ac_cv_prog_OBJDUMP
7540 if test -n "$OBJDUMP"; then
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7542 $as_echo "$OBJDUMP" >&6; }
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_OBJDUMP"; then
7551   ac_ct_OBJDUMP=$OBJDUMP
7552   # Extract the first word of "objdump", so it can be a program name with args.
7553 set dummy objdump; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   if test -n "$ac_ct_OBJDUMP"; then
7560   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567     for ac_exec_ext in '' $ac_executable_extensions; do
7568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574   done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7580 if test -n "$ac_ct_OBJDUMP"; then
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7582 $as_echo "$ac_ct_OBJDUMP" >&6; }
7583 else
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588   if test "x$ac_ct_OBJDUMP" = x; then
7589     OBJDUMP="false"
7590   else
7591     case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597     OBJDUMP=$ac_ct_OBJDUMP
7598   fi
7599 else
7600   OBJDUMP="$ac_cv_prog_OBJDUMP"
7601 fi
7602
7603 test -z "$OBJDUMP" && OBJDUMP=objdump
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7614 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7615 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   lt_cv_file_magic_cmd='$MAGIC_CMD'
7619 lt_cv_file_magic_test_file=
7620 lt_cv_deplibs_check_method='unknown'
7621 # Need to set the preceding variable on all platforms that support
7622 # interlibrary dependencies.
7623 # 'none' -- dependencies not supported.
7624 # `unknown' -- same as none, but documents that we really don't know.
7625 # 'pass_all' -- all dependencies passed with no checks.
7626 # 'test_compile' -- check by making test program.
7627 # 'file_magic [[regex]]' -- check by looking for files in library path
7628 # which responds to the $file_magic_cmd with a given extended regex.
7629 # If you have `file' or equivalent on your system and you're not sure
7630 # whether `pass_all' will *always* work, you probably want this one.
7631
7632 case $host_os in
7633 aix[4-9]*)
7634   lt_cv_deplibs_check_method=pass_all
7635   ;;
7636
7637 beos*)
7638   lt_cv_deplibs_check_method=pass_all
7639   ;;
7640
7641 bsdi[45]*)
7642   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7643   lt_cv_file_magic_cmd='/usr/bin/file -L'
7644   lt_cv_file_magic_test_file=/shlib/libc.so
7645   ;;
7646
7647 cygwin*)
7648   # func_win32_libid is a shell function defined in ltmain.sh
7649   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7650   lt_cv_file_magic_cmd='func_win32_libid'
7651   ;;
7652
7653 mingw* | pw32*)
7654   # Base MSYS/MinGW do not provide the 'file' command needed by
7655   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7656   # unless we find 'file', for example because we are cross-compiling.
7657   if ( file / ) >/dev/null 2>&1; then
7658     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7659     lt_cv_file_magic_cmd='func_win32_libid'
7660   else
7661     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7662     lt_cv_file_magic_cmd='$OBJDUMP -f'
7663   fi
7664   ;;
7665
7666 cegcc)
7667   # use the weaker test based on 'objdump'. See mingw*.
7668   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7669   lt_cv_file_magic_cmd='$OBJDUMP -f'
7670   ;;
7671
7672 darwin* | rhapsody*)
7673   lt_cv_deplibs_check_method=pass_all
7674   ;;
7675
7676 freebsd* | dragonfly*)
7677   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7678     case $host_cpu in
7679     i*86 )
7680       # Not sure whether the presence of OpenBSD here was a mistake.
7681       # Let's accept both of them until this is cleared up.
7682       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7683       lt_cv_file_magic_cmd=/usr/bin/file
7684       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7685       ;;
7686     esac
7687   else
7688     lt_cv_deplibs_check_method=pass_all
7689   fi
7690   ;;
7691
7692 gnu*)
7693   lt_cv_deplibs_check_method=pass_all
7694   ;;
7695
7696 hpux10.20* | hpux11*)
7697   lt_cv_file_magic_cmd=/usr/bin/file
7698   case $host_cpu in
7699   ia64*)
7700     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7701     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7702     ;;
7703   hppa*64*)
7704     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]'
7705     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7706     ;;
7707   *)
7708     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7709     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7710     ;;
7711   esac
7712   ;;
7713
7714 interix[3-9]*)
7715   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7716   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7717   ;;
7718
7719 irix5* | irix6* | nonstopux*)
7720   case $LD in
7721   *-32|*"-32 ") libmagic=32-bit;;
7722   *-n32|*"-n32 ") libmagic=N32;;
7723   *-64|*"-64 ") libmagic=64-bit;;
7724   *) libmagic=never-match;;
7725   esac
7726   lt_cv_deplibs_check_method=pass_all
7727   ;;
7728
7729 # This must be Linux ELF.
7730 linux* | k*bsd*-gnu)
7731   lt_cv_deplibs_check_method=pass_all
7732   ;;
7733
7734 netbsd*)
7735   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7736     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7737   else
7738     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7739   fi
7740   ;;
7741
7742 newos6*)
7743   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7744   lt_cv_file_magic_cmd=/usr/bin/file
7745   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7746   ;;
7747
7748 *nto* | *qnx*)
7749   lt_cv_deplibs_check_method=pass_all
7750   ;;
7751
7752 openbsd*)
7753   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7754     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7755   else
7756     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7757   fi
7758   ;;
7759
7760 osf3* | osf4* | osf5*)
7761   lt_cv_deplibs_check_method=pass_all
7762   ;;
7763
7764 rdos*)
7765   lt_cv_deplibs_check_method=pass_all
7766   ;;
7767
7768 solaris*)
7769   lt_cv_deplibs_check_method=pass_all
7770   ;;
7771
7772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7773   lt_cv_deplibs_check_method=pass_all
7774   ;;
7775
7776 sysv4 | sysv4.3*)
7777   case $host_vendor in
7778   motorola)
7779     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]'
7780     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7781     ;;
7782   ncr)
7783     lt_cv_deplibs_check_method=pass_all
7784     ;;
7785   sequent)
7786     lt_cv_file_magic_cmd='/bin/file'
7787     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7788     ;;
7789   sni)
7790     lt_cv_file_magic_cmd='/bin/file'
7791     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7792     lt_cv_file_magic_test_file=/lib/libc.so
7793     ;;
7794   siemens)
7795     lt_cv_deplibs_check_method=pass_all
7796     ;;
7797   pc)
7798     lt_cv_deplibs_check_method=pass_all
7799     ;;
7800   esac
7801   ;;
7802
7803 tpf*)
7804   lt_cv_deplibs_check_method=pass_all
7805   ;;
7806 esac
7807
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7810 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7811 file_magic_cmd=$lt_cv_file_magic_cmd
7812 deplibs_check_method=$lt_cv_deplibs_check_method
7813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 if test -n "$ac_tool_prefix"; then
7827   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7828 set dummy ${ac_tool_prefix}ar; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if test "${ac_cv_prog_AR+set}" = set; then :
7832   $as_echo_n "(cached) " >&6
7833 else
7834   if test -n "$AR"; then
7835   ac_cv_prog_AR="$AR" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842     for ac_exec_ext in '' $ac_executable_extensions; do
7843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844     ac_cv_prog_AR="${ac_tool_prefix}ar"
7845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849   done
7850 IFS=$as_save_IFS
7851
7852 fi
7853 fi
7854 AR=$ac_cv_prog_AR
7855 if test -n "$AR"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7857 $as_echo "$AR" >&6; }
7858 else
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862
7863
7864 fi
7865 if test -z "$ac_cv_prog_AR"; then
7866   ac_ct_AR=$AR
7867   # Extract the first word of "ar", so it can be a program name with args.
7868 set dummy ar; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7872   $as_echo_n "(cached) " >&6
7873 else
7874   if test -n "$ac_ct_AR"; then
7875   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880   IFS=$as_save_IFS
7881   test -z "$as_dir" && as_dir=.
7882     for ac_exec_ext in '' $ac_executable_extensions; do
7883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884     ac_cv_prog_ac_ct_AR="ar"
7885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886     break 2
7887   fi
7888 done
7889   done
7890 IFS=$as_save_IFS
7891
7892 fi
7893 fi
7894 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7895 if test -n "$ac_ct_AR"; then
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7897 $as_echo "$ac_ct_AR" >&6; }
7898 else
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7901 fi
7902
7903   if test "x$ac_ct_AR" = x; then
7904     AR="false"
7905   else
7906     case $cross_compiling:$ac_tool_warned in
7907 yes:)
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912     AR=$ac_ct_AR
7913   fi
7914 else
7915   AR="$ac_cv_prog_AR"
7916 fi
7917
7918 test -z "$AR" && AR=ar
7919 test -z "$AR_FLAGS" && AR_FLAGS=cru
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931 if test -n "$ac_tool_prefix"; then
7932   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7933 set dummy ${ac_tool_prefix}strip; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_STRIP+set}" = set; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   if test -n "$STRIP"; then
7940   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945   IFS=$as_save_IFS
7946   test -z "$as_dir" && as_dir=.
7947     for ac_exec_ext in '' $ac_executable_extensions; do
7948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951     break 2
7952   fi
7953 done
7954   done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 STRIP=$ac_cv_prog_STRIP
7960 if test -n "$STRIP"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7962 $as_echo "$STRIP" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968
7969 fi
7970 if test -z "$ac_cv_prog_STRIP"; then
7971   ac_ct_STRIP=$STRIP
7972   # Extract the first word of "strip", so it can be a program name with args.
7973 set dummy strip; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979   if test -n "$ac_ct_STRIP"; then
7980   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985   IFS=$as_save_IFS
7986   test -z "$as_dir" && as_dir=.
7987     for ac_exec_ext in '' $ac_executable_extensions; do
7988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989     ac_cv_prog_ac_ct_STRIP="strip"
7990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991     break 2
7992   fi
7993 done
7994   done
7995 IFS=$as_save_IFS
7996
7997 fi
7998 fi
7999 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8000 if test -n "$ac_ct_STRIP"; then
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8002 $as_echo "$ac_ct_STRIP" >&6; }
8003 else
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008   if test "x$ac_ct_STRIP" = x; then
8009     STRIP=":"
8010   else
8011     case $cross_compiling:$ac_tool_warned in
8012 yes:)
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015 ac_tool_warned=yes ;;
8016 esac
8017     STRIP=$ac_ct_STRIP
8018   fi
8019 else
8020   STRIP="$ac_cv_prog_STRIP"
8021 fi
8022
8023 test -z "$STRIP" && STRIP=:
8024
8025
8026
8027
8028
8029
8030 if test -n "$ac_tool_prefix"; then
8031   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   if test -n "$RANLIB"; then
8039   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 RANLIB=$ac_cv_prog_RANLIB
8059 if test -n "$RANLIB"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8061 $as_echo "$RANLIB" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067
8068 fi
8069 if test -z "$ac_cv_prog_RANLIB"; then
8070   ac_ct_RANLIB=$RANLIB
8071   # Extract the first word of "ranlib", so it can be a program name with args.
8072 set dummy ranlib; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8076   $as_echo_n "(cached) " >&6
8077 else
8078   if test -n "$ac_ct_RANLIB"; then
8079   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084   IFS=$as_save_IFS
8085   test -z "$as_dir" && as_dir=.
8086     for ac_exec_ext in '' $ac_executable_extensions; do
8087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088     ac_cv_prog_ac_ct_RANLIB="ranlib"
8089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090     break 2
8091   fi
8092 done
8093   done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8099 if test -n "$ac_ct_RANLIB"; then
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8101 $as_echo "$ac_ct_RANLIB" >&6; }
8102 else
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107   if test "x$ac_ct_RANLIB" = x; then
8108     RANLIB=":"
8109   else
8110     case $cross_compiling:$ac_tool_warned in
8111 yes:)
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8115 esac
8116     RANLIB=$ac_ct_RANLIB
8117   fi
8118 else
8119   RANLIB="$ac_cv_prog_RANLIB"
8120 fi
8121
8122 test -z "$RANLIB" && RANLIB=:
8123
8124
8125
8126
8127
8128
8129 # Determine commands to create old-style static archives.
8130 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8131 old_postinstall_cmds='chmod 644 $oldlib'
8132 old_postuninstall_cmds=
8133
8134 if test -n "$RANLIB"; then
8135   case $host_os in
8136   openbsd*)
8137     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8138     ;;
8139   *)
8140     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8141     ;;
8142   esac
8143   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8144 fi
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179 # If no C compiler was specified, use CC.
8180 LTCC=${LTCC-"$CC"}
8181
8182 # If no C compiler flags were specified, use CFLAGS.
8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8184
8185 # Allow CC to be a program name with arguments.
8186 compiler=$CC
8187
8188
8189 # Check for command to grab the raw symbol name followed by C symbol from nm.
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8191 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8192 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195
8196 # These are sane defaults that work on at least a few old systems.
8197 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8198
8199 # Character class describing NM global symbol codes.
8200 symcode='[BCDEGRST]'
8201
8202 # Regexp to match symbols that can be accessed directly from C.
8203 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8204
8205 # Define system-specific variables.
8206 case $host_os in
8207 aix*)
8208   symcode='[BCDT]'
8209   ;;
8210 cygwin* | mingw* | pw32* | cegcc*)
8211   symcode='[ABCDGISTW]'
8212   ;;
8213 hpux*)
8214   if test "$host_cpu" = ia64; then
8215     symcode='[ABCDEGRST]'
8216   fi
8217   ;;
8218 irix* | nonstopux*)
8219   symcode='[BCDEGRST]'
8220   ;;
8221 osf*)
8222   symcode='[BCDEGQRST]'
8223   ;;
8224 solaris*)
8225   symcode='[BDRT]'
8226   ;;
8227 sco3.2v5*)
8228   symcode='[DT]'
8229   ;;
8230 sysv4.2uw2*)
8231   symcode='[DT]'
8232   ;;
8233 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8234   symcode='[ABDT]'
8235   ;;
8236 sysv4)
8237   symcode='[DFNSTU]'
8238   ;;
8239 esac
8240
8241 # If we're using GNU nm, then use its standard symbol codes.
8242 case `$NM -V 2>&1` in
8243 *GNU* | *'with BFD'*)
8244   symcode='[ABCDGIRSTW]' ;;
8245 esac
8246
8247 # Transform an extracted symbol line into a proper C declaration.
8248 # Some systems (esp. on ia64) link data and code symbols differently,
8249 # so use this general approach.
8250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8251
8252 # Transform an extracted symbol line into symbol name and symbol address
8253 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8254 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'"
8255
8256 # Handle CRLF in mingw tool chain
8257 opt_cr=
8258 case $build_os in
8259 mingw*)
8260   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8261   ;;
8262 esac
8263
8264 # Try without a prefix underscore, then with it.
8265 for ac_symprfx in "" "_"; do
8266
8267   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8268   symxfrm="\\1 $ac_symprfx\\2 \\2"
8269
8270   # Write the raw and C identifiers.
8271   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8272     # Fake it for dumpbin and say T for any non-static function
8273     # and D for any global variable.
8274     # Also find C++ and __fastcall symbols from MSVC++,
8275     # which start with @ or ?.
8276     lt_cv_sys_global_symbol_pipe="$AWK '"\
8277 "     {last_section=section; section=\$ 3};"\
8278 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8279 "     \$ 0!~/External *\|/{next};"\
8280 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8281 "     {if(hide[section]) next};"\
8282 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8283 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8284 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8285 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8286 "     ' prfx=^$ac_symprfx"
8287   else
8288     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8289   fi
8290
8291   # Check to see that the pipe works correctly.
8292   pipe_works=no
8293
8294   rm -f conftest*
8295   cat > conftest.$ac_ext <<_LT_EOF
8296 #ifdef __cplusplus
8297 extern "C" {
8298 #endif
8299 char nm_test_var;
8300 void nm_test_func(void);
8301 void nm_test_func(void){}
8302 #ifdef __cplusplus
8303 }
8304 #endif
8305 int main(){nm_test_var='a';nm_test_func();return(0);}
8306 _LT_EOF
8307
8308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8309   (eval $ac_compile) 2>&5
8310   ac_status=$?
8311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312   test $ac_status = 0; }; then
8313     # Now try to grab the symbols.
8314     nlist=conftest.nm
8315     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8316   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8317   ac_status=$?
8318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8319   test $ac_status = 0; } && test -s "$nlist"; then
8320       # Try sorting and uniquifying the output.
8321       if sort "$nlist" | uniq > "$nlist"T; then
8322         mv -f "$nlist"T "$nlist"
8323       else
8324         rm -f "$nlist"T
8325       fi
8326
8327       # Make sure that we snagged all the symbols we need.
8328       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8329         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8330           cat <<_LT_EOF > conftest.$ac_ext
8331 #ifdef __cplusplus
8332 extern "C" {
8333 #endif
8334
8335 _LT_EOF
8336           # Now generate the symbol file.
8337           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8338
8339           cat <<_LT_EOF >> conftest.$ac_ext
8340
8341 /* The mapping between symbol names and symbols.  */
8342 const struct {
8343   const char *name;
8344   void       *address;
8345 }
8346 lt__PROGRAM__LTX_preloaded_symbols[] =
8347 {
8348   { "@PROGRAM@", (void *) 0 },
8349 _LT_EOF
8350           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8351           cat <<\_LT_EOF >> conftest.$ac_ext
8352   {0, (void *) 0}
8353 };
8354
8355 /* This works around a problem in FreeBSD linker */
8356 #ifdef FREEBSD_WORKAROUND
8357 static const void *lt_preloaded_setup() {
8358   return lt__PROGRAM__LTX_preloaded_symbols;
8359 }
8360 #endif
8361
8362 #ifdef __cplusplus
8363 }
8364 #endif
8365 _LT_EOF
8366           # Now try linking the two files.
8367           mv conftest.$ac_objext conftstm.$ac_objext
8368           lt_save_LIBS="$LIBS"
8369           lt_save_CFLAGS="$CFLAGS"
8370           LIBS="conftstm.$ac_objext"
8371           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8372           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8373   (eval $ac_link) 2>&5
8374   ac_status=$?
8375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8376   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8377             pipe_works=yes
8378           fi
8379           LIBS="$lt_save_LIBS"
8380           CFLAGS="$lt_save_CFLAGS"
8381         else
8382           echo "cannot find nm_test_func in $nlist" >&5
8383         fi
8384       else
8385         echo "cannot find nm_test_var in $nlist" >&5
8386       fi
8387     else
8388       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8389     fi
8390   else
8391     echo "$progname: failed program was:" >&5
8392     cat conftest.$ac_ext >&5
8393   fi
8394   rm -rf conftest* conftst*
8395
8396   # Do not use the global_symbol_pipe unless it works.
8397   if test "$pipe_works" = yes; then
8398     break
8399   else
8400     lt_cv_sys_global_symbol_pipe=
8401   fi
8402 done
8403
8404 fi
8405
8406 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8407   lt_cv_sys_global_symbol_to_cdecl=
8408 fi
8409 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8411 $as_echo "failed" >&6; }
8412 else
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8414 $as_echo "ok" >&6; }
8415 fi
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438 # Check whether --enable-libtool-lock was given.
8439 if test "${enable_libtool_lock+set}" = set; then :
8440   enableval=$enable_libtool_lock;
8441 fi
8442
8443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8444
8445 # Some flags need to be propagated to the compiler or linker for good
8446 # libtool support.
8447 case $host in
8448 ia64-*-hpux*)
8449   # Find out which ABI we are using.
8450   echo 'int i;' > conftest.$ac_ext
8451   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8452   (eval $ac_compile) 2>&5
8453   ac_status=$?
8454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8455   test $ac_status = 0; }; then
8456     case `/usr/bin/file conftest.$ac_objext` in
8457       *ELF-32*)
8458         HPUX_IA64_MODE="32"
8459         ;;
8460       *ELF-64*)
8461         HPUX_IA64_MODE="64"
8462         ;;
8463     esac
8464   fi
8465   rm -rf conftest*
8466   ;;
8467 *-*-irix6*)
8468   # Find out which ABI we are using.
8469   echo '#line 8469 "configure"' > conftest.$ac_ext
8470   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8471   (eval $ac_compile) 2>&5
8472   ac_status=$?
8473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8474   test $ac_status = 0; }; then
8475     if test "$lt_cv_prog_gnu_ld" = yes; then
8476       case `/usr/bin/file conftest.$ac_objext` in
8477         *32-bit*)
8478           LD="${LD-ld} -melf32bsmip"
8479           ;;
8480         *N32*)
8481           LD="${LD-ld} -melf32bmipn32"
8482           ;;
8483         *64-bit*)
8484           LD="${LD-ld} -melf64bmip"
8485         ;;
8486       esac
8487     else
8488       case `/usr/bin/file conftest.$ac_objext` in
8489         *32-bit*)
8490           LD="${LD-ld} -32"
8491           ;;
8492         *N32*)
8493           LD="${LD-ld} -n32"
8494           ;;
8495         *64-bit*)
8496           LD="${LD-ld} -64"
8497           ;;
8498       esac
8499     fi
8500   fi
8501   rm -rf conftest*
8502   ;;
8503
8504 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8505 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8506   # Find out which ABI we are using.
8507   echo 'int i;' > conftest.$ac_ext
8508   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8509   (eval $ac_compile) 2>&5
8510   ac_status=$?
8511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512   test $ac_status = 0; }; then
8513     case `/usr/bin/file conftest.o` in
8514       *32-bit*)
8515         case $host in
8516           x86_64-*kfreebsd*-gnu)
8517             LD="${LD-ld} -m elf_i386_fbsd"
8518             ;;
8519           x86_64-*linux*)
8520             LD="${LD-ld} -m elf_i386"
8521             ;;
8522           ppc64-*linux*|powerpc64-*linux*)
8523             LD="${LD-ld} -m elf32ppclinux"
8524             ;;
8525           s390x-*linux*)
8526             LD="${LD-ld} -m elf_s390"
8527             ;;
8528           sparc64-*linux*)
8529             LD="${LD-ld} -m elf32_sparc"
8530             ;;
8531         esac
8532         ;;
8533       *64-bit*)
8534         case $host in
8535           x86_64-*kfreebsd*-gnu)
8536             LD="${LD-ld} -m elf_x86_64_fbsd"
8537             ;;
8538           x86_64-*linux*)
8539             LD="${LD-ld} -m elf_x86_64"
8540             ;;
8541           ppc*-*linux*|powerpc*-*linux*)
8542             LD="${LD-ld} -m elf64ppc"
8543             ;;
8544           s390*-*linux*|s390*-*tpf*)
8545             LD="${LD-ld} -m elf64_s390"
8546             ;;
8547           sparc*-*linux*)
8548             LD="${LD-ld} -m elf64_sparc"
8549             ;;
8550         esac
8551         ;;
8552     esac
8553   fi
8554   rm -rf conftest*
8555   ;;
8556
8557 *-*-sco3.2v5*)
8558   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8559   SAVE_CFLAGS="$CFLAGS"
8560   CFLAGS="$CFLAGS -belf"
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8562 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8563 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   ac_ext=c
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8571
8572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h.  */
8574
8575 int
8576 main ()
8577 {
8578
8579   ;
8580   return 0;
8581 }
8582 _ACEOF
8583 if ac_fn_c_try_link "$LINENO"; then :
8584   lt_cv_cc_needs_belf=yes
8585 else
8586   lt_cv_cc_needs_belf=no
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext \
8589     conftest$ac_exeext conftest.$ac_ext
8590      ac_ext=c
8591 ac_cpp='$CPP $CPPFLAGS'
8592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8595
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8598 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8599   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8600     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8601     CFLAGS="$SAVE_CFLAGS"
8602   fi
8603   ;;
8604 sparc*-*solaris*)
8605   # Find out which ABI we are using.
8606   echo 'int i;' > conftest.$ac_ext
8607   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8608   (eval $ac_compile) 2>&5
8609   ac_status=$?
8610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8611   test $ac_status = 0; }; then
8612     case `/usr/bin/file conftest.o` in
8613     *64-bit*)
8614       case $lt_cv_prog_gnu_ld in
8615       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8616       *)
8617         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8618           LD="${LD-ld} -64"
8619         fi
8620         ;;
8621       esac
8622       ;;
8623     esac
8624   fi
8625   rm -rf conftest*
8626   ;;
8627 esac
8628
8629 need_locks="$enable_libtool_lock"
8630
8631
8632   case $host_os in
8633     rhapsody* | darwin*)
8634     if test -n "$ac_tool_prefix"; then
8635   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8636 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   if test -n "$DSYMUTIL"; then
8643   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650     for ac_exec_ext in '' $ac_executable_extensions; do
8651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657   done
8658 IFS=$as_save_IFS
8659
8660 fi
8661 fi
8662 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8663 if test -n "$DSYMUTIL"; then
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8665 $as_echo "$DSYMUTIL" >&6; }
8666 else
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669 fi
8670
8671
8672 fi
8673 if test -z "$ac_cv_prog_DSYMUTIL"; then
8674   ac_ct_DSYMUTIL=$DSYMUTIL
8675   # Extract the first word of "dsymutil", so it can be a program name with args.
8676 set dummy dsymutil; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   if test -n "$ac_ct_DSYMUTIL"; then
8683   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688   IFS=$as_save_IFS
8689   test -z "$as_dir" && as_dir=.
8690     for ac_exec_ext in '' $ac_executable_extensions; do
8691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694     break 2
8695   fi
8696 done
8697   done
8698 IFS=$as_save_IFS
8699
8700 fi
8701 fi
8702 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8703 if test -n "$ac_ct_DSYMUTIL"; then
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8705 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8706 else
8707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711   if test "x$ac_ct_DSYMUTIL" = x; then
8712     DSYMUTIL=":"
8713   else
8714     case $cross_compiling:$ac_tool_warned in
8715 yes:)
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8718 ac_tool_warned=yes ;;
8719 esac
8720     DSYMUTIL=$ac_ct_DSYMUTIL
8721   fi
8722 else
8723   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8724 fi
8725
8726     if test -n "$ac_tool_prefix"; then
8727   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8728 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8732   $as_echo_n "(cached) " >&6
8733 else
8734   if test -n "$NMEDIT"; then
8735   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740   IFS=$as_save_IFS
8741   test -z "$as_dir" && as_dir=.
8742     for ac_exec_ext in '' $ac_executable_extensions; do
8743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746     break 2
8747   fi
8748 done
8749   done
8750 IFS=$as_save_IFS
8751
8752 fi
8753 fi
8754 NMEDIT=$ac_cv_prog_NMEDIT
8755 if test -n "$NMEDIT"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8757 $as_echo "$NMEDIT" >&6; }
8758 else
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762
8763
8764 fi
8765 if test -z "$ac_cv_prog_NMEDIT"; then
8766   ac_ct_NMEDIT=$NMEDIT
8767   # Extract the first word of "nmedit", so it can be a program name with args.
8768 set dummy nmedit; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8772   $as_echo_n "(cached) " >&6
8773 else
8774   if test -n "$ac_ct_NMEDIT"; then
8775   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8776 else
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in $PATH
8779 do
8780   IFS=$as_save_IFS
8781   test -z "$as_dir" && as_dir=.
8782     for ac_exec_ext in '' $ac_executable_extensions; do
8783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786     break 2
8787   fi
8788 done
8789   done
8790 IFS=$as_save_IFS
8791
8792 fi
8793 fi
8794 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8795 if test -n "$ac_ct_NMEDIT"; then
8796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8797 $as_echo "$ac_ct_NMEDIT" >&6; }
8798 else
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 fi
8802
8803   if test "x$ac_ct_NMEDIT" = x; then
8804     NMEDIT=":"
8805   else
8806     case $cross_compiling:$ac_tool_warned in
8807 yes:)
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8810 ac_tool_warned=yes ;;
8811 esac
8812     NMEDIT=$ac_ct_NMEDIT
8813   fi
8814 else
8815   NMEDIT="$ac_cv_prog_NMEDIT"
8816 fi
8817
8818     if test -n "$ac_tool_prefix"; then
8819   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8820 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if test "${ac_cv_prog_LIPO+set}" = set; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   if test -n "$LIPO"; then
8827   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843
8844 fi
8845 fi
8846 LIPO=$ac_cv_prog_LIPO
8847 if test -n "$LIPO"; then
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8849 $as_echo "$LIPO" >&6; }
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855
8856 fi
8857 if test -z "$ac_cv_prog_LIPO"; then
8858   ac_ct_LIPO=$LIPO
8859   # Extract the first word of "lipo", so it can be a program name with args.
8860 set dummy lipo; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   if test -n "$ac_ct_LIPO"; then
8867   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872   IFS=$as_save_IFS
8873   test -z "$as_dir" && as_dir=.
8874     for ac_exec_ext in '' $ac_executable_extensions; do
8875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876     ac_cv_prog_ac_ct_LIPO="lipo"
8877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878     break 2
8879   fi
8880 done
8881   done
8882 IFS=$as_save_IFS
8883
8884 fi
8885 fi
8886 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8887 if test -n "$ac_ct_LIPO"; then
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8889 $as_echo "$ac_ct_LIPO" >&6; }
8890 else
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 fi
8894
8895   if test "x$ac_ct_LIPO" = x; then
8896     LIPO=":"
8897   else
8898     case $cross_compiling:$ac_tool_warned in
8899 yes:)
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8902 ac_tool_warned=yes ;;
8903 esac
8904     LIPO=$ac_ct_LIPO
8905   fi
8906 else
8907   LIPO="$ac_cv_prog_LIPO"
8908 fi
8909
8910     if test -n "$ac_tool_prefix"; then
8911   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8912 set dummy ${ac_tool_prefix}otool; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8916   $as_echo_n "(cached) " >&6
8917 else
8918   if test -n "$OTOOL"; then
8919   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8920 else
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8923 do
8924   IFS=$as_save_IFS
8925   test -z "$as_dir" && as_dir=.
8926     for ac_exec_ext in '' $ac_executable_extensions; do
8927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930     break 2
8931   fi
8932 done
8933   done
8934 IFS=$as_save_IFS
8935
8936 fi
8937 fi
8938 OTOOL=$ac_cv_prog_OTOOL
8939 if test -n "$OTOOL"; then
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8941 $as_echo "$OTOOL" >&6; }
8942 else
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8945 fi
8946
8947
8948 fi
8949 if test -z "$ac_cv_prog_OTOOL"; then
8950   ac_ct_OTOOL=$OTOOL
8951   # Extract the first word of "otool", so it can be a program name with args.
8952 set dummy otool; ac_word=$2
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 $as_echo_n "checking for $ac_word... " >&6; }
8955 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   if test -n "$ac_ct_OTOOL"; then
8959   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8960 else
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8963 do
8964   IFS=$as_save_IFS
8965   test -z "$as_dir" && as_dir=.
8966     for ac_exec_ext in '' $ac_executable_extensions; do
8967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968     ac_cv_prog_ac_ct_OTOOL="otool"
8969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970     break 2
8971   fi
8972 done
8973   done
8974 IFS=$as_save_IFS
8975
8976 fi
8977 fi
8978 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8979 if test -n "$ac_ct_OTOOL"; then
8980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8981 $as_echo "$ac_ct_OTOOL" >&6; }
8982 else
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8985 fi
8986
8987   if test "x$ac_ct_OTOOL" = x; then
8988     OTOOL=":"
8989   else
8990     case $cross_compiling:$ac_tool_warned in
8991 yes:)
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8994 ac_tool_warned=yes ;;
8995 esac
8996     OTOOL=$ac_ct_OTOOL
8997   fi
8998 else
8999   OTOOL="$ac_cv_prog_OTOOL"
9000 fi
9001
9002     if test -n "$ac_tool_prefix"; then
9003   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9004 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   if test -n "$OTOOL64"; then
9011   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9015 do
9016   IFS=$as_save_IFS
9017   test -z "$as_dir" && as_dir=.
9018     for ac_exec_ext in '' $ac_executable_extensions; do
9019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022     break 2
9023   fi
9024 done
9025   done
9026 IFS=$as_save_IFS
9027
9028 fi
9029 fi
9030 OTOOL64=$ac_cv_prog_OTOOL64
9031 if test -n "$OTOOL64"; then
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9033 $as_echo "$OTOOL64" >&6; }
9034 else
9035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9037 fi
9038
9039
9040 fi
9041 if test -z "$ac_cv_prog_OTOOL64"; then
9042   ac_ct_OTOOL64=$OTOOL64
9043   # Extract the first word of "otool64", so it can be a program name with args.
9044 set dummy otool64; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9048   $as_echo_n "(cached) " >&6
9049 else
9050   if test -n "$ac_ct_OTOOL64"; then
9051   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056   IFS=$as_save_IFS
9057   test -z "$as_dir" && as_dir=.
9058     for ac_exec_ext in '' $ac_executable_extensions; do
9059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060     ac_cv_prog_ac_ct_OTOOL64="otool64"
9061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062     break 2
9063   fi
9064 done
9065   done
9066 IFS=$as_save_IFS
9067
9068 fi
9069 fi
9070 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9071 if test -n "$ac_ct_OTOOL64"; then
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9073 $as_echo "$ac_ct_OTOOL64" >&6; }
9074 else
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9077 fi
9078
9079   if test "x$ac_ct_OTOOL64" = x; then
9080     OTOOL64=":"
9081   else
9082     case $cross_compiling:$ac_tool_warned in
9083 yes:)
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9086 ac_tool_warned=yes ;;
9087 esac
9088     OTOOL64=$ac_ct_OTOOL64
9089   fi
9090 else
9091   OTOOL64="$ac_cv_prog_OTOOL64"
9092 fi
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9121 $as_echo_n "checking for -single_module linker flag... " >&6; }
9122 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   lt_cv_apple_cc_single_mod=no
9126       if test -z "${LT_MULTI_MODULE}"; then
9127         # By default we will add the -single_module flag. You can override
9128         # by either setting the environment variable LT_MULTI_MODULE
9129         # non-empty at configure time, or by adding -multi_module to the
9130         # link flags.
9131         rm -rf libconftest.dylib*
9132         echo "int foo(void){return 1;}" > conftest.c
9133         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9134 -dynamiclib -Wl,-single_module conftest.c" >&5
9135         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9136           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9137         _lt_result=$?
9138         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9139           lt_cv_apple_cc_single_mod=yes
9140         else
9141           cat conftest.err >&5
9142         fi
9143         rm -rf libconftest.dylib*
9144         rm -f conftest.*
9145       fi
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9148 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9150 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9151 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9152   $as_echo_n "(cached) " >&6
9153 else
9154   lt_cv_ld_exported_symbols_list=no
9155       save_LDFLAGS=$LDFLAGS
9156       echo "_main" > conftest.sym
9157       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h.  */
9160
9161 int
9162 main ()
9163 {
9164
9165   ;
9166   return 0;
9167 }
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9170   lt_cv_ld_exported_symbols_list=yes
9171 else
9172   lt_cv_ld_exported_symbols_list=no
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext \
9175     conftest$ac_exeext conftest.$ac_ext
9176         LDFLAGS="$save_LDFLAGS"
9177
9178 fi
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9180 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9181     case $host_os in
9182     rhapsody* | darwin1.[012])
9183       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9184     darwin1.*)
9185       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9186     darwin*) # darwin 5.x on
9187       # if running on 10.5 or later, the deployment target defaults
9188       # to the OS version, if on x86, and 10.4, the deployment
9189       # target defaults to 10.4. Don't you love it?
9190       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9191         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9192           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9193         10.[012]*)
9194           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9195         10.*)
9196           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9197       esac
9198     ;;
9199   esac
9200     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9201       _lt_dar_single_mod='$single_module'
9202     fi
9203     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9204       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9205     else
9206       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9207     fi
9208     if test "$DSYMUTIL" != ":"; then
9209       _lt_dsymutil='~$DSYMUTIL $lib || :'
9210     else
9211       _lt_dsymutil=
9212     fi
9213     ;;
9214   esac
9215
9216 for ac_header in dlfcn.h
9217 do :
9218   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9219 "
9220 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9221   cat >>confdefs.h <<_ACEOF
9222 #define HAVE_DLFCN_H 1
9223 _ACEOF
9224
9225 fi
9226
9227 done
9228
9229
9230
9231 ac_ext=cpp
9232 ac_cpp='$CXXCPP $CPPFLAGS'
9233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9236 if test -z "$CXX"; then
9237   if test -n "$CCC"; then
9238     CXX=$CCC
9239   else
9240     if test -n "$ac_tool_prefix"; then
9241   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9242   do
9243     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if test "${ac_cv_prog_CXX+set}" = set; then :
9248   $as_echo_n "(cached) " >&6
9249 else
9250   if test -n "$CXX"; then
9251   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9252 else
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9255 do
9256   IFS=$as_save_IFS
9257   test -z "$as_dir" && as_dir=.
9258     for ac_exec_ext in '' $ac_executable_extensions; do
9259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9262     break 2
9263   fi
9264 done
9265   done
9266 IFS=$as_save_IFS
9267
9268 fi
9269 fi
9270 CXX=$ac_cv_prog_CXX
9271 if test -n "$CXX"; then
9272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9273 $as_echo "$CXX" >&6; }
9274 else
9275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9277 fi
9278
9279
9280     test -n "$CXX" && break
9281   done
9282 fi
9283 if test -z "$CXX"; then
9284   ac_ct_CXX=$CXX
9285   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9286 do
9287   # Extract the first word of "$ac_prog", so it can be a program name with args.
9288 set dummy $ac_prog; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9292   $as_echo_n "(cached) " >&6
9293 else
9294   if test -n "$ac_ct_CXX"; then
9295   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9299 do
9300   IFS=$as_save_IFS
9301   test -z "$as_dir" && as_dir=.
9302     for ac_exec_ext in '' $ac_executable_extensions; do
9303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304     ac_cv_prog_ac_ct_CXX="$ac_prog"
9305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306     break 2
9307   fi
9308 done
9309   done
9310 IFS=$as_save_IFS
9311
9312 fi
9313 fi
9314 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9315 if test -n "$ac_ct_CXX"; then
9316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9317 $as_echo "$ac_ct_CXX" >&6; }
9318 else
9319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9321 fi
9322
9323
9324   test -n "$ac_ct_CXX" && break
9325 done
9326
9327   if test "x$ac_ct_CXX" = x; then
9328     CXX="g++"
9329   else
9330     case $cross_compiling:$ac_tool_warned in
9331 yes:)
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9334 ac_tool_warned=yes ;;
9335 esac
9336     CXX=$ac_ct_CXX
9337   fi
9338 fi
9339
9340   fi
9341 fi
9342 # Provide some information about the compiler.
9343 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9344 set X $ac_compile
9345 ac_compiler=$2
9346 for ac_option in --version -v -V -qversion; do
9347   { { ac_try="$ac_compiler $ac_option >&5"
9348 case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9353 $as_echo "$ac_try_echo"; } >&5
9354   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9355   ac_status=$?
9356   if test -s conftest.err; then
9357     sed '10a\
9358 ... rest of stderr output deleted ...
9359          10q' conftest.err >conftest.er1
9360     cat conftest.er1 >&5
9361   fi
9362   rm -f conftest.er1 conftest.err
9363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9364   test $ac_status = 0; }
9365 done
9366
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9368 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9369 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9370   $as_echo_n "(cached) " >&6
9371 else
9372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h.  */
9374
9375 int
9376 main ()
9377 {
9378 #ifndef __GNUC__
9379        choke me
9380 #endif
9381
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_cxx_try_compile "$LINENO"; then :
9387   ac_compiler_gnu=yes
9388 else
9389   ac_compiler_gnu=no
9390 fi
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9393
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9396 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9397 if test $ac_compiler_gnu = yes; then
9398   GXX=yes
9399 else
9400   GXX=
9401 fi
9402 ac_test_CXXFLAGS=${CXXFLAGS+set}
9403 ac_save_CXXFLAGS=$CXXFLAGS
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9405 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9406 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9410    ac_cxx_werror_flag=yes
9411    ac_cv_prog_cxx_g=no
9412    CXXFLAGS="-g"
9413    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h.  */
9415
9416 int
9417 main ()
9418 {
9419
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 if ac_fn_cxx_try_compile "$LINENO"; then :
9425   ac_cv_prog_cxx_g=yes
9426 else
9427   CXXFLAGS=""
9428       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h.  */
9430
9431 int
9432 main ()
9433 {
9434
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_cxx_try_compile "$LINENO"; then :
9440
9441 else
9442   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9443          CXXFLAGS="-g"
9444          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h.  */
9446
9447 int
9448 main ()
9449 {
9450
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 if ac_fn_cxx_try_compile "$LINENO"; then :
9456   ac_cv_prog_cxx_g=yes
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459 fi
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9466 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9467 if test "$ac_test_CXXFLAGS" = set; then
9468   CXXFLAGS=$ac_save_CXXFLAGS
9469 elif test $ac_cv_prog_cxx_g = yes; then
9470   if test "$GXX" = yes; then
9471     CXXFLAGS="-g -O2"
9472   else
9473     CXXFLAGS="-g"
9474   fi
9475 else
9476   if test "$GXX" = yes; then
9477     CXXFLAGS="-O2"
9478   else
9479     CXXFLAGS=
9480   fi
9481 fi
9482 ac_ext=c
9483 ac_cpp='$CPP $CPPFLAGS'
9484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9487
9488 depcc="$CXX"  am_compiler_list=
9489
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9491 $as_echo_n "checking dependency style of $depcc... " >&6; }
9492 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9493   $as_echo_n "(cached) " >&6
9494 else
9495   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9496   # We make a subdir and do the tests there.  Otherwise we can end up
9497   # making bogus files that we don't know about and never remove.  For
9498   # instance it was reported that on HP-UX the gcc test will end up
9499   # making a dummy file named `D' -- because `-MD' means `put the output
9500   # in D'.
9501   mkdir conftest.dir
9502   # Copy depcomp to subdir because otherwise we won't find it if we're
9503   # using a relative directory.
9504   cp "$am_depcomp" conftest.dir
9505   cd conftest.dir
9506   # We will build objects and dependencies in a subdirectory because
9507   # it helps to detect inapplicable dependency modes.  For instance
9508   # both Tru64's cc and ICC support -MD to output dependencies as a
9509   # side effect of compilation, but ICC will put the dependencies in
9510   # the current directory while Tru64 will put them in the object
9511   # directory.
9512   mkdir sub
9513
9514   am_cv_CXX_dependencies_compiler_type=none
9515   if test "$am_compiler_list" = ""; then
9516      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9517   fi
9518   am__universal=false
9519   case " $depcc " in #(
9520      *\ -arch\ *\ -arch\ *) am__universal=true ;;
9521      esac
9522
9523   for depmode in $am_compiler_list; do
9524     # Setup a source with many dependencies, because some compilers
9525     # like to wrap large dependency lists on column 80 (with \), and
9526     # we should not choose a depcomp mode which is confused by this.
9527     #
9528     # We need to recreate these files for each test, as the compiler may
9529     # overwrite some of them when testing with obscure command lines.
9530     # This happens at least with the AIX C compiler.
9531     : > sub/conftest.c
9532     for i in 1 2 3 4 5 6; do
9533       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9534       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9535       # Solaris 8's {/usr,}/bin/sh.
9536       touch sub/conftst$i.h
9537     done
9538     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9539
9540     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9541     # mode.  It turns out that the SunPro C++ compiler does not properly
9542     # handle `-M -o', and we need to detect this.  Also, some Intel
9543     # versions had trouble with output in subdirs
9544     am__obj=sub/conftest.${OBJEXT-o}
9545     am__minus_obj="-o $am__obj"
9546     case $depmode in
9547     gcc)
9548       # This depmode causes a compiler race in universal mode.
9549       test "$am__universal" = false || continue
9550       ;;
9551     nosideeffect)
9552       # after this tag, mechanisms are not by side-effect, so they'll
9553       # only be used when explicitly requested
9554       if test "x$enable_dependency_tracking" = xyes; then
9555         continue
9556       else
9557         break
9558       fi
9559       ;;
9560     msvisualcpp | msvcmsys)
9561       # This compiler won't grok `-c -o', but also, the minuso test has
9562       # not run yet.  These depmodes are late enough in the game, and
9563       # so weak that their functioning should not be impacted.
9564       am__obj=conftest.${OBJEXT-o}
9565       am__minus_obj=
9566       ;;
9567     none) break ;;
9568     esac
9569     if depmode=$depmode \
9570        source=sub/conftest.c object=$am__obj \
9571        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9572        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9573          >/dev/null 2>conftest.err &&
9574        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9575        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9576        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9577        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9578       # icc doesn't choke on unknown options, it will just issue warnings
9579       # or remarks (even with -Werror).  So we grep stderr for any message
9580       # that says an option was ignored or not supported.
9581       # When given -MP, icc 7.0 and 7.1 complain thusly:
9582       #   icc: Command line warning: ignoring option '-M'; no argument required
9583       # The diagnosis changed in icc 8.0:
9584       #   icc: Command line remark: option '-MP' not supported
9585       if (grep 'ignoring option' conftest.err ||
9586           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9587         am_cv_CXX_dependencies_compiler_type=$depmode
9588         break
9589       fi
9590     fi
9591   done
9592
9593   cd ..
9594   rm -rf conftest.dir
9595 else
9596   am_cv_CXX_dependencies_compiler_type=none
9597 fi
9598
9599 fi
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9601 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9602 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9603
9604  if
9605   test "x$enable_dependency_tracking" != xno \
9606   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9607   am__fastdepCXX_TRUE=
9608   am__fastdepCXX_FALSE='#'
9609 else
9610   am__fastdepCXX_TRUE='#'
9611   am__fastdepCXX_FALSE=
9612 fi
9613
9614
9615 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9616     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9617     (test "X$CXX" != "Xg++"))) ; then
9618   ac_ext=cpp
9619 ac_cpp='$CXXCPP $CPPFLAGS'
9620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9624 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9625 if test -z "$CXXCPP"; then
9626   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9627   $as_echo_n "(cached) " >&6
9628 else
9629       # Double quotes because CXXCPP needs to be expanded
9630     for CXXCPP in "$CXX -E" "/lib/cpp"
9631     do
9632       ac_preproc_ok=false
9633 for ac_cxx_preproc_warn_flag in '' yes
9634 do
9635   # Use a header file that comes with gcc, so configuring glibc
9636   # with a fresh cross-compiler works.
9637   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9638   # <limits.h> exists even on freestanding compilers.
9639   # On the NeXT, cc -E runs the code through the compiler's parser,
9640   # not just through cpp. "Syntax error" is here to catch this case.
9641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h.  */
9643 #ifdef __STDC__
9644 # include <limits.h>
9645 #else
9646 # include <assert.h>
9647 #endif
9648                      Syntax error
9649 _ACEOF
9650 if ac_fn_cxx_try_cpp "$LINENO"; then :
9651
9652 else
9653   # Broken: fails on valid input.
9654 continue
9655 fi
9656 rm -f conftest.err conftest.$ac_ext
9657
9658   # OK, works on sane cases.  Now check whether nonexistent headers
9659   # can be detected and how.
9660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h.  */
9662 #include <ac_nonexistent.h>
9663 _ACEOF
9664 if ac_fn_cxx_try_cpp "$LINENO"; then :
9665   # Broken: success on invalid input.
9666 continue
9667 else
9668   # Passes both tests.
9669 ac_preproc_ok=:
9670 break
9671 fi
9672 rm -f conftest.err conftest.$ac_ext
9673
9674 done
9675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9676 rm -f conftest.err conftest.$ac_ext
9677 if $ac_preproc_ok; then :
9678   break
9679 fi
9680
9681     done
9682     ac_cv_prog_CXXCPP=$CXXCPP
9683
9684 fi
9685   CXXCPP=$ac_cv_prog_CXXCPP
9686 else
9687   ac_cv_prog_CXXCPP=$CXXCPP
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9690 $as_echo "$CXXCPP" >&6; }
9691 ac_preproc_ok=false
9692 for ac_cxx_preproc_warn_flag in '' yes
9693 do
9694   # Use a header file that comes with gcc, so configuring glibc
9695   # with a fresh cross-compiler works.
9696   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697   # <limits.h> exists even on freestanding compilers.
9698   # On the NeXT, cc -E runs the code through the compiler's parser,
9699   # not just through cpp. "Syntax error" is here to catch this case.
9700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h.  */
9702 #ifdef __STDC__
9703 # include <limits.h>
9704 #else
9705 # include <assert.h>
9706 #endif
9707                      Syntax error
9708 _ACEOF
9709 if ac_fn_cxx_try_cpp "$LINENO"; then :
9710
9711 else
9712   # Broken: fails on valid input.
9713 continue
9714 fi
9715 rm -f conftest.err conftest.$ac_ext
9716
9717   # OK, works on sane cases.  Now check whether nonexistent headers
9718   # can be detected and how.
9719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h.  */
9721 #include <ac_nonexistent.h>
9722 _ACEOF
9723 if ac_fn_cxx_try_cpp "$LINENO"; then :
9724   # Broken: success on invalid input.
9725 continue
9726 else
9727   # Passes both tests.
9728 ac_preproc_ok=:
9729 break
9730 fi
9731 rm -f conftest.err conftest.$ac_ext
9732
9733 done
9734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9735 rm -f conftest.err conftest.$ac_ext
9736 if $ac_preproc_ok; then :
9737
9738 else
9739   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9741 _lt_caught_CXX_error=yes; }
9742 fi
9743
9744 ac_ext=c
9745 ac_cpp='$CPP $CPPFLAGS'
9746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9749
9750 else
9751   _lt_caught_CXX_error=yes
9752 fi
9753
9754
9755
9756
9757
9758 # Set options
9759
9760
9761
9762         enable_dlopen=no
9763
9764
9765   enable_win32_dll=no
9766
9767
9768             # Check whether --enable-shared was given.
9769 if test "${enable_shared+set}" = set; then :
9770   enableval=$enable_shared; p=${PACKAGE-default}
9771     case $enableval in
9772     yes) enable_shared=yes ;;
9773     no) enable_shared=no ;;
9774     *)
9775       enable_shared=no
9776       # Look at the argument we got.  We use all the common list separators.
9777       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9778       for pkg in $enableval; do
9779         IFS="$lt_save_ifs"
9780         if test "X$pkg" = "X$p"; then
9781           enable_shared=yes
9782         fi
9783       done
9784       IFS="$lt_save_ifs"
9785       ;;
9786     esac
9787 else
9788   enable_shared=yes
9789 fi
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799   # Check whether --enable-static was given.
9800 if test "${enable_static+set}" = set; then :
9801   enableval=$enable_static; p=${PACKAGE-default}
9802     case $enableval in
9803     yes) enable_static=yes ;;
9804     no) enable_static=no ;;
9805     *)
9806      enable_static=no
9807       # Look at the argument we got.  We use all the common list separators.
9808       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9809       for pkg in $enableval; do
9810         IFS="$lt_save_ifs"
9811         if test "X$pkg" = "X$p"; then
9812           enable_static=yes
9813         fi
9814       done
9815       IFS="$lt_save_ifs"
9816       ;;
9817     esac
9818 else
9819   enable_static=yes
9820 fi
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831 # Check whether --with-pic was given.
9832 if test "${with_pic+set}" = set; then :
9833   withval=$with_pic; pic_mode="$withval"
9834 else
9835   pic_mode=default
9836 fi
9837
9838
9839 test -z "$pic_mode" && pic_mode=default
9840
9841
9842
9843
9844
9845
9846
9847   # Check whether --enable-fast-install was given.
9848 if test "${enable_fast_install+set}" = set; then :
9849   enableval=$enable_fast_install; p=${PACKAGE-default}
9850     case $enableval in
9851     yes) enable_fast_install=yes ;;
9852     no) enable_fast_install=no ;;
9853     *)
9854       enable_fast_install=no
9855       # Look at the argument we got.  We use all the common list separators.
9856       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9857       for pkg in $enableval; do
9858         IFS="$lt_save_ifs"
9859         if test "X$pkg" = "X$p"; then
9860           enable_fast_install=yes
9861         fi
9862       done
9863       IFS="$lt_save_ifs"
9864       ;;
9865     esac
9866 else
9867   enable_fast_install=yes
9868 fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880 # This can be used to rebuild libtool when needed
9881 LIBTOOL_DEPS="$ltmain"
9882
9883 # Always use our own libtool.
9884 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910 test -z "$LN_S" && LN_S="ln -s"
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925 if test -n "${ZSH_VERSION+set}" ; then
9926    setopt NO_GLOB_SUBST
9927 fi
9928
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9930 $as_echo_n "checking for objdir... " >&6; }
9931 if test "${lt_cv_objdir+set}" = set; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   rm -f .libs 2>/dev/null
9935 mkdir .libs 2>/dev/null
9936 if test -d .libs; then
9937   lt_cv_objdir=.libs
9938 else
9939   # MS-DOS does not allow filenames that begin with a dot.
9940   lt_cv_objdir=_libs
9941 fi
9942 rmdir .libs 2>/dev/null
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9945 $as_echo "$lt_cv_objdir" >&6; }
9946 objdir=$lt_cv_objdir
9947
9948
9949
9950
9951
9952 cat >>confdefs.h <<_ACEOF
9953 #define LT_OBJDIR "$lt_cv_objdir/"
9954 _ACEOF
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 case $host_os in
9973 aix3*)
9974   # AIX sometimes has problems with the GCC collect2 program.  For some
9975   # reason, if we set the COLLECT_NAMES environment variable, the problems
9976   # vanish in a puff of smoke.
9977   if test "X${COLLECT_NAMES+set}" != Xset; then
9978     COLLECT_NAMES=
9979     export COLLECT_NAMES
9980   fi
9981   ;;
9982 esac
9983
9984 # Sed substitution that helps us do robust quoting.  It backslashifies
9985 # metacharacters that are still active within double-quoted strings.
9986 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9987
9988 # Same as above, but do not quote variable references.
9989 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9990
9991 # Sed substitution to delay expansion of an escaped shell variable in a
9992 # double_quote_subst'ed string.
9993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9994
9995 # Sed substitution to delay expansion of an escaped single quote.
9996 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9997
9998 # Sed substitution to avoid accidental globbing in evaled expressions
9999 no_glob_subst='s/\*/\\\*/g'
10000
10001 # Global variables:
10002 ofile=libtool
10003 can_build_shared=yes
10004
10005 # All known linkers require a `.a' archive for static linking (except MSVC,
10006 # which needs '.lib').
10007 libext=a
10008
10009 with_gnu_ld="$lt_cv_prog_gnu_ld"
10010
10011 old_CC="$CC"
10012 old_CFLAGS="$CFLAGS"
10013
10014 # Set sane defaults for various variables
10015 test -z "$CC" && CC=cc
10016 test -z "$LTCC" && LTCC=$CC
10017 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10018 test -z "$LD" && LD=ld
10019 test -z "$ac_objext" && ac_objext=o
10020
10021 for cc_temp in $compiler""; do
10022   case $cc_temp in
10023     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10024     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10025     \-*) ;;
10026     *) break;;
10027   esac
10028 done
10029 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10030
10031
10032 # Only perform the check for file, if the check method requires it
10033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10034 case $deplibs_check_method in
10035 file_magic*)
10036   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10038 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10039 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   case $MAGIC_CMD in
10043 [\\/*] |  ?:[\\/]*)
10044   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10045   ;;
10046 *)
10047   lt_save_MAGIC_CMD="$MAGIC_CMD"
10048   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10049   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10050   for ac_dir in $ac_dummy; do
10051     IFS="$lt_save_ifs"
10052     test -z "$ac_dir" && ac_dir=.
10053     if test -f $ac_dir/${ac_tool_prefix}file; then
10054       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10055       if test -n "$file_magic_test_file"; then
10056         case $deplibs_check_method in
10057         "file_magic "*)
10058           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10059           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10060           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10061             $EGREP "$file_magic_regex" > /dev/null; then
10062             :
10063           else
10064             cat <<_LT_EOF 1>&2
10065
10066 *** Warning: the command libtool uses to detect shared libraries,
10067 *** $file_magic_cmd, produces output that libtool cannot recognize.
10068 *** The result is that libtool may fail to recognize shared libraries
10069 *** as such.  This will affect the creation of libtool libraries that
10070 *** depend on shared libraries, but programs linked with such libtool
10071 *** libraries will work regardless of this problem.  Nevertheless, you
10072 *** may want to report the problem to your system manager and/or to
10073 *** bug-libtool@gnu.org
10074
10075 _LT_EOF
10076           fi ;;
10077         esac
10078       fi
10079       break
10080     fi
10081   done
10082   IFS="$lt_save_ifs"
10083   MAGIC_CMD="$lt_save_MAGIC_CMD"
10084   ;;
10085 esac
10086 fi
10087
10088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10089 if test -n "$MAGIC_CMD"; then
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10091 $as_echo "$MAGIC_CMD" >&6; }
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096
10097
10098
10099
10100
10101 if test -z "$lt_cv_path_MAGIC_CMD"; then
10102   if test -n "$ac_tool_prefix"; then
10103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10104 $as_echo_n "checking for file... " >&6; }
10105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   case $MAGIC_CMD in
10109 [\\/*] |  ?:[\\/]*)
10110   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10111   ;;
10112 *)
10113   lt_save_MAGIC_CMD="$MAGIC_CMD"
10114   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10115   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10116   for ac_dir in $ac_dummy; do
10117     IFS="$lt_save_ifs"
10118     test -z "$ac_dir" && ac_dir=.
10119     if test -f $ac_dir/file; then
10120       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10121       if test -n "$file_magic_test_file"; then
10122         case $deplibs_check_method in
10123         "file_magic "*)
10124           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10125           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10126           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10127             $EGREP "$file_magic_regex" > /dev/null; then
10128             :
10129           else
10130             cat <<_LT_EOF 1>&2
10131
10132 *** Warning: the command libtool uses to detect shared libraries,
10133 *** $file_magic_cmd, produces output that libtool cannot recognize.
10134 *** The result is that libtool may fail to recognize shared libraries
10135 *** as such.  This will affect the creation of libtool libraries that
10136 *** depend on shared libraries, but programs linked with such libtool
10137 *** libraries will work regardless of this problem.  Nevertheless, you
10138 *** may want to report the problem to your system manager and/or to
10139 *** bug-libtool@gnu.org
10140
10141 _LT_EOF
10142           fi ;;
10143         esac
10144       fi
10145       break
10146     fi
10147   done
10148   IFS="$lt_save_ifs"
10149   MAGIC_CMD="$lt_save_MAGIC_CMD"
10150   ;;
10151 esac
10152 fi
10153
10154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10155 if test -n "$MAGIC_CMD"; then
10156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10157 $as_echo "$MAGIC_CMD" >&6; }
10158 else
10159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10161 fi
10162
10163
10164   else
10165     MAGIC_CMD=:
10166   fi
10167 fi
10168
10169   fi
10170   ;;
10171 esac
10172
10173 # Use C for the default configuration in the libtool script
10174
10175 lt_save_CC="$CC"
10176 ac_ext=c
10177 ac_cpp='$CPP $CPPFLAGS'
10178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10181
10182
10183 # Source file extension for C test sources.
10184 ac_ext=c
10185
10186 # Object file extension for compiled C test sources.
10187 objext=o
10188 objext=$objext
10189
10190 # Code to be used in simple compile tests
10191 lt_simple_compile_test_code="int some_variable = 0;"
10192
10193 # Code to be used in simple link tests
10194 lt_simple_link_test_code='int main(){return(0);}'
10195
10196
10197
10198
10199
10200
10201
10202 # If no C compiler was specified, use CC.
10203 LTCC=${LTCC-"$CC"}
10204
10205 # If no C compiler flags were specified, use CFLAGS.
10206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10207
10208 # Allow CC to be a program name with arguments.
10209 compiler=$CC
10210
10211 # Save the default compiler, since it gets overwritten when the other
10212 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10213 compiler_DEFAULT=$CC
10214
10215 # save warnings/boilerplate of simple test code
10216 ac_outfile=conftest.$ac_objext
10217 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10219 _lt_compiler_boilerplate=`cat conftest.err`
10220 $RM conftest*
10221
10222 ac_outfile=conftest.$ac_objext
10223 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10225 _lt_linker_boilerplate=`cat conftest.err`
10226 $RM -r conftest*
10227
10228
10229 ## CAVEAT EMPTOR:
10230 ## There is no encapsulation within the following macros, do not change
10231 ## the running order or otherwise move them around unless you know exactly
10232 ## what you are doing...
10233 if test -n "$compiler"; then
10234
10235 lt_prog_compiler_no_builtin_flag=
10236
10237 if test "$GCC" = yes; then
10238   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10239
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10241 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10242 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245   lt_cv_prog_compiler_rtti_exceptions=no
10246    ac_outfile=conftest.$ac_objext
10247    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10248    lt_compiler_flag="-fno-rtti -fno-exceptions"
10249    # Insert the option either (1) after the last *FLAGS variable, or
10250    # (2) before a word containing "conftest.", or (3) at the end.
10251    # Note that $ac_compile itself does not contain backslashes and begins
10252    # with a dollar sign (not a hyphen), so the echo should work correctly.
10253    # The option is referenced via a variable to avoid confusing sed.
10254    lt_compile=`echo "$ac_compile" | $SED \
10255    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10256    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10257    -e 's:$: $lt_compiler_flag:'`
10258    (eval echo "\"\$as_me:10258: $lt_compile\"" >&5)
10259    (eval "$lt_compile" 2>conftest.err)
10260    ac_status=$?
10261    cat conftest.err >&5
10262    echo "$as_me:10262: \$? = $ac_status" >&5
10263    if (exit $ac_status) && test -s "$ac_outfile"; then
10264      # The compiler can only warn and ignore the option if not recognized
10265      # So say no if there are warnings other than the usual output.
10266      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10267      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10268      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10269        lt_cv_prog_compiler_rtti_exceptions=yes
10270      fi
10271    fi
10272    $RM conftest*
10273
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10276 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10277
10278 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10279     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10280 else
10281     :
10282 fi
10283
10284 fi
10285
10286
10287
10288
10289
10290
10291   lt_prog_compiler_wl=
10292 lt_prog_compiler_pic=
10293 lt_prog_compiler_static=
10294
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10297
10298   if test "$GCC" = yes; then
10299     lt_prog_compiler_wl='-Wl,'
10300     lt_prog_compiler_static='-static'
10301
10302     case $host_os in
10303       aix*)
10304       # All AIX code is PIC.
10305       if test "$host_cpu" = ia64; then
10306         # AIX 5 now supports IA64 processor
10307         lt_prog_compiler_static='-Bstatic'
10308       fi
10309       ;;
10310
10311     amigaos*)
10312       case $host_cpu in
10313       powerpc)
10314             # see comment about AmigaOS4 .so support
10315             lt_prog_compiler_pic='-fPIC'
10316         ;;
10317       m68k)
10318             # FIXME: we need at least 68020 code to build shared libraries, but
10319             # adding the `-m68020' flag to GCC prevents building anything better,
10320             # like `-m68040'.
10321             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10322         ;;
10323       esac
10324       ;;
10325
10326     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10327       # PIC is the default for these OSes.
10328       ;;
10329
10330     mingw* | cygwin* | pw32* | os2* | cegcc*)
10331       # This hack is so that the source file can tell whether it is being
10332       # built for inclusion in a dll (and should export symbols for example).
10333       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10334       # (--disable-auto-import) libraries
10335       lt_prog_compiler_pic='-DDLL_EXPORT'
10336       ;;
10337
10338     darwin* | rhapsody*)
10339       # PIC is the default on this platform
10340       # Common symbols not allowed in MH_DYLIB files
10341       lt_prog_compiler_pic='-fno-common'
10342       ;;
10343
10344     hpux*)
10345       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10346       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10347       # sets the default TLS model and affects inlining.
10348       case $host_cpu in
10349       hppa*64*)
10350         # +Z the default
10351         ;;
10352       *)
10353         lt_prog_compiler_pic='-fPIC'
10354         ;;
10355       esac
10356       ;;
10357
10358     interix[3-9]*)
10359       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10360       # Instead, we relocate shared libraries at runtime.
10361       ;;
10362
10363     msdosdjgpp*)
10364       # Just because we use GCC doesn't mean we suddenly get shared libraries
10365       # on systems that don't support them.
10366       lt_prog_compiler_can_build_shared=no
10367       enable_shared=no
10368       ;;
10369
10370     *nto* | *qnx*)
10371       # QNX uses GNU C++, but need to define -shared option too, otherwise
10372       # it will coredump.
10373       lt_prog_compiler_pic='-fPIC -shared'
10374       ;;
10375
10376     sysv4*MP*)
10377       if test -d /usr/nec; then
10378         lt_prog_compiler_pic=-Kconform_pic
10379       fi
10380       ;;
10381
10382     *)
10383       lt_prog_compiler_pic='-fPIC'
10384       ;;
10385     esac
10386   else
10387     # PORTME Check for flag to pass linker flags through the system compiler.
10388     case $host_os in
10389     aix*)
10390       lt_prog_compiler_wl='-Wl,'
10391       if test "$host_cpu" = ia64; then
10392         # AIX 5 now supports IA64 processor
10393         lt_prog_compiler_static='-Bstatic'
10394       else
10395         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10396       fi
10397       ;;
10398
10399     mingw* | cygwin* | pw32* | os2* | cegcc*)
10400       # This hack is so that the source file can tell whether it is being
10401       # built for inclusion in a dll (and should export symbols for example).
10402       lt_prog_compiler_pic='-DDLL_EXPORT'
10403       ;;
10404
10405     hpux9* | hpux10* | hpux11*)
10406       lt_prog_compiler_wl='-Wl,'
10407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10408       # not for PA HP-UX.
10409       case $host_cpu in
10410       hppa*64*|ia64*)
10411         # +Z the default
10412         ;;
10413       *)
10414         lt_prog_compiler_pic='+Z'
10415         ;;
10416       esac
10417       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10418       lt_prog_compiler_static='${wl}-a ${wl}archive'
10419       ;;
10420
10421     irix5* | irix6* | nonstopux*)
10422       lt_prog_compiler_wl='-Wl,'
10423       # PIC (with -KPIC) is the default.
10424       lt_prog_compiler_static='-non_shared'
10425       ;;
10426
10427     linux* | k*bsd*-gnu)
10428       case $cc_basename in
10429       # old Intel for x86_64 which still supported -KPIC.
10430       ecc*)
10431         lt_prog_compiler_wl='-Wl,'
10432         lt_prog_compiler_pic='-KPIC'
10433         lt_prog_compiler_static='-static'
10434         ;;
10435       # icc used to be incompatible with GCC.
10436       # ICC 10 doesn't accept -KPIC any more.
10437       icc* | ifort*)
10438         lt_prog_compiler_wl='-Wl,'
10439         lt_prog_compiler_pic='-fPIC'
10440         lt_prog_compiler_static='-static'
10441         ;;
10442       # Lahey Fortran 8.1.
10443       lf95*)
10444         lt_prog_compiler_wl='-Wl,'
10445         lt_prog_compiler_pic='--shared'
10446         lt_prog_compiler_static='--static'
10447         ;;
10448       pgcc* | pgf77* | pgf90* | pgf95*)
10449         # Portland Group compilers (*not* the Pentium gcc compiler,
10450         # which looks to be a dead project)
10451         lt_prog_compiler_wl='-Wl,'
10452         lt_prog_compiler_pic='-fpic'
10453         lt_prog_compiler_static='-Bstatic'
10454         ;;
10455       ccc*)
10456         lt_prog_compiler_wl='-Wl,'
10457         # All Alpha code is PIC.
10458         lt_prog_compiler_static='-non_shared'
10459         ;;
10460       xl*)
10461         # IBM XL C 8.0/Fortran 10.1 on PPC
10462         lt_prog_compiler_wl='-Wl,'
10463         lt_prog_compiler_pic='-qpic'
10464         lt_prog_compiler_static='-qstaticlink'
10465         ;;
10466       *)
10467         case `$CC -V 2>&1 | sed 5q` in
10468         *Sun\ C*)
10469           # Sun C 5.9
10470           lt_prog_compiler_pic='-KPIC'
10471           lt_prog_compiler_static='-Bstatic'
10472           lt_prog_compiler_wl='-Wl,'
10473           ;;
10474         *Sun\ F*)
10475           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10476           lt_prog_compiler_pic='-KPIC'
10477           lt_prog_compiler_static='-Bstatic'
10478           lt_prog_compiler_wl=''
10479           ;;
10480         esac
10481         ;;
10482       esac
10483       ;;
10484
10485     newsos6)
10486       lt_prog_compiler_pic='-KPIC'
10487       lt_prog_compiler_static='-Bstatic'
10488       ;;
10489
10490     *nto* | *qnx*)
10491       # QNX uses GNU C++, but need to define -shared option too, otherwise
10492       # it will coredump.
10493       lt_prog_compiler_pic='-fPIC -shared'
10494       ;;
10495
10496     osf3* | osf4* | osf5*)
10497       lt_prog_compiler_wl='-Wl,'
10498       # All OSF/1 code is PIC.
10499       lt_prog_compiler_static='-non_shared'
10500       ;;
10501
10502     rdos*)
10503       lt_prog_compiler_static='-non_shared'
10504       ;;
10505
10506     solaris*)
10507       lt_prog_compiler_pic='-KPIC'
10508       lt_prog_compiler_static='-Bstatic'
10509       case $cc_basename in
10510       f77* | f90* | f95*)
10511         lt_prog_compiler_wl='-Qoption ld ';;
10512       *)
10513         lt_prog_compiler_wl='-Wl,';;
10514       esac
10515       ;;
10516
10517     sunos4*)
10518       lt_prog_compiler_wl='-Qoption ld '
10519       lt_prog_compiler_pic='-PIC'
10520       lt_prog_compiler_static='-Bstatic'
10521       ;;
10522
10523     sysv4 | sysv4.2uw2* | sysv4.3*)
10524       lt_prog_compiler_wl='-Wl,'
10525       lt_prog_compiler_pic='-KPIC'
10526       lt_prog_compiler_static='-Bstatic'
10527       ;;
10528
10529     sysv4*MP*)
10530       if test -d /usr/nec ;then
10531         lt_prog_compiler_pic='-Kconform_pic'
10532         lt_prog_compiler_static='-Bstatic'
10533       fi
10534       ;;
10535
10536     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10537       lt_prog_compiler_wl='-Wl,'
10538       lt_prog_compiler_pic='-KPIC'
10539       lt_prog_compiler_static='-Bstatic'
10540       ;;
10541
10542     unicos*)
10543       lt_prog_compiler_wl='-Wl,'
10544       lt_prog_compiler_can_build_shared=no
10545       ;;
10546
10547     uts4*)
10548       lt_prog_compiler_pic='-pic'
10549       lt_prog_compiler_static='-Bstatic'
10550       ;;
10551
10552     *)
10553       lt_prog_compiler_can_build_shared=no
10554       ;;
10555     esac
10556   fi
10557
10558 case $host_os in
10559   # For platforms which do not support PIC, -DPIC is meaningless:
10560   *djgpp*)
10561     lt_prog_compiler_pic=
10562     ;;
10563   *)
10564     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10565     ;;
10566 esac
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10568 $as_echo "$lt_prog_compiler_pic" >&6; }
10569
10570
10571
10572
10573
10574
10575 #
10576 # Check to make sure the PIC flag actually works.
10577 #
10578 if test -n "$lt_prog_compiler_pic"; then
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10581 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10582   $as_echo_n "(cached) " >&6
10583 else
10584   lt_cv_prog_compiler_pic_works=no
10585    ac_outfile=conftest.$ac_objext
10586    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10587    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10588    # Insert the option either (1) after the last *FLAGS variable, or
10589    # (2) before a word containing "conftest.", or (3) at the end.
10590    # Note that $ac_compile itself does not contain backslashes and begins
10591    # with a dollar sign (not a hyphen), so the echo should work correctly.
10592    # The option is referenced via a variable to avoid confusing sed.
10593    lt_compile=`echo "$ac_compile" | $SED \
10594    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10595    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10596    -e 's:$: $lt_compiler_flag:'`
10597    (eval echo "\"\$as_me:10597: $lt_compile\"" >&5)
10598    (eval "$lt_compile" 2>conftest.err)
10599    ac_status=$?
10600    cat conftest.err >&5
10601    echo "$as_me:10601: \$? = $ac_status" >&5
10602    if (exit $ac_status) && test -s "$ac_outfile"; then
10603      # The compiler can only warn and ignore the option if not recognized
10604      # So say no if there are warnings other than the usual output.
10605      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10606      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10607      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10608        lt_cv_prog_compiler_pic_works=yes
10609      fi
10610    fi
10611    $RM conftest*
10612
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10616
10617 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10618     case $lt_prog_compiler_pic in
10619      "" | " "*) ;;
10620      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10621      esac
10622 else
10623     lt_prog_compiler_pic=
10624      lt_prog_compiler_can_build_shared=no
10625 fi
10626
10627 fi
10628
10629
10630
10631
10632
10633
10634 #
10635 # Check to make sure the static flag actually works.
10636 #
10637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10640 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10641   $as_echo_n "(cached) " >&6
10642 else
10643   lt_cv_prog_compiler_static_works=no
10644    save_LDFLAGS="$LDFLAGS"
10645    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10646    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10647    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10648      # The linker can only warn and ignore the option if not recognized
10649      # So say no if there are warnings
10650      if test -s conftest.err; then
10651        # Append any errors to the config.log.
10652        cat conftest.err 1>&5
10653        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10654        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10655        if diff conftest.exp conftest.er2 >/dev/null; then
10656          lt_cv_prog_compiler_static_works=yes
10657        fi
10658      else
10659        lt_cv_prog_compiler_static_works=yes
10660      fi
10661    fi
10662    $RM -r conftest*
10663    LDFLAGS="$save_LDFLAGS"
10664
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10667 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10668
10669 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10670     :
10671 else
10672     lt_prog_compiler_static=
10673 fi
10674
10675
10676
10677
10678
10679
10680
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10684   $as_echo_n "(cached) " >&6
10685 else
10686   lt_cv_prog_compiler_c_o=no
10687    $RM -r conftest 2>/dev/null
10688    mkdir conftest
10689    cd conftest
10690    mkdir out
10691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10692
10693    lt_compiler_flag="-o out/conftest2.$ac_objext"
10694    # Insert the option either (1) after the last *FLAGS variable, or
10695    # (2) before a word containing "conftest.", or (3) at the end.
10696    # Note that $ac_compile itself does not contain backslashes and begins
10697    # with a dollar sign (not a hyphen), so the echo should work correctly.
10698    lt_compile=`echo "$ac_compile" | $SED \
10699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10701    -e 's:$: $lt_compiler_flag:'`
10702    (eval echo "\"\$as_me:10702: $lt_compile\"" >&5)
10703    (eval "$lt_compile" 2>out/conftest.err)
10704    ac_status=$?
10705    cat out/conftest.err >&5
10706    echo "$as_me:10706: \$? = $ac_status" >&5
10707    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10708    then
10709      # The compiler can only warn and ignore the option if not recognized
10710      # So say no if there are warnings
10711      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10712      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10713      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10714        lt_cv_prog_compiler_c_o=yes
10715      fi
10716    fi
10717    chmod u+w . 2>&5
10718    $RM conftest*
10719    # SGI C++ compiler will create directory out/ii_files/ for
10720    # template instantiation
10721    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10722    $RM out/* && rmdir out
10723    cd ..
10724    $RM -r conftest
10725    $RM conftest*
10726
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10730
10731
10732
10733
10734
10735
10736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10738 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10739   $as_echo_n "(cached) " >&6
10740 else
10741   lt_cv_prog_compiler_c_o=no
10742    $RM -r conftest 2>/dev/null
10743    mkdir conftest
10744    cd conftest
10745    mkdir out
10746    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10747
10748    lt_compiler_flag="-o out/conftest2.$ac_objext"
10749    # Insert the option either (1) after the last *FLAGS variable, or
10750    # (2) before a word containing "conftest.", or (3) at the end.
10751    # Note that $ac_compile itself does not contain backslashes and begins
10752    # with a dollar sign (not a hyphen), so the echo should work correctly.
10753    lt_compile=`echo "$ac_compile" | $SED \
10754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10756    -e 's:$: $lt_compiler_flag:'`
10757    (eval echo "\"\$as_me:10757: $lt_compile\"" >&5)
10758    (eval "$lt_compile" 2>out/conftest.err)
10759    ac_status=$?
10760    cat out/conftest.err >&5
10761    echo "$as_me:10761: \$? = $ac_status" >&5
10762    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10763    then
10764      # The compiler can only warn and ignore the option if not recognized
10765      # So say no if there are warnings
10766      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10767      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10768      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10769        lt_cv_prog_compiler_c_o=yes
10770      fi
10771    fi
10772    chmod u+w . 2>&5
10773    $RM conftest*
10774    # SGI C++ compiler will create directory out/ii_files/ for
10775    # template instantiation
10776    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10777    $RM out/* && rmdir out
10778    cd ..
10779    $RM -r conftest
10780    $RM conftest*
10781
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10785
10786
10787
10788
10789 hard_links="nottested"
10790 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10791   # do not overwrite the value of need_locks provided by the user
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10793 $as_echo_n "checking if we can lock with hard links... " >&6; }
10794   hard_links=yes
10795   $RM conftest*
10796   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10797   touch conftest.a
10798   ln conftest.a conftest.b 2>&5 || hard_links=no
10799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10801 $as_echo "$hard_links" >&6; }
10802   if test "$hard_links" = no; then
10803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10805     need_locks=warn
10806   fi
10807 else
10808   need_locks=no
10809 fi
10810
10811
10812
10813
10814
10815
10816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10818
10819   runpath_var=
10820   allow_undefined_flag=
10821   always_export_symbols=no
10822   archive_cmds=
10823   archive_expsym_cmds=
10824   compiler_needs_object=no
10825   enable_shared_with_static_runtimes=no
10826   export_dynamic_flag_spec=
10827   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10828   hardcode_automatic=no
10829   hardcode_direct=no
10830   hardcode_direct_absolute=no
10831   hardcode_libdir_flag_spec=
10832   hardcode_libdir_flag_spec_ld=
10833   hardcode_libdir_separator=
10834   hardcode_minus_L=no
10835   hardcode_shlibpath_var=unsupported
10836   inherit_rpath=no
10837   link_all_deplibs=unknown
10838   module_cmds=
10839   module_expsym_cmds=
10840   old_archive_from_new_cmds=
10841   old_archive_from_expsyms_cmds=
10842   thread_safe_flag_spec=
10843   whole_archive_flag_spec=
10844   # include_expsyms should be a list of space-separated symbols to be *always*
10845   # included in the symbol list
10846   include_expsyms=
10847   # exclude_expsyms can be an extended regexp of symbols to exclude
10848   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10849   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10850   # as well as any symbol that contains `d'.
10851   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10852   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10853   # platforms (ab)use it in PIC code, but their linkers get confused if
10854   # the symbol is explicitly referenced.  Since portable code cannot
10855   # rely on this symbol name, it's probably fine to never include it in
10856   # preloaded symbol tables.
10857   # Exclude shared library initialization/finalization symbols.
10858   extract_expsyms_cmds=
10859
10860   case $host_os in
10861   cygwin* | mingw* | pw32* | cegcc*)
10862     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10863     # When not using gcc, we currently assume that we are using
10864     # Microsoft Visual C++.
10865     if test "$GCC" != yes; then
10866       with_gnu_ld=no
10867     fi
10868     ;;
10869   interix*)
10870     # we just hope/assume this is gcc and not c89 (= MSVC++)
10871     with_gnu_ld=yes
10872     ;;
10873   openbsd*)
10874     with_gnu_ld=no
10875     ;;
10876   esac
10877
10878   ld_shlibs=yes
10879   if test "$with_gnu_ld" = yes; then
10880     # If archive_cmds runs LD, not CC, wlarc should be empty
10881     wlarc='${wl}'
10882
10883     # Set some defaults for GNU ld with shared library support. These
10884     # are reset later if shared libraries are not supported. Putting them
10885     # here allows them to be overridden if necessary.
10886     runpath_var=LD_RUN_PATH
10887     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10888     export_dynamic_flag_spec='${wl}--export-dynamic'
10889     # ancient GNU ld didn't support --whole-archive et. al.
10890     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10891       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10892     else
10893       whole_archive_flag_spec=
10894     fi
10895     supports_anon_versioning=no
10896     case `$LD -v 2>&1` in
10897       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10898       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10899       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10900       *\ 2.11.*) ;; # other 2.11 versions
10901       *) supports_anon_versioning=yes ;;
10902     esac
10903
10904     # See if GNU ld supports shared libraries.
10905     case $host_os in
10906     aix[3-9]*)
10907       # On AIX/PPC, the GNU linker is very broken
10908       if test "$host_cpu" != ia64; then
10909         ld_shlibs=no
10910         cat <<_LT_EOF 1>&2
10911
10912 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10913 *** to be unable to reliably create shared libraries on AIX.
10914 *** Therefore, libtool is disabling shared libraries support.  If you
10915 *** really care for shared libraries, you may want to modify your PATH
10916 *** so that a non-GNU linker is found, and then restart.
10917
10918 _LT_EOF
10919       fi
10920       ;;
10921
10922     amigaos*)
10923       case $host_cpu in
10924       powerpc)
10925             # see comment about AmigaOS4 .so support
10926             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10927             archive_expsym_cmds=''
10928         ;;
10929       m68k)
10930             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)'
10931             hardcode_libdir_flag_spec='-L$libdir'
10932             hardcode_minus_L=yes
10933         ;;
10934       esac
10935       ;;
10936
10937     beos*)
10938       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10939         allow_undefined_flag=unsupported
10940         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10941         # support --undefined.  This deserves some investigation.  FIXME
10942         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943       else
10944         ld_shlibs=no
10945       fi
10946       ;;
10947
10948     cygwin* | mingw* | pw32* | cegcc*)
10949       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10950       # as there is no search path for DLLs.
10951       hardcode_libdir_flag_spec='-L$libdir'
10952       allow_undefined_flag=unsupported
10953       always_export_symbols=no
10954       enable_shared_with_static_runtimes=yes
10955       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10956
10957       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10958         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10959         # If the export-symbols file already is a .def file (1st line
10960         # is EXPORTS), use it as is; otherwise, prepend...
10961         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10962           cp $export_symbols $output_objdir/$soname.def;
10963         else
10964           echo EXPORTS > $output_objdir/$soname.def;
10965           cat $export_symbols >> $output_objdir/$soname.def;
10966         fi~
10967         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10968       else
10969         ld_shlibs=no
10970       fi
10971       ;;
10972
10973     interix[3-9]*)
10974       hardcode_direct=no
10975       hardcode_shlibpath_var=no
10976       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10977       export_dynamic_flag_spec='${wl}-E'
10978       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10979       # Instead, shared libraries are loaded at an image base (0x10000000 by
10980       # default) and relocated if they conflict, which is a slow very memory
10981       # consuming and fragmenting process.  To avoid this, we pick a random,
10982       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10983       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10984       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10985       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'
10986       ;;
10987
10988     gnu* | linux* | tpf* | k*bsd*-gnu)
10989       tmp_diet=no
10990       if test "$host_os" = linux-dietlibc; then
10991         case $cc_basename in
10992           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10993         esac
10994       fi
10995       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10996          && test "$tmp_diet" = no
10997       then
10998         tmp_addflag=
10999         tmp_sharedflag='-shared'
11000         case $cc_basename,$host_cpu in
11001         pgcc*)                          # Portland Group C compiler
11002           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'
11003           tmp_addflag=' $pic_flag'
11004           ;;
11005         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11006           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'
11007           tmp_addflag=' $pic_flag -Mnomain' ;;
11008         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11009           tmp_addflag=' -i_dynamic' ;;
11010         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11011           tmp_addflag=' -i_dynamic -nofor_main' ;;
11012         ifc* | ifort*)                  # Intel Fortran compiler
11013           tmp_addflag=' -nofor_main' ;;
11014         lf95*)                          # Lahey Fortran 8.1
11015           whole_archive_flag_spec=
11016           tmp_sharedflag='--shared' ;;
11017         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11018           tmp_sharedflag='-qmkshrobj'
11019           tmp_addflag= ;;
11020         esac
11021         case `$CC -V 2>&1 | sed 5q` in
11022         *Sun\ C*)                       # Sun C 5.9
11023           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'
11024           compiler_needs_object=yes
11025           tmp_sharedflag='-G' ;;
11026         *Sun\ F*)                       # Sun Fortran 8.3
11027           tmp_sharedflag='-G' ;;
11028         esac
11029         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11030
11031         if test "x$supports_anon_versioning" = xyes; then
11032           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11033             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11034             echo "local: *; };" >> $output_objdir/$libname.ver~
11035             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11036         fi
11037
11038         case $cc_basename in
11039         xlf*)
11040           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11041           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11042           hardcode_libdir_flag_spec=
11043           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11044           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11045           if test "x$supports_anon_versioning" = xyes; then
11046             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11047               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11048               echo "local: *; };" >> $output_objdir/$libname.ver~
11049               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11050           fi
11051           ;;
11052         esac
11053       else
11054         ld_shlibs=no
11055       fi
11056       ;;
11057
11058     netbsd*)
11059       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11060         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11061         wlarc=
11062       else
11063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11064         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11065       fi
11066       ;;
11067
11068     solaris*)
11069       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11070         ld_shlibs=no
11071         cat <<_LT_EOF 1>&2
11072
11073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11074 *** create shared libraries on Solaris systems.  Therefore, libtool
11075 *** is disabling shared libraries support.  We urge you to upgrade GNU
11076 *** binutils to release 2.9.1 or newer.  Another option is to modify
11077 *** your PATH or compiler configuration so that the native linker is
11078 *** used, and then restart.
11079
11080 _LT_EOF
11081       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11082         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11084       else
11085         ld_shlibs=no
11086       fi
11087       ;;
11088
11089     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11090       case `$LD -v 2>&1` in
11091         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11092         ld_shlibs=no
11093         cat <<_LT_EOF 1>&2
11094
11095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11096 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11097 *** is disabling shared libraries support.  We urge you to upgrade GNU
11098 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11099 *** your PATH or compiler configuration so that the native linker is
11100 *** used, and then restart.
11101
11102 _LT_EOF
11103         ;;
11104         *)
11105           # For security reasons, it is highly recommended that you always
11106           # use absolute paths for naming shared libraries, and exclude the
11107           # DT_RUNPATH tag from executables and libraries.  But doing so
11108           # requires that you compile everything twice, which is a pain.
11109           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11110             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11111             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11112             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11113           else
11114             ld_shlibs=no
11115           fi
11116         ;;
11117       esac
11118       ;;
11119
11120     sunos4*)
11121       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11122       wlarc=
11123       hardcode_direct=yes
11124       hardcode_shlibpath_var=no
11125       ;;
11126
11127     *)
11128       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11129         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11130         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11131       else
11132         ld_shlibs=no
11133       fi
11134       ;;
11135     esac
11136
11137     if test "$ld_shlibs" = no; then
11138       runpath_var=
11139       hardcode_libdir_flag_spec=
11140       export_dynamic_flag_spec=
11141       whole_archive_flag_spec=
11142     fi
11143   else
11144     # PORTME fill in a description of your system's linker (not GNU ld)
11145     case $host_os in
11146     aix3*)
11147       allow_undefined_flag=unsupported
11148       always_export_symbols=yes
11149       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'
11150       # Note: this linker hardcodes the directories in LIBPATH if there
11151       # are no directories specified by -L.
11152       hardcode_minus_L=yes
11153       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11154         # Neither direct hardcoding nor static linking is supported with a
11155         # broken collect2.
11156         hardcode_direct=unsupported
11157       fi
11158       ;;
11159
11160     aix[4-9]*)
11161       if test "$host_cpu" = ia64; then
11162         # On IA64, the linker does run time linking by default, so we don't
11163         # have to do anything special.
11164         aix_use_runtimelinking=no
11165         exp_sym_flag='-Bexport'
11166         no_entry_flag=""
11167       else
11168         # If we're using GNU nm, then we don't want the "-C" option.
11169         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11170         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11171           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'
11172         else
11173           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'
11174         fi
11175         aix_use_runtimelinking=no
11176
11177         # Test if we are trying to use run time linking or normal
11178         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11179         # need to do runtime linking.
11180         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11181           for ld_flag in $LDFLAGS; do
11182           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11183             aix_use_runtimelinking=yes
11184             break
11185           fi
11186           done
11187           ;;
11188         esac
11189
11190         exp_sym_flag='-bexport'
11191         no_entry_flag='-bnoentry'
11192       fi
11193
11194       # When large executables or shared objects are built, AIX ld can
11195       # have problems creating the table of contents.  If linking a library
11196       # or program results in "error TOC overflow" add -mminimal-toc to
11197       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11198       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11199
11200       archive_cmds=''
11201       hardcode_direct=yes
11202       hardcode_direct_absolute=yes
11203       hardcode_libdir_separator=':'
11204       link_all_deplibs=yes
11205       file_list_spec='${wl}-f,'
11206
11207       if test "$GCC" = yes; then
11208         case $host_os in aix4.[012]|aix4.[012].*)
11209         # We only want to do this on AIX 4.2 and lower, the check
11210         # below for broken collect2 doesn't work under 4.3+
11211           collect2name=`${CC} -print-prog-name=collect2`
11212           if test -f "$collect2name" &&
11213            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11214           then
11215           # We have reworked collect2
11216           :
11217           else
11218           # We have old collect2
11219           hardcode_direct=unsupported
11220           # It fails to find uninstalled libraries when the uninstalled
11221           # path is not listed in the libpath.  Setting hardcode_minus_L
11222           # to unsupported forces relinking
11223           hardcode_minus_L=yes
11224           hardcode_libdir_flag_spec='-L$libdir'
11225           hardcode_libdir_separator=
11226           fi
11227           ;;
11228         esac
11229         shared_flag='-shared'
11230         if test "$aix_use_runtimelinking" = yes; then
11231           shared_flag="$shared_flag "'${wl}-G'
11232         fi
11233       else
11234         # not using gcc
11235         if test "$host_cpu" = ia64; then
11236         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11237         # chokes on -Wl,-G. The following line is correct:
11238           shared_flag='-G'
11239         else
11240           if test "$aix_use_runtimelinking" = yes; then
11241             shared_flag='${wl}-G'
11242           else
11243             shared_flag='${wl}-bM:SRE'
11244           fi
11245         fi
11246       fi
11247
11248       export_dynamic_flag_spec='${wl}-bexpall'
11249       # It seems that -bexpall does not export symbols beginning with
11250       # underscore (_), so it is better to generate a list of symbols to export.
11251       always_export_symbols=yes
11252       if test "$aix_use_runtimelinking" = yes; then
11253         # Warning - without using the other runtime loading flags (-brtl),
11254         # -berok will link without error, but may produce a broken library.
11255         allow_undefined_flag='-berok'
11256         # Determine the default libpath from the value encoded in an
11257         # empty executable.
11258         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h.  */
11260
11261 int
11262 main ()
11263 {
11264
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270
11271 lt_aix_libpath_sed='
11272     /Import File Strings/,/^$/ {
11273         /^0/ {
11274             s/^0  *\(.*\)$/\1/
11275             p
11276         }
11277     }'
11278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11279 # Check for a 64-bit object if we didn't find anything.
11280 if test -z "$aix_libpath"; then
11281   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11282 fi
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext \
11285     conftest$ac_exeext conftest.$ac_ext
11286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11287
11288         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11289         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"
11290       else
11291         if test "$host_cpu" = ia64; then
11292           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11293           allow_undefined_flag="-z nodefs"
11294           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"
11295         else
11296          # Determine the default libpath from the value encoded in an
11297          # empty executable.
11298          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h.  */
11300
11301 int
11302 main ()
11303 {
11304
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310
11311 lt_aix_libpath_sed='
11312     /Import File Strings/,/^$/ {
11313         /^0/ {
11314             s/^0  *\(.*\)$/\1/
11315             p
11316         }
11317     }'
11318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11319 # Check for a 64-bit object if we didn't find anything.
11320 if test -z "$aix_libpath"; then
11321   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11322 fi
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext \
11325     conftest$ac_exeext conftest.$ac_ext
11326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11327
11328          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11329           # Warning - without using the other run time loading flags,
11330           # -berok will link without error, but may produce a broken library.
11331           no_undefined_flag=' ${wl}-bernotok'
11332           allow_undefined_flag=' ${wl}-berok'
11333           # Exported symbols can be pulled into shared objects from archives
11334           whole_archive_flag_spec='$convenience'
11335           archive_cmds_need_lc=yes
11336           # This is similar to how AIX traditionally builds its shared libraries.
11337           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'
11338         fi
11339       fi
11340       ;;
11341
11342     amigaos*)
11343       case $host_cpu in
11344       powerpc)
11345             # see comment about AmigaOS4 .so support
11346             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11347             archive_expsym_cmds=''
11348         ;;
11349       m68k)
11350             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)'
11351             hardcode_libdir_flag_spec='-L$libdir'
11352             hardcode_minus_L=yes
11353         ;;
11354       esac
11355       ;;
11356
11357     bsdi[45]*)
11358       export_dynamic_flag_spec=-rdynamic
11359       ;;
11360
11361     cygwin* | mingw* | pw32* | cegcc*)
11362       # When not using gcc, we currently assume that we are using
11363       # Microsoft Visual C++.
11364       # hardcode_libdir_flag_spec is actually meaningless, as there is
11365       # no search path for DLLs.
11366       hardcode_libdir_flag_spec=' '
11367       allow_undefined_flag=unsupported
11368       # Tell ltmain to make .lib files, not .a files.
11369       libext=lib
11370       # Tell ltmain to make .dll files, not .so files.
11371       shrext_cmds=".dll"
11372       # FIXME: Setting linknames here is a bad hack.
11373       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11374       # The linker will automatically build a .lib file if we build a DLL.
11375       old_archive_from_new_cmds='true'
11376       # FIXME: Should let the user specify the lib program.
11377       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11378       fix_srcfile_path='`cygpath -w "$srcfile"`'
11379       enable_shared_with_static_runtimes=yes
11380       ;;
11381
11382     darwin* | rhapsody*)
11383
11384
11385   archive_cmds_need_lc=no
11386   hardcode_direct=no
11387   hardcode_automatic=yes
11388   hardcode_shlibpath_var=unsupported
11389   whole_archive_flag_spec=''
11390   link_all_deplibs=yes
11391   allow_undefined_flag="$_lt_dar_allow_undefined"
11392   case $cc_basename in
11393      ifort*) _lt_dar_can_shared=yes ;;
11394      *) _lt_dar_can_shared=$GCC ;;
11395   esac
11396   if test "$_lt_dar_can_shared" = "yes"; then
11397     output_verbose_link_cmd=echo
11398     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11399     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11400     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}"
11401     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}"
11402
11403   else
11404   ld_shlibs=no
11405   fi
11406
11407       ;;
11408
11409     dgux*)
11410       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411       hardcode_libdir_flag_spec='-L$libdir'
11412       hardcode_shlibpath_var=no
11413       ;;
11414
11415     freebsd1*)
11416       ld_shlibs=no
11417       ;;
11418
11419     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11420     # support.  Future versions do this automatically, but an explicit c++rt0.o
11421     # does not break anything, and helps significantly (at the cost of a little
11422     # extra space).
11423     freebsd2.2*)
11424       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11425       hardcode_libdir_flag_spec='-R$libdir'
11426       hardcode_direct=yes
11427       hardcode_shlibpath_var=no
11428       ;;
11429
11430     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11431     freebsd2*)
11432       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11433       hardcode_direct=yes
11434       hardcode_minus_L=yes
11435       hardcode_shlibpath_var=no
11436       ;;
11437
11438     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11439     freebsd* | dragonfly*)
11440       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11441       hardcode_libdir_flag_spec='-R$libdir'
11442       hardcode_direct=yes
11443       hardcode_shlibpath_var=no
11444       ;;
11445
11446     hpux9*)
11447       if test "$GCC" = yes; then
11448         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'
11449       else
11450         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'
11451       fi
11452       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11453       hardcode_libdir_separator=:
11454       hardcode_direct=yes
11455
11456       # hardcode_minus_L: Not really in the search PATH,
11457       # but as the default location of the library.
11458       hardcode_minus_L=yes
11459       export_dynamic_flag_spec='${wl}-E'
11460       ;;
11461
11462     hpux10*)
11463       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11464         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11465       else
11466         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11467       fi
11468       if test "$with_gnu_ld" = no; then
11469         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11470         hardcode_libdir_flag_spec_ld='+b $libdir'
11471         hardcode_libdir_separator=:
11472         hardcode_direct=yes
11473         hardcode_direct_absolute=yes
11474         export_dynamic_flag_spec='${wl}-E'
11475         # hardcode_minus_L: Not really in the search PATH,
11476         # but as the default location of the library.
11477         hardcode_minus_L=yes
11478       fi
11479       ;;
11480
11481     hpux11*)
11482       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11483         case $host_cpu in
11484         hppa*64*)
11485           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11486           ;;
11487         ia64*)
11488           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11489           ;;
11490         *)
11491           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11492           ;;
11493         esac
11494       else
11495         case $host_cpu in
11496         hppa*64*)
11497           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11498           ;;
11499         ia64*)
11500           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11501           ;;
11502         *)
11503           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11504           ;;
11505         esac
11506       fi
11507       if test "$with_gnu_ld" = no; then
11508         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11509         hardcode_libdir_separator=:
11510
11511         case $host_cpu in
11512         hppa*64*|ia64*)
11513           hardcode_direct=no
11514           hardcode_shlibpath_var=no
11515           ;;
11516         *)
11517           hardcode_direct=yes
11518           hardcode_direct_absolute=yes
11519           export_dynamic_flag_spec='${wl}-E'
11520
11521           # hardcode_minus_L: Not really in the search PATH,
11522           # but as the default location of the library.
11523           hardcode_minus_L=yes
11524           ;;
11525         esac
11526       fi
11527       ;;
11528
11529     irix5* | irix6* | nonstopux*)
11530       if test "$GCC" = yes; then
11531         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'
11532         # Try to use the -exported_symbol ld option, if it does not
11533         # work, assume that -exports_file does not work either and
11534         # implicitly export all symbols.
11535         save_LDFLAGS="$LDFLAGS"
11536         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11537         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h.  */
11539 int foo(void) {}
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542   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'
11543
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext \
11546     conftest$ac_exeext conftest.$ac_ext
11547         LDFLAGS="$save_LDFLAGS"
11548       else
11549         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'
11550         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'
11551       fi
11552       archive_cmds_need_lc='no'
11553       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11554       hardcode_libdir_separator=:
11555       inherit_rpath=yes
11556       link_all_deplibs=yes
11557       ;;
11558
11559     netbsd*)
11560       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11561         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11562       else
11563         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11564       fi
11565       hardcode_libdir_flag_spec='-R$libdir'
11566       hardcode_direct=yes
11567       hardcode_shlibpath_var=no
11568       ;;
11569
11570     newsos6)
11571       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11572       hardcode_direct=yes
11573       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11574       hardcode_libdir_separator=:
11575       hardcode_shlibpath_var=no
11576       ;;
11577
11578     *nto* | *qnx*)
11579       ;;
11580
11581     openbsd*)
11582       if test -f /usr/libexec/ld.so; then
11583         hardcode_direct=yes
11584         hardcode_shlibpath_var=no
11585         hardcode_direct_absolute=yes
11586         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11587           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11588           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11589           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11590           export_dynamic_flag_spec='${wl}-E'
11591         else
11592           case $host_os in
11593            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11594              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11595              hardcode_libdir_flag_spec='-R$libdir'
11596              ;;
11597            *)
11598              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11599              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11600              ;;
11601           esac
11602         fi
11603       else
11604         ld_shlibs=no
11605       fi
11606       ;;
11607
11608     os2*)
11609       hardcode_libdir_flag_spec='-L$libdir'
11610       hardcode_minus_L=yes
11611       allow_undefined_flag=unsupported
11612       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'
11613       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11614       ;;
11615
11616     osf3*)
11617       if test "$GCC" = yes; then
11618         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11619         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'
11620       else
11621         allow_undefined_flag=' -expect_unresolved \*'
11622         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'
11623       fi
11624       archive_cmds_need_lc='no'
11625       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11626       hardcode_libdir_separator=:
11627       ;;
11628
11629     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11630       if test "$GCC" = yes; then
11631         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11632         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'
11633         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11634       else
11635         allow_undefined_flag=' -expect_unresolved \*'
11636         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'
11637         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~
11638         $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'
11639
11640         # Both c and cxx compiler support -rpath directly
11641         hardcode_libdir_flag_spec='-rpath $libdir'
11642       fi
11643       archive_cmds_need_lc='no'
11644       hardcode_libdir_separator=:
11645       ;;
11646
11647     solaris*)
11648       no_undefined_flag=' -z defs'
11649       if test "$GCC" = yes; then
11650         wlarc='${wl}'
11651         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11652         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11653           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11654       else
11655         case `$CC -V 2>&1` in
11656         *"Compilers 5.0"*)
11657           wlarc=''
11658           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11659           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11660           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11661           ;;
11662         *)
11663           wlarc='${wl}'
11664           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11665           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11666           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11667           ;;
11668         esac
11669       fi
11670       hardcode_libdir_flag_spec='-R$libdir'
11671       hardcode_shlibpath_var=no
11672       case $host_os in
11673       solaris2.[0-5] | solaris2.[0-5].*) ;;
11674       *)
11675         # The compiler driver will combine and reorder linker options,
11676         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11677         # but is careful enough not to reorder.
11678         # Supported since Solaris 2.6 (maybe 2.5.1?)
11679         if test "$GCC" = yes; then
11680           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11681         else
11682           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11683         fi
11684         ;;
11685       esac
11686       link_all_deplibs=yes
11687       ;;
11688
11689     sunos4*)
11690       if test "x$host_vendor" = xsequent; then
11691         # Use $CC to link under sequent, because it throws in some extra .o
11692         # files that make .init and .fini sections work.
11693         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11694       else
11695         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11696       fi
11697       hardcode_libdir_flag_spec='-L$libdir'
11698       hardcode_direct=yes
11699       hardcode_minus_L=yes
11700       hardcode_shlibpath_var=no
11701       ;;
11702
11703     sysv4)
11704       case $host_vendor in
11705         sni)
11706           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707           hardcode_direct=yes # is this really true???
11708         ;;
11709         siemens)
11710           ## LD is ld it makes a PLAMLIB
11711           ## CC just makes a GrossModule.
11712           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11713           reload_cmds='$CC -r -o $output$reload_objs'
11714           hardcode_direct=no
11715         ;;
11716         motorola)
11717           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11718           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11719         ;;
11720       esac
11721       runpath_var='LD_RUN_PATH'
11722       hardcode_shlibpath_var=no
11723       ;;
11724
11725     sysv4.3*)
11726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11727       hardcode_shlibpath_var=no
11728       export_dynamic_flag_spec='-Bexport'
11729       ;;
11730
11731     sysv4*MP*)
11732       if test -d /usr/nec; then
11733         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734         hardcode_shlibpath_var=no
11735         runpath_var=LD_RUN_PATH
11736         hardcode_runpath_var=yes
11737         ld_shlibs=yes
11738       fi
11739       ;;
11740
11741     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11742       no_undefined_flag='${wl}-z,text'
11743       archive_cmds_need_lc=no
11744       hardcode_shlibpath_var=no
11745       runpath_var='LD_RUN_PATH'
11746
11747       if test "$GCC" = yes; then
11748         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11750       else
11751         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753       fi
11754       ;;
11755
11756     sysv5* | sco3.2v5* | sco5v6*)
11757       # Note: We can NOT use -z defs as we might desire, because we do not
11758       # link with -lc, and that would cause any symbols used from libc to
11759       # always be unresolved, which means just about no library would
11760       # ever link correctly.  If we're not using GNU ld we use -z text
11761       # though, which does catch some bad symbols but isn't as heavy-handed
11762       # as -z defs.
11763       no_undefined_flag='${wl}-z,text'
11764       allow_undefined_flag='${wl}-z,nodefs'
11765       archive_cmds_need_lc=no
11766       hardcode_shlibpath_var=no
11767       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11768       hardcode_libdir_separator=':'
11769       link_all_deplibs=yes
11770       export_dynamic_flag_spec='${wl}-Bexport'
11771       runpath_var='LD_RUN_PATH'
11772
11773       if test "$GCC" = yes; then
11774         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776       else
11777         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779       fi
11780       ;;
11781
11782     uts4*)
11783       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11784       hardcode_libdir_flag_spec='-L$libdir'
11785       hardcode_shlibpath_var=no
11786       ;;
11787
11788     *)
11789       ld_shlibs=no
11790       ;;
11791     esac
11792
11793     if test x$host_vendor = xsni; then
11794       case $host in
11795       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11796         export_dynamic_flag_spec='${wl}-Blargedynsym'
11797         ;;
11798       esac
11799     fi
11800   fi
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11803 $as_echo "$ld_shlibs" >&6; }
11804 test "$ld_shlibs" = no && can_build_shared=no
11805
11806 with_gnu_ld=$with_gnu_ld
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822 #
11823 # Do we need to explicitly link libc?
11824 #
11825 case "x$archive_cmds_need_lc" in
11826 x|xyes)
11827   # Assume -lc should be added
11828   archive_cmds_need_lc=yes
11829
11830   if test "$enable_shared" = yes && test "$GCC" = yes; then
11831     case $archive_cmds in
11832     *'~'*)
11833       # FIXME: we may have to deal with multi-command sequences.
11834       ;;
11835     '$CC '*)
11836       # Test whether the compiler implicitly links with -lc since on some
11837       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11838       # to ld, don't add -lc before -lgcc.
11839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11840 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11841       $RM conftest*
11842       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11843
11844       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11845   (eval $ac_compile) 2>&5
11846   ac_status=$?
11847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848   test $ac_status = 0; } 2>conftest.err; then
11849         soname=conftest
11850         lib=conftest
11851         libobjs=conftest.$ac_objext
11852         deplibs=
11853         wl=$lt_prog_compiler_wl
11854         pic_flag=$lt_prog_compiler_pic
11855         compiler_flags=-v
11856         linker_flags=-v
11857         verstring=
11858         output_objdir=.
11859         libname=conftest
11860         lt_save_allow_undefined_flag=$allow_undefined_flag
11861         allow_undefined_flag=
11862         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11863   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11864   ac_status=$?
11865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11866   test $ac_status = 0; }
11867         then
11868           archive_cmds_need_lc=no
11869         else
11870           archive_cmds_need_lc=yes
11871         fi
11872         allow_undefined_flag=$lt_save_allow_undefined_flag
11873       else
11874         cat conftest.err 1>&5
11875       fi
11876       $RM conftest*
11877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11878 $as_echo "$archive_cmds_need_lc" >&6; }
11879       ;;
11880     esac
11881   fi
11882   ;;
11883 esac
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12043
12044 if test "$GCC" = yes; then
12045   case $host_os in
12046     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12047     *) lt_awk_arg="/^libraries:/" ;;
12048   esac
12049   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12050   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12051     # if the path contains ";" then we assume it to be the separator
12052     # otherwise default to the standard path separator (i.e. ":") - it is
12053     # assumed that no part of a normal pathname contains ";" but that should
12054     # okay in the real world where ";" in dirpaths is itself problematic.
12055     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12056   else
12057     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12058   fi
12059   # Ok, now we have the path, separated by spaces, we can step through it
12060   # and add multilib dir if necessary.
12061   lt_tmp_lt_search_path_spec=
12062   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12063   for lt_sys_path in $lt_search_path_spec; do
12064     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12065       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12066     else
12067       test -d "$lt_sys_path" && \
12068         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12069     fi
12070   done
12071   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12072 BEGIN {RS=" "; FS="/|\n";} {
12073   lt_foo="";
12074   lt_count=0;
12075   for (lt_i = NF; lt_i > 0; lt_i--) {
12076     if ($lt_i != "" && $lt_i != ".") {
12077       if ($lt_i == "..") {
12078         lt_count++;
12079       } else {
12080         if (lt_count == 0) {
12081           lt_foo="/" $lt_i lt_foo;
12082         } else {
12083           lt_count--;
12084         }
12085       }
12086     }
12087   }
12088   if (lt_foo != "") { lt_freq[lt_foo]++; }
12089   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12090 }'`
12091   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12092 else
12093   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12094 fi
12095 library_names_spec=
12096 libname_spec='lib$name'
12097 soname_spec=
12098 shrext_cmds=".so"
12099 postinstall_cmds=
12100 postuninstall_cmds=
12101 finish_cmds=
12102 finish_eval=
12103 shlibpath_var=
12104 shlibpath_overrides_runpath=unknown
12105 version_type=none
12106 dynamic_linker="$host_os ld.so"
12107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12108 need_lib_prefix=unknown
12109 hardcode_into_libs=no
12110
12111 # when you set need_version to no, make sure it does not cause -set_version
12112 # flags to be left without arguments
12113 need_version=unknown
12114
12115 case $host_os in
12116 aix3*)
12117   version_type=linux
12118   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12119   shlibpath_var=LIBPATH
12120
12121   # AIX 3 has no versioning support, so we append a major version to the name.
12122   soname_spec='${libname}${release}${shared_ext}$major'
12123   ;;
12124
12125 aix[4-9]*)
12126   version_type=linux
12127   need_lib_prefix=no
12128   need_version=no
12129   hardcode_into_libs=yes
12130   if test "$host_cpu" = ia64; then
12131     # AIX 5 supports IA64
12132     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12133     shlibpath_var=LD_LIBRARY_PATH
12134   else
12135     # With GCC up to 2.95.x, collect2 would create an import file
12136     # for dependence libraries.  The import file would start with
12137     # the line `#! .'.  This would cause the generated library to
12138     # depend on `.', always an invalid library.  This was fixed in
12139     # development snapshots of GCC prior to 3.0.
12140     case $host_os in
12141       aix4 | aix4.[01] | aix4.[01].*)
12142       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12143            echo ' yes '
12144            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12145         :
12146       else
12147         can_build_shared=no
12148       fi
12149       ;;
12150     esac
12151     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12152     # soname into executable. Probably we can add versioning support to
12153     # collect2, so additional links can be useful in future.
12154     if test "$aix_use_runtimelinking" = yes; then
12155       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12156       # instead of lib<name>.a to let people know that these are not
12157       # typical AIX shared libraries.
12158       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159     else
12160       # We preserve .a as extension for shared libraries through AIX4.2
12161       # and later when we are not doing run time linking.
12162       library_names_spec='${libname}${release}.a $libname.a'
12163       soname_spec='${libname}${release}${shared_ext}$major'
12164     fi
12165     shlibpath_var=LIBPATH
12166   fi
12167   ;;
12168
12169 amigaos*)
12170   case $host_cpu in
12171   powerpc)
12172     # Since July 2007 AmigaOS4 officially supports .so libraries.
12173     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12175     ;;
12176   m68k)
12177     library_names_spec='$libname.ixlibrary $libname.a'
12178     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12179     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'
12180     ;;
12181   esac
12182   ;;
12183
12184 beos*)
12185   library_names_spec='${libname}${shared_ext}'
12186   dynamic_linker="$host_os ld.so"
12187   shlibpath_var=LIBRARY_PATH
12188   ;;
12189
12190 bsdi[45]*)
12191   version_type=linux
12192   need_version=no
12193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12194   soname_spec='${libname}${release}${shared_ext}$major'
12195   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12196   shlibpath_var=LD_LIBRARY_PATH
12197   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12198   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12199   # the default ld.so.conf also contains /usr/contrib/lib and
12200   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12201   # libtool to hard-code these into programs
12202   ;;
12203
12204 cygwin* | mingw* | pw32* | cegcc*)
12205   version_type=windows
12206   shrext_cmds=".dll"
12207   need_version=no
12208   need_lib_prefix=no
12209
12210   case $GCC,$host_os in
12211   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12212     library_names_spec='$libname.dll.a'
12213     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12214     postinstall_cmds='base_file=`basename \${file}`~
12215       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12216       dldir=$destdir/`dirname \$dlpath`~
12217       test -d \$dldir || mkdir -p \$dldir~
12218       $install_prog $dir/$dlname \$dldir/$dlname~
12219       chmod a+x \$dldir/$dlname~
12220       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12221         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12222       fi'
12223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12224       dlpath=$dir/\$dldll~
12225        $RM \$dlpath'
12226     shlibpath_overrides_runpath=yes
12227
12228     case $host_os in
12229     cygwin*)
12230       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12231       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12232       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12233       ;;
12234     mingw* | cegcc*)
12235       # MinGW DLLs use traditional 'lib' prefix
12236       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12237       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12238       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12239         # It is most probably a Windows format PATH printed by
12240         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12241         # path with ; separators, and with drive letters. We can handle the
12242         # drive letters (cygwin fileutils understands them), so leave them,
12243         # especially as we might pass files found there to a mingw objdump,
12244         # which wouldn't understand a cygwinified path. Ahh.
12245         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12246       else
12247         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12248       fi
12249       ;;
12250     pw32*)
12251       # pw32 DLLs use 'pw' prefix rather than 'lib'
12252       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12253       ;;
12254     esac
12255     ;;
12256
12257   *)
12258     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12259     ;;
12260   esac
12261   dynamic_linker='Win32 ld.exe'
12262   # FIXME: first we should search . and the directory the executable is in
12263   shlibpath_var=PATH
12264   ;;
12265
12266 darwin* | rhapsody*)
12267   dynamic_linker="$host_os dyld"
12268   version_type=darwin
12269   need_lib_prefix=no
12270   need_version=no
12271   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12272   soname_spec='${libname}${release}${major}$shared_ext'
12273   shlibpath_overrides_runpath=yes
12274   shlibpath_var=DYLD_LIBRARY_PATH
12275   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12276
12277   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12278   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12279   ;;
12280
12281 dgux*)
12282   version_type=linux
12283   need_lib_prefix=no
12284   need_version=no
12285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12286   soname_spec='${libname}${release}${shared_ext}$major'
12287   shlibpath_var=LD_LIBRARY_PATH
12288   ;;
12289
12290 freebsd1*)
12291   dynamic_linker=no
12292   ;;
12293
12294 freebsd* | dragonfly*)
12295   # DragonFly does not have aout.  When/if they implement a new
12296   # versioning mechanism, adjust this.
12297   if test -x /usr/bin/objformat; then
12298     objformat=`/usr/bin/objformat`
12299   else
12300     case $host_os in
12301     freebsd[123]*) objformat=aout ;;
12302     *) objformat=elf ;;
12303     esac
12304   fi
12305   version_type=freebsd-$objformat
12306   case $version_type in
12307     freebsd-elf*)
12308       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12309       need_version=no
12310       need_lib_prefix=no
12311       ;;
12312     freebsd-*)
12313       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12314       need_version=yes
12315       ;;
12316   esac
12317   shlibpath_var=LD_LIBRARY_PATH
12318   case $host_os in
12319   freebsd2*)
12320     shlibpath_overrides_runpath=yes
12321     ;;
12322   freebsd3.[01]* | freebsdelf3.[01]*)
12323     shlibpath_overrides_runpath=yes
12324     hardcode_into_libs=yes
12325     ;;
12326   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12327   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12328     shlibpath_overrides_runpath=no
12329     hardcode_into_libs=yes
12330     ;;
12331   *) # from 4.6 on, and DragonFly
12332     shlibpath_overrides_runpath=yes
12333     hardcode_into_libs=yes
12334     ;;
12335   esac
12336   ;;
12337
12338 gnu*)
12339   version_type=linux
12340   need_lib_prefix=no
12341   need_version=no
12342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12343   soname_spec='${libname}${release}${shared_ext}$major'
12344   shlibpath_var=LD_LIBRARY_PATH
12345   hardcode_into_libs=yes
12346   ;;
12347
12348 hpux9* | hpux10* | hpux11*)
12349   # Give a soname corresponding to the major version so that dld.sl refuses to
12350   # link against other versions.
12351   version_type=sunos
12352   need_lib_prefix=no
12353   need_version=no
12354   case $host_cpu in
12355   ia64*)
12356     shrext_cmds='.so'
12357     hardcode_into_libs=yes
12358     dynamic_linker="$host_os dld.so"
12359     shlibpath_var=LD_LIBRARY_PATH
12360     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362     soname_spec='${libname}${release}${shared_ext}$major'
12363     if test "X$HPUX_IA64_MODE" = X32; then
12364       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12365     else
12366       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12367     fi
12368     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12369     ;;
12370   hppa*64*)
12371     shrext_cmds='.sl'
12372     hardcode_into_libs=yes
12373     dynamic_linker="$host_os dld.sl"
12374     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12375     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377     soname_spec='${libname}${release}${shared_ext}$major'
12378     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12379     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12380     ;;
12381   *)
12382     shrext_cmds='.sl'
12383     dynamic_linker="$host_os dld.sl"
12384     shlibpath_var=SHLIB_PATH
12385     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387     soname_spec='${libname}${release}${shared_ext}$major'
12388     ;;
12389   esac
12390   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12391   postinstall_cmds='chmod 555 $lib'
12392   ;;
12393
12394 interix[3-9]*)
12395   version_type=linux
12396   need_lib_prefix=no
12397   need_version=no
12398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12399   soname_spec='${libname}${release}${shared_ext}$major'
12400   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12401   shlibpath_var=LD_LIBRARY_PATH
12402   shlibpath_overrides_runpath=no
12403   hardcode_into_libs=yes
12404   ;;
12405
12406 irix5* | irix6* | nonstopux*)
12407   case $host_os in
12408     nonstopux*) version_type=nonstopux ;;
12409     *)
12410         if test "$lt_cv_prog_gnu_ld" = yes; then
12411                 version_type=linux
12412         else
12413                 version_type=irix
12414         fi ;;
12415   esac
12416   need_lib_prefix=no
12417   need_version=no
12418   soname_spec='${libname}${release}${shared_ext}$major'
12419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12420   case $host_os in
12421   irix5* | nonstopux*)
12422     libsuff= shlibsuff=
12423     ;;
12424   *)
12425     case $LD in # libtool.m4 will add one of these switches to LD
12426     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12427       libsuff= shlibsuff= libmagic=32-bit;;
12428     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12429       libsuff=32 shlibsuff=N32 libmagic=N32;;
12430     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12431       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12432     *) libsuff= shlibsuff= libmagic=never-match;;
12433     esac
12434     ;;
12435   esac
12436   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12437   shlibpath_overrides_runpath=no
12438   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12439   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12440   hardcode_into_libs=yes
12441   ;;
12442
12443 # No shared lib support for Linux oldld, aout, or coff.
12444 linux*oldld* | linux*aout* | linux*coff*)
12445   dynamic_linker=no
12446   ;;
12447
12448 # This must be Linux ELF.
12449 linux* | k*bsd*-gnu)
12450   version_type=linux
12451   need_lib_prefix=no
12452   need_version=no
12453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12454   soname_spec='${libname}${release}${shared_ext}$major'
12455   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12456   shlibpath_var=LD_LIBRARY_PATH
12457   shlibpath_overrides_runpath=no
12458   # Some binutils ld are patched to set DT_RUNPATH
12459   save_LDFLAGS=$LDFLAGS
12460   save_libdir=$libdir
12461   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12462        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h.  */
12465
12466 int
12467 main ()
12468 {
12469
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"; then :
12475   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12476   shlibpath_overrides_runpath=yes
12477 fi
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext \
12480     conftest$ac_exeext conftest.$ac_ext
12481   LDFLAGS=$save_LDFLAGS
12482   libdir=$save_libdir
12483
12484   # This implies no fast_install, which is unacceptable.
12485   # Some rework will be needed to allow for fast_install
12486   # before this can be enabled.
12487   hardcode_into_libs=yes
12488
12489   # Add ABI-specific directories to the system library path.
12490   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12491
12492   # Append ld.so.conf contents to the search path
12493   if test -f /etc/ld.so.conf; then
12494     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' ' '`
12495     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12496   fi
12497
12498   # We used to test for /lib/ld.so.1 and disable shared libraries on
12499   # powerpc, because MkLinux only supported shared libraries with the
12500   # GNU dynamic linker.  Since this was broken with cross compilers,
12501   # most powerpc-linux boxes support dynamic linking these days and
12502   # people can always --disable-shared, the test was removed, and we
12503   # assume the GNU/Linux dynamic linker is in use.
12504   dynamic_linker='GNU/Linux ld.so'
12505   ;;
12506
12507 netbsd*)
12508   version_type=sunos
12509   need_lib_prefix=no
12510   need_version=no
12511   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12513     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12514     dynamic_linker='NetBSD (a.out) ld.so'
12515   else
12516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12517     soname_spec='${libname}${release}${shared_ext}$major'
12518     dynamic_linker='NetBSD ld.elf_so'
12519   fi
12520   shlibpath_var=LD_LIBRARY_PATH
12521   shlibpath_overrides_runpath=yes
12522   hardcode_into_libs=yes
12523   ;;
12524
12525 newsos6)
12526   version_type=linux
12527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12528   shlibpath_var=LD_LIBRARY_PATH
12529   shlibpath_overrides_runpath=yes
12530   ;;
12531
12532 *nto* | *qnx*)
12533   version_type=qnx
12534   need_lib_prefix=no
12535   need_version=no
12536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537   soname_spec='${libname}${release}${shared_ext}$major'
12538   shlibpath_var=LD_LIBRARY_PATH
12539   shlibpath_overrides_runpath=no
12540   hardcode_into_libs=yes
12541   dynamic_linker='ldqnx.so'
12542   ;;
12543
12544 openbsd*)
12545   version_type=sunos
12546   sys_lib_dlsearch_path_spec="/usr/lib"
12547   need_lib_prefix=no
12548   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12549   case $host_os in
12550     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12551     *)                          need_version=no  ;;
12552   esac
12553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12554   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12555   shlibpath_var=LD_LIBRARY_PATH
12556   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12557     case $host_os in
12558       openbsd2.[89] | openbsd2.[89].*)
12559         shlibpath_overrides_runpath=no
12560         ;;
12561       *)
12562         shlibpath_overrides_runpath=yes
12563         ;;
12564       esac
12565   else
12566     shlibpath_overrides_runpath=yes
12567   fi
12568   ;;
12569
12570 os2*)
12571   libname_spec='$name'
12572   shrext_cmds=".dll"
12573   need_lib_prefix=no
12574   library_names_spec='$libname${shared_ext} $libname.a'
12575   dynamic_linker='OS/2 ld.exe'
12576   shlibpath_var=LIBPATH
12577   ;;
12578
12579 osf3* | osf4* | osf5*)
12580   version_type=osf
12581   need_lib_prefix=no
12582   need_version=no
12583   soname_spec='${libname}${release}${shared_ext}$major'
12584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12585   shlibpath_var=LD_LIBRARY_PATH
12586   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12587   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12588   ;;
12589
12590 rdos*)
12591   dynamic_linker=no
12592   ;;
12593
12594 solaris*)
12595   version_type=linux
12596   need_lib_prefix=no
12597   need_version=no
12598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12599   soname_spec='${libname}${release}${shared_ext}$major'
12600   shlibpath_var=LD_LIBRARY_PATH
12601   shlibpath_overrides_runpath=yes
12602   hardcode_into_libs=yes
12603   # ldd complains unless libraries are executable
12604   postinstall_cmds='chmod +x $lib'
12605   ;;
12606
12607 sunos4*)
12608   version_type=sunos
12609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12610   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12611   shlibpath_var=LD_LIBRARY_PATH
12612   shlibpath_overrides_runpath=yes
12613   if test "$with_gnu_ld" = yes; then
12614     need_lib_prefix=no
12615   fi
12616   need_version=yes
12617   ;;
12618
12619 sysv4 | sysv4.3*)
12620   version_type=linux
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622   soname_spec='${libname}${release}${shared_ext}$major'
12623   shlibpath_var=LD_LIBRARY_PATH
12624   case $host_vendor in
12625     sni)
12626       shlibpath_overrides_runpath=no
12627       need_lib_prefix=no
12628       runpath_var=LD_RUN_PATH
12629       ;;
12630     siemens)
12631       need_lib_prefix=no
12632       ;;
12633     motorola)
12634       need_lib_prefix=no
12635       need_version=no
12636       shlibpath_overrides_runpath=no
12637       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12638       ;;
12639   esac
12640   ;;
12641
12642 sysv4*MP*)
12643   if test -d /usr/nec ;then
12644     version_type=linux
12645     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12646     soname_spec='$libname${shared_ext}.$major'
12647     shlibpath_var=LD_LIBRARY_PATH
12648   fi
12649   ;;
12650
12651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12652   version_type=freebsd-elf
12653   need_lib_prefix=no
12654   need_version=no
12655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12656   soname_spec='${libname}${release}${shared_ext}$major'
12657   shlibpath_var=LD_LIBRARY_PATH
12658   shlibpath_overrides_runpath=yes
12659   hardcode_into_libs=yes
12660   if test "$with_gnu_ld" = yes; then
12661     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12662   else
12663     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12664     case $host_os in
12665       sco3.2v5*)
12666         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12667         ;;
12668     esac
12669   fi
12670   sys_lib_dlsearch_path_spec='/usr/lib'
12671   ;;
12672
12673 tpf*)
12674   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12675   version_type=linux
12676   need_lib_prefix=no
12677   need_version=no
12678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12679   shlibpath_var=LD_LIBRARY_PATH
12680   shlibpath_overrides_runpath=no
12681   hardcode_into_libs=yes
12682   ;;
12683
12684 uts4*)
12685   version_type=linux
12686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12687   soname_spec='${libname}${release}${shared_ext}$major'
12688   shlibpath_var=LD_LIBRARY_PATH
12689   ;;
12690
12691 *)
12692   dynamic_linker=no
12693   ;;
12694 esac
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12696 $as_echo "$dynamic_linker" >&6; }
12697 test "$dynamic_linker" = no && can_build_shared=no
12698
12699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12700 if test "$GCC" = yes; then
12701   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12702 fi
12703
12704 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12705   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12706 fi
12707 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12708   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12709 fi
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12799 hardcode_action=
12800 if test -n "$hardcode_libdir_flag_spec" ||
12801    test -n "$runpath_var" ||
12802    test "X$hardcode_automatic" = "Xyes" ; then
12803
12804   # We can hardcode non-existent directories.
12805   if test "$hardcode_direct" != no &&
12806      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12807      # have to relink, otherwise we might link with an installed library
12808      # when we should be linking with a yet-to-be-installed one
12809      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12810      test "$hardcode_minus_L" != no; then
12811     # Linking always hardcodes the temporary library directory.
12812     hardcode_action=relink
12813   else
12814     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12815     hardcode_action=immediate
12816   fi
12817 else
12818   # We cannot hardcode anything, or else we can only hardcode existing
12819   # directories.
12820   hardcode_action=unsupported
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12823 $as_echo "$hardcode_action" >&6; }
12824
12825 if test "$hardcode_action" = relink ||
12826    test "$inherit_rpath" = yes; then
12827   # Fast installation is not supported
12828   enable_fast_install=no
12829 elif test "$shlibpath_overrides_runpath" = yes ||
12830      test "$enable_shared" = no; then
12831   # Fast installation is not necessary
12832   enable_fast_install=needless
12833 fi
12834
12835
12836
12837
12838
12839
12840   if test "x$enable_dlopen" != xyes; then
12841   enable_dlopen=unknown
12842   enable_dlopen_self=unknown
12843   enable_dlopen_self_static=unknown
12844 else
12845   lt_cv_dlopen=no
12846   lt_cv_dlopen_libs=
12847
12848   case $host_os in
12849   beos*)
12850     lt_cv_dlopen="load_add_on"
12851     lt_cv_dlopen_libs=
12852     lt_cv_dlopen_self=yes
12853     ;;
12854
12855   mingw* | pw32* | cegcc*)
12856     lt_cv_dlopen="LoadLibrary"
12857     lt_cv_dlopen_libs=
12858     ;;
12859
12860   cygwin*)
12861     lt_cv_dlopen="dlopen"
12862     lt_cv_dlopen_libs=
12863     ;;
12864
12865   darwin*)
12866   # if libdl is installed we need to link against it
12867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12868 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12870   $as_echo_n "(cached) " >&6
12871 else
12872   ac_check_lib_save_LIBS=$LIBS
12873 LIBS="-ldl  $LIBS"
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h.  */
12876
12877 /* Override any GCC internal prototype to avoid an error.
12878    Use char because int might match the return type of a GCC
12879    builtin and then its argument prototype would still apply.  */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 char dlopen ();
12884 int
12885 main ()
12886 {
12887 return dlopen ();
12888   ;
12889   return 0;
12890 }
12891 _ACEOF
12892 if ac_fn_c_try_link "$LINENO"; then :
12893   ac_cv_lib_dl_dlopen=yes
12894 else
12895   ac_cv_lib_dl_dlopen=no
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext \
12898     conftest$ac_exeext conftest.$ac_ext
12899 LIBS=$ac_check_lib_save_LIBS
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12902 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12903 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12904   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12905 else
12906
12907     lt_cv_dlopen="dyld"
12908     lt_cv_dlopen_libs=
12909     lt_cv_dlopen_self=yes
12910
12911 fi
12912
12913     ;;
12914
12915   *)
12916     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12917 if test "x$ac_cv_func_shl_load" = x""yes; then :
12918   lt_cv_dlopen="shl_load"
12919 else
12920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12921 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12922 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12923   $as_echo_n "(cached) " >&6
12924 else
12925   ac_check_lib_save_LIBS=$LIBS
12926 LIBS="-ldld  $LIBS"
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h.  */
12929
12930 /* Override any GCC internal prototype to avoid an error.
12931    Use char because int might match the return type of a GCC
12932    builtin and then its argument prototype would still apply.  */
12933 #ifdef __cplusplus
12934 extern "C"
12935 #endif
12936 char shl_load ();
12937 int
12938 main ()
12939 {
12940 return shl_load ();
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_c_try_link "$LINENO"; then :
12946   ac_cv_lib_dld_shl_load=yes
12947 else
12948   ac_cv_lib_dld_shl_load=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext \
12951     conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS
12953 fi
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12955 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12956 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12957   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12958 else
12959   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12960 if test "x$ac_cv_func_dlopen" = x""yes; then :
12961   lt_cv_dlopen="dlopen"
12962 else
12963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12966   $as_echo_n "(cached) " >&6
12967 else
12968   ac_check_lib_save_LIBS=$LIBS
12969 LIBS="-ldl  $LIBS"
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h.  */
12972
12973 /* Override any GCC internal prototype to avoid an error.
12974    Use char because int might match the return type of a GCC
12975    builtin and then its argument prototype would still apply.  */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char dlopen ();
12980 int
12981 main ()
12982 {
12983 return dlopen ();
12984   ;
12985   return 0;
12986 }
12987 _ACEOF
12988 if ac_fn_c_try_link "$LINENO"; then :
12989   ac_cv_lib_dl_dlopen=yes
12990 else
12991   ac_cv_lib_dl_dlopen=no
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext \
12994     conftest$ac_exeext conftest.$ac_ext
12995 LIBS=$ac_check_lib_save_LIBS
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12998 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12999 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13000   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13001 else
13002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13003 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13004 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13005   $as_echo_n "(cached) " >&6
13006 else
13007   ac_check_lib_save_LIBS=$LIBS
13008 LIBS="-lsvld  $LIBS"
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h.  */
13011
13012 /* Override any GCC internal prototype to avoid an error.
13013    Use char because int might match the return type of a GCC
13014    builtin and then its argument prototype would still apply.  */
13015 #ifdef __cplusplus
13016 extern "C"
13017 #endif
13018 char dlopen ();
13019 int
13020 main ()
13021 {
13022 return dlopen ();
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 if ac_fn_c_try_link "$LINENO"; then :
13028   ac_cv_lib_svld_dlopen=yes
13029 else
13030   ac_cv_lib_svld_dlopen=no
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext \
13033     conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13035 fi
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13039   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13040 else
13041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13042 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13043 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13044   $as_echo_n "(cached) " >&6
13045 else
13046   ac_check_lib_save_LIBS=$LIBS
13047 LIBS="-ldld  $LIBS"
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h.  */
13050
13051 /* Override any GCC internal prototype to avoid an error.
13052    Use char because int might match the return type of a GCC
13053    builtin and then its argument prototype would still apply.  */
13054 #ifdef __cplusplus
13055 extern "C"
13056 #endif
13057 char dld_link ();
13058 int
13059 main ()
13060 {
13061 return dld_link ();
13062   ;
13063   return 0;
13064 }
13065 _ACEOF
13066 if ac_fn_c_try_link "$LINENO"; then :
13067   ac_cv_lib_dld_dld_link=yes
13068 else
13069   ac_cv_lib_dld_dld_link=no
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext \
13072     conftest$ac_exeext conftest.$ac_ext
13073 LIBS=$ac_check_lib_save_LIBS
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13076 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13077 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13078   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13079 fi
13080
13081
13082 fi
13083
13084
13085 fi
13086
13087
13088 fi
13089
13090
13091 fi
13092
13093
13094 fi
13095
13096     ;;
13097   esac
13098
13099   if test "x$lt_cv_dlopen" != xno; then
13100     enable_dlopen=yes
13101   else
13102     enable_dlopen=no
13103   fi
13104
13105   case $lt_cv_dlopen in
13106   dlopen)
13107     save_CPPFLAGS="$CPPFLAGS"
13108     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13109
13110     save_LDFLAGS="$LDFLAGS"
13111     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13112
13113     save_LIBS="$LIBS"
13114     LIBS="$lt_cv_dlopen_libs $LIBS"
13115
13116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13117 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13118 if test "${lt_cv_dlopen_self+set}" = set; then :
13119   $as_echo_n "(cached) " >&6
13120 else
13121           if test "$cross_compiling" = yes; then :
13122   lt_cv_dlopen_self=cross
13123 else
13124   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13125   lt_status=$lt_dlunknown
13126   cat > conftest.$ac_ext <<_LT_EOF
13127 #line 13127 "configure"
13128 #include "confdefs.h"
13129
13130 #if HAVE_DLFCN_H
13131 #include <dlfcn.h>
13132 #endif
13133
13134 #include <stdio.h>
13135
13136 #ifdef RTLD_GLOBAL
13137 #  define LT_DLGLOBAL           RTLD_GLOBAL
13138 #else
13139 #  ifdef DL_GLOBAL
13140 #    define LT_DLGLOBAL         DL_GLOBAL
13141 #  else
13142 #    define LT_DLGLOBAL         0
13143 #  endif
13144 #endif
13145
13146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13147    find out it does not work in some platform. */
13148 #ifndef LT_DLLAZY_OR_NOW
13149 #  ifdef RTLD_LAZY
13150 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13151 #  else
13152 #    ifdef DL_LAZY
13153 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13154 #    else
13155 #      ifdef RTLD_NOW
13156 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13157 #      else
13158 #        ifdef DL_NOW
13159 #          define LT_DLLAZY_OR_NOW      DL_NOW
13160 #        else
13161 #          define LT_DLLAZY_OR_NOW      0
13162 #        endif
13163 #      endif
13164 #    endif
13165 #  endif
13166 #endif
13167
13168 void fnord() { int i=42;}
13169 int main ()
13170 {
13171   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13172   int status = $lt_dlunknown;
13173
13174   if (self)
13175     {
13176       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13177       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13178       /* dlclose (self); */
13179     }
13180   else
13181     puts (dlerror ());
13182
13183   return status;
13184 }
13185 _LT_EOF
13186   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13187   (eval $ac_link) 2>&5
13188   ac_status=$?
13189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13191     (./conftest; exit; ) >&5 2>/dev/null
13192     lt_status=$?
13193     case x$lt_status in
13194       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13195       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13196       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13197     esac
13198   else :
13199     # compilation failed
13200     lt_cv_dlopen_self=no
13201   fi
13202 fi
13203 rm -fr conftest*
13204
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13208 $as_echo "$lt_cv_dlopen_self" >&6; }
13209
13210     if test "x$lt_cv_dlopen_self" = xyes; then
13211       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13212       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13214 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13215   $as_echo_n "(cached) " >&6
13216 else
13217           if test "$cross_compiling" = yes; then :
13218   lt_cv_dlopen_self_static=cross
13219 else
13220   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13221   lt_status=$lt_dlunknown
13222   cat > conftest.$ac_ext <<_LT_EOF
13223 #line 13223 "configure"
13224 #include "confdefs.h"
13225
13226 #if HAVE_DLFCN_H
13227 #include <dlfcn.h>
13228 #endif
13229
13230 #include <stdio.h>
13231
13232 #ifdef RTLD_GLOBAL
13233 #  define LT_DLGLOBAL           RTLD_GLOBAL
13234 #else
13235 #  ifdef DL_GLOBAL
13236 #    define LT_DLGLOBAL         DL_GLOBAL
13237 #  else
13238 #    define LT_DLGLOBAL         0
13239 #  endif
13240 #endif
13241
13242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13243    find out it does not work in some platform. */
13244 #ifndef LT_DLLAZY_OR_NOW
13245 #  ifdef RTLD_LAZY
13246 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13247 #  else
13248 #    ifdef DL_LAZY
13249 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13250 #    else
13251 #      ifdef RTLD_NOW
13252 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13253 #      else
13254 #        ifdef DL_NOW
13255 #          define LT_DLLAZY_OR_NOW      DL_NOW
13256 #        else
13257 #          define LT_DLLAZY_OR_NOW      0
13258 #        endif
13259 #      endif
13260 #    endif
13261 #  endif
13262 #endif
13263
13264 void fnord() { int i=42;}
13265 int main ()
13266 {
13267   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13268   int status = $lt_dlunknown;
13269
13270   if (self)
13271     {
13272       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13273       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13274       /* dlclose (self); */
13275     }
13276   else
13277     puts (dlerror ());
13278
13279   return status;
13280 }
13281 _LT_EOF
13282   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13283   (eval $ac_link) 2>&5
13284   ac_status=$?
13285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13287     (./conftest; exit; ) >&5 2>/dev/null
13288     lt_status=$?
13289     case x$lt_status in
13290       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13291       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13292       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13293     esac
13294   else :
13295     # compilation failed
13296     lt_cv_dlopen_self_static=no
13297   fi
13298 fi
13299 rm -fr conftest*
13300
13301
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13304 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13305     fi
13306
13307     CPPFLAGS="$save_CPPFLAGS"
13308     LDFLAGS="$save_LDFLAGS"
13309     LIBS="$save_LIBS"
13310     ;;
13311   esac
13312
13313   case $lt_cv_dlopen_self in
13314   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13315   *) enable_dlopen_self=unknown ;;
13316   esac
13317
13318   case $lt_cv_dlopen_self_static in
13319   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13320   *) enable_dlopen_self_static=unknown ;;
13321   esac
13322 fi
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340 striplib=
13341 old_striplib=
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13343 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13344 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13345   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13346   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348 $as_echo "yes" >&6; }
13349 else
13350 # FIXME - insert some real tests, host_os isn't really good enough
13351   case $host_os in
13352   darwin*)
13353     if test -n "$STRIP" ; then
13354       striplib="$STRIP -x"
13355       old_striplib="$STRIP -S"
13356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13357 $as_echo "yes" >&6; }
13358     else
13359       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13361     fi
13362     ;;
13363   *)
13364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13366     ;;
13367   esac
13368 fi
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381   # Report which library types will actually be built
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13383 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13385 $as_echo "$can_build_shared" >&6; }
13386
13387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13388 $as_echo_n "checking whether to build shared libraries... " >&6; }
13389   test "$can_build_shared" = "no" && enable_shared=no
13390
13391   # On AIX, shared libraries and static libraries use the same namespace, and
13392   # are all built from PIC.
13393   case $host_os in
13394   aix3*)
13395     test "$enable_shared" = yes && enable_static=no
13396     if test -n "$RANLIB"; then
13397       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13398       postinstall_cmds='$RANLIB $lib'
13399     fi
13400     ;;
13401
13402   aix[4-9]*)
13403     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13404       test "$enable_shared" = yes && enable_static=no
13405     fi
13406     ;;
13407   esac
13408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13409 $as_echo "$enable_shared" >&6; }
13410
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13412 $as_echo_n "checking whether to build static libraries... " >&6; }
13413   # Make sure either enable_shared or enable_static is yes.
13414   test "$enable_shared" = yes || enable_static=yes
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13416 $as_echo "$enable_static" >&6; }
13417
13418
13419
13420
13421 fi
13422 ac_ext=c
13423 ac_cpp='$CPP $CPPFLAGS'
13424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13427
13428 CC="$lt_save_CC"
13429
13430
13431 ac_ext=cpp
13432 ac_cpp='$CXXCPP $CPPFLAGS'
13433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13436
13437 archive_cmds_need_lc_CXX=no
13438 allow_undefined_flag_CXX=
13439 always_export_symbols_CXX=no
13440 archive_expsym_cmds_CXX=
13441 compiler_needs_object_CXX=no
13442 export_dynamic_flag_spec_CXX=
13443 hardcode_direct_CXX=no
13444 hardcode_direct_absolute_CXX=no
13445 hardcode_libdir_flag_spec_CXX=
13446 hardcode_libdir_flag_spec_ld_CXX=
13447 hardcode_libdir_separator_CXX=
13448 hardcode_minus_L_CXX=no
13449 hardcode_shlibpath_var_CXX=unsupported
13450 hardcode_automatic_CXX=no
13451 inherit_rpath_CXX=no
13452 module_cmds_CXX=
13453 module_expsym_cmds_CXX=
13454 link_all_deplibs_CXX=unknown
13455 old_archive_cmds_CXX=$old_archive_cmds
13456 no_undefined_flag_CXX=
13457 whole_archive_flag_spec_CXX=
13458 enable_shared_with_static_runtimes_CXX=no
13459
13460 # Source file extension for C++ test sources.
13461 ac_ext=cpp
13462
13463 # Object file extension for compiled C++ test sources.
13464 objext=o
13465 objext_CXX=$objext
13466
13467 # No sense in running all these tests if we already determined that
13468 # the CXX compiler isn't working.  Some variables (like enable_shared)
13469 # are currently assumed to apply to all compilers on this platform,
13470 # and will be corrupted by setting them based on a non-working compiler.
13471 if test "$_lt_caught_CXX_error" != yes; then
13472   # Code to be used in simple compile tests
13473   lt_simple_compile_test_code="int some_variable = 0;"
13474
13475   # Code to be used in simple link tests
13476   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13477
13478   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13479
13480
13481
13482
13483
13484
13485 # If no C compiler was specified, use CC.
13486 LTCC=${LTCC-"$CC"}
13487
13488 # If no C compiler flags were specified, use CFLAGS.
13489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13490
13491 # Allow CC to be a program name with arguments.
13492 compiler=$CC
13493
13494
13495   # save warnings/boilerplate of simple test code
13496   ac_outfile=conftest.$ac_objext
13497 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13499 _lt_compiler_boilerplate=`cat conftest.err`
13500 $RM conftest*
13501
13502   ac_outfile=conftest.$ac_objext
13503 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13505 _lt_linker_boilerplate=`cat conftest.err`
13506 $RM -r conftest*
13507
13508
13509   # Allow CC to be a program name with arguments.
13510   lt_save_CC=$CC
13511   lt_save_LD=$LD
13512   lt_save_GCC=$GCC
13513   GCC=$GXX
13514   lt_save_with_gnu_ld=$with_gnu_ld
13515   lt_save_path_LD=$lt_cv_path_LD
13516   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13517     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13518   else
13519     $as_unset lt_cv_prog_gnu_ld
13520   fi
13521   if test -n "${lt_cv_path_LDCXX+set}"; then
13522     lt_cv_path_LD=$lt_cv_path_LDCXX
13523   else
13524     $as_unset lt_cv_path_LD
13525   fi
13526   test -z "${LDCXX+set}" || LD=$LDCXX
13527   CC=${CXX-"c++"}
13528   compiler=$CC
13529   compiler_CXX=$CC
13530   for cc_temp in $compiler""; do
13531   case $cc_temp in
13532     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13533     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13534     \-*) ;;
13535     *) break;;
13536   esac
13537 done
13538 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13539
13540
13541   if test -n "$compiler"; then
13542     # We don't want -fno-exception when compiling C++ code, so set the
13543     # no_builtin_flag separately
13544     if test "$GXX" = yes; then
13545       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13546     else
13547       lt_prog_compiler_no_builtin_flag_CXX=
13548     fi
13549
13550     if test "$GXX" = yes; then
13551       # Set up default GNU C++ configuration
13552
13553
13554
13555 # Check whether --with-gnu-ld was given.
13556 if test "${with_gnu_ld+set}" = set; then :
13557   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13558 else
13559   with_gnu_ld=no
13560 fi
13561
13562 ac_prog=ld
13563 if test "$GCC" = yes; then
13564   # Check if gcc -print-prog-name=ld gives a path.
13565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13566 $as_echo_n "checking for ld used by $CC... " >&6; }
13567   case $host in
13568   *-*-mingw*)
13569     # gcc leaves a trailing carriage return which upsets mingw
13570     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13571   *)
13572     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13573   esac
13574   case $ac_prog in
13575     # Accept absolute paths.
13576     [\\/]* | ?:[\\/]*)
13577       re_direlt='/[^/][^/]*/\.\./'
13578       # Canonicalize the pathname of ld
13579       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13580       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13581         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13582       done
13583       test -z "$LD" && LD="$ac_prog"
13584       ;;
13585   "")
13586     # If it fails, then pretend we aren't using GCC.
13587     ac_prog=ld
13588     ;;
13589   *)
13590     # If it is relative, then search for the first ld in PATH.
13591     with_gnu_ld=unknown
13592     ;;
13593   esac
13594 elif test "$with_gnu_ld" = yes; then
13595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13596 $as_echo_n "checking for GNU ld... " >&6; }
13597 else
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13599 $as_echo_n "checking for non-GNU ld... " >&6; }
13600 fi
13601 if test "${lt_cv_path_LD+set}" = set; then :
13602   $as_echo_n "(cached) " >&6
13603 else
13604   if test -z "$LD"; then
13605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13606   for ac_dir in $PATH; do
13607     IFS="$lt_save_ifs"
13608     test -z "$ac_dir" && ac_dir=.
13609     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13610       lt_cv_path_LD="$ac_dir/$ac_prog"
13611       # Check to see if the program is GNU ld.  I'd rather use --version,
13612       # but apparently some variants of GNU ld only accept -v.
13613       # Break only if it was the GNU/non-GNU ld that we prefer.
13614       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13615       *GNU* | *'with BFD'*)
13616         test "$with_gnu_ld" != no && break
13617         ;;
13618       *)
13619         test "$with_gnu_ld" != yes && break
13620         ;;
13621       esac
13622     fi
13623   done
13624   IFS="$lt_save_ifs"
13625 else
13626   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13627 fi
13628 fi
13629
13630 LD="$lt_cv_path_LD"
13631 if test -n "$LD"; then
13632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13633 $as_echo "$LD" >&6; }
13634 else
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13637 fi
13638 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13641 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13642   $as_echo_n "(cached) " >&6
13643 else
13644   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13645 case `$LD -v 2>&1 </dev/null` in
13646 *GNU* | *'with BFD'*)
13647   lt_cv_prog_gnu_ld=yes
13648   ;;
13649 *)
13650   lt_cv_prog_gnu_ld=no
13651   ;;
13652 esac
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13655 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13656 with_gnu_ld=$lt_cv_prog_gnu_ld
13657
13658
13659
13660
13661
13662
13663
13664       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13665       # archiving commands below assume that GNU ld is being used.
13666       if test "$with_gnu_ld" = yes; then
13667         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13669
13670         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13671         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13672
13673         # If archive_cmds runs LD, not CC, wlarc should be empty
13674         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13675         #     investigate it a little bit more. (MM)
13676         wlarc='${wl}'
13677
13678         # ancient GNU ld didn't support --whole-archive et. al.
13679         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13680           $GREP 'no-whole-archive' > /dev/null; then
13681           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13682         else
13683           whole_archive_flag_spec_CXX=
13684         fi
13685       else
13686         with_gnu_ld=no
13687         wlarc=
13688
13689         # A generic and very simple default shared library creation
13690         # command for GNU C++ for the case where it uses the native
13691         # linker, instead of GNU ld.  If possible, this setting should
13692         # overridden to take advantage of the native linker features on
13693         # the platform it is being used on.
13694         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13695       fi
13696
13697       # Commands to make compiler produce verbose output that lists
13698       # what "hidden" libraries, object files and flags are used when
13699       # linking a shared library.
13700       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13701
13702     else
13703       GXX=no
13704       with_gnu_ld=no
13705       wlarc=
13706     fi
13707
13708     # PORTME: fill in a description of your system's C++ link characteristics
13709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13710 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13711     ld_shlibs_CXX=yes
13712     case $host_os in
13713       aix3*)
13714         # FIXME: insert proper C++ library support
13715         ld_shlibs_CXX=no
13716         ;;
13717       aix[4-9]*)
13718         if test "$host_cpu" = ia64; then
13719           # On IA64, the linker does run time linking by default, so we don't
13720           # have to do anything special.
13721           aix_use_runtimelinking=no
13722           exp_sym_flag='-Bexport'
13723           no_entry_flag=""
13724         else
13725           aix_use_runtimelinking=no
13726
13727           # Test if we are trying to use run time linking or normal
13728           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13729           # need to do runtime linking.
13730           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13731             for ld_flag in $LDFLAGS; do
13732               case $ld_flag in
13733               *-brtl*)
13734                 aix_use_runtimelinking=yes
13735                 break
13736                 ;;
13737               esac
13738             done
13739             ;;
13740           esac
13741
13742           exp_sym_flag='-bexport'
13743           no_entry_flag='-bnoentry'
13744         fi
13745
13746         # When large executables or shared objects are built, AIX ld can
13747         # have problems creating the table of contents.  If linking a library
13748         # or program results in "error TOC overflow" add -mminimal-toc to
13749         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13750         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13751
13752         archive_cmds_CXX=''
13753         hardcode_direct_CXX=yes
13754         hardcode_direct_absolute_CXX=yes
13755         hardcode_libdir_separator_CXX=':'
13756         link_all_deplibs_CXX=yes
13757         file_list_spec_CXX='${wl}-f,'
13758
13759         if test "$GXX" = yes; then
13760           case $host_os in aix4.[012]|aix4.[012].*)
13761           # We only want to do this on AIX 4.2 and lower, the check
13762           # below for broken collect2 doesn't work under 4.3+
13763           collect2name=`${CC} -print-prog-name=collect2`
13764           if test -f "$collect2name" &&
13765              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13766           then
13767             # We have reworked collect2
13768             :
13769           else
13770             # We have old collect2
13771             hardcode_direct_CXX=unsupported
13772             # It fails to find uninstalled libraries when the uninstalled
13773             # path is not listed in the libpath.  Setting hardcode_minus_L
13774             # to unsupported forces relinking
13775             hardcode_minus_L_CXX=yes
13776             hardcode_libdir_flag_spec_CXX='-L$libdir'
13777             hardcode_libdir_separator_CXX=
13778           fi
13779           esac
13780           shared_flag='-shared'
13781           if test "$aix_use_runtimelinking" = yes; then
13782             shared_flag="$shared_flag "'${wl}-G'
13783           fi
13784         else
13785           # not using gcc
13786           if test "$host_cpu" = ia64; then
13787           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13788           # chokes on -Wl,-G. The following line is correct:
13789           shared_flag='-G'
13790           else
13791             if test "$aix_use_runtimelinking" = yes; then
13792               shared_flag='${wl}-G'
13793             else
13794               shared_flag='${wl}-bM:SRE'
13795             fi
13796           fi
13797         fi
13798
13799         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13800         # It seems that -bexpall does not export symbols beginning with
13801         # underscore (_), so it is better to generate a list of symbols to
13802         # export.
13803         always_export_symbols_CXX=yes
13804         if test "$aix_use_runtimelinking" = yes; then
13805           # Warning - without using the other runtime loading flags (-brtl),
13806           # -berok will link without error, but may produce a broken library.
13807           allow_undefined_flag_CXX='-berok'
13808           # Determine the default libpath from the value encoded in an empty
13809           # executable.
13810           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h.  */
13812
13813 int
13814 main ()
13815 {
13816
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_cxx_try_link "$LINENO"; then :
13822
13823 lt_aix_libpath_sed='
13824     /Import File Strings/,/^$/ {
13825         /^0/ {
13826             s/^0  *\(.*\)$/\1/
13827             p
13828         }
13829     }'
13830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13831 # Check for a 64-bit object if we didn't find anything.
13832 if test -z "$aix_libpath"; then
13833   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13834 fi
13835 fi
13836 rm -f core conftest.err conftest.$ac_objext \
13837     conftest$ac_exeext conftest.$ac_ext
13838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13839
13840           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13841
13842           archive_expsym_cmds_CXX='$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"
13843         else
13844           if test "$host_cpu" = ia64; then
13845             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13846             allow_undefined_flag_CXX="-z nodefs"
13847             archive_expsym_cmds_CXX="\$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"
13848           else
13849             # Determine the default libpath from the value encoded in an
13850             # empty executable.
13851             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h.  */
13853
13854 int
13855 main ()
13856 {
13857
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 if ac_fn_cxx_try_link "$LINENO"; then :
13863
13864 lt_aix_libpath_sed='
13865     /Import File Strings/,/^$/ {
13866         /^0/ {
13867             s/^0  *\(.*\)$/\1/
13868             p
13869         }
13870     }'
13871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13872 # Check for a 64-bit object if we didn't find anything.
13873 if test -z "$aix_libpath"; then
13874   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13875 fi
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext \
13878     conftest$ac_exeext conftest.$ac_ext
13879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13880
13881             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13882             # Warning - without using the other run time loading flags,
13883             # -berok will link without error, but may produce a broken library.
13884             no_undefined_flag_CXX=' ${wl}-bernotok'
13885             allow_undefined_flag_CXX=' ${wl}-berok'
13886             # Exported symbols can be pulled into shared objects from archives
13887             whole_archive_flag_spec_CXX='$convenience'
13888             archive_cmds_need_lc_CXX=yes
13889             # This is similar to how AIX traditionally builds its shared
13890             # libraries.
13891             archive_expsym_cmds_CXX="\$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'
13892           fi
13893         fi
13894         ;;
13895
13896       beos*)
13897         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13898           allow_undefined_flag_CXX=unsupported
13899           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13900           # support --undefined.  This deserves some investigation.  FIXME
13901           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902         else
13903           ld_shlibs_CXX=no
13904         fi
13905         ;;
13906
13907       chorus*)
13908         case $cc_basename in
13909           *)
13910           # FIXME: insert proper C++ library support
13911           ld_shlibs_CXX=no
13912           ;;
13913         esac
13914         ;;
13915
13916       cygwin* | mingw* | pw32* | cegcc*)
13917         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13918         # as there is no search path for DLLs.
13919         hardcode_libdir_flag_spec_CXX='-L$libdir'
13920         allow_undefined_flag_CXX=unsupported
13921         always_export_symbols_CXX=no
13922         enable_shared_with_static_runtimes_CXX=yes
13923
13924         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13925           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13926           # If the export-symbols file already is a .def file (1st line
13927           # is EXPORTS), use it as is; otherwise, prepend...
13928           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13929             cp $export_symbols $output_objdir/$soname.def;
13930           else
13931             echo EXPORTS > $output_objdir/$soname.def;
13932             cat $export_symbols >> $output_objdir/$soname.def;
13933           fi~
13934           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13935         else
13936           ld_shlibs_CXX=no
13937         fi
13938         ;;
13939       darwin* | rhapsody*)
13940
13941
13942   archive_cmds_need_lc_CXX=no
13943   hardcode_direct_CXX=no
13944   hardcode_automatic_CXX=yes
13945   hardcode_shlibpath_var_CXX=unsupported
13946   whole_archive_flag_spec_CXX=''
13947   link_all_deplibs_CXX=yes
13948   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13949   case $cc_basename in
13950      ifort*) _lt_dar_can_shared=yes ;;
13951      *) _lt_dar_can_shared=$GCC ;;
13952   esac
13953   if test "$_lt_dar_can_shared" = "yes"; then
13954     output_verbose_link_cmd=echo
13955     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13956     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13957     archive_expsym_cmds_CXX="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}"
13958     module_expsym_cmds_CXX="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}"
13959        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13960       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13961       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13962     fi
13963
13964   else
13965   ld_shlibs_CXX=no
13966   fi
13967
13968         ;;
13969
13970       dgux*)
13971         case $cc_basename in
13972           ec++*)
13973             # FIXME: insert proper C++ library support
13974             ld_shlibs_CXX=no
13975             ;;
13976           ghcx*)
13977             # Green Hills C++ Compiler
13978             # FIXME: insert proper C++ library support
13979             ld_shlibs_CXX=no
13980             ;;
13981           *)
13982             # FIXME: insert proper C++ library support
13983             ld_shlibs_CXX=no
13984             ;;
13985         esac
13986         ;;
13987
13988       freebsd[12]*)
13989         # C++ shared libraries reported to be fairly broken before
13990         # switch to ELF
13991         ld_shlibs_CXX=no
13992         ;;
13993
13994       freebsd-elf*)
13995         archive_cmds_need_lc_CXX=no
13996         ;;
13997
13998       freebsd* | dragonfly*)
13999         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14000         # conventions
14001         ld_shlibs_CXX=yes
14002         ;;
14003
14004       gnu*)
14005         ;;
14006
14007       hpux9*)
14008         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14009         hardcode_libdir_separator_CXX=:
14010         export_dynamic_flag_spec_CXX='${wl}-E'
14011         hardcode_direct_CXX=yes
14012         hardcode_minus_L_CXX=yes # Not in the search PATH,
14013                                              # but as the default
14014                                              # location of the library.
14015
14016         case $cc_basename in
14017           CC*)
14018             # FIXME: insert proper C++ library support
14019             ld_shlibs_CXX=no
14020             ;;
14021           aCC*)
14022             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14023             # Commands to make compiler produce verbose output that lists
14024             # what "hidden" libraries, object files and flags are used when
14025             # linking a shared library.
14026             #
14027             # There doesn't appear to be a way to prevent this compiler from
14028             # explicitly linking system object files so we need to strip them
14029             # from the output so that they don't get included in the library
14030             # dependencies.
14031             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14032             ;;
14033           *)
14034             if test "$GXX" = yes; then
14035               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14036             else
14037               # FIXME: insert proper C++ library support
14038               ld_shlibs_CXX=no
14039             fi
14040             ;;
14041         esac
14042         ;;
14043
14044       hpux10*|hpux11*)
14045         if test $with_gnu_ld = no; then
14046           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14047           hardcode_libdir_separator_CXX=:
14048
14049           case $host_cpu in
14050             hppa*64*|ia64*)
14051               ;;
14052             *)
14053               export_dynamic_flag_spec_CXX='${wl}-E'
14054               ;;
14055           esac
14056         fi
14057         case $host_cpu in
14058           hppa*64*|ia64*)
14059             hardcode_direct_CXX=no
14060             hardcode_shlibpath_var_CXX=no
14061             ;;
14062           *)
14063             hardcode_direct_CXX=yes
14064             hardcode_direct_absolute_CXX=yes
14065             hardcode_minus_L_CXX=yes # Not in the search PATH,
14066                                                  # but as the default
14067                                                  # location of the library.
14068             ;;
14069         esac
14070
14071         case $cc_basename in
14072           CC*)
14073             # FIXME: insert proper C++ library support
14074             ld_shlibs_CXX=no
14075             ;;
14076           aCC*)
14077             case $host_cpu in
14078               hppa*64*)
14079                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14080                 ;;
14081               ia64*)
14082                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14083                 ;;
14084               *)
14085                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14086                 ;;
14087             esac
14088             # Commands to make compiler produce verbose output that lists
14089             # what "hidden" libraries, object files and flags are used when
14090             # linking a shared library.
14091             #
14092             # There doesn't appear to be a way to prevent this compiler from
14093             # explicitly linking system object files so we need to strip them
14094             # from the output so that they don't get included in the library
14095             # dependencies.
14096             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14097             ;;
14098           *)
14099             if test "$GXX" = yes; then
14100               if test $with_gnu_ld = no; then
14101                 case $host_cpu in
14102                   hppa*64*)
14103                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104                     ;;
14105                   ia64*)
14106                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14107                     ;;
14108                   *)
14109                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14110                     ;;
14111                 esac
14112               fi
14113             else
14114               # FIXME: insert proper C++ library support
14115               ld_shlibs_CXX=no
14116             fi
14117             ;;
14118         esac
14119         ;;
14120
14121       interix[3-9]*)
14122         hardcode_direct_CXX=no
14123         hardcode_shlibpath_var_CXX=no
14124         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14125         export_dynamic_flag_spec_CXX='${wl}-E'
14126         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14127         # Instead, shared libraries are loaded at an image base (0x10000000 by
14128         # default) and relocated if they conflict, which is a slow very memory
14129         # consuming and fragmenting process.  To avoid this, we pick a random,
14130         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14131         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14132         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14133         archive_expsym_cmds_CXX='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'
14134         ;;
14135       irix5* | irix6*)
14136         case $cc_basename in
14137           CC*)
14138             # SGI C++
14139             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14140
14141             # Archives containing C++ object files must be created using
14142             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14143             # necessary to make sure instantiated templates are included
14144             # in the archive.
14145             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14146             ;;
14147           *)
14148             if test "$GXX" = yes; then
14149               if test "$with_gnu_ld" = no; then
14150                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14151               else
14152                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14153               fi
14154             fi
14155             link_all_deplibs_CXX=yes
14156             ;;
14157         esac
14158         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14159         hardcode_libdir_separator_CXX=:
14160         inherit_rpath_CXX=yes
14161         ;;
14162
14163       linux* | k*bsd*-gnu)
14164         case $cc_basename in
14165           KCC*)
14166             # Kuck and Associates, Inc. (KAI) C++ Compiler
14167
14168             # KCC will only create a shared library if the output file
14169             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14170             # to its proper name (with version) after linking.
14171             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14172             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14173             # Commands to make compiler produce verbose output that lists
14174             # what "hidden" libraries, object files and flags are used when
14175             # linking a shared library.
14176             #
14177             # There doesn't appear to be a way to prevent this compiler from
14178             # explicitly linking system object files so we need to strip them
14179             # from the output so that they don't get included in the library
14180             # dependencies.
14181             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14182
14183             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14184             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14185
14186             # Archives containing C++ object files must be created using
14187             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14188             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14189             ;;
14190           icpc* | ecpc* )
14191             # Intel C++
14192             with_gnu_ld=yes
14193             # version 8.0 and above of icpc choke on multiply defined symbols
14194             # if we add $predep_objects and $postdep_objects, however 7.1 and
14195             # earlier do not add the objects themselves.
14196             case `$CC -V 2>&1` in
14197               *"Version 7."*)
14198                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14200                 ;;
14201               *)  # Version 8.0 or newer
14202                 tmp_idyn=
14203                 case $host_cpu in
14204                   ia64*) tmp_idyn=' -i_dynamic';;
14205                 esac
14206                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14208                 ;;
14209             esac
14210             archive_cmds_need_lc_CXX=no
14211             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14212             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14213             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14214             ;;
14215           pgCC* | pgcpp*)
14216             # Portland Group C++ compiler
14217             case `$CC -V` in
14218             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14219               prelink_cmds_CXX='tpldir=Template.dir~
14220                 rm -rf $tpldir~
14221                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14222                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14223               old_archive_cmds_CXX='tpldir=Template.dir~
14224                 rm -rf $tpldir~
14225                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14226                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14227                 $RANLIB $oldlib'
14228               archive_cmds_CXX='tpldir=Template.dir~
14229                 rm -rf $tpldir~
14230                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14231                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14232               archive_expsym_cmds_CXX='tpldir=Template.dir~
14233                 rm -rf $tpldir~
14234                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14235                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14236               ;;
14237             *) # Version 6 will use weak symbols
14238               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14239               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14240               ;;
14241             esac
14242
14243             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14244             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14245             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14246             ;;
14247           cxx*)
14248             # Compaq C++
14249             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14251
14252             runpath_var=LD_RUN_PATH
14253             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14254             hardcode_libdir_separator_CXX=:
14255
14256             # Commands to make compiler produce verbose output that lists
14257             # what "hidden" libraries, object files and flags are used when
14258             # linking a shared library.
14259             #
14260             # There doesn't appear to be a way to prevent this compiler from
14261             # explicitly linking system object files so we need to strip them
14262             # from the output so that they don't get included in the library
14263             # dependencies.
14264             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14265             ;;
14266           xl*)
14267             # IBM XL 8.0 on PPC, with GNU ld
14268             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14269             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14270             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14271             if test "x$supports_anon_versioning" = xyes; then
14272               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14273                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14274                 echo "local: *; };" >> $output_objdir/$libname.ver~
14275                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14276             fi
14277             ;;
14278           *)
14279             case `$CC -V 2>&1 | sed 5q` in
14280             *Sun\ C*)
14281               # Sun C++ 5.9
14282               no_undefined_flag_CXX=' -zdefs'
14283               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14284               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14285               hardcode_libdir_flag_spec_CXX='-R$libdir'
14286               whole_archive_flag_spec_CXX='${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'
14287               compiler_needs_object_CXX=yes
14288
14289               # Not sure whether something based on
14290               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14291               # would be better.
14292               output_verbose_link_cmd='echo'
14293
14294               # Archives containing C++ object files must be created using
14295               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14296               # necessary to make sure instantiated templates are included
14297               # in the archive.
14298               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14299               ;;
14300             esac
14301             ;;
14302         esac
14303         ;;
14304
14305       lynxos*)
14306         # FIXME: insert proper C++ library support
14307         ld_shlibs_CXX=no
14308         ;;
14309
14310       m88k*)
14311         # FIXME: insert proper C++ library support
14312         ld_shlibs_CXX=no
14313         ;;
14314
14315       mvs*)
14316         case $cc_basename in
14317           cxx*)
14318             # FIXME: insert proper C++ library support
14319             ld_shlibs_CXX=no
14320             ;;
14321           *)
14322             # FIXME: insert proper C++ library support
14323             ld_shlibs_CXX=no
14324             ;;
14325         esac
14326         ;;
14327
14328       netbsd*)
14329         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14330           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14331           wlarc=
14332           hardcode_libdir_flag_spec_CXX='-R$libdir'
14333           hardcode_direct_CXX=yes
14334           hardcode_shlibpath_var_CXX=no
14335         fi
14336         # Workaround some broken pre-1.5 toolchains
14337         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14338         ;;
14339
14340       *nto* | *qnx*)
14341         ld_shlibs_CXX=yes
14342         ;;
14343
14344       openbsd2*)
14345         # C++ shared libraries are fairly broken
14346         ld_shlibs_CXX=no
14347         ;;
14348
14349       openbsd*)
14350         if test -f /usr/libexec/ld.so; then
14351           hardcode_direct_CXX=yes
14352           hardcode_shlibpath_var_CXX=no
14353           hardcode_direct_absolute_CXX=yes
14354           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14355           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14356           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14357             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14358             export_dynamic_flag_spec_CXX='${wl}-E'
14359             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14360           fi
14361           output_verbose_link_cmd=echo
14362         else
14363           ld_shlibs_CXX=no
14364         fi
14365         ;;
14366
14367       osf3* | osf4* | osf5*)
14368         case $cc_basename in
14369           KCC*)
14370             # Kuck and Associates, Inc. (KAI) C++ Compiler
14371
14372             # KCC will only create a shared library if the output file
14373             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14374             # to its proper name (with version) after linking.
14375             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14376
14377             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14378             hardcode_libdir_separator_CXX=:
14379
14380             # Archives containing C++ object files must be created using
14381             # the KAI C++ compiler.
14382             case $host in
14383               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14384               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14385             esac
14386             ;;
14387           RCC*)
14388             # Rational C++ 2.4.1
14389             # FIXME: insert proper C++ library support
14390             ld_shlibs_CXX=no
14391             ;;
14392           cxx*)
14393             case $host in
14394               osf3*)
14395                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14396                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14397                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14398                 ;;
14399               *)
14400                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14401                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14402                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14403                   echo "-hidden">> $lib.exp~
14404                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14405                   $RM $lib.exp'
14406                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14407                 ;;
14408             esac
14409
14410             hardcode_libdir_separator_CXX=:
14411
14412             # Commands to make compiler produce verbose output that lists
14413             # what "hidden" libraries, object files and flags are used when
14414             # linking a shared library.
14415             #
14416             # There doesn't appear to be a way to prevent this compiler from
14417             # explicitly linking system object files so we need to strip them
14418             # from the output so that they don't get included in the library
14419             # dependencies.
14420             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14421             ;;
14422           *)
14423             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14424               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14425               case $host in
14426                 osf3*)
14427                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14428                   ;;
14429                 *)
14430                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14431                   ;;
14432               esac
14433
14434               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14435               hardcode_libdir_separator_CXX=:
14436
14437               # Commands to make compiler produce verbose output that lists
14438               # what "hidden" libraries, object files and flags are used when
14439               # linking a shared library.
14440               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14441
14442             else
14443               # FIXME: insert proper C++ library support
14444               ld_shlibs_CXX=no
14445             fi
14446             ;;
14447         esac
14448         ;;
14449
14450       psos*)
14451         # FIXME: insert proper C++ library support
14452         ld_shlibs_CXX=no
14453         ;;
14454
14455       sunos4*)
14456         case $cc_basename in
14457           CC*)
14458             # Sun C++ 4.x
14459             # FIXME: insert proper C++ library support
14460             ld_shlibs_CXX=no
14461             ;;
14462           lcc*)
14463             # Lucid
14464             # FIXME: insert proper C++ library support
14465             ld_shlibs_CXX=no
14466             ;;
14467           *)
14468             # FIXME: insert proper C++ library support
14469             ld_shlibs_CXX=no
14470             ;;
14471         esac
14472         ;;
14473
14474       solaris*)
14475         case $cc_basename in
14476           CC*)
14477             # Sun C++ 4.2, 5.x and Centerline C++
14478             archive_cmds_need_lc_CXX=yes
14479             no_undefined_flag_CXX=' -zdefs'
14480             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14481             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14482               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14483
14484             hardcode_libdir_flag_spec_CXX='-R$libdir'
14485             hardcode_shlibpath_var_CXX=no
14486             case $host_os in
14487               solaris2.[0-5] | solaris2.[0-5].*) ;;
14488               *)
14489                 # The compiler driver will combine and reorder linker options,
14490                 # but understands `-z linker_flag'.
14491                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14492                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14493                 ;;
14494             esac
14495             link_all_deplibs_CXX=yes
14496
14497             output_verbose_link_cmd='echo'
14498
14499             # Archives containing C++ object files must be created using
14500             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14501             # necessary to make sure instantiated templates are included
14502             # in the archive.
14503             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14504             ;;
14505           gcx*)
14506             # Green Hills C++ Compiler
14507             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14508
14509             # The C++ compiler must be used to create the archive.
14510             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14511             ;;
14512           *)
14513             # GNU C++ compiler with Solaris linker
14514             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14515               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14516               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14517                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14518                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14519                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14520
14521                 # Commands to make compiler produce verbose output that lists
14522                 # what "hidden" libraries, object files and flags are used when
14523                 # linking a shared library.
14524                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14525               else
14526                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14527                 # platform.
14528                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14529                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14530                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14531
14532                 # Commands to make compiler produce verbose output that lists
14533                 # what "hidden" libraries, object files and flags are used when
14534                 # linking a shared library.
14535                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14536               fi
14537
14538               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14539               case $host_os in
14540                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14541                 *)
14542                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14543                   ;;
14544               esac
14545             fi
14546             ;;
14547         esac
14548         ;;
14549
14550     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14551       no_undefined_flag_CXX='${wl}-z,text'
14552       archive_cmds_need_lc_CXX=no
14553       hardcode_shlibpath_var_CXX=no
14554       runpath_var='LD_RUN_PATH'
14555
14556       case $cc_basename in
14557         CC*)
14558           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14559           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14560           ;;
14561         *)
14562           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564           ;;
14565       esac
14566       ;;
14567
14568       sysv5* | sco3.2v5* | sco5v6*)
14569         # Note: We can NOT use -z defs as we might desire, because we do not
14570         # link with -lc, and that would cause any symbols used from libc to
14571         # always be unresolved, which means just about no library would
14572         # ever link correctly.  If we're not using GNU ld we use -z text
14573         # though, which does catch some bad symbols but isn't as heavy-handed
14574         # as -z defs.
14575         no_undefined_flag_CXX='${wl}-z,text'
14576         allow_undefined_flag_CXX='${wl}-z,nodefs'
14577         archive_cmds_need_lc_CXX=no
14578         hardcode_shlibpath_var_CXX=no
14579         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14580         hardcode_libdir_separator_CXX=':'
14581         link_all_deplibs_CXX=yes
14582         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14583         runpath_var='LD_RUN_PATH'
14584
14585         case $cc_basename in
14586           CC*)
14587             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14589             ;;
14590           *)
14591             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14592             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14593             ;;
14594         esac
14595       ;;
14596
14597       tandem*)
14598         case $cc_basename in
14599           NCC*)
14600             # NonStop-UX NCC 3.20
14601             # FIXME: insert proper C++ library support
14602             ld_shlibs_CXX=no
14603             ;;
14604           *)
14605             # FIXME: insert proper C++ library support
14606             ld_shlibs_CXX=no
14607             ;;
14608         esac
14609         ;;
14610
14611       vxworks*)
14612         # FIXME: insert proper C++ library support
14613         ld_shlibs_CXX=no
14614         ;;
14615
14616       *)
14617         # FIXME: insert proper C++ library support
14618         ld_shlibs_CXX=no
14619         ;;
14620     esac
14621
14622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14623 $as_echo "$ld_shlibs_CXX" >&6; }
14624     test "$ld_shlibs_CXX" = no && can_build_shared=no
14625
14626     GCC_CXX="$GXX"
14627     LD_CXX="$LD"
14628
14629     ## CAVEAT EMPTOR:
14630     ## There is no encapsulation within the following macros, do not change
14631     ## the running order or otherwise move them around unless you know exactly
14632     ## what you are doing...
14633     # Dependencies to place before and after the object being linked:
14634 predep_objects_CXX=
14635 postdep_objects_CXX=
14636 predeps_CXX=
14637 postdeps_CXX=
14638 compiler_lib_search_path_CXX=
14639
14640 cat > conftest.$ac_ext <<_LT_EOF
14641 class Foo
14642 {
14643 public:
14644   Foo (void) { a = 0; }
14645 private:
14646   int a;
14647 };
14648 _LT_EOF
14649
14650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14651   (eval $ac_compile) 2>&5
14652   ac_status=$?
14653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654   test $ac_status = 0; }; then
14655   # Parse the compiler output and extract the necessary
14656   # objects, libraries and library flags.
14657
14658   # Sentinel used to keep track of whether or not we are before
14659   # the conftest object file.
14660   pre_test_object_deps_done=no
14661
14662   for p in `eval "$output_verbose_link_cmd"`; do
14663     case $p in
14664
14665     -L* | -R* | -l*)
14666        # Some compilers place space between "-{L,R}" and the path.
14667        # Remove the space.
14668        if test $p = "-L" ||
14669           test $p = "-R"; then
14670          prev=$p
14671          continue
14672        else
14673          prev=
14674        fi
14675
14676        if test "$pre_test_object_deps_done" = no; then
14677          case $p in
14678          -L* | -R*)
14679            # Internal compiler library paths should come after those
14680            # provided the user.  The postdeps already come after the
14681            # user supplied libs so there is no need to process them.
14682            if test -z "$compiler_lib_search_path_CXX"; then
14683              compiler_lib_search_path_CXX="${prev}${p}"
14684            else
14685              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14686            fi
14687            ;;
14688          # The "-l" case would never come before the object being
14689          # linked, so don't bother handling this case.
14690          esac
14691        else
14692          if test -z "$postdeps_CXX"; then
14693            postdeps_CXX="${prev}${p}"
14694          else
14695            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14696          fi
14697        fi
14698        ;;
14699
14700     *.$objext)
14701        # This assumes that the test object file only shows up
14702        # once in the compiler output.
14703        if test "$p" = "conftest.$objext"; then
14704          pre_test_object_deps_done=yes
14705          continue
14706        fi
14707
14708        if test "$pre_test_object_deps_done" = no; then
14709          if test -z "$predep_objects_CXX"; then
14710            predep_objects_CXX="$p"
14711          else
14712            predep_objects_CXX="$predep_objects_CXX $p"
14713          fi
14714        else
14715          if test -z "$postdep_objects_CXX"; then
14716            postdep_objects_CXX="$p"
14717          else
14718            postdep_objects_CXX="$postdep_objects_CXX $p"
14719          fi
14720        fi
14721        ;;
14722
14723     *) ;; # Ignore the rest.
14724
14725     esac
14726   done
14727
14728   # Clean up.
14729   rm -f a.out a.exe
14730 else
14731   echo "libtool.m4: error: problem compiling CXX test program"
14732 fi
14733
14734 $RM -f confest.$objext
14735
14736 # PORTME: override above test on systems where it is broken
14737 case $host_os in
14738 interix[3-9]*)
14739   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14740   # hack all around it, let's just trust "g++" to DTRT.
14741   predep_objects_CXX=
14742   postdep_objects_CXX=
14743   postdeps_CXX=
14744   ;;
14745
14746 linux*)
14747   case `$CC -V 2>&1 | sed 5q` in
14748   *Sun\ C*)
14749     # Sun C++ 5.9
14750
14751     # The more standards-conforming stlport4 library is
14752     # incompatible with the Cstd library. Avoid specifying
14753     # it if it's in CXXFLAGS. Ignore libCrun as
14754     # -library=stlport4 depends on it.
14755     case " $CXX $CXXFLAGS " in
14756     *" -library=stlport4 "*)
14757       solaris_use_stlport4=yes
14758       ;;
14759     esac
14760
14761     if test "$solaris_use_stlport4" != yes; then
14762       postdeps_CXX='-library=Cstd -library=Crun'
14763     fi
14764     ;;
14765   esac
14766   ;;
14767
14768 solaris*)
14769   case $cc_basename in
14770   CC*)
14771     # The more standards-conforming stlport4 library is
14772     # incompatible with the Cstd library. Avoid specifying
14773     # it if it's in CXXFLAGS. Ignore libCrun as
14774     # -library=stlport4 depends on it.
14775     case " $CXX $CXXFLAGS " in
14776     *" -library=stlport4 "*)
14777       solaris_use_stlport4=yes
14778       ;;
14779     esac
14780
14781     # Adding this requires a known-good setup of shared libraries for
14782     # Sun compiler versions before 5.6, else PIC objects from an old
14783     # archive will be linked into the output, leading to subtle bugs.
14784     if test "$solaris_use_stlport4" != yes; then
14785       postdeps_CXX='-library=Cstd -library=Crun'
14786     fi
14787     ;;
14788   esac
14789   ;;
14790 esac
14791
14792
14793 case " $postdeps_CXX " in
14794 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14795 esac
14796  compiler_lib_search_dirs_CXX=
14797 if test -n "${compiler_lib_search_path_CXX}"; then
14798  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14799 fi
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831     lt_prog_compiler_wl_CXX=
14832 lt_prog_compiler_pic_CXX=
14833 lt_prog_compiler_static_CXX=
14834
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14837
14838   # C++ specific cases for pic, static, wl, etc.
14839   if test "$GXX" = yes; then
14840     lt_prog_compiler_wl_CXX='-Wl,'
14841     lt_prog_compiler_static_CXX='-static'
14842
14843     case $host_os in
14844     aix*)
14845       # All AIX code is PIC.
14846       if test "$host_cpu" = ia64; then
14847         # AIX 5 now supports IA64 processor
14848         lt_prog_compiler_static_CXX='-Bstatic'
14849       fi
14850       ;;
14851
14852     amigaos*)
14853       case $host_cpu in
14854       powerpc)
14855             # see comment about AmigaOS4 .so support
14856             lt_prog_compiler_pic_CXX='-fPIC'
14857         ;;
14858       m68k)
14859             # FIXME: we need at least 68020 code to build shared libraries, but
14860             # adding the `-m68020' flag to GCC prevents building anything better,
14861             # like `-m68040'.
14862             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14863         ;;
14864       esac
14865       ;;
14866
14867     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14868       # PIC is the default for these OSes.
14869       ;;
14870     mingw* | cygwin* | os2* | pw32* | cegcc*)
14871       # This hack is so that the source file can tell whether it is being
14872       # built for inclusion in a dll (and should export symbols for example).
14873       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14874       # (--disable-auto-import) libraries
14875       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14876       ;;
14877     darwin* | rhapsody*)
14878       # PIC is the default on this platform
14879       # Common symbols not allowed in MH_DYLIB files
14880       lt_prog_compiler_pic_CXX='-fno-common'
14881       ;;
14882     *djgpp*)
14883       # DJGPP does not support shared libraries at all
14884       lt_prog_compiler_pic_CXX=
14885       ;;
14886     interix[3-9]*)
14887       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14888       # Instead, we relocate shared libraries at runtime.
14889       ;;
14890     sysv4*MP*)
14891       if test -d /usr/nec; then
14892         lt_prog_compiler_pic_CXX=-Kconform_pic
14893       fi
14894       ;;
14895     hpux*)
14896       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14897       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14898       # sets the default TLS model and affects inlining.
14899       case $host_cpu in
14900       hppa*64*)
14901         ;;
14902       *)
14903         lt_prog_compiler_pic_CXX='-fPIC'
14904         ;;
14905       esac
14906       ;;
14907     *qnx* | *nto*)
14908       # QNX uses GNU C++, but need to define -shared option too, otherwise
14909       # it will coredump.
14910       lt_prog_compiler_pic_CXX='-fPIC -shared'
14911       ;;
14912     *)
14913       lt_prog_compiler_pic_CXX='-fPIC'
14914       ;;
14915     esac
14916   else
14917     case $host_os in
14918       aix[4-9]*)
14919         # All AIX code is PIC.
14920         if test "$host_cpu" = ia64; then
14921           # AIX 5 now supports IA64 processor
14922           lt_prog_compiler_static_CXX='-Bstatic'
14923         else
14924           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14925         fi
14926         ;;
14927       chorus*)
14928         case $cc_basename in
14929         cxch68*)
14930           # Green Hills C++ Compiler
14931           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14932           ;;
14933         esac
14934         ;;
14935       dgux*)
14936         case $cc_basename in
14937           ec++*)
14938             lt_prog_compiler_pic_CXX='-KPIC'
14939             ;;
14940           ghcx*)
14941             # Green Hills C++ Compiler
14942             lt_prog_compiler_pic_CXX='-pic'
14943             ;;
14944           *)
14945             ;;
14946         esac
14947         ;;
14948       freebsd* | dragonfly*)
14949         # FreeBSD uses GNU C++
14950         ;;
14951       hpux9* | hpux10* | hpux11*)
14952         case $cc_basename in
14953           CC*)
14954             lt_prog_compiler_wl_CXX='-Wl,'
14955             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14956             if test "$host_cpu" != ia64; then
14957               lt_prog_compiler_pic_CXX='+Z'
14958             fi
14959             ;;
14960           aCC*)
14961             lt_prog_compiler_wl_CXX='-Wl,'
14962             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14963             case $host_cpu in
14964             hppa*64*|ia64*)
14965               # +Z the default
14966               ;;
14967             *)
14968               lt_prog_compiler_pic_CXX='+Z'
14969               ;;
14970             esac
14971             ;;
14972           *)
14973             ;;
14974         esac
14975         ;;
14976       interix*)
14977         # This is c89, which is MS Visual C++ (no shared libs)
14978         # Anyone wants to do a port?
14979         ;;
14980       irix5* | irix6* | nonstopux*)
14981         case $cc_basename in
14982           CC*)
14983             lt_prog_compiler_wl_CXX='-Wl,'
14984             lt_prog_compiler_static_CXX='-non_shared'
14985             # CC pic flag -KPIC is the default.
14986             ;;
14987           *)
14988             ;;
14989         esac
14990         ;;
14991       linux* | k*bsd*-gnu)
14992         case $cc_basename in
14993           KCC*)
14994             # KAI C++ Compiler
14995             lt_prog_compiler_wl_CXX='--backend -Wl,'
14996             lt_prog_compiler_pic_CXX='-fPIC'
14997             ;;
14998           ecpc* )
14999             # old Intel C++ for x86_64 which still supported -KPIC.
15000             lt_prog_compiler_wl_CXX='-Wl,'
15001             lt_prog_compiler_pic_CXX='-KPIC'
15002             lt_prog_compiler_static_CXX='-static'
15003             ;;
15004           icpc* )
15005             # Intel C++, used to be incompatible with GCC.
15006             # ICC 10 doesn't accept -KPIC any more.
15007             lt_prog_compiler_wl_CXX='-Wl,'
15008             lt_prog_compiler_pic_CXX='-fPIC'
15009             lt_prog_compiler_static_CXX='-static'
15010             ;;
15011           pgCC* | pgcpp*)
15012             # Portland Group C++ compiler
15013             lt_prog_compiler_wl_CXX='-Wl,'
15014             lt_prog_compiler_pic_CXX='-fpic'
15015             lt_prog_compiler_static_CXX='-Bstatic'
15016             ;;
15017           cxx*)
15018             # Compaq C++
15019             # Make sure the PIC flag is empty.  It appears that all Alpha
15020             # Linux and Compaq Tru64 Unix objects are PIC.
15021             lt_prog_compiler_pic_CXX=
15022             lt_prog_compiler_static_CXX='-non_shared'
15023             ;;
15024           xlc* | xlC*)
15025             # IBM XL 8.0 on PPC
15026             lt_prog_compiler_wl_CXX='-Wl,'
15027             lt_prog_compiler_pic_CXX='-qpic'
15028             lt_prog_compiler_static_CXX='-qstaticlink'
15029             ;;
15030           *)
15031             case `$CC -V 2>&1 | sed 5q` in
15032             *Sun\ C*)
15033               # Sun C++ 5.9
15034               lt_prog_compiler_pic_CXX='-KPIC'
15035               lt_prog_compiler_static_CXX='-Bstatic'
15036               lt_prog_compiler_wl_CXX='-Qoption ld '
15037               ;;
15038             esac
15039             ;;
15040         esac
15041         ;;
15042       lynxos*)
15043         ;;
15044       m88k*)
15045         ;;
15046       mvs*)
15047         case $cc_basename in
15048           cxx*)
15049             lt_prog_compiler_pic_CXX='-W c,exportall'
15050             ;;
15051           *)
15052             ;;
15053         esac
15054         ;;
15055       netbsd*)
15056         ;;
15057       *qnx* | *nto*)
15058         # QNX uses GNU C++, but need to define -shared option too, otherwise
15059         # it will coredump.
15060         lt_prog_compiler_pic_CXX='-fPIC -shared'
15061         ;;
15062       osf3* | osf4* | osf5*)
15063         case $cc_basename in
15064           KCC*)
15065             lt_prog_compiler_wl_CXX='--backend -Wl,'
15066             ;;
15067           RCC*)
15068             # Rational C++ 2.4.1
15069             lt_prog_compiler_pic_CXX='-pic'
15070             ;;
15071           cxx*)
15072             # Digital/Compaq C++
15073             lt_prog_compiler_wl_CXX='-Wl,'
15074             # Make sure the PIC flag is empty.  It appears that all Alpha
15075             # Linux and Compaq Tru64 Unix objects are PIC.
15076             lt_prog_compiler_pic_CXX=
15077             lt_prog_compiler_static_CXX='-non_shared'
15078             ;;
15079           *)
15080             ;;
15081         esac
15082         ;;
15083       psos*)
15084         ;;
15085       solaris*)
15086         case $cc_basename in
15087           CC*)
15088             # Sun C++ 4.2, 5.x and Centerline C++
15089             lt_prog_compiler_pic_CXX='-KPIC'
15090             lt_prog_compiler_static_CXX='-Bstatic'
15091             lt_prog_compiler_wl_CXX='-Qoption ld '
15092             ;;
15093           gcx*)
15094             # Green Hills C++ Compiler
15095             lt_prog_compiler_pic_CXX='-PIC'
15096             ;;
15097           *)
15098             ;;
15099         esac
15100         ;;
15101       sunos4*)
15102         case $cc_basename in
15103           CC*)
15104             # Sun C++ 4.x
15105             lt_prog_compiler_pic_CXX='-pic'
15106             lt_prog_compiler_static_CXX='-Bstatic'
15107             ;;
15108           lcc*)
15109             # Lucid
15110             lt_prog_compiler_pic_CXX='-pic'
15111             ;;
15112           *)
15113             ;;
15114         esac
15115         ;;
15116       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15117         case $cc_basename in
15118           CC*)
15119             lt_prog_compiler_wl_CXX='-Wl,'
15120             lt_prog_compiler_pic_CXX='-KPIC'
15121             lt_prog_compiler_static_CXX='-Bstatic'
15122             ;;
15123         esac
15124         ;;
15125       tandem*)
15126         case $cc_basename in
15127           NCC*)
15128             # NonStop-UX NCC 3.20
15129             lt_prog_compiler_pic_CXX='-KPIC'
15130             ;;
15131           *)
15132             ;;
15133         esac
15134         ;;
15135       vxworks*)
15136         ;;
15137       *)
15138         lt_prog_compiler_can_build_shared_CXX=no
15139         ;;
15140     esac
15141   fi
15142
15143 case $host_os in
15144   # For platforms which do not support PIC, -DPIC is meaningless:
15145   *djgpp*)
15146     lt_prog_compiler_pic_CXX=
15147     ;;
15148   *)
15149     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15150     ;;
15151 esac
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15153 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15154
15155
15156
15157 #
15158 # Check to make sure the PIC flag actually works.
15159 #
15160 if test -n "$lt_prog_compiler_pic_CXX"; then
15161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15162 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15163 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15164   $as_echo_n "(cached) " >&6
15165 else
15166   lt_cv_prog_compiler_pic_works_CXX=no
15167    ac_outfile=conftest.$ac_objext
15168    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15169    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15170    # Insert the option either (1) after the last *FLAGS variable, or
15171    # (2) before a word containing "conftest.", or (3) at the end.
15172    # Note that $ac_compile itself does not contain backslashes and begins
15173    # with a dollar sign (not a hyphen), so the echo should work correctly.
15174    # The option is referenced via a variable to avoid confusing sed.
15175    lt_compile=`echo "$ac_compile" | $SED \
15176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15178    -e 's:$: $lt_compiler_flag:'`
15179    (eval echo "\"\$as_me:15179: $lt_compile\"" >&5)
15180    (eval "$lt_compile" 2>conftest.err)
15181    ac_status=$?
15182    cat conftest.err >&5
15183    echo "$as_me:15183: \$? = $ac_status" >&5
15184    if (exit $ac_status) && test -s "$ac_outfile"; then
15185      # The compiler can only warn and ignore the option if not recognized
15186      # So say no if there are warnings other than the usual output.
15187      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15188      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15190        lt_cv_prog_compiler_pic_works_CXX=yes
15191      fi
15192    fi
15193    $RM conftest*
15194
15195 fi
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15197 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15198
15199 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15200     case $lt_prog_compiler_pic_CXX in
15201      "" | " "*) ;;
15202      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15203      esac
15204 else
15205     lt_prog_compiler_pic_CXX=
15206      lt_prog_compiler_can_build_shared_CXX=no
15207 fi
15208
15209 fi
15210
15211
15212
15213 #
15214 # Check to make sure the static flag actually works.
15215 #
15216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15219 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15220   $as_echo_n "(cached) " >&6
15221 else
15222   lt_cv_prog_compiler_static_works_CXX=no
15223    save_LDFLAGS="$LDFLAGS"
15224    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15225    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15226    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15227      # The linker can only warn and ignore the option if not recognized
15228      # So say no if there are warnings
15229      if test -s conftest.err; then
15230        # Append any errors to the config.log.
15231        cat conftest.err 1>&5
15232        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15233        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15234        if diff conftest.exp conftest.er2 >/dev/null; then
15235          lt_cv_prog_compiler_static_works_CXX=yes
15236        fi
15237      else
15238        lt_cv_prog_compiler_static_works_CXX=yes
15239      fi
15240    fi
15241    $RM -r conftest*
15242    LDFLAGS="$save_LDFLAGS"
15243
15244 fi
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15246 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15247
15248 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15249     :
15250 else
15251     lt_prog_compiler_static_CXX=
15252 fi
15253
15254
15255
15256
15257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15259 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15260   $as_echo_n "(cached) " >&6
15261 else
15262   lt_cv_prog_compiler_c_o_CXX=no
15263    $RM -r conftest 2>/dev/null
15264    mkdir conftest
15265    cd conftest
15266    mkdir out
15267    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15268
15269    lt_compiler_flag="-o out/conftest2.$ac_objext"
15270    # Insert the option either (1) after the last *FLAGS variable, or
15271    # (2) before a word containing "conftest.", or (3) at the end.
15272    # Note that $ac_compile itself does not contain backslashes and begins
15273    # with a dollar sign (not a hyphen), so the echo should work correctly.
15274    lt_compile=`echo "$ac_compile" | $SED \
15275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277    -e 's:$: $lt_compiler_flag:'`
15278    (eval echo "\"\$as_me:15278: $lt_compile\"" >&5)
15279    (eval "$lt_compile" 2>out/conftest.err)
15280    ac_status=$?
15281    cat out/conftest.err >&5
15282    echo "$as_me:15282: \$? = $ac_status" >&5
15283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15284    then
15285      # The compiler can only warn and ignore the option if not recognized
15286      # So say no if there are warnings
15287      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15288      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15289      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15290        lt_cv_prog_compiler_c_o_CXX=yes
15291      fi
15292    fi
15293    chmod u+w . 2>&5
15294    $RM conftest*
15295    # SGI C++ compiler will create directory out/ii_files/ for
15296    # template instantiation
15297    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15298    $RM out/* && rmdir out
15299    cd ..
15300    $RM -r conftest
15301    $RM conftest*
15302
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15305 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15306
15307
15308
15309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15311 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15312   $as_echo_n "(cached) " >&6
15313 else
15314   lt_cv_prog_compiler_c_o_CXX=no
15315    $RM -r conftest 2>/dev/null
15316    mkdir conftest
15317    cd conftest
15318    mkdir out
15319    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15320
15321    lt_compiler_flag="-o out/conftest2.$ac_objext"
15322    # Insert the option either (1) after the last *FLAGS variable, or
15323    # (2) before a word containing "conftest.", or (3) at the end.
15324    # Note that $ac_compile itself does not contain backslashes and begins
15325    # with a dollar sign (not a hyphen), so the echo should work correctly.
15326    lt_compile=`echo "$ac_compile" | $SED \
15327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15329    -e 's:$: $lt_compiler_flag:'`
15330    (eval echo "\"\$as_me:15330: $lt_compile\"" >&5)
15331    (eval "$lt_compile" 2>out/conftest.err)
15332    ac_status=$?
15333    cat out/conftest.err >&5
15334    echo "$as_me:15334: \$? = $ac_status" >&5
15335    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15336    then
15337      # The compiler can only warn and ignore the option if not recognized
15338      # So say no if there are warnings
15339      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15340      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15341      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15342        lt_cv_prog_compiler_c_o_CXX=yes
15343      fi
15344    fi
15345    chmod u+w . 2>&5
15346    $RM conftest*
15347    # SGI C++ compiler will create directory out/ii_files/ for
15348    # template instantiation
15349    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15350    $RM out/* && rmdir out
15351    cd ..
15352    $RM -r conftest
15353    $RM conftest*
15354
15355 fi
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15357 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15358
15359
15360
15361
15362 hard_links="nottested"
15363 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15364   # do not overwrite the value of need_locks provided by the user
15365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15366 $as_echo_n "checking if we can lock with hard links... " >&6; }
15367   hard_links=yes
15368   $RM conftest*
15369   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370   touch conftest.a
15371   ln conftest.a conftest.b 2>&5 || hard_links=no
15372   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15374 $as_echo "$hard_links" >&6; }
15375   if test "$hard_links" = no; then
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15378     need_locks=warn
15379   fi
15380 else
15381   need_locks=no
15382 fi
15383
15384
15385
15386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15388
15389   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15390   case $host_os in
15391   aix[4-9]*)
15392     # If we're using GNU nm, then we don't want the "-C" option.
15393     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15394     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15395       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15396     else
15397       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15398     fi
15399     ;;
15400   pw32*)
15401     export_symbols_cmds_CXX="$ltdll_cmds"
15402   ;;
15403   cygwin* | mingw* | cegcc*)
15404     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15405   ;;
15406   *)
15407     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408   ;;
15409   esac
15410   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15413 $as_echo "$ld_shlibs_CXX" >&6; }
15414 test "$ld_shlibs_CXX" = no && can_build_shared=no
15415
15416 with_gnu_ld_CXX=$with_gnu_ld
15417
15418
15419
15420
15421
15422
15423 #
15424 # Do we need to explicitly link libc?
15425 #
15426 case "x$archive_cmds_need_lc_CXX" in
15427 x|xyes)
15428   # Assume -lc should be added
15429   archive_cmds_need_lc_CXX=yes
15430
15431   if test "$enable_shared" = yes && test "$GCC" = yes; then
15432     case $archive_cmds_CXX in
15433     *'~'*)
15434       # FIXME: we may have to deal with multi-command sequences.
15435       ;;
15436     '$CC '*)
15437       # Test whether the compiler implicitly links with -lc since on some
15438       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15439       # to ld, don't add -lc before -lgcc.
15440       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15441 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15442       $RM conftest*
15443       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15444
15445       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15446   (eval $ac_compile) 2>&5
15447   ac_status=$?
15448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15449   test $ac_status = 0; } 2>conftest.err; then
15450         soname=conftest
15451         lib=conftest
15452         libobjs=conftest.$ac_objext
15453         deplibs=
15454         wl=$lt_prog_compiler_wl_CXX
15455         pic_flag=$lt_prog_compiler_pic_CXX
15456         compiler_flags=-v
15457         linker_flags=-v
15458         verstring=
15459         output_objdir=.
15460         libname=conftest
15461         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15462         allow_undefined_flag_CXX=
15463         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15464   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15465   ac_status=$?
15466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15467   test $ac_status = 0; }
15468         then
15469           archive_cmds_need_lc_CXX=no
15470         else
15471           archive_cmds_need_lc_CXX=yes
15472         fi
15473         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15474       else
15475         cat conftest.err 1>&5
15476       fi
15477       $RM conftest*
15478       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15479 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15480       ;;
15481     esac
15482   fi
15483   ;;
15484 esac
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15550 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15551
15552 library_names_spec=
15553 libname_spec='lib$name'
15554 soname_spec=
15555 shrext_cmds=".so"
15556 postinstall_cmds=
15557 postuninstall_cmds=
15558 finish_cmds=
15559 finish_eval=
15560 shlibpath_var=
15561 shlibpath_overrides_runpath=unknown
15562 version_type=none
15563 dynamic_linker="$host_os ld.so"
15564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15565 need_lib_prefix=unknown
15566 hardcode_into_libs=no
15567
15568 # when you set need_version to no, make sure it does not cause -set_version
15569 # flags to be left without arguments
15570 need_version=unknown
15571
15572 case $host_os in
15573 aix3*)
15574   version_type=linux
15575   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15576   shlibpath_var=LIBPATH
15577
15578   # AIX 3 has no versioning support, so we append a major version to the name.
15579   soname_spec='${libname}${release}${shared_ext}$major'
15580   ;;
15581
15582 aix[4-9]*)
15583   version_type=linux
15584   need_lib_prefix=no
15585   need_version=no
15586   hardcode_into_libs=yes
15587   if test "$host_cpu" = ia64; then
15588     # AIX 5 supports IA64
15589     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15590     shlibpath_var=LD_LIBRARY_PATH
15591   else
15592     # With GCC up to 2.95.x, collect2 would create an import file
15593     # for dependence libraries.  The import file would start with
15594     # the line `#! .'.  This would cause the generated library to
15595     # depend on `.', always an invalid library.  This was fixed in
15596     # development snapshots of GCC prior to 3.0.
15597     case $host_os in
15598       aix4 | aix4.[01] | aix4.[01].*)
15599       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15600            echo ' yes '
15601            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15602         :
15603       else
15604         can_build_shared=no
15605       fi
15606       ;;
15607     esac
15608     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15609     # soname into executable. Probably we can add versioning support to
15610     # collect2, so additional links can be useful in future.
15611     if test "$aix_use_runtimelinking" = yes; then
15612       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15613       # instead of lib<name>.a to let people know that these are not
15614       # typical AIX shared libraries.
15615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616     else
15617       # We preserve .a as extension for shared libraries through AIX4.2
15618       # and later when we are not doing run time linking.
15619       library_names_spec='${libname}${release}.a $libname.a'
15620       soname_spec='${libname}${release}${shared_ext}$major'
15621     fi
15622     shlibpath_var=LIBPATH
15623   fi
15624   ;;
15625
15626 amigaos*)
15627   case $host_cpu in
15628   powerpc)
15629     # Since July 2007 AmigaOS4 officially supports .so libraries.
15630     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632     ;;
15633   m68k)
15634     library_names_spec='$libname.ixlibrary $libname.a'
15635     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15636     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'
15637     ;;
15638   esac
15639   ;;
15640
15641 beos*)
15642   library_names_spec='${libname}${shared_ext}'
15643   dynamic_linker="$host_os ld.so"
15644   shlibpath_var=LIBRARY_PATH
15645   ;;
15646
15647 bsdi[45]*)
15648   version_type=linux
15649   need_version=no
15650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651   soname_spec='${libname}${release}${shared_ext}$major'
15652   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15655   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15656   # the default ld.so.conf also contains /usr/contrib/lib and
15657   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15658   # libtool to hard-code these into programs
15659   ;;
15660
15661 cygwin* | mingw* | pw32* | cegcc*)
15662   version_type=windows
15663   shrext_cmds=".dll"
15664   need_version=no
15665   need_lib_prefix=no
15666
15667   case $GCC,$host_os in
15668   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15669     library_names_spec='$libname.dll.a'
15670     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15671     postinstall_cmds='base_file=`basename \${file}`~
15672       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15673       dldir=$destdir/`dirname \$dlpath`~
15674       test -d \$dldir || mkdir -p \$dldir~
15675       $install_prog $dir/$dlname \$dldir/$dlname~
15676       chmod a+x \$dldir/$dlname~
15677       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15678         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15679       fi'
15680     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15681       dlpath=$dir/\$dldll~
15682        $RM \$dlpath'
15683     shlibpath_overrides_runpath=yes
15684
15685     case $host_os in
15686     cygwin*)
15687       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15688       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15689       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15690       ;;
15691     mingw* | cegcc*)
15692       # MinGW DLLs use traditional 'lib' prefix
15693       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15694       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15695       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15696         # It is most probably a Windows format PATH printed by
15697         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15698         # path with ; separators, and with drive letters. We can handle the
15699         # drive letters (cygwin fileutils understands them), so leave them,
15700         # especially as we might pass files found there to a mingw objdump,
15701         # which wouldn't understand a cygwinified path. Ahh.
15702         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15703       else
15704         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15705       fi
15706       ;;
15707     pw32*)
15708       # pw32 DLLs use 'pw' prefix rather than 'lib'
15709       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710       ;;
15711     esac
15712     ;;
15713
15714   *)
15715     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15716     ;;
15717   esac
15718   dynamic_linker='Win32 ld.exe'
15719   # FIXME: first we should search . and the directory the executable is in
15720   shlibpath_var=PATH
15721   ;;
15722
15723 darwin* | rhapsody*)
15724   dynamic_linker="$host_os dyld"
15725   version_type=darwin
15726   need_lib_prefix=no
15727   need_version=no
15728   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15729   soname_spec='${libname}${release}${major}$shared_ext'
15730   shlibpath_overrides_runpath=yes
15731   shlibpath_var=DYLD_LIBRARY_PATH
15732   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15733
15734   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15735   ;;
15736
15737 dgux*)
15738   version_type=linux
15739   need_lib_prefix=no
15740   need_version=no
15741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15742   soname_spec='${libname}${release}${shared_ext}$major'
15743   shlibpath_var=LD_LIBRARY_PATH
15744   ;;
15745
15746 freebsd1*)
15747   dynamic_linker=no
15748   ;;
15749
15750 freebsd* | dragonfly*)
15751   # DragonFly does not have aout.  When/if they implement a new
15752   # versioning mechanism, adjust this.
15753   if test -x /usr/bin/objformat; then
15754     objformat=`/usr/bin/objformat`
15755   else
15756     case $host_os in
15757     freebsd[123]*) objformat=aout ;;
15758     *) objformat=elf ;;
15759     esac
15760   fi
15761   version_type=freebsd-$objformat
15762   case $version_type in
15763     freebsd-elf*)
15764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765       need_version=no
15766       need_lib_prefix=no
15767       ;;
15768     freebsd-*)
15769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15770       need_version=yes
15771       ;;
15772   esac
15773   shlibpath_var=LD_LIBRARY_PATH
15774   case $host_os in
15775   freebsd2*)
15776     shlibpath_overrides_runpath=yes
15777     ;;
15778   freebsd3.[01]* | freebsdelf3.[01]*)
15779     shlibpath_overrides_runpath=yes
15780     hardcode_into_libs=yes
15781     ;;
15782   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15783   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15784     shlibpath_overrides_runpath=no
15785     hardcode_into_libs=yes
15786     ;;
15787   *) # from 4.6 on, and DragonFly
15788     shlibpath_overrides_runpath=yes
15789     hardcode_into_libs=yes
15790     ;;
15791   esac
15792   ;;
15793
15794 gnu*)
15795   version_type=linux
15796   need_lib_prefix=no
15797   need_version=no
15798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15799   soname_spec='${libname}${release}${shared_ext}$major'
15800   shlibpath_var=LD_LIBRARY_PATH
15801   hardcode_into_libs=yes
15802   ;;
15803
15804 hpux9* | hpux10* | hpux11*)
15805   # Give a soname corresponding to the major version so that dld.sl refuses to
15806   # link against other versions.
15807   version_type=sunos
15808   need_lib_prefix=no
15809   need_version=no
15810   case $host_cpu in
15811   ia64*)
15812     shrext_cmds='.so'
15813     hardcode_into_libs=yes
15814     dynamic_linker="$host_os dld.so"
15815     shlibpath_var=LD_LIBRARY_PATH
15816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818     soname_spec='${libname}${release}${shared_ext}$major'
15819     if test "X$HPUX_IA64_MODE" = X32; then
15820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15821     else
15822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15823     fi
15824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15825     ;;
15826   hppa*64*)
15827     shrext_cmds='.sl'
15828     hardcode_into_libs=yes
15829     dynamic_linker="$host_os dld.sl"
15830     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15831     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833     soname_spec='${libname}${release}${shared_ext}$major'
15834     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15835     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15836     ;;
15837   *)
15838     shrext_cmds='.sl'
15839     dynamic_linker="$host_os dld.sl"
15840     shlibpath_var=SHLIB_PATH
15841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843     soname_spec='${libname}${release}${shared_ext}$major'
15844     ;;
15845   esac
15846   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15847   postinstall_cmds='chmod 555 $lib'
15848   ;;
15849
15850 interix[3-9]*)
15851   version_type=linux
15852   need_lib_prefix=no
15853   need_version=no
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15855   soname_spec='${libname}${release}${shared_ext}$major'
15856   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15857   shlibpath_var=LD_LIBRARY_PATH
15858   shlibpath_overrides_runpath=no
15859   hardcode_into_libs=yes
15860   ;;
15861
15862 irix5* | irix6* | nonstopux*)
15863   case $host_os in
15864     nonstopux*) version_type=nonstopux ;;
15865     *)
15866         if test "$lt_cv_prog_gnu_ld" = yes; then
15867                 version_type=linux
15868         else
15869                 version_type=irix
15870         fi ;;
15871   esac
15872   need_lib_prefix=no
15873   need_version=no
15874   soname_spec='${libname}${release}${shared_ext}$major'
15875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15876   case $host_os in
15877   irix5* | nonstopux*)
15878     libsuff= shlibsuff=
15879     ;;
15880   *)
15881     case $LD in # libtool.m4 will add one of these switches to LD
15882     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15883       libsuff= shlibsuff= libmagic=32-bit;;
15884     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15885       libsuff=32 shlibsuff=N32 libmagic=N32;;
15886     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15887       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15888     *) libsuff= shlibsuff= libmagic=never-match;;
15889     esac
15890     ;;
15891   esac
15892   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15893   shlibpath_overrides_runpath=no
15894   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15895   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15896   hardcode_into_libs=yes
15897   ;;
15898
15899 # No shared lib support for Linux oldld, aout, or coff.
15900 linux*oldld* | linux*aout* | linux*coff*)
15901   dynamic_linker=no
15902   ;;
15903
15904 # This must be Linux ELF.
15905 linux* | k*bsd*-gnu)
15906   version_type=linux
15907   need_lib_prefix=no
15908   need_version=no
15909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910   soname_spec='${libname}${release}${shared_ext}$major'
15911   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15912   shlibpath_var=LD_LIBRARY_PATH
15913   shlibpath_overrides_runpath=no
15914   # Some binutils ld are patched to set DT_RUNPATH
15915   save_LDFLAGS=$LDFLAGS
15916   save_libdir=$libdir
15917   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15918        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h.  */
15921
15922 int
15923 main ()
15924 {
15925
15926   ;
15927   return 0;
15928 }
15929 _ACEOF
15930 if ac_fn_cxx_try_link "$LINENO"; then :
15931   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15932   shlibpath_overrides_runpath=yes
15933 fi
15934 fi
15935 rm -f core conftest.err conftest.$ac_objext \
15936     conftest$ac_exeext conftest.$ac_ext
15937   LDFLAGS=$save_LDFLAGS
15938   libdir=$save_libdir
15939
15940   # This implies no fast_install, which is unacceptable.
15941   # Some rework will be needed to allow for fast_install
15942   # before this can be enabled.
15943   hardcode_into_libs=yes
15944
15945   # Add ABI-specific directories to the system library path.
15946   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15947
15948   # Append ld.so.conf contents to the search path
15949   if test -f /etc/ld.so.conf; then
15950     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' ' '`
15951     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15952   fi
15953
15954   # We used to test for /lib/ld.so.1 and disable shared libraries on
15955   # powerpc, because MkLinux only supported shared libraries with the
15956   # GNU dynamic linker.  Since this was broken with cross compilers,
15957   # most powerpc-linux boxes support dynamic linking these days and
15958   # people can always --disable-shared, the test was removed, and we
15959   # assume the GNU/Linux dynamic linker is in use.
15960   dynamic_linker='GNU/Linux ld.so'
15961   ;;
15962
15963 netbsd*)
15964   version_type=sunos
15965   need_lib_prefix=no
15966   need_version=no
15967   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15969     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15970     dynamic_linker='NetBSD (a.out) ld.so'
15971   else
15972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15973     soname_spec='${libname}${release}${shared_ext}$major'
15974     dynamic_linker='NetBSD ld.elf_so'
15975   fi
15976   shlibpath_var=LD_LIBRARY_PATH
15977   shlibpath_overrides_runpath=yes
15978   hardcode_into_libs=yes
15979   ;;
15980
15981 newsos6)
15982   version_type=linux
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984   shlibpath_var=LD_LIBRARY_PATH
15985   shlibpath_overrides_runpath=yes
15986   ;;
15987
15988 *nto* | *qnx*)
15989   version_type=qnx
15990   need_lib_prefix=no
15991   need_version=no
15992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993   soname_spec='${libname}${release}${shared_ext}$major'
15994   shlibpath_var=LD_LIBRARY_PATH
15995   shlibpath_overrides_runpath=no
15996   hardcode_into_libs=yes
15997   dynamic_linker='ldqnx.so'
15998   ;;
15999
16000 openbsd*)
16001   version_type=sunos
16002   sys_lib_dlsearch_path_spec="/usr/lib"
16003   need_lib_prefix=no
16004   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16005   case $host_os in
16006     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16007     *)                          need_version=no  ;;
16008   esac
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16013     case $host_os in
16014       openbsd2.[89] | openbsd2.[89].*)
16015         shlibpath_overrides_runpath=no
16016         ;;
16017       *)
16018         shlibpath_overrides_runpath=yes
16019         ;;
16020       esac
16021   else
16022     shlibpath_overrides_runpath=yes
16023   fi
16024   ;;
16025
16026 os2*)
16027   libname_spec='$name'
16028   shrext_cmds=".dll"
16029   need_lib_prefix=no
16030   library_names_spec='$libname${shared_ext} $libname.a'
16031   dynamic_linker='OS/2 ld.exe'
16032   shlibpath_var=LIBPATH
16033   ;;
16034
16035 osf3* | osf4* | osf5*)
16036   version_type=osf
16037   need_lib_prefix=no
16038   need_version=no
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16044   ;;
16045
16046 rdos*)
16047   dynamic_linker=no
16048   ;;
16049
16050 solaris*)
16051   version_type=linux
16052   need_lib_prefix=no
16053   need_version=no
16054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055   soname_spec='${libname}${release}${shared_ext}$major'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   shlibpath_overrides_runpath=yes
16058   hardcode_into_libs=yes
16059   # ldd complains unless libraries are executable
16060   postinstall_cmds='chmod +x $lib'
16061   ;;
16062
16063 sunos4*)
16064   version_type=sunos
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   shlibpath_overrides_runpath=yes
16069   if test "$with_gnu_ld" = yes; then
16070     need_lib_prefix=no
16071   fi
16072   need_version=yes
16073   ;;
16074
16075 sysv4 | sysv4.3*)
16076   version_type=linux
16077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078   soname_spec='${libname}${release}${shared_ext}$major'
16079   shlibpath_var=LD_LIBRARY_PATH
16080   case $host_vendor in
16081     sni)
16082       shlibpath_overrides_runpath=no
16083       need_lib_prefix=no
16084       runpath_var=LD_RUN_PATH
16085       ;;
16086     siemens)
16087       need_lib_prefix=no
16088       ;;
16089     motorola)
16090       need_lib_prefix=no
16091       need_version=no
16092       shlibpath_overrides_runpath=no
16093       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16094       ;;
16095   esac
16096   ;;
16097
16098 sysv4*MP*)
16099   if test -d /usr/nec ;then
16100     version_type=linux
16101     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16102     soname_spec='$libname${shared_ext}.$major'
16103     shlibpath_var=LD_LIBRARY_PATH
16104   fi
16105   ;;
16106
16107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16108   version_type=freebsd-elf
16109   need_lib_prefix=no
16110   need_version=no
16111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16112   soname_spec='${libname}${release}${shared_ext}$major'
16113   shlibpath_var=LD_LIBRARY_PATH
16114   shlibpath_overrides_runpath=yes
16115   hardcode_into_libs=yes
16116   if test "$with_gnu_ld" = yes; then
16117     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16118   else
16119     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16120     case $host_os in
16121       sco3.2v5*)
16122         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16123         ;;
16124     esac
16125   fi
16126   sys_lib_dlsearch_path_spec='/usr/lib'
16127   ;;
16128
16129 tpf*)
16130   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16131   version_type=linux
16132   need_lib_prefix=no
16133   need_version=no
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   shlibpath_overrides_runpath=no
16137   hardcode_into_libs=yes
16138   ;;
16139
16140 uts4*)
16141   version_type=linux
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   ;;
16146
16147 *)
16148   dynamic_linker=no
16149   ;;
16150 esac
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16152 $as_echo "$dynamic_linker" >&6; }
16153 test "$dynamic_linker" = no && can_build_shared=no
16154
16155 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16156 if test "$GCC" = yes; then
16157   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16158 fi
16159
16160 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16161   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16162 fi
16163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16164   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16165 fi
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16204 hardcode_action_CXX=
16205 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16206    test -n "$runpath_var_CXX" ||
16207    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16208
16209   # We can hardcode non-existent directories.
16210   if test "$hardcode_direct_CXX" != no &&
16211      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16212      # have to relink, otherwise we might link with an installed library
16213      # when we should be linking with a yet-to-be-installed one
16214      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16215      test "$hardcode_minus_L_CXX" != no; then
16216     # Linking always hardcodes the temporary library directory.
16217     hardcode_action_CXX=relink
16218   else
16219     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16220     hardcode_action_CXX=immediate
16221   fi
16222 else
16223   # We cannot hardcode anything, or else we can only hardcode existing
16224   # directories.
16225   hardcode_action_CXX=unsupported
16226 fi
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16228 $as_echo "$hardcode_action_CXX" >&6; }
16229
16230 if test "$hardcode_action_CXX" = relink ||
16231    test "$inherit_rpath_CXX" = yes; then
16232   # Fast installation is not supported
16233   enable_fast_install=no
16234 elif test "$shlibpath_overrides_runpath" = yes ||
16235      test "$enable_shared" = no; then
16236   # Fast installation is not necessary
16237   enable_fast_install=needless
16238 fi
16239
16240
16241
16242
16243
16244
16245
16246   fi # test -n "$compiler"
16247
16248   CC=$lt_save_CC
16249   LDCXX=$LD
16250   LD=$lt_save_LD
16251   GCC=$lt_save_GCC
16252   with_gnu_ld=$lt_save_with_gnu_ld
16253   lt_cv_path_LDCXX=$lt_cv_path_LD
16254   lt_cv_path_LD=$lt_save_path_LD
16255   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16256   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16257 fi # test "$_lt_caught_CXX_error" != yes
16258
16259 ac_ext=c
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277         ac_config_commands="$ac_config_commands libtool"
16278
16279
16280
16281
16282 # Only expand once:
16283
16284
16285 if test "x$CC" != xcc; then
16286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16287 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16288 else
16289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16290 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16291 fi
16292 set dummy $CC; ac_cc=`$as_echo "$2" |
16293                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16294 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
16295   $as_echo_n "(cached) " >&6
16296 else
16297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h.  */
16299
16300 int
16301 main ()
16302 {
16303
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 # Make sure it works both with $CC and with simple cc.
16309 # We do the test twice because some compilers refuse to overwrite an
16310 # existing .o file with -o, though they will create one.
16311 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16312 rm -f conftest2.*
16313 if { { case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16318 $as_echo "$ac_try_echo"; } >&5
16319   (eval "$ac_try") 2>&5
16320   ac_status=$?
16321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16322   test $ac_status = 0; } &&
16323    test -f conftest2.$ac_objext && { { case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16328 $as_echo "$ac_try_echo"; } >&5
16329   (eval "$ac_try") 2>&5
16330   ac_status=$?
16331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16332   test $ac_status = 0; };
16333 then
16334   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16335   if test "x$CC" != xcc; then
16336     # Test first that cc exists at all.
16337     if { ac_try='cc -c conftest.$ac_ext >&5'
16338   { { case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16343 $as_echo "$ac_try_echo"; } >&5
16344   (eval "$ac_try") 2>&5
16345   ac_status=$?
16346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16347   test $ac_status = 0; }; }; then
16348       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16349       rm -f conftest2.*
16350       if { { case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16355 $as_echo "$ac_try_echo"; } >&5
16356   (eval "$ac_try") 2>&5
16357   ac_status=$?
16358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359   test $ac_status = 0; } &&
16360          test -f conftest2.$ac_objext && { { case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16365 $as_echo "$ac_try_echo"; } >&5
16366   (eval "$ac_try") 2>&5
16367   ac_status=$?
16368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16369   test $ac_status = 0; };
16370       then
16371         # cc works too.
16372         :
16373       else
16374         # cc exists but doesn't like -o.
16375         eval ac_cv_prog_cc_${ac_cc}_c_o=no
16376       fi
16377     fi
16378   fi
16379 else
16380   eval ac_cv_prog_cc_${ac_cc}_c_o=no
16381 fi
16382 rm -f core conftest*
16383
16384 fi
16385 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16387 $as_echo "yes" >&6; }
16388 else
16389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16391
16392 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16393
16394 fi
16395
16396 # FIXME: we rely on the cache variable name because
16397 # there is no other way.
16398 set dummy $CC
16399 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16400 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16401 if test "$am_t" != yes; then
16402    # Losing compiler, so override with the script.
16403    # FIXME: It is wrong to rewrite CC.
16404    # But if we don't then we get into trouble of one sort or another.
16405    # A longer-term fix would be to have automake use am__CC in this case,
16406    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16407    CC="$am_aux_dir/compile $CC"
16408 fi
16409
16410
16411
16412 if test "x$cross_compiling" = "xno"; then
16413         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
16414 else
16415         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
16416 fi
16417
16418
16419
16420 if test -n "$ac_tool_prefix"; then
16421   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16422 set dummy ${ac_tool_prefix}ar; ac_word=$2
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16424 $as_echo_n "checking for $ac_word... " >&6; }
16425 if test "${ac_cv_prog_AR+set}" = set; then :
16426   $as_echo_n "(cached) " >&6
16427 else
16428   if test -n "$AR"; then
16429   ac_cv_prog_AR="$AR" # Let the user override the test.
16430 else
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16433 do
16434   IFS=$as_save_IFS
16435   test -z "$as_dir" && as_dir=.
16436     for ac_exec_ext in '' $ac_executable_extensions; do
16437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16438     ac_cv_prog_AR="${ac_tool_prefix}ar"
16439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16440     break 2
16441   fi
16442 done
16443   done
16444 IFS=$as_save_IFS
16445
16446 fi
16447 fi
16448 AR=$ac_cv_prog_AR
16449 if test -n "$AR"; then
16450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16451 $as_echo "$AR" >&6; }
16452 else
16453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16455 fi
16456
16457
16458 fi
16459 if test -z "$ac_cv_prog_AR"; then
16460   ac_ct_AR=$AR
16461   # Extract the first word of "ar", so it can be a program name with args.
16462 set dummy ar; ac_word=$2
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464 $as_echo_n "checking for $ac_word... " >&6; }
16465 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16466   $as_echo_n "(cached) " >&6
16467 else
16468   if test -n "$ac_ct_AR"; then
16469   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16470 else
16471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472 for as_dir in $PATH
16473 do
16474   IFS=$as_save_IFS
16475   test -z "$as_dir" && as_dir=.
16476     for ac_exec_ext in '' $ac_executable_extensions; do
16477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16478     ac_cv_prog_ac_ct_AR="ar"
16479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16480     break 2
16481   fi
16482 done
16483   done
16484 IFS=$as_save_IFS
16485
16486 fi
16487 fi
16488 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16489 if test -n "$ac_ct_AR"; then
16490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16491 $as_echo "$ac_ct_AR" >&6; }
16492 else
16493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16495 fi
16496
16497   if test "x$ac_ct_AR" = x; then
16498     AR=""
16499   else
16500     case $cross_compiling:$ac_tool_warned in
16501 yes:)
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16504 ac_tool_warned=yes ;;
16505 esac
16506     AR=$ac_ct_AR
16507   fi
16508 else
16509   AR="$ac_cv_prog_AR"
16510 fi
16511
16512 if test -n "$ac_tool_prefix"; then
16513   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
16514 set dummy ${ac_tool_prefix}ld; ac_word=$2
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516 $as_echo_n "checking for $ac_word... " >&6; }
16517 if test "${ac_cv_prog_LD+set}" = set; then :
16518   $as_echo_n "(cached) " >&6
16519 else
16520   if test -n "$LD"; then
16521   ac_cv_prog_LD="$LD" # Let the user override the test.
16522 else
16523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524 for as_dir in $PATH
16525 do
16526   IFS=$as_save_IFS
16527   test -z "$as_dir" && as_dir=.
16528     for ac_exec_ext in '' $ac_executable_extensions; do
16529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16530     ac_cv_prog_LD="${ac_tool_prefix}ld"
16531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16532     break 2
16533   fi
16534 done
16535   done
16536 IFS=$as_save_IFS
16537
16538 fi
16539 fi
16540 LD=$ac_cv_prog_LD
16541 if test -n "$LD"; then
16542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16543 $as_echo "$LD" >&6; }
16544 else
16545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16547 fi
16548
16549
16550 fi
16551 if test -z "$ac_cv_prog_LD"; then
16552   ac_ct_LD=$LD
16553   # Extract the first word of "ld", so it can be a program name with args.
16554 set dummy ld; ac_word=$2
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16556 $as_echo_n "checking for $ac_word... " >&6; }
16557 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
16558   $as_echo_n "(cached) " >&6
16559 else
16560   if test -n "$ac_ct_LD"; then
16561   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
16562 else
16563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16564 for as_dir in $PATH
16565 do
16566   IFS=$as_save_IFS
16567   test -z "$as_dir" && as_dir=.
16568     for ac_exec_ext in '' $ac_executable_extensions; do
16569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16570     ac_cv_prog_ac_ct_LD="ld"
16571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16572     break 2
16573   fi
16574 done
16575   done
16576 IFS=$as_save_IFS
16577
16578 fi
16579 fi
16580 ac_ct_LD=$ac_cv_prog_ac_ct_LD
16581 if test -n "$ac_ct_LD"; then
16582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
16583 $as_echo "$ac_ct_LD" >&6; }
16584 else
16585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16587 fi
16588
16589   if test "x$ac_ct_LD" = x; then
16590     LD=""
16591   else
16592     case $cross_compiling:$ac_tool_warned in
16593 yes:)
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16596 ac_tool_warned=yes ;;
16597 esac
16598     LD=$ac_ct_LD
16599   fi
16600 else
16601   LD="$ac_cv_prog_LD"
16602 fi
16603
16604
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16606 $as_echo_n "checking for ANSI C header files... " >&6; }
16607 if test "${ac_cv_header_stdc+set}" = set; then :
16608   $as_echo_n "(cached) " >&6
16609 else
16610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h.  */
16612 #include <stdlib.h>
16613 #include <stdarg.h>
16614 #include <string.h>
16615 #include <float.h>
16616
16617 int
16618 main ()
16619 {
16620
16621   ;
16622   return 0;
16623 }
16624 _ACEOF
16625 if ac_fn_c_try_compile "$LINENO"; then :
16626   ac_cv_header_stdc=yes
16627 else
16628   ac_cv_header_stdc=no
16629 fi
16630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16631
16632 if test $ac_cv_header_stdc = yes; then
16633   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h.  */
16636 #include <string.h>
16637
16638 _ACEOF
16639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16640   $EGREP "memchr" >/dev/null 2>&1; then :
16641
16642 else
16643   ac_cv_header_stdc=no
16644 fi
16645 rm -f conftest*
16646
16647 fi
16648
16649 if test $ac_cv_header_stdc = yes; then
16650   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h.  */
16653 #include <stdlib.h>
16654
16655 _ACEOF
16656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16657   $EGREP "free" >/dev/null 2>&1; then :
16658
16659 else
16660   ac_cv_header_stdc=no
16661 fi
16662 rm -f conftest*
16663
16664 fi
16665
16666 if test $ac_cv_header_stdc = yes; then
16667   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16668   if test "$cross_compiling" = yes; then :
16669   :
16670 else
16671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h.  */
16673 #include <ctype.h>
16674 #include <stdlib.h>
16675 #if ((' ' & 0x0FF) == 0x020)
16676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16678 #else
16679 # define ISLOWER(c) \
16680                    (('a' <= (c) && (c) <= 'i') \
16681                      || ('j' <= (c) && (c) <= 'r') \
16682                      || ('s' <= (c) && (c) <= 'z'))
16683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16684 #endif
16685
16686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16687 int
16688 main ()
16689 {
16690   int i;
16691   for (i = 0; i < 256; i++)
16692     if (XOR (islower (i), ISLOWER (i))
16693         || toupper (i) != TOUPPER (i))
16694       return 2;
16695   return 0;
16696 }
16697 _ACEOF
16698 if ac_fn_c_try_run "$LINENO"; then :
16699
16700 else
16701   ac_cv_header_stdc=no
16702 fi
16703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16704   conftest.$ac_objext conftest.beam conftest.$ac_ext
16705 fi
16706
16707 fi
16708 fi
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16710 $as_echo "$ac_cv_header_stdc" >&6; }
16711 if test $ac_cv_header_stdc = yes; then
16712
16713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16714
16715 fi
16716
16717
16718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
16719 $as_echo_n "checking for GNU libc2... " >&6; }
16720   if test "${knfsd_cv_glibc2+set}" = set; then :
16721   $as_echo_n "(cached) " >&6
16722 else
16723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h.  */
16725
16726       #include <features.h>
16727       #if !defined(__GLIBC__)
16728       # error Nope
16729       #endif
16730
16731 _ACEOF
16732 if ac_fn_c_try_cpp "$LINENO"; then :
16733   knfsd_cv_glibc2=yes
16734 else
16735   knfsd_cv_glibc2=no
16736 fi
16737 rm -f conftest.err conftest.$ac_ext
16738 fi
16739
16740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
16741 $as_echo "$knfsd_cv_glibc2" >&6; }
16742   if test $knfsd_cv_glibc2 = yes; then
16743     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16744     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
16745   fi
16746
16747
16748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
16749 $as_echo_n "checking for BSD signal semantics... " >&6; }
16750   if test "${knfsd_cv_bsd_signals+set}" = set; then :
16751   $as_echo_n "(cached) " >&6
16752 else
16753   if test "$cross_compiling" = yes; then :
16754
16755       case "$host_os" in
16756         *linux*) knfsd_cv_bsd_signals=no;;
16757         *bsd*)   knfsd_cv_bsd_signals=yes;;
16758         *)       as_fn_error "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
16759       esac
16760
16761 else
16762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h.  */
16764
16765         #include <signal.h>
16766         #include <unistd.h>
16767         #include <sys/wait.h>
16768
16769         static int counter = 0;
16770         static RETSIGTYPE handler(int num) { counter++; }
16771
16772         int main()
16773         {
16774                 int     s;
16775                 if ((s = fork()) < 0) return 1;
16776                 if (s != 0) {
16777                         if (wait(&s) < 0) return 1;
16778                         return WIFSIGNALED(s)? 1 : 0;
16779                 }
16780
16781                 signal(SIGHUP, handler);
16782                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
16783                 return (counter == 2)? 0 : 1;
16784         }
16785
16786 _ACEOF
16787 if ac_fn_c_try_run "$LINENO"; then :
16788   knfsd_cv_bsd_signals=yes
16789 else
16790   knfsd_cv_bsd_signals=no
16791 fi
16792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16793   conftest.$ac_objext conftest.beam conftest.$ac_ext
16794 fi
16795
16796 fi
16797      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
16798 $as_echo "$knfsd_cv_bsd_signals" >&6; }
16799     test $knfsd_cv_bsd_signals = yes &&
16800 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
16801
16802
16803
16804
16805 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16806 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
16807
16808 else
16809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16810 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16811 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
16812   $as_echo_n "(cached) " >&6
16813 else
16814   ac_check_lib_save_LIBS=$LIBS
16815 LIBS="-lnsl  $LIBS"
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h.  */
16818
16819 /* Override any GCC internal prototype to avoid an error.
16820    Use char because int might match the return type of a GCC
16821    builtin and then its argument prototype would still apply.  */
16822 #ifdef __cplusplus
16823 extern "C"
16824 #endif
16825 char gethostbyname ();
16826 int
16827 main ()
16828 {
16829 return gethostbyname ();
16830   ;
16831   return 0;
16832 }
16833 _ACEOF
16834 if ac_fn_c_try_link "$LINENO"; then :
16835   ac_cv_lib_nsl_gethostbyname=yes
16836 else
16837   ac_cv_lib_nsl_gethostbyname=no
16838 fi
16839 rm -f core conftest.err conftest.$ac_objext \
16840     conftest$ac_exeext conftest.$ac_ext
16841 LIBS=$ac_check_lib_save_LIBS
16842 fi
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16844 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16845 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
16846   LIBNSL="-lnsl"
16847 fi
16848
16849 fi
16850
16851
16852
16853 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
16854 if test "x$ac_cv_func_connect" = x""yes; then :
16855
16856 else
16857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
16858 $as_echo_n "checking for connect in -lsocket... " >&6; }
16859 if test "${ac_cv_lib_socket_connect+set}" = set; then :
16860   $as_echo_n "(cached) " >&6
16861 else
16862   ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-lsocket $LIBNSL $LIBS"
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h.  */
16866
16867 /* Override any GCC internal prototype to avoid an error.
16868    Use char because int might match the return type of a GCC
16869    builtin and then its argument prototype would still apply.  */
16870 #ifdef __cplusplus
16871 extern "C"
16872 #endif
16873 char connect ();
16874 int
16875 main ()
16876 {
16877 return connect ();
16878   ;
16879   return 0;
16880 }
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883   ac_cv_lib_socket_connect=yes
16884 else
16885   ac_cv_lib_socket_connect=no
16886 fi
16887 rm -f core conftest.err conftest.$ac_objext \
16888     conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16890 fi
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
16892 $as_echo "$ac_cv_lib_socket_connect" >&6; }
16893 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
16894   LIBSOCKET="-lsocket"
16895 else
16896   as_fn_error "Function 'socket' not found." "$LINENO" 5
16897 fi
16898
16899 fi
16900
16901
16902 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16903 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
16904
16905 else
16906   as_fn_error "Function 'getaddrinfo' not found." "$LINENO" 5
16907 fi
16908
16909
16910 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
16911 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then :
16912
16913 else
16914   as_fn_error "Function 'getrpcbynumber' not found." "$LINENO" 5
16915 fi
16916
16917
16918 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16919 if test "x$ac_cv_func_getservbyname" = x""yes; then :
16920
16921 else
16922   as_fn_error "Function 'getservbyname' not found." "$LINENO" 5
16923 fi
16924
16925
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
16927 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
16928 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
16929   $as_echo_n "(cached) " >&6
16930 else
16931   ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-lcrypt  $LIBS"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h.  */
16935
16936 /* Override any GCC internal prototype to avoid an error.
16937    Use char because int might match the return type of a GCC
16938    builtin and then its argument prototype would still apply.  */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 char crypt ();
16943 int
16944 main ()
16945 {
16946 return crypt ();
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 if ac_fn_c_try_link "$LINENO"; then :
16952   ac_cv_lib_crypt_crypt=yes
16953 else
16954   ac_cv_lib_crypt_crypt=no
16955 fi
16956 rm -f core conftest.err conftest.$ac_objext \
16957     conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16959 fi
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
16961 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
16962 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
16963   LIBCRYPT="-lcrypt"
16964 fi
16965
16966
16967 if test "$enable_nfsv4" = yes; then
16968
16969
16970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
16971 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
16972 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then :
16973   $as_echo_n "(cached) " >&6
16974 else
16975   ac_check_lib_save_LIBS=$LIBS
16976 LIBS="-levent  $LIBS"
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h.  */
16979
16980 /* Override any GCC internal prototype to avoid an error.
16981    Use char because int might match the return type of a GCC
16982    builtin and then its argument prototype would still apply.  */
16983 #ifdef __cplusplus
16984 extern "C"
16985 #endif
16986 char event_dispatch ();
16987 int
16988 main ()
16989 {
16990 return event_dispatch ();
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 if ac_fn_c_try_link "$LINENO"; then :
16996   ac_cv_lib_event_event_dispatch=yes
16997 else
16998   ac_cv_lib_event_event_dispatch=no
16999 fi
17000 rm -f core conftest.err conftest.$ac_objext \
17001     conftest$ac_exeext conftest.$ac_ext
17002 LIBS=$ac_check_lib_save_LIBS
17003 fi
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17005 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17006 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then :
17007   libevent=1
17008 else
17009   as_fn_error "libevent not found." "$LINENO" 5
17010 fi
17011
17012
17013   for ac_header in event.h
17014 do :
17015   ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17016 if test "x$ac_cv_header_event_h" = x""yes; then :
17017   cat >>confdefs.h <<_ACEOF
17018 #define HAVE_EVENT_H 1
17019 _ACEOF
17020
17021 else
17022   as_fn_error "libevent headers not found." "$LINENO" 5
17023 fi
17024
17025 done
17026
17027
17028
17029
17030
17031
17032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17033 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17034 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then :
17035   $as_echo_n "(cached) " >&6
17036 else
17037   ac_check_lib_save_LIBS=$LIBS
17038 LIBS="-lnfsidmap  $LIBS"
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h.  */
17041
17042 /* Override any GCC internal prototype to avoid an error.
17043    Use char because int might match the return type of a GCC
17044    builtin and then its argument prototype would still apply.  */
17045 #ifdef __cplusplus
17046 extern "C"
17047 #endif
17048 char nfs4_init_name_mapping ();
17049 int
17050 main ()
17051 {
17052 return nfs4_init_name_mapping ();
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 if ac_fn_c_try_link "$LINENO"; then :
17058   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17059 else
17060   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17061 fi
17062 rm -f core conftest.err conftest.$ac_objext \
17063     conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17065 fi
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17067 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17068 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then :
17069   libnfsidmap=1
17070 else
17071   as_fn_error "libnfsidmap not found." "$LINENO" 5
17072 fi
17073
17074
17075   for ac_header in nfsidmap.h
17076 do :
17077   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17078 if test "x$ac_cv_header_nfsidmap_h" = x""yes; then :
17079   cat >>confdefs.h <<_ACEOF
17080 #define HAVE_NFSIDMAP_H 1
17081 _ACEOF
17082
17083 else
17084   as_fn_error "libnfsidmap headers not found." "$LINENO" 5
17085 fi
17086
17087 done
17088
17089
17090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17091 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17092 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then :
17093   $as_echo_n "(cached) " >&6
17094 else
17095   ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lnfsidmap  $LIBS"
17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h.  */
17099
17100 /* Override any GCC internal prototype to avoid an error.
17101    Use char because int might match the return type of a GCC
17102    builtin and then its argument prototype would still apply.  */
17103 #ifdef __cplusplus
17104 extern "C"
17105 #endif
17106 char nfs4_set_debug ();
17107 int
17108 main ()
17109 {
17110 return nfs4_set_debug ();
17111   ;
17112   return 0;
17113 }
17114 _ACEOF
17115 if ac_fn_c_try_link "$LINENO"; then :
17116   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17117 else
17118   ac_cv_lib_nfsidmap_nfs4_set_debug=no
17119 fi
17120 rm -f core conftest.err conftest.$ac_objext \
17121     conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17125 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17126 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then :
17127
17128 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17129
17130 fi
17131
17132
17133
17134
17135       if test "$enable_gss" = yes; then
17136
17137
17138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17139         if test -n "$ac_tool_prefix"; then
17140   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17143 $as_echo_n "checking for $ac_word... " >&6; }
17144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17145   $as_echo_n "(cached) " >&6
17146 else
17147   case $PKG_CONFIG in
17148   [\\/]* | ?:[\\/]*)
17149   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17150   ;;
17151   *)
17152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17154 do
17155   IFS=$as_save_IFS
17156   test -z "$as_dir" && as_dir=.
17157     for ac_exec_ext in '' $ac_executable_extensions; do
17158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17159     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17161     break 2
17162   fi
17163 done
17164   done
17165 IFS=$as_save_IFS
17166
17167   ;;
17168 esac
17169 fi
17170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17171 if test -n "$PKG_CONFIG"; then
17172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17173 $as_echo "$PKG_CONFIG" >&6; }
17174 else
17175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17176 $as_echo "no" >&6; }
17177 fi
17178
17179
17180 fi
17181 if test -z "$ac_cv_path_PKG_CONFIG"; then
17182   ac_pt_PKG_CONFIG=$PKG_CONFIG
17183   # Extract the first word of "pkg-config", so it can be a program name with args.
17184 set dummy pkg-config; ac_word=$2
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17186 $as_echo_n "checking for $ac_word... " >&6; }
17187 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17188   $as_echo_n "(cached) " >&6
17189 else
17190   case $ac_pt_PKG_CONFIG in
17191   [\\/]* | ?:[\\/]*)
17192   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17193   ;;
17194   *)
17195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17196 for as_dir in $PATH
17197 do
17198   IFS=$as_save_IFS
17199   test -z "$as_dir" && as_dir=.
17200     for ac_exec_ext in '' $ac_executable_extensions; do
17201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17202     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17204     break 2
17205   fi
17206 done
17207   done
17208 IFS=$as_save_IFS
17209
17210   ;;
17211 esac
17212 fi
17213 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17214 if test -n "$ac_pt_PKG_CONFIG"; then
17215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17216 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17217 else
17218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219 $as_echo "no" >&6; }
17220 fi
17221
17222   if test "x$ac_pt_PKG_CONFIG" = x; then
17223     PKG_CONFIG=""
17224   else
17225     case $cross_compiling:$ac_tool_warned in
17226 yes:)
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17229 ac_tool_warned=yes ;;
17230 esac
17231     PKG_CONFIG=$ac_pt_PKG_CONFIG
17232   fi
17233 else
17234   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17235 fi
17236
17237 fi
17238 if test -n "$PKG_CONFIG"; then
17239         _pkg_min_version=0.9.0
17240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17241 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17242         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17244 $as_echo "yes" >&6; }
17245         else
17246                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17247 $as_echo "no" >&6; }
17248                 PKG_CONFIG=""
17249         fi
17250
17251 fi
17252
17253
17254
17255 pkg_failed=no
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
17257 $as_echo_n "checking for GSSGLUE... " >&6; }
17258
17259 if test -n "$GSSGLUE_CFLAGS"; then
17260     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
17261  elif test -n "$PKG_CONFIG"; then
17262     if test -n "$PKG_CONFIG" && \
17263     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
17264   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
17265   ac_status=$?
17266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17267   test $ac_status = 0; }; then
17268   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
17269 else
17270   pkg_failed=yes
17271 fi
17272  else
17273     pkg_failed=untried
17274 fi
17275 if test -n "$GSSGLUE_LIBS"; then
17276     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
17277  elif test -n "$PKG_CONFIG"; then
17278     if test -n "$PKG_CONFIG" && \
17279     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
17280   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
17281   ac_status=$?
17282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17283   test $ac_status = 0; }; then
17284   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
17285 else
17286   pkg_failed=yes
17287 fi
17288  else
17289     pkg_failed=untried
17290 fi
17291
17292
17293
17294 if test $pkg_failed = yes; then
17295
17296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17297         _pkg_short_errors_supported=yes
17298 else
17299         _pkg_short_errors_supported=no
17300 fi
17301         if test $_pkg_short_errors_supported = yes; then
17302                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
17303         else
17304                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
17305         fi
17306         # Put the nasty error message in config.log where it belongs
17307         echo "$GSSGLUE_PKG_ERRORS" >&5
17308
17309         as_fn_error "Package requirements (libgssglue >= 0.1) were not met:
17310
17311 $GSSGLUE_PKG_ERRORS
17312
17313 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17314 installed software in a non-standard prefix.
17315
17316 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
17317 and GSSGLUE_LIBS to avoid the need to call pkg-config.
17318 See the pkg-config man page for more details.
17319 " "$LINENO" 5
17320 elif test $pkg_failed = untried; then
17321         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17323 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
17324 is in your PATH or set the PKG_CONFIG environment variable to the full
17325 path to pkg-config.
17326
17327 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
17328 and GSSGLUE_LIBS to avoid the need to call pkg-config.
17329 See the pkg-config man page for more details.
17330
17331 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17332 See \`config.log' for more details." "$LINENO" 5; }
17333 else
17334         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
17335         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
17336         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337 $as_echo "yes" >&6; }
17338         :
17339 fi
17340
17341     if test "$enable_tirpc" = no; then
17342
17343 pkg_failed=no
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
17345 $as_echo_n "checking for RPCSECGSS... " >&6; }
17346
17347 if test -n "$RPCSECGSS_CFLAGS"; then
17348     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
17349  elif test -n "$PKG_CONFIG"; then
17350     if test -n "$PKG_CONFIG" && \
17351     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
17352   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
17353   ac_status=$?
17354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17355   test $ac_status = 0; }; then
17356   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
17357 else
17358   pkg_failed=yes
17359 fi
17360  else
17361     pkg_failed=untried
17362 fi
17363 if test -n "$RPCSECGSS_LIBS"; then
17364     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
17365  elif test -n "$PKG_CONFIG"; then
17366     if test -n "$PKG_CONFIG" && \
17367     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
17368   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
17369   ac_status=$?
17370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17371   test $ac_status = 0; }; then
17372   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
17373 else
17374   pkg_failed=yes
17375 fi
17376  else
17377     pkg_failed=untried
17378 fi
17379
17380
17381
17382 if test $pkg_failed = yes; then
17383
17384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17385         _pkg_short_errors_supported=yes
17386 else
17387         _pkg_short_errors_supported=no
17388 fi
17389         if test $_pkg_short_errors_supported = yes; then
17390                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
17391         else
17392                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
17393         fi
17394         # Put the nasty error message in config.log where it belongs
17395         echo "$RPCSECGSS_PKG_ERRORS" >&5
17396
17397         as_fn_error "Package requirements (librpcsecgss >= 0.16) were not met:
17398
17399 $RPCSECGSS_PKG_ERRORS
17400
17401 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17402 installed software in a non-standard prefix.
17403
17404 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
17405 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
17406 See the pkg-config man page for more details.
17407 " "$LINENO" 5
17408 elif test $pkg_failed = untried; then
17409         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17411 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
17412 is in your PATH or set the PKG_CONFIG environment variable to the full
17413 path to pkg-config.
17414
17415 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
17416 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
17417 See the pkg-config man page for more details.
17418
17419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17420 See \`config.log' for more details." "$LINENO" 5; }
17421 else
17422         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
17423         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
17424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17425 $as_echo "yes" >&6; }
17426         :
17427 fi
17428   fi
17429
17430
17431   fi
17432 fi
17433
17434 if test "$knfsd_cv_glibc2" = no; then
17435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
17436 $as_echo_n "checking for daemon in -lbsd... " >&6; }
17437 if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
17438   $as_echo_n "(cached) " >&6
17439 else
17440   ac_check_lib_save_LIBS=$LIBS
17441 LIBS="-lbsd  $LIBS"
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h.  */
17444
17445 /* Override any GCC internal prototype to avoid an error.
17446    Use char because int might match the return type of a GCC
17447    builtin and then its argument prototype would still apply.  */
17448 #ifdef __cplusplus
17449 extern "C"
17450 #endif
17451 char daemon ();
17452 int
17453 main ()
17454 {
17455 return daemon ();
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 if ac_fn_c_try_link "$LINENO"; then :
17461   ac_cv_lib_bsd_daemon=yes
17462 else
17463   ac_cv_lib_bsd_daemon=no
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext \
17466     conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17468 fi
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
17470 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
17471 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
17472   LIBBSD="-lbsd"
17473 fi
17474
17475 fi
17476
17477 if test "$choose_blkid" != no; then
17478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
17479 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
17480 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then :
17481   $as_echo_n "(cached) " >&6
17482 else
17483   ac_check_lib_save_LIBS=$LIBS
17484 LIBS="-lblkid  $LIBS"
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h.  */
17487
17488 /* Override any GCC internal prototype to avoid an error.
17489    Use char because int might match the return type of a GCC
17490    builtin and then its argument prototype would still apply.  */
17491 #ifdef __cplusplus
17492 extern "C"
17493 #endif
17494 char blkid_get_library_version ();
17495 int
17496 main ()
17497 {
17498 return blkid_get_library_version ();
17499   ;
17500   return 0;
17501 }
17502 _ACEOF
17503 if ac_fn_c_try_link "$LINENO"; then :
17504   ac_cv_lib_blkid_blkid_get_library_version=yes
17505 else
17506   ac_cv_lib_blkid_blkid_get_library_version=no
17507 fi
17508 rm -f core conftest.err conftest.$ac_objext \
17509     conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17511 fi
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
17513 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
17514 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then :
17515   LIBBLKID="-lblkid"
17516 else
17517   as_fn_error "libblkid needed" "$LINENO" 5
17518 fi
17519
17520    ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
17521 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then :
17522
17523 else
17524   as_fn_error "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
17525 fi
17526
17527
17528
17529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
17530 $as_echo_n "checking for suitable libblkid version... " >&6; }
17531   if test "${libblkid_cv_is_recent+set}" = set; then :
17532   $as_echo_n "(cached) " >&6
17533 else
17534
17535     saved_LIBS="$LIBS"
17536     LIBS=-lblkid
17537     if test "$cross_compiling" = yes; then :
17538   libblkid_cv_is_recent=unknown
17539 else
17540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h.  */
17542
17543         #include <blkid/blkid.h>
17544         int main()
17545         {
17546                 int vers = blkid_get_library_version(0, 0);
17547                 return vers >= 140 ? 0 : 1;
17548         }
17549
17550 _ACEOF
17551 if ac_fn_c_try_run "$LINENO"; then :
17552   libblkid_cv_is_recent=yes
17553 else
17554   libblkid_cv_is_recent=no
17555 fi
17556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17557   conftest.$ac_objext conftest.beam conftest.$ac_ext
17558 fi
17559
17560     LIBS="$saved_LIBS"
17561 fi
17562
17563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
17564 $as_echo "$libblkid_cv_is_recent" >&6; }
17565
17566    if test $choose_blkid = yes; then
17567       use_blkid=1
17568       test $libblkid_cv_is_recent = no && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid is old and may cause mountd to leak memory" >&5
17569 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
17570    else
17571       if test $libblkid_cv_is_recent = yes
17572       then use_blkid=1
17573       else use_blkid=0
17574            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
17575 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
17576       fi
17577     fi
17578
17579 cat >>confdefs.h <<_ACEOF
17580 #define USE_BLKID $use_blkid
17581 _ACEOF
17582
17583 fi
17584
17585
17586
17587
17588
17589 if test "$enable_gss" = yes; then
17590     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
17591 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
17592
17593 else
17594   as_fn_error "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
17595 fi
17596
17597
17598
17599
17600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17601 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17602 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then :
17603   $as_echo_n "(cached) " >&6
17604 else
17605   ac_check_lib_save_LIBS=$LIBS
17606 LIBS="-lnfsidmap  $LIBS"
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h.  */
17609
17610 /* Override any GCC internal prototype to avoid an error.
17611    Use char because int might match the return type of a GCC
17612    builtin and then its argument prototype would still apply.  */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 char nfs4_init_name_mapping ();
17617 int
17618 main ()
17619 {
17620 return nfs4_init_name_mapping ();
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 if ac_fn_c_try_link "$LINENO"; then :
17626   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17627 else
17628   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17629 fi
17630 rm -f core conftest.err conftest.$ac_objext \
17631     conftest$ac_exeext conftest.$ac_ext
17632 LIBS=$ac_check_lib_save_LIBS
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17635 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17636 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then :
17637   libnfsidmap=1
17638 else
17639   as_fn_error "libnfsidmap not found." "$LINENO" 5
17640 fi
17641
17642
17643   for ac_header in nfsidmap.h
17644 do :
17645   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17646 if test "x$ac_cv_header_nfsidmap_h" = x""yes; then :
17647   cat >>confdefs.h <<_ACEOF
17648 #define HAVE_NFSIDMAP_H 1
17649 _ACEOF
17650
17651 else
17652   as_fn_error "libnfsidmap headers not found." "$LINENO" 5
17653 fi
17654
17655 done
17656
17657
17658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17659 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17660 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then :
17661   $as_echo_n "(cached) " >&6
17662 else
17663   ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-lnfsidmap  $LIBS"
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h.  */
17667
17668 /* Override any GCC internal prototype to avoid an error.
17669    Use char because int might match the return type of a GCC
17670    builtin and then its argument prototype would still apply.  */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 char nfs4_set_debug ();
17675 int
17676 main ()
17677 {
17678 return nfs4_set_debug ();
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17685 else
17686   ac_cv_lib_nfsidmap_nfs4_set_debug=no
17687 fi
17688 rm -f core conftest.err conftest.$ac_objext \
17689     conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17691 fi
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17693 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17694 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then :
17695
17696 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17697
17698 fi
17699
17700
17701
17702
17703   for ac_header in spkm3.h
17704 do :
17705   ac_fn_c_check_header_mongrel "$LINENO" "spkm3.h" "ac_cv_header_spkm3_h" "$ac_includes_default"
17706 if test "x$ac_cv_header_spkm3_h" = x""yes; then :
17707   cat >>confdefs.h <<_ACEOF
17708 #define HAVE_SPKM3_H 1
17709 _ACEOF
17710
17711 else
17712   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
17713 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
17714 fi
17715
17716 done
17717
17718
17719
17720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
17721 $as_echo_n "checking for Kerberos v5... " >&6; }
17722
17723 # Check whether --with-krb5 was given.
17724 if test "${with_krb5+set}" = set; then :
17725   withval=$with_krb5;  case "$withval" in
17726     yes|no)
17727        krb5_with=""
17728        ;;
17729     *)
17730        krb5_with="$withval"
17731        ;;
17732     esac
17733
17734 fi
17735
17736
17737   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
17738              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
17739             K5CONFIG=""
17740     if test -f $dir/bin/krb5-config; then
17741       K5CONFIG=$dir/bin/krb5-config
17742     elif test -f "/usr/kerberos/bin/krb5-config"; then
17743       K5CONFIG="/usr/kerberos/bin/krb5-config"
17744     elif test -f "/usr/lib/mit/bin/krb5-config"; then
17745       K5CONFIG="/usr/lib/mit/bin/krb5-config"
17746     fi
17747     if test "$K5CONFIG" != ""; then
17748       KRBCFLAGS=`$K5CONFIG --cflags`
17749       KRBLIBS=`$K5CONFIG --libs gssapi`
17750       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
17751
17752 cat >>confdefs.h <<_ACEOF
17753 #define KRB5_VERSION $K5VERS
17754 _ACEOF
17755
17756       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
17757                 \( -f $dir/lib/libgssapi_krb5.a -o \
17758                    -f $dir/lib64/libgssapi_krb5.a -o \
17759                    -f $dir/lib64/libgssapi_krb5.so -o \
17760                    -f $dir/lib/libgssapi_krb5.so \) ; then
17761
17762 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
17763
17764          KRBDIR="$dir"
17765                      if test $K5VERS -le 131; then
17766
17767 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17768
17769          fi
17770          gssapi_lib=gssapi_krb5
17771          break
17772                   elif test \( -f $dir/include/heim_err.h -o\
17773                  -f $dir/include/heimdal/heim_err.h \) -a \
17774                 -f $dir/lib/libroken.a; then
17775
17776 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17777
17778          KRBDIR="$dir"
17779          gssapi_lib=gssapi
17780         break
17781       fi
17782     fi
17783   done
17784     if test "x$KRBDIR" = "x"; then
17785     if test "x$krb5_with" = "x"; then
17786       as_fn_error "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
17787     else
17788       as_fn_error "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
17789     fi
17790   fi
17791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
17792 $as_echo "$KRBDIR" >&6; }
17793
17794     echo "The current KRBDIR is $KRBDIR"
17795   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
17796        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
17797     KRBLDFLAGS="";
17798   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
17799     KRBLDFLAGS="";
17800   else
17801     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
17802   fi
17803
17804     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
17806 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
17807 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17808   $as_echo_n "(cached) " >&6
17809 else
17810   ac_check_lib_save_LIBS=$LIBS
17811 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h.  */
17814
17815 /* Override any GCC internal prototype to avoid an error.
17816    Use char because int might match the return type of a GCC
17817    builtin and then its argument prototype would still apply.  */
17818 #ifdef __cplusplus
17819 extern "C"
17820 #endif
17821 char gss_krb5_export_lucid_sec_context ();
17822 int
17823 main ()
17824 {
17825 return gss_krb5_export_lucid_sec_context ();
17826   ;
17827   return 0;
17828 }
17829 _ACEOF
17830 if ac_fn_c_try_link "$LINENO"; then :
17831   eval "$as_ac_Lib=yes"
17832 else
17833   eval "$as_ac_Lib=no"
17834 fi
17835 rm -f core conftest.err conftest.$ac_objext \
17836     conftest$ac_exeext conftest.$ac_ext
17837 LIBS=$ac_check_lib_save_LIBS
17838 fi
17839 eval ac_res=\$$as_ac_Lib
17840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17841 $as_echo "$ac_res" >&6; }
17842 eval as_val=\$$as_ac_Lib
17843    if test "x$as_val" = x""yes; then :
17844
17845 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
17846
17847 fi
17848
17849   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
17851 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
17852 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17853   $as_echo_n "(cached) " >&6
17854 else
17855   ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h.  */
17859
17860 /* Override any GCC internal prototype to avoid an error.
17861    Use char because int might match the return type of a GCC
17862    builtin and then its argument prototype would still apply.  */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 char gss_krb5_set_allowable_enctypes ();
17867 int
17868 main ()
17869 {
17870 return gss_krb5_set_allowable_enctypes ();
17871   ;
17872   return 0;
17873 }
17874 _ACEOF
17875 if ac_fn_c_try_link "$LINENO"; then :
17876   eval "$as_ac_Lib=yes"
17877 else
17878   eval "$as_ac_Lib=no"
17879 fi
17880 rm -f core conftest.err conftest.$ac_objext \
17881     conftest$ac_exeext conftest.$ac_ext
17882 LIBS=$ac_check_lib_save_LIBS
17883 fi
17884 eval ac_res=\$$as_ac_Lib
17885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17886 $as_echo "$ac_res" >&6; }
17887 eval as_val=\$$as_ac_Lib
17888    if test "x$as_val" = x""yes; then :
17889
17890 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
17891
17892 fi
17893
17894   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
17896 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
17897 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17898   $as_echo_n "(cached) " >&6
17899 else
17900   ac_check_lib_save_LIBS=$LIBS
17901 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h.  */
17904
17905 /* Override any GCC internal prototype to avoid an error.
17906    Use char because int might match the return type of a GCC
17907    builtin and then its argument prototype would still apply.  */
17908 #ifdef __cplusplus
17909 extern "C"
17910 #endif
17911 char gss_krb5_ccache_name ();
17912 int
17913 main ()
17914 {
17915 return gss_krb5_ccache_name ();
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 if ac_fn_c_try_link "$LINENO"; then :
17921   eval "$as_ac_Lib=yes"
17922 else
17923   eval "$as_ac_Lib=no"
17924 fi
17925 rm -f core conftest.err conftest.$ac_objext \
17926     conftest$ac_exeext conftest.$ac_ext
17927 LIBS=$ac_check_lib_save_LIBS
17928 fi
17929 eval ac_res=\$$as_ac_Lib
17930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17931 $as_echo "$ac_res" >&6; }
17932 eval as_val=\$$as_ac_Lib
17933    if test "x$as_val" = x""yes; then :
17934
17935 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17936
17937 fi
17938
17939
17940     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
17942 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
17943 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17944   $as_echo_n "(cached) " >&6
17945 else
17946   ac_check_lib_save_LIBS=$LIBS
17947 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h.  */
17950
17951 /* Override any GCC internal prototype to avoid an error.
17952    Use char because int might match the return type of a GCC
17953    builtin and then its argument prototype would still apply.  */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char krb5_get_error_message ();
17958 int
17959 main ()
17960 {
17961 return krb5_get_error_message ();
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 if ac_fn_c_try_link "$LINENO"; then :
17967   eval "$as_ac_Lib=yes"
17968 else
17969   eval "$as_ac_Lib=no"
17970 fi
17971 rm -f core conftest.err conftest.$ac_objext \
17972     conftest$ac_exeext conftest.$ac_ext
17973 LIBS=$ac_check_lib_save_LIBS
17974 fi
17975 eval ac_res=\$$as_ac_Lib
17976                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17977 $as_echo "$ac_res" >&6; }
17978 eval as_val=\$$as_ac_Lib
17979    if test "x$as_val" = x""yes; then :
17980
17981 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
17982
17983 fi
17984
17985
17986     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
17988 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
17989 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17990   $as_echo_n "(cached) " >&6
17991 else
17992   ac_check_lib_save_LIBS=$LIBS
17993 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h.  */
17996
17997 /* Override any GCC internal prototype to avoid an error.
17998    Use char because int might match the return type of a GCC
17999    builtin and then its argument prototype would still apply.  */
18000 #ifdef __cplusplus
18001 extern "C"
18002 #endif
18003 char krb5_get_init_creds_opt_set_addressless ();
18004 int
18005 main ()
18006 {
18007 return krb5_get_init_creds_opt_set_addressless ();
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 if ac_fn_c_try_link "$LINENO"; then :
18013   eval "$as_ac_Lib=yes"
18014 else
18015   eval "$as_ac_Lib=no"
18016 fi
18017 rm -f core conftest.err conftest.$ac_objext \
18018     conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18020 fi
18021 eval ac_res=\$$as_ac_Lib
18022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18023 $as_echo "$ac_res" >&6; }
18024 eval as_val=\$$as_ac_Lib
18025    if test "x$as_val" = x""yes; then :
18026
18027 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
18028
18029 fi
18030
18031
18032     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
18033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
18034 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
18035   fi
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047     if test "$enable_tirpc" = no; then
18048
18049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
18050 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
18051 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then :
18052   $as_echo_n "(cached) " >&6
18053 else
18054   ac_check_lib_save_LIBS=$LIBS
18055 LIBS="-lrpcsecgss  $LIBS"
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h.  */
18058
18059 /* Override any GCC internal prototype to avoid an error.
18060    Use char because int might match the return type of a GCC
18061    builtin and then its argument prototype would still apply.  */
18062 #ifdef __cplusplus
18063 extern "C"
18064 #endif
18065 char authgss_create_default ();
18066 int
18067 main ()
18068 {
18069 return authgss_create_default ();
18070   ;
18071   return 0;
18072 }
18073 _ACEOF
18074 if ac_fn_c_try_link "$LINENO"; then :
18075   ac_cv_lib_rpcsecgss_authgss_create_default=yes
18076 else
18077   ac_cv_lib_rpcsecgss_authgss_create_default=no
18078 fi
18079 rm -f core conftest.err conftest.$ac_objext \
18080     conftest$ac_exeext conftest.$ac_ext
18081 LIBS=$ac_check_lib_save_LIBS
18082 fi
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
18084 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
18085 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then :
18086   librpcsecgss=1
18087 else
18088   as_fn_error "librpcsecgss not found." "$LINENO" 5
18089 fi
18090
18091
18092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
18093 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
18094 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then :
18095   $as_echo_n "(cached) " >&6
18096 else
18097   ac_check_lib_save_LIBS=$LIBS
18098 LIBS="-lrpcsecgss  $LIBS"
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h.  */
18101
18102 /* Override any GCC internal prototype to avoid an error.
18103    Use char because int might match the return type of a GCC
18104    builtin and then its argument prototype would still apply.  */
18105 #ifdef __cplusplus
18106 extern "C"
18107 #endif
18108 char authgss_set_debug_level ();
18109 int
18110 main ()
18111 {
18112 return authgss_set_debug_level ();
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 if ac_fn_c_try_link "$LINENO"; then :
18118   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
18119 else
18120   ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
18121 fi
18122 rm -f core conftest.err conftest.$ac_objext \
18123     conftest$ac_exeext conftest.$ac_ext
18124 LIBS=$ac_check_lib_save_LIBS
18125 fi
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
18127 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
18128 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then :
18129
18130 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
18131
18132 fi
18133
18134
18135   fi
18136
18137
18138
18139 fi
18140
18141
18142
18143   ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
18144 "
18145 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then :
18146
18147 $as_echo "#define HAVE_DECL_AI_ADDRCONFIG 1" >>confdefs.h
18148
18149 fi
18150
18151
18152   if test "$enable_ipv6" = yes; then
18153
18154         if test "$enable_tirpc" = no; then
18155       as_fn_error "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
18156     fi
18157
18158         for ac_func in getifaddrs getnameinfo bindresvport_sa
18159 do :
18160   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18162 eval as_val=\$$as_ac_var
18163    if test "x$as_val" = x""yes; then :
18164   cat >>confdefs.h <<_ACEOF
18165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18166 _ACEOF
18167
18168 else
18169   as_fn_error "Missing library functions needed for IPv6." "$LINENO" 5
18170 fi
18171 done
18172
18173
18174             ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
18175 "
18176 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then :
18177
18178 else
18179   as_fn_error "full getaddrinfo(3) implementation needed for IPv6 support" "$LINENO" 5
18180 fi
18181
18182
18183   fi
18184
18185
18186
18187 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
18188                  malloc.h memory.h netdb.h netinet/in.h paths.h \
18189                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
18190                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
18191                  syslog.h unistd.h com_err.h et/com_err.h \
18192                  ifaddrs.h
18193 do :
18194   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18195 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18196 eval as_val=\$$as_ac_Header
18197    if test "x$as_val" = x""yes; then :
18198   cat >>confdefs.h <<_ACEOF
18199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18200 _ACEOF
18201
18202 fi
18203
18204 done
18205
18206
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18208 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18209 if test "${ac_cv_c_const+set}" = set; then :
18210   $as_echo_n "(cached) " >&6
18211 else
18212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h.  */
18214
18215 int
18216 main ()
18217 {
18218 /* FIXME: Include the comments suggested by Paul. */
18219 #ifndef __cplusplus
18220   /* Ultrix mips cc rejects this.  */
18221   typedef int charset[2];
18222   const charset cs;
18223   /* SunOS 4.1.1 cc rejects this.  */
18224   char const *const *pcpcc;
18225   char **ppc;
18226   /* NEC SVR4.0.2 mips cc rejects this.  */
18227   struct point {int x, y;};
18228   static struct point const zero = {0,0};
18229   /* AIX XL C 1.02.0.0 rejects this.
18230      It does not let you subtract one const X* pointer from another in
18231      an arm of an if-expression whose if-part is not a constant
18232      expression */
18233   const char *g = "string";
18234   pcpcc = &g + (g ? g-g : 0);
18235   /* HPUX 7.0 cc rejects these. */
18236   ++pcpcc;
18237   ppc = (char**) pcpcc;
18238   pcpcc = (char const *const *) ppc;
18239   { /* SCO 3.2v4 cc rejects this.  */
18240     char *t;
18241     char const *s = 0 ? (char *) 0 : (char const *) 0;
18242
18243     *t++ = 0;
18244     if (s) return 0;
18245   }
18246   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18247     int x[] = {25, 17};
18248     const int *foo = &x[0];
18249     ++foo;
18250   }
18251   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18252     typedef const int *iptr;
18253     iptr p = 0;
18254     ++p;
18255   }
18256   { /* AIX XL C 1.02.0.0 rejects this saying
18257        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18258     struct s { int j; const int *ap[3]; };
18259     struct s *b; b->j = 5;
18260   }
18261   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18262     const int foo = 10;
18263     if (!foo) return 0;
18264   }
18265   return !cs[0] && !zero.x;
18266 #endif
18267
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 if ac_fn_c_try_compile "$LINENO"; then :
18273   ac_cv_c_const=yes
18274 else
18275   ac_cv_c_const=no
18276 fi
18277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18278 fi
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18280 $as_echo "$ac_cv_c_const" >&6; }
18281 if test $ac_cv_c_const = no; then
18282
18283 $as_echo "#define const /**/" >>confdefs.h
18284
18285 fi
18286
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18288 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18289 if test "${ac_cv_type_uid_t+set}" = set; then :
18290   $as_echo_n "(cached) " >&6
18291 else
18292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h.  */
18294 #include <sys/types.h>
18295
18296 _ACEOF
18297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18298   $EGREP "uid_t" >/dev/null 2>&1; then :
18299   ac_cv_type_uid_t=yes
18300 else
18301   ac_cv_type_uid_t=no
18302 fi
18303 rm -f conftest*
18304
18305 fi
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18307 $as_echo "$ac_cv_type_uid_t" >&6; }
18308 if test $ac_cv_type_uid_t = no; then
18309
18310 $as_echo "#define uid_t int" >>confdefs.h
18311
18312
18313 $as_echo "#define gid_t int" >>confdefs.h
18314
18315 fi
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18318 $as_echo_n "checking for inline... " >&6; }
18319 if test "${ac_cv_c_inline+set}" = set; then :
18320   $as_echo_n "(cached) " >&6
18321 else
18322   ac_cv_c_inline=no
18323 for ac_kw in inline __inline__ __inline; do
18324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h.  */
18326 #ifndef __cplusplus
18327 typedef int foo_t;
18328 static $ac_kw foo_t static_foo () {return 0; }
18329 $ac_kw foo_t foo () {return 0; }
18330 #endif
18331
18332 _ACEOF
18333 if ac_fn_c_try_compile "$LINENO"; then :
18334   ac_cv_c_inline=$ac_kw
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337   test "$ac_cv_c_inline" != no && break
18338 done
18339
18340 fi
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18342 $as_echo "$ac_cv_c_inline" >&6; }
18343
18344 case $ac_cv_c_inline in
18345   inline | yes) ;;
18346   *)
18347     case $ac_cv_c_inline in
18348       no) ac_val=;;
18349       *) ac_val=$ac_cv_c_inline;;
18350     esac
18351     cat >>confdefs.h <<_ACEOF
18352 #ifndef __cplusplus
18353 #define inline $ac_val
18354 #endif
18355 _ACEOF
18356     ;;
18357 esac
18358
18359 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18360 if test "x$ac_cv_type_off_t" = x""yes; then :
18361
18362 else
18363
18364 cat >>confdefs.h <<_ACEOF
18365 #define off_t long int
18366 _ACEOF
18367
18368 fi
18369
18370 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18371 if test "x$ac_cv_type_pid_t" = x""yes; then :
18372
18373 else
18374
18375 cat >>confdefs.h <<_ACEOF
18376 #define pid_t int
18377 _ACEOF
18378
18379 fi
18380
18381 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18382 if test "x$ac_cv_type_size_t" = x""yes; then :
18383
18384 else
18385
18386 cat >>confdefs.h <<_ACEOF
18387 #define size_t unsigned int
18388 _ACEOF
18389
18390 fi
18391
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18393 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18394 if test "${ac_cv_header_time+set}" = set; then :
18395   $as_echo_n "(cached) " >&6
18396 else
18397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h.  */
18399 #include <sys/types.h>
18400 #include <sys/time.h>
18401 #include <time.h>
18402
18403 int
18404 main ()
18405 {
18406 if ((struct tm *) 0)
18407 return 0;
18408   ;
18409   return 0;
18410 }
18411 _ACEOF
18412 if ac_fn_c_try_compile "$LINENO"; then :
18413   ac_cv_header_time=yes
18414 else
18415   ac_cv_header_time=no
18416 fi
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 fi
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18420 $as_echo "$ac_cv_header_time" >&6; }
18421 if test $ac_cv_header_time = yes; then
18422
18423 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18424
18425 fi
18426
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18428 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18429 if test "${ac_cv_struct_tm+set}" = set; then :
18430   $as_echo_n "(cached) " >&6
18431 else
18432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h.  */
18434 #include <sys/types.h>
18435 #include <time.h>
18436
18437 int
18438 main ()
18439 {
18440 struct tm tm;
18441                                      int *p = &tm.tm_sec;
18442                                      return !p;
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448   ac_cv_struct_tm=time.h
18449 else
18450   ac_cv_struct_tm=sys/time.h
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 fi
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18455 $as_echo "$ac_cv_struct_tm" >&6; }
18456 if test $ac_cv_struct_tm = sys/time.h; then
18457
18458 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18459
18460 fi
18461
18462
18463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18464 # for constant arguments.  Useless!
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18466 $as_echo_n "checking for working alloca.h... " >&6; }
18467 if test "${ac_cv_working_alloca_h+set}" = set; then :
18468   $as_echo_n "(cached) " >&6
18469 else
18470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h.  */
18472 #include <alloca.h>
18473 int
18474 main ()
18475 {
18476 char *p = (char *) alloca (2 * sizeof (int));
18477                           if (p) return 0;
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 if ac_fn_c_try_link "$LINENO"; then :
18483   ac_cv_working_alloca_h=yes
18484 else
18485   ac_cv_working_alloca_h=no
18486 fi
18487 rm -f core conftest.err conftest.$ac_objext \
18488     conftest$ac_exeext conftest.$ac_ext
18489 fi
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18491 $as_echo "$ac_cv_working_alloca_h" >&6; }
18492 if test $ac_cv_working_alloca_h = yes; then
18493
18494 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18495
18496 fi
18497
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18499 $as_echo_n "checking for alloca... " >&6; }
18500 if test "${ac_cv_func_alloca_works+set}" = set; then :
18501   $as_echo_n "(cached) " >&6
18502 else
18503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h.  */
18505 #ifdef __GNUC__
18506 # define alloca __builtin_alloca
18507 #else
18508 # ifdef _MSC_VER
18509 #  include <malloc.h>
18510 #  define alloca _alloca
18511 # else
18512 #  ifdef HAVE_ALLOCA_H
18513 #   include <alloca.h>
18514 #  else
18515 #   ifdef _AIX
18516  #pragma alloca
18517 #   else
18518 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18519 char *alloca ();
18520 #    endif
18521 #   endif
18522 #  endif
18523 # endif
18524 #endif
18525
18526 int
18527 main ()
18528 {
18529 char *p = (char *) alloca (1);
18530                                     if (p) return 0;
18531   ;
18532   return 0;
18533 }
18534 _ACEOF
18535 if ac_fn_c_try_link "$LINENO"; then :
18536   ac_cv_func_alloca_works=yes
18537 else
18538   ac_cv_func_alloca_works=no
18539 fi
18540 rm -f core conftest.err conftest.$ac_objext \
18541     conftest$ac_exeext conftest.$ac_ext
18542 fi
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18544 $as_echo "$ac_cv_func_alloca_works" >&6; }
18545
18546 if test $ac_cv_func_alloca_works = yes; then
18547
18548 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18549
18550 else
18551   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18552 # that cause trouble.  Some versions do not even contain alloca or
18553 # contain a buggy version.  If you still want to use their alloca,
18554 # use ar to extract alloca.o from them instead of compiling alloca.c.
18555
18556 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18557
18558 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18559
18560
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18562 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18563 if test "${ac_cv_os_cray+set}" = set; then :
18564   $as_echo_n "(cached) " >&6
18565 else
18566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h.  */
18568 #if defined CRAY && ! defined CRAY2
18569 webecray
18570 #else
18571 wenotbecray
18572 #endif
18573
18574 _ACEOF
18575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18576   $EGREP "webecray" >/dev/null 2>&1; then :
18577   ac_cv_os_cray=yes
18578 else
18579   ac_cv_os_cray=no
18580 fi
18581 rm -f conftest*
18582
18583 fi
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18585 $as_echo "$ac_cv_os_cray" >&6; }
18586 if test $ac_cv_os_cray = yes; then
18587   for ac_func in _getb67 GETB67 getb67; do
18588     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18590 eval as_val=\$$as_ac_var
18591    if test "x$as_val" = x""yes; then :
18592
18593 cat >>confdefs.h <<_ACEOF
18594 #define CRAY_STACKSEG_END $ac_func
18595 _ACEOF
18596
18597     break
18598 fi
18599
18600   done
18601 fi
18602
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18604 $as_echo_n "checking stack direction for C alloca... " >&6; }
18605 if test "${ac_cv_c_stack_direction+set}" = set; then :
18606   $as_echo_n "(cached) " >&6
18607 else
18608   if test "$cross_compiling" = yes; then :
18609   ac_cv_c_stack_direction=0
18610 else
18611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h.  */
18613 $ac_includes_default
18614 int
18615 find_stack_direction ()
18616 {
18617   static char *addr = 0;
18618   auto char dummy;
18619   if (addr == 0)
18620     {
18621       addr = &dummy;
18622       return find_stack_direction ();
18623     }
18624   else
18625     return (&dummy > addr) ? 1 : -1;
18626 }
18627
18628 int
18629 main ()
18630 {
18631   return find_stack_direction () < 0;
18632 }
18633 _ACEOF
18634 if ac_fn_c_try_run "$LINENO"; then :
18635   ac_cv_c_stack_direction=1
18636 else
18637   ac_cv_c_stack_direction=-1
18638 fi
18639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18640   conftest.$ac_objext conftest.beam conftest.$ac_ext
18641 fi
18642
18643 fi
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18645 $as_echo "$ac_cv_c_stack_direction" >&6; }
18646 cat >>confdefs.h <<_ACEOF
18647 #define STACK_DIRECTION $ac_cv_c_stack_direction
18648 _ACEOF
18649
18650
18651 fi
18652
18653 ac_header_dirent=no
18654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18655   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18657 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
18659   $as_echo_n "(cached) " >&6
18660 else
18661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662 /* end confdefs.h.  */
18663 #include <sys/types.h>
18664 #include <$ac_hdr>
18665
18666 int
18667 main ()
18668 {
18669 if ((DIR *) 0)
18670 return 0;
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 if ac_fn_c_try_compile "$LINENO"; then :
18676   eval "$as_ac_Header=yes"
18677 else
18678   eval "$as_ac_Header=no"
18679 fi
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681 fi
18682 eval ac_res=\$$as_ac_Header
18683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18684 $as_echo "$ac_res" >&6; }
18685 eval as_val=\$$as_ac_Header
18686    if test "x$as_val" = x""yes; then :
18687   cat >>confdefs.h <<_ACEOF
18688 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18689 _ACEOF
18690
18691 ac_header_dirent=$ac_hdr; break
18692 fi
18693
18694 done
18695 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18696 if test $ac_header_dirent = dirent.h; then
18697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18698 $as_echo_n "checking for library containing opendir... " >&6; }
18699 if test "${ac_cv_search_opendir+set}" = set; then :
18700   $as_echo_n "(cached) " >&6
18701 else
18702   ac_func_search_save_LIBS=$LIBS
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h.  */
18705
18706 /* Override any GCC internal prototype to avoid an error.
18707    Use char because int might match the return type of a GCC
18708    builtin and then its argument prototype would still apply.  */
18709 #ifdef __cplusplus
18710 extern "C"
18711 #endif
18712 char opendir ();
18713 int
18714 main ()
18715 {
18716 return opendir ();
18717   ;
18718   return 0;
18719 }
18720 _ACEOF
18721 for ac_lib in '' dir; do
18722   if test -z "$ac_lib"; then
18723     ac_res="none required"
18724   else
18725     ac_res=-l$ac_lib
18726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18727   fi
18728   if ac_fn_c_try_link "$LINENO"; then :
18729   ac_cv_search_opendir=$ac_res
18730 fi
18731 rm -f core conftest.err conftest.$ac_objext \
18732     conftest$ac_exeext
18733   if test "${ac_cv_search_opendir+set}" = set; then :
18734   break
18735 fi
18736 done
18737 if test "${ac_cv_search_opendir+set}" = set; then :
18738
18739 else
18740   ac_cv_search_opendir=no
18741 fi
18742 rm conftest.$ac_ext
18743 LIBS=$ac_func_search_save_LIBS
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18746 $as_echo "$ac_cv_search_opendir" >&6; }
18747 ac_res=$ac_cv_search_opendir
18748 if test "$ac_res" != no; then :
18749   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18750
18751 fi
18752
18753 else
18754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18755 $as_echo_n "checking for library containing opendir... " >&6; }
18756 if test "${ac_cv_search_opendir+set}" = set; then :
18757   $as_echo_n "(cached) " >&6
18758 else
18759   ac_func_search_save_LIBS=$LIBS
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h.  */
18762
18763 /* Override any GCC internal prototype to avoid an error.
18764    Use char because int might match the return type of a GCC
18765    builtin and then its argument prototype would still apply.  */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char opendir ();
18770 int
18771 main ()
18772 {
18773 return opendir ();
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 for ac_lib in '' x; do
18779   if test -z "$ac_lib"; then
18780     ac_res="none required"
18781   else
18782     ac_res=-l$ac_lib
18783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18784   fi
18785   if ac_fn_c_try_link "$LINENO"; then :
18786   ac_cv_search_opendir=$ac_res
18787 fi
18788 rm -f core conftest.err conftest.$ac_objext \
18789     conftest$ac_exeext
18790   if test "${ac_cv_search_opendir+set}" = set; then :
18791   break
18792 fi
18793 done
18794 if test "${ac_cv_search_opendir+set}" = set; then :
18795
18796 else
18797   ac_cv_search_opendir=no
18798 fi
18799 rm conftest.$ac_ext
18800 LIBS=$ac_func_search_save_LIBS
18801 fi
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18803 $as_echo "$ac_cv_search_opendir" >&6; }
18804 ac_res=$ac_cv_search_opendir
18805 if test "$ac_res" != no; then :
18806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18807
18808 fi
18809
18810 fi
18811
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
18813 $as_echo_n "checking whether closedir returns void... " >&6; }
18814 if test "${ac_cv_func_closedir_void+set}" = set; then :
18815   $as_echo_n "(cached) " >&6
18816 else
18817   if test "$cross_compiling" = yes; then :
18818   ac_cv_func_closedir_void=yes
18819 else
18820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h.  */
18822 $ac_includes_default
18823 #include <$ac_header_dirent>
18824 #ifndef __cplusplus
18825 int closedir ();
18826 #endif
18827
18828 int
18829 main ()
18830 {
18831 return closedir (opendir (".")) != 0;
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 if ac_fn_c_try_run "$LINENO"; then :
18837   ac_cv_func_closedir_void=no
18838 else
18839   ac_cv_func_closedir_void=yes
18840 fi
18841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18842   conftest.$ac_objext conftest.beam conftest.$ac_ext
18843 fi
18844
18845 fi
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
18847 $as_echo "$ac_cv_func_closedir_void" >&6; }
18848 if test $ac_cv_func_closedir_void = yes; then
18849
18850 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
18851
18852 fi
18853
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18855 $as_echo_n "checking for error_at_line... " >&6; }
18856 if test "${ac_cv_lib_error_at_line+set}" = set; then :
18857   $as_echo_n "(cached) " >&6
18858 else
18859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h.  */
18861 #include <error.h>
18862 int
18863 main ()
18864 {
18865 error_at_line (0, 0, "", 0, "an error occurred");
18866   ;
18867   return 0;
18868 }
18869 _ACEOF
18870 if ac_fn_c_try_link "$LINENO"; then :
18871   ac_cv_lib_error_at_line=yes
18872 else
18873   ac_cv_lib_error_at_line=no
18874 fi
18875 rm -f core conftest.err conftest.$ac_objext \
18876     conftest$ac_exeext conftest.$ac_ext
18877 fi
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18879 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18880 if test $ac_cv_lib_error_at_line = no; then
18881   case " $LIBOBJS " in
18882   *" error.$ac_objext "* ) ;;
18883   *) LIBOBJS="$LIBOBJS error.$ac_objext"
18884  ;;
18885 esac
18886
18887 fi
18888
18889 for ac_header in vfork.h
18890 do :
18891   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18892 if test "x$ac_cv_header_vfork_h" = x""yes; then :
18893   cat >>confdefs.h <<_ACEOF
18894 #define HAVE_VFORK_H 1
18895 _ACEOF
18896
18897 fi
18898
18899 done
18900
18901 for ac_func in fork vfork
18902 do :
18903   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18905 eval as_val=\$$as_ac_var
18906    if test "x$as_val" = x""yes; then :
18907   cat >>confdefs.h <<_ACEOF
18908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18909 _ACEOF
18910
18911 fi
18912 done
18913
18914 if test "x$ac_cv_func_fork" = xyes; then
18915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18916 $as_echo_n "checking for working fork... " >&6; }
18917 if test "${ac_cv_func_fork_works+set}" = set; then :
18918   $as_echo_n "(cached) " >&6
18919 else
18920   if test "$cross_compiling" = yes; then :
18921   ac_cv_func_fork_works=cross
18922 else
18923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18924 /* end confdefs.h.  */
18925 $ac_includes_default
18926 int
18927 main ()
18928 {
18929
18930           /* By Ruediger Kuhlmann. */
18931           return fork () < 0;
18932
18933   ;
18934   return 0;
18935 }
18936 _ACEOF
18937 if ac_fn_c_try_run "$LINENO"; then :
18938   ac_cv_func_fork_works=yes
18939 else
18940   ac_cv_func_fork_works=no
18941 fi
18942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18943   conftest.$ac_objext conftest.beam conftest.$ac_ext
18944 fi
18945
18946 fi
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18948 $as_echo "$ac_cv_func_fork_works" >&6; }
18949
18950 else
18951   ac_cv_func_fork_works=$ac_cv_func_fork
18952 fi
18953 if test "x$ac_cv_func_fork_works" = xcross; then
18954   case $host in
18955     *-*-amigaos* | *-*-msdosdjgpp*)
18956       # Override, as these systems have only a dummy fork() stub
18957       ac_cv_func_fork_works=no
18958       ;;
18959     *)
18960       ac_cv_func_fork_works=yes
18961       ;;
18962   esac
18963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18964 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18965 fi
18966 ac_cv_func_vfork_works=$ac_cv_func_vfork
18967 if test "x$ac_cv_func_vfork" = xyes; then
18968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18969 $as_echo_n "checking for working vfork... " >&6; }
18970 if test "${ac_cv_func_vfork_works+set}" = set; then :
18971   $as_echo_n "(cached) " >&6
18972 else
18973   if test "$cross_compiling" = yes; then :
18974   ac_cv_func_vfork_works=cross
18975 else
18976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h.  */
18978 /* Thanks to Paul Eggert for this test.  */
18979 $ac_includes_default
18980 #include <sys/wait.h>
18981 #ifdef HAVE_VFORK_H
18982 # include <vfork.h>
18983 #endif
18984 /* On some sparc systems, changes by the child to local and incoming
18985    argument registers are propagated back to the parent.  The compiler
18986    is told about this with #include <vfork.h>, but some compilers
18987    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
18988    static variable whose address is put into a register that is
18989    clobbered by the vfork.  */
18990 static void
18991 #ifdef __cplusplus
18992 sparc_address_test (int arg)
18993 # else
18994 sparc_address_test (arg) int arg;
18995 #endif
18996 {
18997   static pid_t child;
18998   if (!child) {
18999     child = vfork ();
19000     if (child < 0) {
19001       perror ("vfork");
19002       _exit(2);
19003     }
19004     if (!child) {
19005       arg = getpid();
19006       write(-1, "", 0);
19007       _exit (arg);
19008     }
19009   }
19010 }
19011
19012 int
19013 main ()
19014 {
19015   pid_t parent = getpid ();
19016   pid_t child;
19017
19018   sparc_address_test (0);
19019
19020   child = vfork ();
19021
19022   if (child == 0) {
19023     /* Here is another test for sparc vfork register problems.  This
19024        test uses lots of local variables, at least as many local
19025        variables as main has allocated so far including compiler
19026        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19027        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19028        reuse the register of parent for one of the local variables,
19029        since it will think that parent can't possibly be used any more
19030        in this routine.  Assigning to the local variable will thus
19031        munge parent in the parent process.  */
19032     pid_t
19033       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19034       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19035     /* Convince the compiler that p..p7 are live; otherwise, it might
19036        use the same hardware register for all 8 local variables.  */
19037     if (p != p1 || p != p2 || p != p3 || p != p4
19038         || p != p5 || p != p6 || p != p7)
19039       _exit(1);
19040
19041     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19042        from child file descriptors.  If the child closes a descriptor
19043        before it execs or exits, this munges the parent's descriptor
19044        as well.  Test for this by closing stdout in the child.  */
19045     _exit(close(fileno(stdout)) != 0);
19046   } else {
19047     int status;
19048     struct stat st;
19049
19050     while (wait(&status) != child)
19051       ;
19052     return (
19053          /* Was there some problem with vforking?  */
19054          child < 0
19055
19056          /* Did the child fail?  (This shouldn't happen.)  */
19057          || status
19058
19059          /* Did the vfork/compiler bug occur?  */
19060          || parent != getpid()
19061
19062          /* Did the file descriptor bug occur?  */
19063          || fstat(fileno(stdout), &st) != 0
19064          );
19065   }
19066 }
19067 _ACEOF
19068 if ac_fn_c_try_run "$LINENO"; then :
19069   ac_cv_func_vfork_works=yes
19070 else
19071   ac_cv_func_vfork_works=no
19072 fi
19073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19074   conftest.$ac_objext conftest.beam conftest.$ac_ext
19075 fi
19076
19077 fi
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19079 $as_echo "$ac_cv_func_vfork_works" >&6; }
19080
19081 fi;
19082 if test "x$ac_cv_func_fork_works" = xcross; then
19083   ac_cv_func_vfork_works=$ac_cv_func_vfork
19084   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19085 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19086 fi
19087
19088 if test "x$ac_cv_func_vfork_works" = xyes; then
19089
19090 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19091
19092 else
19093
19094 $as_echo "#define vfork fork" >>confdefs.h
19095
19096 fi
19097 if test "x$ac_cv_func_fork_works" = xyes; then
19098
19099 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19100
19101 fi
19102
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
19104 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19105 if test "${ac_cv_type_getgroups+set}" = set; then :
19106   $as_echo_n "(cached) " >&6
19107 else
19108   if test "$cross_compiling" = yes; then :
19109   ac_cv_type_getgroups=cross
19110 else
19111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h.  */
19113 /* Thanks to Mike Rendell for this test.  */
19114 $ac_includes_default
19115 #define NGID 256
19116 #undef MAX
19117 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19118
19119 int
19120 main ()
19121 {
19122   gid_t gidset[NGID];
19123   int i, n;
19124   union { gid_t gval; long int lval; }  val;
19125
19126   val.lval = -1;
19127   for (i = 0; i < NGID; i++)
19128     gidset[i] = val.gval;
19129   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19130                  gidset);
19131   /* Exit non-zero if getgroups seems to require an array of ints.  This
19132      happens when gid_t is short int but getgroups modifies an array
19133      of ints.  */
19134   return n > 0 && gidset[n] != val.gval;
19135 }
19136 _ACEOF
19137 if ac_fn_c_try_run "$LINENO"; then :
19138   ac_cv_type_getgroups=gid_t
19139 else
19140   ac_cv_type_getgroups=int
19141 fi
19142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19143   conftest.$ac_objext conftest.beam conftest.$ac_ext
19144 fi
19145
19146 if test $ac_cv_type_getgroups = cross; then
19147         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h.  */
19149 #include <unistd.h>
19150
19151 _ACEOF
19152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19153   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
19154   ac_cv_type_getgroups=gid_t
19155 else
19156   ac_cv_type_getgroups=int
19157 fi
19158 rm -f conftest*
19159
19160 fi
19161 fi
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
19163 $as_echo "$ac_cv_type_getgroups" >&6; }
19164
19165 cat >>confdefs.h <<_ACEOF
19166 #define GETGROUPS_T $ac_cv_type_getgroups
19167 _ACEOF
19168
19169
19170 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
19171 if test "x$ac_cv_func_getgroups" = x""yes; then :
19172
19173 fi
19174
19175
19176 # If we don't yet have getgroups, see if it's in -lbsd.
19177 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
19178 ac_save_LIBS=$LIBS
19179 if test $ac_cv_func_getgroups = no; then
19180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
19181 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
19182 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
19183   $as_echo_n "(cached) " >&6
19184 else
19185   ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lbsd  $LIBS"
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h.  */
19189
19190 /* Override any GCC internal prototype to avoid an error.
19191    Use char because int might match the return type of a GCC
19192    builtin and then its argument prototype would still apply.  */
19193 #ifdef __cplusplus
19194 extern "C"
19195 #endif
19196 char getgroups ();
19197 int
19198 main ()
19199 {
19200 return getgroups ();
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 if ac_fn_c_try_link "$LINENO"; then :
19206   ac_cv_lib_bsd_getgroups=yes
19207 else
19208   ac_cv_lib_bsd_getgroups=no
19209 fi
19210 rm -f core conftest.err conftest.$ac_objext \
19211     conftest$ac_exeext conftest.$ac_ext
19212 LIBS=$ac_check_lib_save_LIBS
19213 fi
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
19215 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
19216 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
19217   GETGROUPS_LIB=-lbsd
19218 fi
19219
19220 fi
19221
19222 # Run the program to test the functionality of the system-supplied
19223 # getgroups function only if there is such a function.
19224 if test $ac_cv_func_getgroups = yes; then
19225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
19226 $as_echo_n "checking for working getgroups... " >&6; }
19227 if test "${ac_cv_func_getgroups_works+set}" = set; then :
19228   $as_echo_n "(cached) " >&6
19229 else
19230   if test "$cross_compiling" = yes; then :
19231   ac_cv_func_getgroups_works=no
19232 else
19233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h.  */
19235 $ac_includes_default
19236 int
19237 main ()
19238 {
19239 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
19240        return getgroups (0, 0) == -1;
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 if ac_fn_c_try_run "$LINENO"; then :
19246   ac_cv_func_getgroups_works=yes
19247 else
19248   ac_cv_func_getgroups_works=no
19249 fi
19250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19251   conftest.$ac_objext conftest.beam conftest.$ac_ext
19252 fi
19253
19254
19255 fi
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
19257 $as_echo "$ac_cv_func_getgroups_works" >&6; }
19258 else
19259   ac_cv_func_getgroups_works=no
19260 fi
19261 if test $ac_cv_func_getgroups_works = yes; then
19262
19263 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
19264
19265 fi
19266 LIBS=$ac_save_LIBS
19267
19268 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
19269 # -lseq on Dynix/PTX, -lgen on Unixware.
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
19271 $as_echo_n "checking for library containing getmntent... " >&6; }
19272 if test "${ac_cv_search_getmntent+set}" = set; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275   ac_func_search_save_LIBS=$LIBS
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h.  */
19278
19279 /* Override any GCC internal prototype to avoid an error.
19280    Use char because int might match the return type of a GCC
19281    builtin and then its argument prototype would still apply.  */
19282 #ifdef __cplusplus
19283 extern "C"
19284 #endif
19285 char getmntent ();
19286 int
19287 main ()
19288 {
19289 return getmntent ();
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 for ac_lib in '' sun seq gen; do
19295   if test -z "$ac_lib"; then
19296     ac_res="none required"
19297   else
19298     ac_res=-l$ac_lib
19299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19300   fi
19301   if ac_fn_c_try_link "$LINENO"; then :
19302   ac_cv_search_getmntent=$ac_res
19303 fi
19304 rm -f core conftest.err conftest.$ac_objext \
19305     conftest$ac_exeext
19306   if test "${ac_cv_search_getmntent+set}" = set; then :
19307   break
19308 fi
19309 done
19310 if test "${ac_cv_search_getmntent+set}" = set; then :
19311
19312 else
19313   ac_cv_search_getmntent=no
19314 fi
19315 rm conftest.$ac_ext
19316 LIBS=$ac_func_search_save_LIBS
19317 fi
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
19319 $as_echo "$ac_cv_search_getmntent" >&6; }
19320 ac_res=$ac_cv_search_getmntent
19321 if test "$ac_res" != no; then :
19322   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19323   ac_cv_func_getmntent=yes
19324
19325 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
19326
19327 else
19328   ac_cv_func_getmntent=no
19329 fi
19330
19331
19332 if test $ac_cv_c_compiler_gnu = yes; then
19333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19334 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19335 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19336   $as_echo_n "(cached) " >&6
19337 else
19338     ac_pattern="Autoconf.*'x'"
19339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h.  */
19341 #include <sgtty.h>
19342 Autoconf TIOCGETP
19343 _ACEOF
19344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19345   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19346   ac_cv_prog_gcc_traditional=yes
19347 else
19348   ac_cv_prog_gcc_traditional=no
19349 fi
19350 rm -f conftest*
19351
19352
19353   if test $ac_cv_prog_gcc_traditional = no; then
19354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h.  */
19356 #include <termio.h>
19357 Autoconf TCGETA
19358 _ACEOF
19359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19360   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19361   ac_cv_prog_gcc_traditional=yes
19362 fi
19363 rm -f conftest*
19364
19365   fi
19366 fi
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19368 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19369   if test $ac_cv_prog_gcc_traditional = yes; then
19370     CC="$CC -traditional"
19371   fi
19372 fi
19373
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19375 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19376 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19377   $as_echo_n "(cached) " >&6
19378 else
19379   rm -f conftest.sym conftest.file
19380 echo >conftest.file
19381 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19382   if test "$cross_compiling" = yes; then :
19383   ac_cv_func_lstat_dereferences_slashed_symlink=no
19384 else
19385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386 /* end confdefs.h.  */
19387 $ac_includes_default
19388 int
19389 main ()
19390 {
19391 struct stat sbuf;
19392      /* Linux will dereference the symlink and fail, as required by POSIX.
19393         That is better in the sense that it means we will not
19394         have to compile and use the lstat wrapper.  */
19395      return lstat ("conftest.sym/", &sbuf) == 0;
19396   ;
19397   return 0;
19398 }
19399 _ACEOF
19400 if ac_fn_c_try_run "$LINENO"; then :
19401   ac_cv_func_lstat_dereferences_slashed_symlink=yes
19402 else
19403   ac_cv_func_lstat_dereferences_slashed_symlink=no
19404 fi
19405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19406   conftest.$ac_objext conftest.beam conftest.$ac_ext
19407 fi
19408
19409 else
19410   # If the `ln -s' command failed, then we probably don't even
19411   # have an lstat function.
19412   ac_cv_func_lstat_dereferences_slashed_symlink=no
19413 fi
19414 rm -f conftest.sym conftest.file
19415
19416 fi
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19418 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19419
19420 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19421
19422 cat >>confdefs.h <<_ACEOF
19423 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19424 _ACEOF
19425
19426
19427 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19428   case " $LIBOBJS " in
19429   *" lstat.$ac_objext "* ) ;;
19430   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19431  ;;
19432 esac
19433
19434 fi
19435
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
19437 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
19438 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
19439   $as_echo_n "(cached) " >&6
19440 else
19441   if test "$cross_compiling" = yes; then :
19442   ac_cv_func_lstat_empty_string_bug=yes
19443 else
19444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h.  */
19446 $ac_includes_default
19447 int
19448 main ()
19449 {
19450 struct stat sbuf;
19451   return lstat ("", &sbuf) == 0;
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_run "$LINENO"; then :
19457   ac_cv_func_lstat_empty_string_bug=no
19458 else
19459   ac_cv_func_lstat_empty_string_bug=yes
19460 fi
19461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19462   conftest.$ac_objext conftest.beam conftest.$ac_ext
19463 fi
19464
19465 fi
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
19467 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
19468 if test $ac_cv_func_lstat_empty_string_bug = yes; then
19469   case " $LIBOBJS " in
19470   *" lstat.$ac_objext "* ) ;;
19471   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19472  ;;
19473 esac
19474
19475
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
19478 _ACEOF
19479
19480 fi
19481
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19483 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19484 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19485   $as_echo_n "(cached) " >&6
19486 else
19487   rm -f conftest.sym conftest.file
19488 echo >conftest.file
19489 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19490   if test "$cross_compiling" = yes; then :
19491   ac_cv_func_lstat_dereferences_slashed_symlink=no
19492 else
19493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h.  */
19495 $ac_includes_default
19496 int
19497 main ()
19498 {
19499 struct stat sbuf;
19500      /* Linux will dereference the symlink and fail, as required by POSIX.
19501         That is better in the sense that it means we will not
19502         have to compile and use the lstat wrapper.  */
19503      return lstat ("conftest.sym/", &sbuf) == 0;
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 if ac_fn_c_try_run "$LINENO"; then :
19509   ac_cv_func_lstat_dereferences_slashed_symlink=yes
19510 else
19511   ac_cv_func_lstat_dereferences_slashed_symlink=no
19512 fi
19513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19514   conftest.$ac_objext conftest.beam conftest.$ac_ext
19515 fi
19516
19517 else
19518   # If the `ln -s' command failed, then we probably don't even
19519   # have an lstat function.
19520   ac_cv_func_lstat_dereferences_slashed_symlink=no
19521 fi
19522 rm -f conftest.sym conftest.file
19523
19524 fi
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19526 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19527
19528 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19529
19530 cat >>confdefs.h <<_ACEOF
19531 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19532 _ACEOF
19533
19534
19535 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19536   case " $LIBOBJS " in
19537   *" lstat.$ac_objext "* ) ;;
19538   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19539  ;;
19540 esac
19541
19542 fi
19543
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
19545 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
19546 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
19547   $as_echo_n "(cached) " >&6
19548 else
19549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h.  */
19551 #include <sys/types.h>
19552 int
19553 main ()
19554 {
19555 return makedev(0, 0);
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 if ac_fn_c_try_link "$LINENO"; then :
19561   ac_cv_header_sys_types_h_makedev=yes
19562 else
19563   ac_cv_header_sys_types_h_makedev=no
19564 fi
19565 rm -f core conftest.err conftest.$ac_objext \
19566     conftest$ac_exeext conftest.$ac_ext
19567
19568 fi
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
19570 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
19571
19572 if test $ac_cv_header_sys_types_h_makedev = no; then
19573 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
19574 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
19575
19576 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
19577
19578 fi
19579
19580
19581
19582   if test $ac_cv_header_sys_mkdev_h = no; then
19583     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
19584 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
19585
19586 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
19587
19588 fi
19589
19590
19591   fi
19592 fi
19593
19594 #AC_FUNC_MALLOC
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19596 $as_echo_n "checking for working memcmp... " >&6; }
19597 if test "${ac_cv_func_memcmp_working+set}" = set; then :
19598   $as_echo_n "(cached) " >&6
19599 else
19600   if test "$cross_compiling" = yes; then :
19601   ac_cv_func_memcmp_working=no
19602 else
19603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h.  */
19605 $ac_includes_default
19606 int
19607 main ()
19608 {
19609
19610   /* Some versions of memcmp are not 8-bit clean.  */
19611   char c0 = '\100', c1 = '\200', c2 = '\201';
19612   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19613     return 1;
19614
19615   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19616      or more and with at least one buffer not starting on a 4-byte boundary.
19617      William Lewis provided this test program.   */
19618   {
19619     char foo[21];
19620     char bar[21];
19621     int i;
19622     for (i = 0; i < 4; i++)
19623       {
19624         char *a = foo + i;
19625         char *b = bar + i;
19626         strcpy (a, "--------01111111");
19627         strcpy (b, "--------10000000");
19628         if (memcmp (a, b, 16) >= 0)
19629           return 1;
19630       }
19631     return 0;
19632   }
19633
19634   ;
19635   return 0;
19636 }
19637 _ACEOF
19638 if ac_fn_c_try_run "$LINENO"; then :
19639   ac_cv_func_memcmp_working=yes
19640 else
19641   ac_cv_func_memcmp_working=no
19642 fi
19643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19644   conftest.$ac_objext conftest.beam conftest.$ac_ext
19645 fi
19646
19647 fi
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19649 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19650 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19651   *" memcmp.$ac_objext "* ) ;;
19652   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19653  ;;
19654 esac
19655
19656
19657 #AC_FUNC_REALLOC
19658 for ac_header in sys/select.h sys/socket.h
19659 do :
19660   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19661 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19662 eval as_val=\$$as_ac_Header
19663    if test "x$as_val" = x""yes; then :
19664   cat >>confdefs.h <<_ACEOF
19665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19666 _ACEOF
19667
19668 fi
19669
19670 done
19671
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19673 $as_echo_n "checking types of arguments for select... " >&6; }
19674 if test "${ac_cv_func_select_args+set}" = set; then :
19675   $as_echo_n "(cached) " >&6
19676 else
19677   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19678  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19679   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19680    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h.  */
19682 $ac_includes_default
19683 #ifdef HAVE_SYS_SELECT_H
19684 # include <sys/select.h>
19685 #endif
19686 #ifdef HAVE_SYS_SOCKET_H
19687 # include <sys/socket.h>
19688 #endif
19689
19690 int
19691 main ()
19692 {
19693 extern int select ($ac_arg1,
19694                                             $ac_arg234, $ac_arg234, $ac_arg234,
19695                                             $ac_arg5);
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 if ac_fn_c_try_compile "$LINENO"; then :
19701   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19702 fi
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704   done
19705  done
19706 done
19707 # Provide a safe default value.
19708 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
19709
19710 fi
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19712 $as_echo "$ac_cv_func_select_args" >&6; }
19713 ac_save_IFS=$IFS; IFS=','
19714 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19715 IFS=$ac_save_IFS
19716 shift
19717
19718 cat >>confdefs.h <<_ACEOF
19719 #define SELECT_TYPE_ARG1 $1
19720 _ACEOF
19721
19722
19723 cat >>confdefs.h <<_ACEOF
19724 #define SELECT_TYPE_ARG234 ($2)
19725 _ACEOF
19726
19727
19728 cat >>confdefs.h <<_ACEOF
19729 #define SELECT_TYPE_ARG5 ($3)
19730 _ACEOF
19731
19732 rm -f conftest*
19733
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19735 $as_echo_n "checking return type of signal handlers... " >&6; }
19736 if test "${ac_cv_type_signal+set}" = set; then :
19737   $as_echo_n "(cached) " >&6
19738 else
19739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h.  */
19741 #include <sys/types.h>
19742 #include <signal.h>
19743
19744 int
19745 main ()
19746 {
19747 return *(signal (0, 0)) (0) == 1;
19748   ;
19749   return 0;
19750 }
19751 _ACEOF
19752 if ac_fn_c_try_compile "$LINENO"; then :
19753   ac_cv_type_signal=int
19754 else
19755   ac_cv_type_signal=void
19756 fi
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 fi
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19760 $as_echo "$ac_cv_type_signal" >&6; }
19761
19762 cat >>confdefs.h <<_ACEOF
19763 #define RETSIGTYPE $ac_cv_type_signal
19764 _ACEOF
19765
19766
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
19768 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
19769 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
19770   $as_echo_n "(cached) " >&6
19771 else
19772   if test "$cross_compiling" = yes; then :
19773   ac_cv_func_stat_empty_string_bug=yes
19774 else
19775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776 /* end confdefs.h.  */
19777 $ac_includes_default
19778 int
19779 main ()
19780 {
19781 struct stat sbuf;
19782   return stat ("", &sbuf) == 0;
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 if ac_fn_c_try_run "$LINENO"; then :
19788   ac_cv_func_stat_empty_string_bug=no
19789 else
19790   ac_cv_func_stat_empty_string_bug=yes
19791 fi
19792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19793   conftest.$ac_objext conftest.beam conftest.$ac_ext
19794 fi
19795
19796 fi
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
19798 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
19799 if test $ac_cv_func_stat_empty_string_bug = yes; then
19800   case " $LIBOBJS " in
19801   *" stat.$ac_objext "* ) ;;
19802   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
19803  ;;
19804 esac
19805
19806
19807 cat >>confdefs.h <<_ACEOF
19808 #define HAVE_STAT_EMPTY_STRING_BUG 1
19809 _ACEOF
19810
19811 fi
19812
19813 for ac_func in vprintf
19814 do :
19815   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19816 if test "x$ac_cv_func_vprintf" = x""yes; then :
19817   cat >>confdefs.h <<_ACEOF
19818 #define HAVE_VPRINTF 1
19819 _ACEOF
19820
19821 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19822 if test "x$ac_cv_func__doprnt" = x""yes; then :
19823
19824 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19825
19826 fi
19827
19828 fi
19829 done
19830
19831
19832 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
19833                gethostbyaddr gethostbyname gethostname getmntent \
19834                getnameinfo getrpcbyname getifaddrs \
19835                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
19836                realpath rmdir select socket strcasecmp strchr strdup \
19837                strerror strrchr strtol strtoul sigprocmask
19838 do :
19839   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19841 eval as_val=\$$as_ac_var
19842    if test "x$as_val" = x""yes; then :
19843   cat >>confdefs.h <<_ACEOF
19844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19845 _ACEOF
19846
19847 fi
19848 done
19849
19850
19851
19852 # The cast to long int works around a bug in the HP C Compiler
19853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19855 # This bug is HP SR number 8606223364.
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19857 $as_echo_n "checking size of short... " >&6; }
19858 if test "${ac_cv_sizeof_short+set}" = set; then :
19859   $as_echo_n "(cached) " >&6
19860 else
19861   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
19862
19863 else
19864   if test "$ac_cv_type_short" = yes; then
19865      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19867 { as_fn_set_status 77
19868 as_fn_error "cannot compute sizeof (short)
19869 See \`config.log' for more details." "$LINENO" 5; }; }
19870    else
19871      ac_cv_sizeof_short=0
19872    fi
19873 fi
19874
19875 fi
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19877 $as_echo "$ac_cv_sizeof_short" >&6; }
19878
19879
19880
19881 cat >>confdefs.h <<_ACEOF
19882 #define SIZEOF_SHORT $ac_cv_sizeof_short
19883 _ACEOF
19884
19885
19886 # The cast to long int works around a bug in the HP C Compiler
19887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19889 # This bug is HP SR number 8606223364.
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19891 $as_echo_n "checking size of int... " >&6; }
19892 if test "${ac_cv_sizeof_int+set}" = set; then :
19893   $as_echo_n "(cached) " >&6
19894 else
19895   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
19896
19897 else
19898   if test "$ac_cv_type_int" = yes; then
19899      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19901 { as_fn_set_status 77
19902 as_fn_error "cannot compute sizeof (int)
19903 See \`config.log' for more details." "$LINENO" 5; }; }
19904    else
19905      ac_cv_sizeof_int=0
19906    fi
19907 fi
19908
19909 fi
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19911 $as_echo "$ac_cv_sizeof_int" >&6; }
19912
19913
19914
19915 cat >>confdefs.h <<_ACEOF
19916 #define SIZEOF_INT $ac_cv_sizeof_int
19917 _ACEOF
19918
19919
19920 # The cast to long int works around a bug in the HP C Compiler
19921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19923 # This bug is HP SR number 8606223364.
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19925 $as_echo_n "checking size of long... " >&6; }
19926 if test "${ac_cv_sizeof_long+set}" = set; then :
19927   $as_echo_n "(cached) " >&6
19928 else
19929   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
19930
19931 else
19932   if test "$ac_cv_type_long" = yes; then
19933      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19935 { as_fn_set_status 77
19936 as_fn_error "cannot compute sizeof (long)
19937 See \`config.log' for more details." "$LINENO" 5; }; }
19938    else
19939      ac_cv_sizeof_long=0
19940    fi
19941 fi
19942
19943 fi
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19945 $as_echo "$ac_cv_sizeof_long" >&6; }
19946
19947
19948
19949 cat >>confdefs.h <<_ACEOF
19950 #define SIZEOF_LONG $ac_cv_sizeof_long
19951 _ACEOF
19952
19953
19954 # The cast to long int works around a bug in the HP C Compiler
19955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19957 # This bug is HP SR number 8606223364.
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
19959 $as_echo_n "checking size of size_t... " >&6; }
19960 if test "${ac_cv_sizeof_size_t+set}" = set; then :
19961   $as_echo_n "(cached) " >&6
19962 else
19963   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
19964
19965 else
19966   if test "$ac_cv_type_size_t" = yes; then
19967      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19969 { as_fn_set_status 77
19970 as_fn_error "cannot compute sizeof (size_t)
19971 See \`config.log' for more details." "$LINENO" 5; }; }
19972    else
19973      ac_cv_sizeof_size_t=0
19974    fi
19975 fi
19976
19977 fi
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
19979 $as_echo "$ac_cv_sizeof_size_t" >&6; }
19980
19981
19982
19983 cat >>confdefs.h <<_ACEOF
19984 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19985 _ACEOF
19986
19987
19988 # The cast to long int works around a bug in the HP C Compiler
19989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19991 # This bug is HP SR number 8606223364.
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
19993 $as_echo_n "checking size of socklen_t... " >&6; }
19994 if test "${ac_cv_sizeof_socklen_t+set}" = set; then :
19995   $as_echo_n "(cached) " >&6
19996 else
19997   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t"        "$ac_includes_default"; then :
19998
19999 else
20000   if test "$ac_cv_type_socklen_t" = yes; then
20001      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20003 { as_fn_set_status 77
20004 as_fn_error "cannot compute sizeof (socklen_t)
20005 See \`config.log' for more details." "$LINENO" 5; }; }
20006    else
20007      ac_cv_sizeof_socklen_t=0
20008    fi
20009 fi
20010
20011 fi
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
20013 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
20014
20015
20016
20017 cat >>confdefs.h <<_ACEOF
20018 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
20019 _ACEOF
20020
20021
20022
20023
20024
20025 cat >>confdefs.h <<_ACEOF
20026 #define NFS_STATEDIR "$statedir"
20027 _ACEOF
20028
20029
20030 if test "x$cross_compiling" = "xno"; then
20031         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
20032         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
20033         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
20034         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
20035 else
20036         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
20037         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
20038         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
20039         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
20040 fi
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052 case $host in
20053   *)
20054     ARCHFLAGS="" ;;
20055 esac
20056
20057 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
20058
20059 AM_CFLAGS="$my_am_cflags"
20060
20061
20062 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
20063 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
20064
20065
20066 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile support/nsm/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile tools/mountstats/Makefile tools/nfs-iostat/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile tests/Makefile tests/nsm_client/Makefile"
20067
20068 cat >confcache <<\_ACEOF
20069 # This file is a shell script that caches the results of configure
20070 # tests run on this system so they can be shared between configure
20071 # scripts and configure runs, see configure's option --config-cache.
20072 # It is not useful on other systems.  If it contains results you don't
20073 # want to keep, you may remove or edit it.
20074 #
20075 # config.status only pays attention to the cache file if you give it
20076 # the --recheck option to rerun configure.
20077 #
20078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20080 # following values.
20081
20082 _ACEOF
20083
20084 # The following way of writing the cache mishandles newlines in values,
20085 # but we know of no workaround that is simple, portable, and efficient.
20086 # So, we kill variables containing newlines.
20087 # Ultrix sh set writes to stderr and can't be redirected directly,
20088 # and sets the high bit in the cache file unless we assign to the vars.
20089 (
20090   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20091     eval ac_val=\$$ac_var
20092     case $ac_val in #(
20093     *${as_nl}*)
20094       case $ac_var in #(
20095       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20097       esac
20098       case $ac_var in #(
20099       _ | IFS | as_nl) ;; #(
20100       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20101       *) { eval $ac_var=; unset $ac_var;} ;;
20102       esac ;;
20103     esac
20104   done
20105
20106   (set) 2>&1 |
20107     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20108     *${as_nl}ac_space=\ *)
20109       # `set' does not quote correctly, so add quotes: double-quote
20110       # substitution turns \\\\ into \\, and sed turns \\ into \.
20111       sed -n \
20112         "s/'/'\\\\''/g;
20113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20114       ;; #(
20115     *)
20116       # `set' quotes correctly as required by POSIX, so do not add quotes.
20117       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20118       ;;
20119     esac |
20120     sort
20121 ) |
20122   sed '
20123      /^ac_cv_env_/b end
20124      t clear
20125      :clear
20126      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20127      t end
20128      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20129      :end' >>confcache
20130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20131   if test -w "$cache_file"; then
20132     test "x$cache_file" != "x/dev/null" &&
20133       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20134 $as_echo "$as_me: updating cache $cache_file" >&6;}
20135     cat confcache >$cache_file
20136   else
20137     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20138 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20139   fi
20140 fi
20141 rm -f confcache
20142
20143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20144 # Let make expand exec_prefix.
20145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20146
20147 DEFS=-DHAVE_CONFIG_H
20148
20149 ac_libobjs=
20150 ac_ltlibobjs=
20151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20152   # 1. Remove the extension, and $U if already installed.
20153   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20154   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20155   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20156   #    will be set to the directory where LIBOBJS objects are built.
20157   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20158   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20159 done
20160 LIBOBJS=$ac_libobjs
20161
20162 LTLIBOBJS=$ac_ltlibobjs
20163
20164
20165  if test -n "$EXEEXT"; then
20166   am__EXEEXT_TRUE=
20167   am__EXEEXT_FALSE='#'
20168 else
20169   am__EXEEXT_TRUE='#'
20170   am__EXEEXT_FALSE=
20171 fi
20172
20173 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20174   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20176 fi
20177 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
20178   as_fn_error "conditional \"CONFIG_NFSV4\" was never defined.
20179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20180 fi
20181 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
20182   as_fn_error "conditional \"CONFIG_NFSV41\" was never defined.
20183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20184 fi
20185 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
20186   as_fn_error "conditional \"CONFIG_GSS\" was never defined.
20187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20188 fi
20189 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
20190   as_fn_error "conditional \"CONFIG_RPCGEN\" was never defined.
20191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20192 fi
20193 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
20194   as_fn_error "conditional \"CONFIG_MOUNT\" was never defined.
20195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20196 fi
20197 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
20198   as_fn_error "conditional \"CONFIG_IPV6\" was never defined.
20199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20200 fi
20201 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
20202   as_fn_error "conditional \"MOUNT_CONFIG\" was never defined.
20203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20204 fi
20205 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
20206   as_fn_error "conditional \"MOUNT_CONFIG\" was never defined.
20207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20208 fi
20209 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20210   as_fn_error "conditional \"AMDEP\" was never defined.
20211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20212 fi
20213 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20214   as_fn_error "conditional \"am__fastdepCC\" was never defined.
20215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20216 fi
20217 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20218   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20220 fi
20221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20222   as_fn_error "conditional \"am__fastdepCC\" was never defined.
20223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20224 fi
20225 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20226   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20228 fi
20229
20230 : ${CONFIG_STATUS=./config.status}
20231 ac_write_fail=0
20232 ac_clean_files_save=$ac_clean_files
20233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20235 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20236 as_write_fail=0
20237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20238 #! $SHELL
20239 # Generated by $as_me.
20240 # Run this file to recreate the current configuration.
20241 # Compiler output produced by configure, useful for debugging
20242 # configure, is in config.log if it exists.
20243
20244 debug=false
20245 ac_cs_recheck=false
20246 ac_cs_silent=false
20247
20248 SHELL=\${CONFIG_SHELL-$SHELL}
20249 export SHELL
20250 _ASEOF
20251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20252 ## -------------------- ##
20253 ## M4sh Initialization. ##
20254 ## -------------------- ##
20255
20256 # Be more Bourne compatible
20257 DUALCASE=1; export DUALCASE # for MKS sh
20258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20259   emulate sh
20260   NULLCMD=:
20261   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20262   # is contrary to our usage.  Disable this feature.
20263   alias -g '${1+"$@"}'='"$@"'
20264   setopt NO_GLOB_SUBST
20265 else
20266   case `(set -o) 2>/dev/null` in #(
20267   *posix*) :
20268     set -o posix ;; #(
20269   *) :
20270      ;;
20271 esac
20272 fi
20273
20274
20275 as_nl='
20276 '
20277 export as_nl
20278 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20279 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20282 # Prefer a ksh shell builtin over an external printf program on Solaris,
20283 # but without wasting forks for bash or zsh.
20284 if test -z "$BASH_VERSION$ZSH_VERSION" \
20285     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20286   as_echo='print -r --'
20287   as_echo_n='print -rn --'
20288 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20289   as_echo='printf %s\n'
20290   as_echo_n='printf %s'
20291 else
20292   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20293     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20294     as_echo_n='/usr/ucb/echo -n'
20295   else
20296     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20297     as_echo_n_body='eval
20298       arg=$1;
20299       case $arg in #(
20300       *"$as_nl"*)
20301         expr "X$arg" : "X\\(.*\\)$as_nl";
20302         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20303       esac;
20304       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20305     '
20306     export as_echo_n_body
20307     as_echo_n='sh -c $as_echo_n_body as_echo'
20308   fi
20309   export as_echo_body
20310   as_echo='sh -c $as_echo_body as_echo'
20311 fi
20312
20313 # The user is always right.
20314 if test "${PATH_SEPARATOR+set}" != set; then
20315   PATH_SEPARATOR=:
20316   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20317     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20318       PATH_SEPARATOR=';'
20319   }
20320 fi
20321
20322
20323 # IFS
20324 # We need space, tab and new line, in precisely that order.  Quoting is
20325 # there to prevent editors from complaining about space-tab.
20326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20327 # splitting by setting IFS to empty value.)
20328 IFS=" ""        $as_nl"
20329
20330 # Find who we are.  Look in the path if we contain no directory separator.
20331 case $0 in #((
20332   *[\\/]* ) as_myself=$0 ;;
20333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20334 for as_dir in $PATH
20335 do
20336   IFS=$as_save_IFS
20337   test -z "$as_dir" && as_dir=.
20338     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20339   done
20340 IFS=$as_save_IFS
20341
20342      ;;
20343 esac
20344 # We did not find ourselves, most probably we were run as `sh COMMAND'
20345 # in which case we are not to be found in the path.
20346 if test "x$as_myself" = x; then
20347   as_myself=$0
20348 fi
20349 if test ! -f "$as_myself"; then
20350   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20351   exit 1
20352 fi
20353
20354 # Unset variables that we do not need and which cause bugs (e.g. in
20355 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20356 # suppresses any "Segmentation fault" message there.  '((' could
20357 # trigger a bug in pdksh 5.2.14.
20358 for as_var in BASH_ENV ENV MAIL MAILPATH
20359 do eval test x\${$as_var+set} = xset \
20360   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20361 done
20362 PS1='$ '
20363 PS2='> '
20364 PS4='+ '
20365
20366 # NLS nuisances.
20367 LC_ALL=C
20368 export LC_ALL
20369 LANGUAGE=C
20370 export LANGUAGE
20371
20372 # CDPATH.
20373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20374
20375
20376 # as_fn_error ERROR [LINENO LOG_FD]
20377 # ---------------------------------
20378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20380 # script with status $?, using 1 if that was 0.
20381 as_fn_error ()
20382 {
20383   as_status=$?; test $as_status -eq 0 && as_status=1
20384   if test "$3"; then
20385     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20386     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20387   fi
20388   $as_echo "$as_me: error: $1" >&2
20389   as_fn_exit $as_status
20390 } # as_fn_error
20391
20392
20393 # as_fn_set_status STATUS
20394 # -----------------------
20395 # Set $? to STATUS, without forking.
20396 as_fn_set_status ()
20397 {
20398   return $1
20399 } # as_fn_set_status
20400
20401 # as_fn_exit STATUS
20402 # -----------------
20403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20404 as_fn_exit ()
20405 {
20406   set +e
20407   as_fn_set_status $1
20408   exit $1
20409 } # as_fn_exit
20410
20411 # as_fn_unset VAR
20412 # ---------------
20413 # Portably unset VAR.
20414 as_fn_unset ()
20415 {
20416   { eval $1=; unset $1;}
20417 }
20418 as_unset=as_fn_unset
20419 # as_fn_append VAR VALUE
20420 # ----------------------
20421 # Append the text in VALUE to the end of the definition contained in VAR. Take
20422 # advantage of any shell optimizations that allow amortized linear growth over
20423 # repeated appends, instead of the typical quadratic growth present in naive
20424 # implementations.
20425 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20426   eval 'as_fn_append ()
20427   {
20428     eval $1+=\$2
20429   }'
20430 else
20431   as_fn_append ()
20432   {
20433     eval $1=\$$1\$2
20434   }
20435 fi # as_fn_append
20436
20437 # as_fn_arith ARG...
20438 # ------------------
20439 # Perform arithmetic evaluation on the ARGs, and store the result in the
20440 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20441 # must be portable across $(()) and expr.
20442 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20443   eval 'as_fn_arith ()
20444   {
20445     as_val=$(( $* ))
20446   }'
20447 else
20448   as_fn_arith ()
20449   {
20450     as_val=`expr "$@" || test $? -eq 1`
20451   }
20452 fi # as_fn_arith
20453
20454
20455 if expr a : '\(a\)' >/dev/null 2>&1 &&
20456    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20457   as_expr=expr
20458 else
20459   as_expr=false
20460 fi
20461
20462 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20463   as_basename=basename
20464 else
20465   as_basename=false
20466 fi
20467
20468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20469   as_dirname=dirname
20470 else
20471   as_dirname=false
20472 fi
20473
20474 as_me=`$as_basename -- "$0" ||
20475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20476          X"$0" : 'X\(//\)$' \| \
20477          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20478 $as_echo X/"$0" |
20479     sed '/^.*\/\([^/][^/]*\)\/*$/{
20480             s//\1/
20481             q
20482           }
20483           /^X\/\(\/\/\)$/{
20484             s//\1/
20485             q
20486           }
20487           /^X\/\(\/\).*/{
20488             s//\1/
20489             q
20490           }
20491           s/.*/./; q'`
20492
20493 # Avoid depending upon Character Ranges.
20494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20497 as_cr_digits='0123456789'
20498 as_cr_alnum=$as_cr_Letters$as_cr_digits
20499
20500 ECHO_C= ECHO_N= ECHO_T=
20501 case `echo -n x` in #(((((
20502 -n*)
20503   case `echo 'xy\c'` in
20504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20505   xy)  ECHO_C='\c';;
20506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20507        ECHO_T=' ';;
20508   esac;;
20509 *)
20510   ECHO_N='-n';;
20511 esac
20512
20513 rm -f conf$$ conf$$.exe conf$$.file
20514 if test -d conf$$.dir; then
20515   rm -f conf$$.dir/conf$$.file
20516 else
20517   rm -f conf$$.dir
20518   mkdir conf$$.dir 2>/dev/null
20519 fi
20520 if (echo >conf$$.file) 2>/dev/null; then
20521   if ln -s conf$$.file conf$$ 2>/dev/null; then
20522     as_ln_s='ln -s'
20523     # ... but there are two gotchas:
20524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20526     # In both cases, we have to default to `cp -p'.
20527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20528       as_ln_s='cp -p'
20529   elif ln conf$$.file conf$$ 2>/dev/null; then
20530     as_ln_s=ln
20531   else
20532     as_ln_s='cp -p'
20533   fi
20534 else
20535   as_ln_s='cp -p'
20536 fi
20537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20538 rmdir conf$$.dir 2>/dev/null
20539
20540
20541 # as_fn_mkdir_p
20542 # -------------
20543 # Create "$as_dir" as a directory, including parents if necessary.
20544 as_fn_mkdir_p ()
20545 {
20546
20547   case $as_dir in #(
20548   -*) as_dir=./$as_dir;;
20549   esac
20550   test -d "$as_dir" || eval $as_mkdir_p || {
20551     as_dirs=
20552     while :; do
20553       case $as_dir in #(
20554       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20555       *) as_qdir=$as_dir;;
20556       esac
20557       as_dirs="'$as_qdir' $as_dirs"
20558       as_dir=`$as_dirname -- "$as_dir" ||
20559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20560          X"$as_dir" : 'X\(//\)[^/]' \| \
20561          X"$as_dir" : 'X\(//\)$' \| \
20562          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20563 $as_echo X"$as_dir" |
20564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20565             s//\1/
20566             q
20567           }
20568           /^X\(\/\/\)[^/].*/{
20569             s//\1/
20570             q
20571           }
20572           /^X\(\/\/\)$/{
20573             s//\1/
20574             q
20575           }
20576           /^X\(\/\).*/{
20577             s//\1/
20578             q
20579           }
20580           s/.*/./; q'`
20581       test -d "$as_dir" && break
20582     done
20583     test -z "$as_dirs" || eval "mkdir $as_dirs"
20584   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20585
20586
20587 } # as_fn_mkdir_p
20588 if mkdir -p . 2>/dev/null; then
20589   as_mkdir_p='mkdir -p "$as_dir"'
20590 else
20591   test -d ./-p && rmdir ./-p
20592   as_mkdir_p=false
20593 fi
20594
20595 if test -x / >/dev/null 2>&1; then
20596   as_test_x='test -x'
20597 else
20598   if ls -dL / >/dev/null 2>&1; then
20599     as_ls_L_option=L
20600   else
20601     as_ls_L_option=
20602   fi
20603   as_test_x='
20604     eval sh -c '\''
20605       if test -d "$1"; then
20606         test -d "$1/.";
20607       else
20608         case $1 in #(
20609         -*)set "./$1";;
20610         esac;
20611         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20612         ???[sx]*):;;*)false;;esac;fi
20613     '\'' sh
20614   '
20615 fi
20616 as_executable_p=$as_test_x
20617
20618 # Sed expression to map a string onto a valid CPP name.
20619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20620
20621 # Sed expression to map a string onto a valid variable name.
20622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20623
20624
20625 exec 6>&1
20626 ## ----------------------------------- ##
20627 ## Main body of $CONFIG_STATUS script. ##
20628 ## ----------------------------------- ##
20629 _ASEOF
20630 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20631
20632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20633 # Save the log message, to keep $0 and so on meaningful, and to
20634 # report actual input values of CONFIG_FILES etc. instead of their
20635 # values after options handling.
20636 ac_log="
20637 This file was extended by linux nfs-utils $as_me 1.2.3, which was
20638 generated by GNU Autoconf 2.65.  Invocation command line was
20639
20640   CONFIG_FILES    = $CONFIG_FILES
20641   CONFIG_HEADERS  = $CONFIG_HEADERS
20642   CONFIG_LINKS    = $CONFIG_LINKS
20643   CONFIG_COMMANDS = $CONFIG_COMMANDS
20644   $ $0 $@
20645
20646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20647 "
20648
20649 _ACEOF
20650
20651 case $ac_config_files in *"
20652 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20653 esac
20654
20655 case $ac_config_headers in *"
20656 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20657 esac
20658
20659
20660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20661 # Files that config.status was made for.
20662 config_files="$ac_config_files"
20663 config_headers="$ac_config_headers"
20664 config_commands="$ac_config_commands"
20665
20666 _ACEOF
20667
20668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20669 ac_cs_usage="\
20670 \`$as_me' instantiates files and other configuration actions
20671 from templates according to the current configuration.  Unless the files
20672 and actions are specified as TAGs, all are instantiated by default.
20673
20674 Usage: $0 [OPTION]... [TAG]...
20675
20676   -h, --help       print this help, then exit
20677   -V, --version    print version number and configuration settings, then exit
20678       --config     print configuration, then exit
20679   -q, --quiet, --silent
20680                    do not print progress messages
20681   -d, --debug      don't remove temporary files
20682       --recheck    update $as_me by reconfiguring in the same conditions
20683       --file=FILE[:TEMPLATE]
20684                    instantiate the configuration file FILE
20685       --header=FILE[:TEMPLATE]
20686                    instantiate the configuration header FILE
20687
20688 Configuration files:
20689 $config_files
20690
20691 Configuration headers:
20692 $config_headers
20693
20694 Configuration commands:
20695 $config_commands
20696
20697 Report bugs to <linux-nfs@vger.kernel.org>."
20698
20699 _ACEOF
20700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20701 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20702 ac_cs_version="\\
20703 linux nfs-utils config.status 1.2.3
20704 configured by $0, generated by GNU Autoconf 2.65,
20705   with options \\"\$ac_cs_config\\"
20706
20707 Copyright (C) 2009 Free Software Foundation, Inc.
20708 This config.status script is free software; the Free Software Foundation
20709 gives unlimited permission to copy, distribute and modify it."
20710
20711 ac_pwd='$ac_pwd'
20712 srcdir='$srcdir'
20713 INSTALL='$INSTALL'
20714 MKDIR_P='$MKDIR_P'
20715 AWK='$AWK'
20716 test -n "\$AWK" || AWK=awk
20717 _ACEOF
20718
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720 # The default lists apply if the user does not specify any file.
20721 ac_need_defaults=:
20722 while test $# != 0
20723 do
20724   case $1 in
20725   --*=*)
20726     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20727     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20728     ac_shift=:
20729     ;;
20730   *)
20731     ac_option=$1
20732     ac_optarg=$2
20733     ac_shift=shift
20734     ;;
20735   esac
20736
20737   case $ac_option in
20738   # Handling of the options.
20739   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20740     ac_cs_recheck=: ;;
20741   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20742     $as_echo "$ac_cs_version"; exit ;;
20743   --config | --confi | --conf | --con | --co | --c )
20744     $as_echo "$ac_cs_config"; exit ;;
20745   --debug | --debu | --deb | --de | --d | -d )
20746     debug=: ;;
20747   --file | --fil | --fi | --f )
20748     $ac_shift
20749     case $ac_optarg in
20750     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20751     esac
20752     as_fn_append CONFIG_FILES " '$ac_optarg'"
20753     ac_need_defaults=false;;
20754   --header | --heade | --head | --hea )
20755     $ac_shift
20756     case $ac_optarg in
20757     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20758     esac
20759     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20760     ac_need_defaults=false;;
20761   --he | --h)
20762     # Conflict between --help and --header
20763     as_fn_error "ambiguous option: \`$1'
20764 Try \`$0 --help' for more information.";;
20765   --help | --hel | -h )
20766     $as_echo "$ac_cs_usage"; exit ;;
20767   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20768   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20769     ac_cs_silent=: ;;
20770
20771   # This is an error.
20772   -*) as_fn_error "unrecognized option: \`$1'
20773 Try \`$0 --help' for more information." ;;
20774
20775   *) as_fn_append ac_config_targets " $1"
20776      ac_need_defaults=false ;;
20777
20778   esac
20779   shift
20780 done
20781
20782 ac_configure_extra_args=
20783
20784 if $ac_cs_silent; then
20785   exec 6>/dev/null
20786   ac_configure_extra_args="$ac_configure_extra_args --silent"
20787 fi
20788
20789 _ACEOF
20790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20791 if \$ac_cs_recheck; then
20792   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20793   shift
20794   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20795   CONFIG_SHELL='$SHELL'
20796   export CONFIG_SHELL
20797   exec "\$@"
20798 fi
20799
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20802 exec 5>>config.log
20803 {
20804   echo
20805   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20806 ## Running $as_me. ##
20807 _ASBOX
20808   $as_echo "$ac_log"
20809 } >&5
20810
20811 _ACEOF
20812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20813 #
20814 # INIT-COMMANDS
20815 #
20816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20817
20818
20819 # The HP-UX ksh and POSIX shell print the target directory to stdout
20820 # if CDPATH is set.
20821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20822
20823 sed_quote_subst='$sed_quote_subst'
20824 double_quote_subst='$double_quote_subst'
20825 delay_variable_subst='$delay_variable_subst'
20826 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20827 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20828 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20829 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20830 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20831 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20832 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20833 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20834 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20835 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20836 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20837 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20838 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20839 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20840 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20841 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20842 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20843 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20844 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20845 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20846 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20847 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20848 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20849 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20850 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20851 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20852 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20853 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20854 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20855 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20856 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20857 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20858 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20859 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20860 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20861 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20862 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20863 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20864 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20865 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20866 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20867 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20868 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20869 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20870 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"`'
20871 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"`'
20872 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20873 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20874 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20875 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20876 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20877 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20878 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20879 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20880 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20881 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20882 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20883 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20884 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20885 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20886 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20887 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20888 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20889 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20890 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20891 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20892 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20893 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20894 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20895 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20896 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20897 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20898 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20899 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20900 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20901 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20902 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20903 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20904 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20905 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20906 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20907 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20908 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20909 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20910 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20911 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20912 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20913 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20914 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20915 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20916 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20917 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20918 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20919 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20920 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20921 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20922 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20923 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20924 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20925 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20926 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20927 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20928 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20929 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20930 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20931 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20932 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20933 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20934 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20935 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20936 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20937 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20938 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20939 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20940 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20941 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20942 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20943 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20944 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20945 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20946 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20947 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20948 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20949 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20950 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20951 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20952 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20953 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20954 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20955 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20956 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20957 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20958 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20959 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20960 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20961 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20962 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20963 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20964 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20965 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20966 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20967 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20968 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20969 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20970 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20971 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20972 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20973 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20974 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20975 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20976 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20977 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20978 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20979 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20980 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20981 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20982 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20983 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20984 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20985 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20986 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20987 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20988 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20989 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20990 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20991 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20992 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20993 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20994 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20995 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20996 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20997
20998 LTCC='$LTCC'
20999 LTCFLAGS='$LTCFLAGS'
21000 compiler='$compiler_DEFAULT'
21001
21002 # Quote evaled strings.
21003 for var in SED \
21004 GREP \
21005 EGREP \
21006 FGREP \
21007 LD \
21008 NM \
21009 LN_S \
21010 lt_SP2NL \
21011 lt_NL2SP \
21012 reload_flag \
21013 OBJDUMP \
21014 deplibs_check_method \
21015 file_magic_cmd \
21016 AR \
21017 AR_FLAGS \
21018 STRIP \
21019 RANLIB \
21020 CC \
21021 CFLAGS \
21022 compiler \
21023 lt_cv_sys_global_symbol_pipe \
21024 lt_cv_sys_global_symbol_to_cdecl \
21025 lt_cv_sys_global_symbol_to_c_name_address \
21026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21027 SHELL \
21028 ECHO \
21029 lt_prog_compiler_no_builtin_flag \
21030 lt_prog_compiler_wl \
21031 lt_prog_compiler_pic \
21032 lt_prog_compiler_static \
21033 lt_cv_prog_compiler_c_o \
21034 need_locks \
21035 DSYMUTIL \
21036 NMEDIT \
21037 LIPO \
21038 OTOOL \
21039 OTOOL64 \
21040 shrext_cmds \
21041 export_dynamic_flag_spec \
21042 whole_archive_flag_spec \
21043 compiler_needs_object \
21044 with_gnu_ld \
21045 allow_undefined_flag \
21046 no_undefined_flag \
21047 hardcode_libdir_flag_spec \
21048 hardcode_libdir_flag_spec_ld \
21049 hardcode_libdir_separator \
21050 fix_srcfile_path \
21051 exclude_expsyms \
21052 include_expsyms \
21053 file_list_spec \
21054 variables_saved_for_relink \
21055 libname_spec \
21056 library_names_spec \
21057 soname_spec \
21058 finish_eval \
21059 old_striplib \
21060 striplib \
21061 compiler_lib_search_dirs \
21062 predep_objects \
21063 postdep_objects \
21064 predeps \
21065 postdeps \
21066 compiler_lib_search_path \
21067 LD_CXX \
21068 compiler_CXX \
21069 lt_prog_compiler_no_builtin_flag_CXX \
21070 lt_prog_compiler_wl_CXX \
21071 lt_prog_compiler_pic_CXX \
21072 lt_prog_compiler_static_CXX \
21073 lt_cv_prog_compiler_c_o_CXX \
21074 export_dynamic_flag_spec_CXX \
21075 whole_archive_flag_spec_CXX \
21076 compiler_needs_object_CXX \
21077 with_gnu_ld_CXX \
21078 allow_undefined_flag_CXX \
21079 no_undefined_flag_CXX \
21080 hardcode_libdir_flag_spec_CXX \
21081 hardcode_libdir_flag_spec_ld_CXX \
21082 hardcode_libdir_separator_CXX \
21083 fix_srcfile_path_CXX \
21084 exclude_expsyms_CXX \
21085 include_expsyms_CXX \
21086 file_list_spec_CXX \
21087 compiler_lib_search_dirs_CXX \
21088 predep_objects_CXX \
21089 postdep_objects_CXX \
21090 predeps_CXX \
21091 postdeps_CXX \
21092 compiler_lib_search_path_CXX; do
21093     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21094     *[\\\\\\\`\\"\\\$]*)
21095       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21096       ;;
21097     *)
21098       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21099       ;;
21100     esac
21101 done
21102
21103 # Double-quote double-evaled strings.
21104 for var in reload_cmds \
21105 old_postinstall_cmds \
21106 old_postuninstall_cmds \
21107 old_archive_cmds \
21108 extract_expsyms_cmds \
21109 old_archive_from_new_cmds \
21110 old_archive_from_expsyms_cmds \
21111 archive_cmds \
21112 archive_expsym_cmds \
21113 module_cmds \
21114 module_expsym_cmds \
21115 export_symbols_cmds \
21116 prelink_cmds \
21117 postinstall_cmds \
21118 postuninstall_cmds \
21119 finish_cmds \
21120 sys_lib_search_path_spec \
21121 sys_lib_dlsearch_path_spec \
21122 old_archive_cmds_CXX \
21123 old_archive_from_new_cmds_CXX \
21124 old_archive_from_expsyms_cmds_CXX \
21125 archive_cmds_CXX \
21126 archive_expsym_cmds_CXX \
21127 module_cmds_CXX \
21128 module_expsym_cmds_CXX \
21129 export_symbols_cmds_CXX \
21130 prelink_cmds_CXX; do
21131     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21132     *[\\\\\\\`\\"\\\$]*)
21133       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21134       ;;
21135     *)
21136       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21137       ;;
21138     esac
21139 done
21140
21141 # Fix-up fallback echo if it was mangled by the above quoting rules.
21142 case \$lt_ECHO in
21143 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21144   ;;
21145 esac
21146
21147 ac_aux_dir='$ac_aux_dir'
21148 xsi_shell='$xsi_shell'
21149 lt_shell_append='$lt_shell_append'
21150
21151 # See if we are running on zsh, and set the options which allow our
21152 # commands through without removal of \ escapes INIT.
21153 if test -n "\${ZSH_VERSION+set}" ; then
21154    setopt NO_GLOB_SUBST
21155 fi
21156
21157
21158     PACKAGE='$PACKAGE'
21159     VERSION='$VERSION'
21160     TIMESTAMP='$TIMESTAMP'
21161     RM='$RM'
21162     ofile='$ofile'
21163
21164
21165
21166
21167
21168
21169 _ACEOF
21170
21171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21172
21173 # Handling of arguments.
21174 for ac_config_target in $ac_config_targets
21175 do
21176   case $ac_config_target in
21177     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21178     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
21179     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21180     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21181     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
21182     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
21183     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
21184     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
21185     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
21186     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
21187     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
21188     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
21189     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
21190     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
21191     "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
21192     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21193     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
21194     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
21195     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
21196     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
21197     "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
21198     "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
21199     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21200     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
21201     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
21202     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
21203     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
21204     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
21205     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
21206     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
21207     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
21208     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
21209     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21210     "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
21211
21212   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21213   esac
21214 done
21215
21216
21217 # If the user did not use the arguments to specify the items to instantiate,
21218 # then the envvar interface is used.  Set only those that are not.
21219 # We use the long form for the default assignment because of an extremely
21220 # bizarre bug on SunOS 4.1.3.
21221 if $ac_need_defaults; then
21222   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21223   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21224   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21225 fi
21226
21227 # Have a temporary directory for convenience.  Make it in the build tree
21228 # simply because there is no reason against having it here, and in addition,
21229 # creating and moving files from /tmp can sometimes cause problems.
21230 # Hook for its removal unless debugging.
21231 # Note that there is a small window in which the directory will not be cleaned:
21232 # after its creation but before its name has been assigned to `$tmp'.
21233 $debug ||
21234 {
21235   tmp=
21236   trap 'exit_status=$?
21237   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21238 ' 0
21239   trap 'as_fn_exit 1' 1 2 13 15
21240 }
21241 # Create a (secure) tmp directory for tmp files.
21242
21243 {
21244   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21245   test -n "$tmp" && test -d "$tmp"
21246 }  ||
21247 {
21248   tmp=./conf$$-$RANDOM
21249   (umask 077 && mkdir "$tmp")
21250 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21251
21252 # Set up the scripts for CONFIG_FILES section.
21253 # No need to generate them if there are no CONFIG_FILES.
21254 # This happens for instance with `./config.status config.h'.
21255 if test -n "$CONFIG_FILES"; then
21256
21257
21258 ac_cr=`echo X | tr X '\015'`
21259 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21260 # But we know of no other shell where ac_cr would be empty at this
21261 # point, so we can use a bashism as a fallback.
21262 if test "x$ac_cr" = x; then
21263   eval ac_cr=\$\'\\r\'
21264 fi
21265 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21267   ac_cs_awk_cr='\r'
21268 else
21269   ac_cs_awk_cr=$ac_cr
21270 fi
21271
21272 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21273 _ACEOF
21274
21275
21276 {
21277   echo "cat >conf$$subs.awk <<_ACEOF" &&
21278   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21279   echo "_ACEOF"
21280 } >conf$$subs.sh ||
21281   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21283 ac_delim='%!_!# '
21284 for ac_last_try in false false false false false :; do
21285   . ./conf$$subs.sh ||
21286     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21287
21288   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21289   if test $ac_delim_n = $ac_delim_num; then
21290     break
21291   elif $ac_last_try; then
21292     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21293   else
21294     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21295   fi
21296 done
21297 rm -f conf$$subs.sh
21298
21299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21300 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21301 _ACEOF
21302 sed -n '
21303 h
21304 s/^/S["/; s/!.*/"]=/
21305 p
21306 g
21307 s/^[^!]*!//
21308 :repl
21309 t repl
21310 s/'"$ac_delim"'$//
21311 t delim
21312 :nl
21313 h
21314 s/\(.\{148\}\)..*/\1/
21315 t more1
21316 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21317 p
21318 n
21319 b repl
21320 :more1
21321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21322 p
21323 g
21324 s/.\{148\}//
21325 t nl
21326 :delim
21327 h
21328 s/\(.\{148\}\)..*/\1/
21329 t more2
21330 s/["\\]/\\&/g; s/^/"/; s/$/"/
21331 p
21332 b
21333 :more2
21334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21335 p
21336 g
21337 s/.\{148\}//
21338 t delim
21339 ' <conf$$subs.awk | sed '
21340 /^[^""]/{
21341   N
21342   s/\n//
21343 }
21344 ' >>$CONFIG_STATUS || ac_write_fail=1
21345 rm -f conf$$subs.awk
21346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21347 _ACAWK
21348 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21349   for (key in S) S_is_set[key] = 1
21350   FS = "\a"
21351
21352 }
21353 {
21354   line = $ 0
21355   nfields = split(line, field, "@")
21356   substed = 0
21357   len = length(field[1])
21358   for (i = 2; i < nfields; i++) {
21359     key = field[i]
21360     keylen = length(key)
21361     if (S_is_set[key]) {
21362       value = S[key]
21363       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21364       len += length(value) + length(field[++i])
21365       substed = 1
21366     } else
21367       len += 1 + keylen
21368   }
21369
21370   print line
21371 }
21372
21373 _ACAWK
21374 _ACEOF
21375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21377   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21378 else
21379   cat
21380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21381   || as_fn_error "could not setup config files machinery" "$LINENO" 5
21382 _ACEOF
21383
21384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21386 # trailing colons and then remove the whole line if VPATH becomes empty
21387 # (actually we leave an empty line to preserve line numbers).
21388 if test "x$srcdir" = x.; then
21389   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21390 s/:*\$(srcdir):*/:/
21391 s/:*\${srcdir}:*/:/
21392 s/:*@srcdir@:*/:/
21393 s/^\([^=]*=[     ]*\):*/\1/
21394 s/:*$//
21395 s/^[^=]*=[       ]*$//
21396 }'
21397 fi
21398
21399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21400 fi # test -n "$CONFIG_FILES"
21401
21402 # Set up the scripts for CONFIG_HEADERS section.
21403 # No need to generate them if there are no CONFIG_HEADERS.
21404 # This happens for instance with `./config.status Makefile'.
21405 if test -n "$CONFIG_HEADERS"; then
21406 cat >"$tmp/defines.awk" <<\_ACAWK ||
21407 BEGIN {
21408 _ACEOF
21409
21410 # Transform confdefs.h into an awk script `defines.awk', embedded as
21411 # here-document in config.status, that substitutes the proper values into
21412 # config.h.in to produce config.h.
21413
21414 # Create a delimiter string that does not exist in confdefs.h, to ease
21415 # handling of long lines.
21416 ac_delim='%!_!# '
21417 for ac_last_try in false false :; do
21418   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21419   if test -z "$ac_t"; then
21420     break
21421   elif $ac_last_try; then
21422     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21423   else
21424     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21425   fi
21426 done
21427
21428 # For the awk script, D is an array of macro values keyed by name,
21429 # likewise P contains macro parameters if any.  Preserve backslash
21430 # newline sequences.
21431
21432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21433 sed -n '
21434 s/.\{148\}/&'"$ac_delim"'/g
21435 t rset
21436 :rset
21437 s/^[     ]*#[    ]*define[       ][      ]*/ /
21438 t def
21439 d
21440 :def
21441 s/\\$//
21442 t bsnl
21443 s/["\\]/\\&/g
21444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21445 D["\1"]=" \3"/p
21446 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21447 d
21448 :bsnl
21449 s/["\\]/\\&/g
21450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21451 D["\1"]=" \3\\\\\\n"\\/p
21452 t cont
21453 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21454 t cont
21455 d
21456 :cont
21457 n
21458 s/.\{148\}/&'"$ac_delim"'/g
21459 t clear
21460 :clear
21461 s/\\$//
21462 t bsnlc
21463 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21464 d
21465 :bsnlc
21466 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21467 b cont
21468 ' <confdefs.h | sed '
21469 s/'"$ac_delim"'/"\\\
21470 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21471
21472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21473   for (key in D) D_is_set[key] = 1
21474   FS = "\a"
21475 }
21476 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21477   line = \$ 0
21478   split(line, arg, " ")
21479   if (arg[1] == "#") {
21480     defundef = arg[2]
21481     mac1 = arg[3]
21482   } else {
21483     defundef = substr(arg[1], 2)
21484     mac1 = arg[2]
21485   }
21486   split(mac1, mac2, "(") #)
21487   macro = mac2[1]
21488   prefix = substr(line, 1, index(line, defundef) - 1)
21489   if (D_is_set[macro]) {
21490     # Preserve the white space surrounding the "#".
21491     print prefix "define", macro P[macro] D[macro]
21492     next
21493   } else {
21494     # Replace #undef with comments.  This is necessary, for example,
21495     # in the case of _POSIX_SOURCE, which is predefined and required
21496     # on some systems where configure will not decide to define it.
21497     if (defundef == "undef") {
21498       print "/*", prefix defundef, macro, "*/"
21499       next
21500     }
21501   }
21502 }
21503 { print }
21504 _ACAWK
21505 _ACEOF
21506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21507   as_fn_error "could not setup config headers machinery" "$LINENO" 5
21508 fi # test -n "$CONFIG_HEADERS"
21509
21510
21511 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21512 shift
21513 for ac_tag
21514 do
21515   case $ac_tag in
21516   :[FHLC]) ac_mode=$ac_tag; continue;;
21517   esac
21518   case $ac_mode$ac_tag in
21519   :[FHL]*:*);;
21520   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21521   :[FH]-) ac_tag=-:-;;
21522   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21523   esac
21524   ac_save_IFS=$IFS
21525   IFS=:
21526   set x $ac_tag
21527   IFS=$ac_save_IFS
21528   shift
21529   ac_file=$1
21530   shift
21531
21532   case $ac_mode in
21533   :L) ac_source=$1;;
21534   :[FH])
21535     ac_file_inputs=
21536     for ac_f
21537     do
21538       case $ac_f in
21539       -) ac_f="$tmp/stdin";;
21540       *) # Look for the file first in the build tree, then in the source tree
21541          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21542          # because $ac_f cannot contain `:'.
21543          test -f "$ac_f" ||
21544            case $ac_f in
21545            [\\/$]*) false;;
21546            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21547            esac ||
21548            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21549       esac
21550       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21551       as_fn_append ac_file_inputs " '$ac_f'"
21552     done
21553
21554     # Let's still pretend it is `configure' which instantiates (i.e., don't
21555     # use $as_me), people would be surprised to read:
21556     #    /* config.h.  Generated by config.status.  */
21557     configure_input='Generated from '`
21558           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21559         `' by configure.'
21560     if test x"$ac_file" != x-; then
21561       configure_input="$ac_file.  $configure_input"
21562       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21563 $as_echo "$as_me: creating $ac_file" >&6;}
21564     fi
21565     # Neutralize special characters interpreted by sed in replacement strings.
21566     case $configure_input in #(
21567     *\&* | *\|* | *\\* )
21568        ac_sed_conf_input=`$as_echo "$configure_input" |
21569        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21570     *) ac_sed_conf_input=$configure_input;;
21571     esac
21572
21573     case $ac_tag in
21574     *:-:* | *:-) cat >"$tmp/stdin" \
21575       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21576     esac
21577     ;;
21578   esac
21579
21580   ac_dir=`$as_dirname -- "$ac_file" ||
21581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21582          X"$ac_file" : 'X\(//\)[^/]' \| \
21583          X"$ac_file" : 'X\(//\)$' \| \
21584          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21585 $as_echo X"$ac_file" |
21586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21587             s//\1/
21588             q
21589           }
21590           /^X\(\/\/\)[^/].*/{
21591             s//\1/
21592             q
21593           }
21594           /^X\(\/\/\)$/{
21595             s//\1/
21596             q
21597           }
21598           /^X\(\/\).*/{
21599             s//\1/
21600             q
21601           }
21602           s/.*/./; q'`
21603   as_dir="$ac_dir"; as_fn_mkdir_p
21604   ac_builddir=.
21605
21606 case "$ac_dir" in
21607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21608 *)
21609   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21610   # A ".." for each directory in $ac_dir_suffix.
21611   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21612   case $ac_top_builddir_sub in
21613   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21614   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21615   esac ;;
21616 esac
21617 ac_abs_top_builddir=$ac_pwd
21618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21619 # for backward compatibility:
21620 ac_top_builddir=$ac_top_build_prefix
21621
21622 case $srcdir in
21623   .)  # We are building in place.
21624     ac_srcdir=.
21625     ac_top_srcdir=$ac_top_builddir_sub
21626     ac_abs_top_srcdir=$ac_pwd ;;
21627   [\\/]* | ?:[\\/]* )  # Absolute name.
21628     ac_srcdir=$srcdir$ac_dir_suffix;
21629     ac_top_srcdir=$srcdir
21630     ac_abs_top_srcdir=$srcdir ;;
21631   *) # Relative name.
21632     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21633     ac_top_srcdir=$ac_top_build_prefix$srcdir
21634     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21635 esac
21636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21637
21638
21639   case $ac_mode in
21640   :F)
21641   #
21642   # CONFIG_FILE
21643   #
21644
21645   case $INSTALL in
21646   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21647   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21648   esac
21649   ac_MKDIR_P=$MKDIR_P
21650   case $MKDIR_P in
21651   [\\/$]* | ?:[\\/]* ) ;;
21652   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21653   esac
21654 _ACEOF
21655
21656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21657 # If the template does not know about datarootdir, expand it.
21658 # FIXME: This hack should be removed a few years after 2.60.
21659 ac_datarootdir_hack=; ac_datarootdir_seen=
21660 ac_sed_dataroot='
21661 /datarootdir/ {
21662   p
21663   q
21664 }
21665 /@datadir@/p
21666 /@docdir@/p
21667 /@infodir@/p
21668 /@localedir@/p
21669 /@mandir@/p'
21670 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21671 *datarootdir*) ac_datarootdir_seen=yes;;
21672 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21674 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21675 _ACEOF
21676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21677   ac_datarootdir_hack='
21678   s&@datadir@&$datadir&g
21679   s&@docdir@&$docdir&g
21680   s&@infodir@&$infodir&g
21681   s&@localedir@&$localedir&g
21682   s&@mandir@&$mandir&g
21683   s&\\\${datarootdir}&$datarootdir&g' ;;
21684 esac
21685 _ACEOF
21686
21687 # Neutralize VPATH when `$srcdir' = `.'.
21688 # Shell code in configure.ac might set extrasub.
21689 # FIXME: do we really want to maintain this feature?
21690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21691 ac_sed_extra="$ac_vpsub
21692 $extrasub
21693 _ACEOF
21694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21695 :t
21696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21697 s|@configure_input@|$ac_sed_conf_input|;t t
21698 s&@top_builddir@&$ac_top_builddir_sub&;t t
21699 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21700 s&@srcdir@&$ac_srcdir&;t t
21701 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21702 s&@top_srcdir@&$ac_top_srcdir&;t t
21703 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21704 s&@builddir@&$ac_builddir&;t t
21705 s&@abs_builddir@&$ac_abs_builddir&;t t
21706 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21707 s&@INSTALL@&$ac_INSTALL&;t t
21708 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21709 $ac_datarootdir_hack
21710 "
21711 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21712   || as_fn_error "could not create $ac_file" "$LINENO" 5
21713
21714 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21715   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21716   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21717   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21718 which seems to be undefined.  Please make sure it is defined." >&5
21719 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21720 which seems to be undefined.  Please make sure it is defined." >&2;}
21721
21722   rm -f "$tmp/stdin"
21723   case $ac_file in
21724   -) cat "$tmp/out" && rm -f "$tmp/out";;
21725   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21726   esac \
21727   || as_fn_error "could not create $ac_file" "$LINENO" 5
21728  ;;
21729   :H)
21730   #
21731   # CONFIG_HEADER
21732   #
21733   if test x"$ac_file" != x-; then
21734     {
21735       $as_echo "/* $configure_input  */" \
21736       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21737     } >"$tmp/config.h" \
21738       || as_fn_error "could not create $ac_file" "$LINENO" 5
21739     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21740       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21741 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21742     else
21743       rm -f "$ac_file"
21744       mv "$tmp/config.h" "$ac_file" \
21745         || as_fn_error "could not create $ac_file" "$LINENO" 5
21746     fi
21747   else
21748     $as_echo "/* $configure_input  */" \
21749       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21750       || as_fn_error "could not create -" "$LINENO" 5
21751   fi
21752 # Compute "$ac_file"'s index in $config_headers.
21753 _am_arg="$ac_file"
21754 _am_stamp_count=1
21755 for _am_header in $config_headers :; do
21756   case $_am_header in
21757     $_am_arg | $_am_arg:* )
21758       break ;;
21759     * )
21760       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21761   esac
21762 done
21763 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21764 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21765          X"$_am_arg" : 'X\(//\)[^/]' \| \
21766          X"$_am_arg" : 'X\(//\)$' \| \
21767          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21768 $as_echo X"$_am_arg" |
21769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21770             s//\1/
21771             q
21772           }
21773           /^X\(\/\/\)[^/].*/{
21774             s//\1/
21775             q
21776           }
21777           /^X\(\/\/\)$/{
21778             s//\1/
21779             q
21780           }
21781           /^X\(\/\).*/{
21782             s//\1/
21783             q
21784           }
21785           s/.*/./; q'`/stamp-h$_am_stamp_count
21786  ;;
21787
21788   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21789 $as_echo "$as_me: executing $ac_file commands" >&6;}
21790  ;;
21791   esac
21792
21793
21794   case $ac_file$ac_mode in
21795     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21796   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21797   # are listed without --file.  Let's play safe and only enable the eval
21798   # if we detect the quoting.
21799   case $CONFIG_FILES in
21800   *\'*) eval set x "$CONFIG_FILES" ;;
21801   *)   set x $CONFIG_FILES ;;
21802   esac
21803   shift
21804   for mf
21805   do
21806     # Strip MF so we end up with the name of the file.
21807     mf=`echo "$mf" | sed -e 's/:.*$//'`
21808     # Check whether this is an Automake generated Makefile or not.
21809     # We used to match only the files named `Makefile.in', but
21810     # some people rename them; so instead we look at the file content.
21811     # Grep'ing the first line is not enough: some people post-process
21812     # each Makefile.in and add a new line on top of each file to say so.
21813     # Grep'ing the whole file is not good either: AIX grep has a line
21814     # limit of 2048, but all sed's we know have understand at least 4000.
21815     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21816       dirpart=`$as_dirname -- "$mf" ||
21817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21818          X"$mf" : 'X\(//\)[^/]' \| \
21819          X"$mf" : 'X\(//\)$' \| \
21820          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21821 $as_echo X"$mf" |
21822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21823             s//\1/
21824             q
21825           }
21826           /^X\(\/\/\)[^/].*/{
21827             s//\1/
21828             q
21829           }
21830           /^X\(\/\/\)$/{
21831             s//\1/
21832             q
21833           }
21834           /^X\(\/\).*/{
21835             s//\1/
21836             q
21837           }
21838           s/.*/./; q'`
21839     else
21840       continue
21841     fi
21842     # Extract the definition of DEPDIR, am__include, and am__quote
21843     # from the Makefile without running `make'.
21844     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21845     test -z "$DEPDIR" && continue
21846     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21847     test -z "am__include" && continue
21848     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21849     # When using ansi2knr, U may be empty or an underscore; expand it
21850     U=`sed -n 's/^U = //p' < "$mf"`
21851     # Find all dependency output files, they are included files with
21852     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21853     # simplest approach to changing $(DEPDIR) to its actual value in the
21854     # expansion.
21855     for file in `sed -n "
21856       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21857          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21858       # Make sure the directory exists.
21859       test -f "$dirpart/$file" && continue
21860       fdir=`$as_dirname -- "$file" ||
21861 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21862          X"$file" : 'X\(//\)[^/]' \| \
21863          X"$file" : 'X\(//\)$' \| \
21864          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21865 $as_echo X"$file" |
21866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21867             s//\1/
21868             q
21869           }
21870           /^X\(\/\/\)[^/].*/{
21871             s//\1/
21872             q
21873           }
21874           /^X\(\/\/\)$/{
21875             s//\1/
21876             q
21877           }
21878           /^X\(\/\).*/{
21879             s//\1/
21880             q
21881           }
21882           s/.*/./; q'`
21883       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21884       # echo "creating $dirpart/$file"
21885       echo '# dummy' > "$dirpart/$file"
21886     done
21887   done
21888 }
21889  ;;
21890     "libtool":C)
21891
21892     # See if we are running on zsh, and set the options which allow our
21893     # commands through without removal of \ escapes.
21894     if test -n "${ZSH_VERSION+set}" ; then
21895       setopt NO_GLOB_SUBST
21896     fi
21897
21898     cfgfile="${ofile}T"
21899     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21900     $RM "$cfgfile"
21901
21902     cat <<_LT_EOF >> "$cfgfile"
21903 #! $SHELL
21904
21905 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21906 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21908 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21909 #
21910 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21911 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21912 #   Written by Gordon Matzigkeit, 1996
21913 #
21914 #   This file is part of GNU Libtool.
21915 #
21916 # GNU Libtool is free software; you can redistribute it and/or
21917 # modify it under the terms of the GNU General Public License as
21918 # published by the Free Software Foundation; either version 2 of
21919 # the License, or (at your option) any later version.
21920 #
21921 # As a special exception to the GNU General Public License,
21922 # if you distribute this file as part of a program or library that
21923 # is built using GNU Libtool, you may include this file under the
21924 # same distribution terms that you use for the rest of that program.
21925 #
21926 # GNU Libtool is distributed in the hope that it will be useful,
21927 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21928 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21929 # GNU General Public License for more details.
21930 #
21931 # You should have received a copy of the GNU General Public License
21932 # along with GNU Libtool; see the file COPYING.  If not, a copy
21933 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21934 # obtained by writing to the Free Software Foundation, Inc.,
21935 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21936
21937
21938 # The names of the tagged configurations supported by this script.
21939 available_tags="CXX "
21940
21941 # ### BEGIN LIBTOOL CONFIG
21942
21943 # Which release of libtool.m4 was used?
21944 macro_version=$macro_version
21945 macro_revision=$macro_revision
21946
21947 # Whether or not to build shared libraries.
21948 build_libtool_libs=$enable_shared
21949
21950 # Whether or not to build static libraries.
21951 build_old_libs=$enable_static
21952
21953 # What type of objects to build.
21954 pic_mode=$pic_mode
21955
21956 # Whether or not to optimize for fast installation.
21957 fast_install=$enable_fast_install
21958
21959 # The host system.
21960 host_alias=$host_alias
21961 host=$host
21962 host_os=$host_os
21963
21964 # The build system.
21965 build_alias=$build_alias
21966 build=$build
21967 build_os=$build_os
21968
21969 # A sed program that does not truncate output.
21970 SED=$lt_SED
21971
21972 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21973 Xsed="\$SED -e 1s/^X//"
21974
21975 # A grep program that handles long lines.
21976 GREP=$lt_GREP
21977
21978 # An ERE matcher.
21979 EGREP=$lt_EGREP
21980
21981 # A literal string matcher.
21982 FGREP=$lt_FGREP
21983
21984 # A BSD- or MS-compatible name lister.
21985 NM=$lt_NM
21986
21987 # Whether we need soft or hard links.
21988 LN_S=$lt_LN_S
21989
21990 # What is the maximum length of a command?
21991 max_cmd_len=$max_cmd_len
21992
21993 # Object file suffix (normally "o").
21994 objext=$ac_objext
21995
21996 # Executable file suffix (normally "").
21997 exeext=$exeext
21998
21999 # whether the shell understands "unset".
22000 lt_unset=$lt_unset
22001
22002 # turn spaces into newlines.
22003 SP2NL=$lt_lt_SP2NL
22004
22005 # turn newlines into spaces.
22006 NL2SP=$lt_lt_NL2SP
22007
22008 # How to create reloadable object files.
22009 reload_flag=$lt_reload_flag
22010 reload_cmds=$lt_reload_cmds
22011
22012 # An object symbol dumper.
22013 OBJDUMP=$lt_OBJDUMP
22014
22015 # Method to check whether dependent libraries are shared objects.
22016 deplibs_check_method=$lt_deplibs_check_method
22017
22018 # Command to use when deplibs_check_method == "file_magic".
22019 file_magic_cmd=$lt_file_magic_cmd
22020
22021 # The archiver.
22022 AR=$lt_AR
22023 AR_FLAGS=$lt_AR_FLAGS
22024
22025 # A symbol stripping program.
22026 STRIP=$lt_STRIP
22027
22028 # Commands used to install an old-style archive.
22029 RANLIB=$lt_RANLIB
22030 old_postinstall_cmds=$lt_old_postinstall_cmds
22031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22032
22033 # A C compiler.
22034 LTCC=$lt_CC
22035
22036 # LTCC compiler flags.
22037 LTCFLAGS=$lt_CFLAGS
22038
22039 # Take the output of nm and produce a listing of raw symbols and C names.
22040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22041
22042 # Transform the output of nm in a proper C declaration.
22043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22044
22045 # Transform the output of nm in a C name address pair.
22046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22047
22048 # Transform the output of nm in a C name address pair when lib prefix is needed.
22049 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22050
22051 # The name of the directory that contains temporary libtool files.
22052 objdir=$objdir
22053
22054 # Shell to use when invoking shell scripts.
22055 SHELL=$lt_SHELL
22056
22057 # An echo program that does not interpret backslashes.
22058 ECHO=$lt_ECHO
22059
22060 # Used to examine libraries when file_magic_cmd begins with "file".
22061 MAGIC_CMD=$MAGIC_CMD
22062
22063 # Must we lock files when doing compilation?
22064 need_locks=$lt_need_locks
22065
22066 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22067 DSYMUTIL=$lt_DSYMUTIL
22068
22069 # Tool to change global to local symbols on Mac OS X.
22070 NMEDIT=$lt_NMEDIT
22071
22072 # Tool to manipulate fat objects and archives on Mac OS X.
22073 LIPO=$lt_LIPO
22074
22075 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22076 OTOOL=$lt_OTOOL
22077
22078 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22079 OTOOL64=$lt_OTOOL64
22080
22081 # Old archive suffix (normally "a").
22082 libext=$libext
22083
22084 # Shared library suffix (normally ".so").
22085 shrext_cmds=$lt_shrext_cmds
22086
22087 # The commands to extract the exported symbol list from a shared archive.
22088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22089
22090 # Variables whose values should be saved in libtool wrapper scripts and
22091 # restored at link time.
22092 variables_saved_for_relink=$lt_variables_saved_for_relink
22093
22094 # Do we need the "lib" prefix for modules?
22095 need_lib_prefix=$need_lib_prefix
22096
22097 # Do we need a version for libraries?
22098 need_version=$need_version
22099
22100 # Library versioning type.
22101 version_type=$version_type
22102
22103 # Shared library runtime path variable.
22104 runpath_var=$runpath_var
22105
22106 # Shared library path variable.
22107 shlibpath_var=$shlibpath_var
22108
22109 # Is shlibpath searched before the hard-coded library search path?
22110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22111
22112 # Format of library name prefix.
22113 libname_spec=$lt_libname_spec
22114
22115 # List of archive names.  First name is the real one, the rest are links.
22116 # The last name is the one that the linker finds with -lNAME
22117 library_names_spec=$lt_library_names_spec
22118
22119 # The coded name of the library, if different from the real name.
22120 soname_spec=$lt_soname_spec
22121
22122 # Command to use after installation of a shared archive.
22123 postinstall_cmds=$lt_postinstall_cmds
22124
22125 # Command to use after uninstallation of a shared archive.
22126 postuninstall_cmds=$lt_postuninstall_cmds
22127
22128 # Commands used to finish a libtool library installation in a directory.
22129 finish_cmds=$lt_finish_cmds
22130
22131 # As "finish_cmds", except a single script fragment to be evaled but
22132 # not shown.
22133 finish_eval=$lt_finish_eval
22134
22135 # Whether we should hardcode library paths into libraries.
22136 hardcode_into_libs=$hardcode_into_libs
22137
22138 # Compile-time system search path for libraries.
22139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22140
22141 # Run-time system search path for libraries.
22142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22143
22144 # Whether dlopen is supported.
22145 dlopen_support=$enable_dlopen
22146
22147 # Whether dlopen of programs is supported.
22148 dlopen_self=$enable_dlopen_self
22149
22150 # Whether dlopen of statically linked programs is supported.
22151 dlopen_self_static=$enable_dlopen_self_static
22152
22153 # Commands to strip libraries.
22154 old_striplib=$lt_old_striplib
22155 striplib=$lt_striplib
22156
22157
22158 # The linker used to build libraries.
22159 LD=$lt_LD
22160
22161 # Commands used to build an old-style archive.
22162 old_archive_cmds=$lt_old_archive_cmds
22163
22164 # A language specific compiler.
22165 CC=$lt_compiler
22166
22167 # Is the compiler the GNU compiler?
22168 with_gcc=$GCC
22169
22170 # Compiler flag to turn off builtin functions.
22171 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22172
22173 # How to pass a linker flag through the compiler.
22174 wl=$lt_lt_prog_compiler_wl
22175
22176 # Additional compiler flags for building library objects.
22177 pic_flag=$lt_lt_prog_compiler_pic
22178
22179 # Compiler flag to prevent dynamic linking.
22180 link_static_flag=$lt_lt_prog_compiler_static
22181
22182 # Does compiler simultaneously support -c and -o options?
22183 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22184
22185 # Whether or not to add -lc for building shared libraries.
22186 build_libtool_need_lc=$archive_cmds_need_lc
22187
22188 # Whether or not to disallow shared libs when runtime libs are static.
22189 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22190
22191 # Compiler flag to allow reflexive dlopens.
22192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22193
22194 # Compiler flag to generate shared objects directly from archives.
22195 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22196
22197 # Whether the compiler copes with passing no objects directly.
22198 compiler_needs_object=$lt_compiler_needs_object
22199
22200 # Create an old-style archive from a shared archive.
22201 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22202
22203 # Create a temporary old-style archive to link instead of a shared archive.
22204 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22205
22206 # Commands used to build a shared archive.
22207 archive_cmds=$lt_archive_cmds
22208 archive_expsym_cmds=$lt_archive_expsym_cmds
22209
22210 # Commands used to build a loadable module if different from building
22211 # a shared archive.
22212 module_cmds=$lt_module_cmds
22213 module_expsym_cmds=$lt_module_expsym_cmds
22214
22215 # Whether we are building with GNU ld or not.
22216 with_gnu_ld=$lt_with_gnu_ld
22217
22218 # Flag that allows shared libraries with undefined symbols to be built.
22219 allow_undefined_flag=$lt_allow_undefined_flag
22220
22221 # Flag that enforces no undefined symbols.
22222 no_undefined_flag=$lt_no_undefined_flag
22223
22224 # Flag to hardcode \$libdir into a binary during linking.
22225 # This must work even if \$libdir does not exist
22226 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22227
22228 # If ld is used when linking, flag to hardcode \$libdir into a binary
22229 # during linking.  This must work even if \$libdir does not exist.
22230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22231
22232 # Whether we need a single "-rpath" flag with a separated argument.
22233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22234
22235 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22236 # DIR into the resulting binary.
22237 hardcode_direct=$hardcode_direct
22238
22239 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22240 # DIR into the resulting binary and the resulting library dependency is
22241 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22242 # library is relocated.
22243 hardcode_direct_absolute=$hardcode_direct_absolute
22244
22245 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22246 # into the resulting binary.
22247 hardcode_minus_L=$hardcode_minus_L
22248
22249 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22250 # into the resulting binary.
22251 hardcode_shlibpath_var=$hardcode_shlibpath_var
22252
22253 # Set to "yes" if building a shared library automatically hardcodes DIR
22254 # into the library and all subsequent libraries and executables linked
22255 # against it.
22256 hardcode_automatic=$hardcode_automatic
22257
22258 # Set to yes if linker adds runtime paths of dependent libraries
22259 # to runtime path list.
22260 inherit_rpath=$inherit_rpath
22261
22262 # Whether libtool must link a program against all its dependency libraries.
22263 link_all_deplibs=$link_all_deplibs
22264
22265 # Fix the shell variable \$srcfile for the compiler.
22266 fix_srcfile_path=$lt_fix_srcfile_path
22267
22268 # Set to "yes" if exported symbols are required.
22269 always_export_symbols=$always_export_symbols
22270
22271 # The commands to list exported symbols.
22272 export_symbols_cmds=$lt_export_symbols_cmds
22273
22274 # Symbols that should not be listed in the preloaded symbols.
22275 exclude_expsyms=$lt_exclude_expsyms
22276
22277 # Symbols that must always be exported.
22278 include_expsyms=$lt_include_expsyms
22279
22280 # Commands necessary for linking programs (against libraries) with templates.
22281 prelink_cmds=$lt_prelink_cmds
22282
22283 # Specify filename containing input files.
22284 file_list_spec=$lt_file_list_spec
22285
22286 # How to hardcode a shared library path into an executable.
22287 hardcode_action=$hardcode_action
22288
22289 # The directories searched by this compiler when creating a shared library.
22290 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22291
22292 # Dependencies to place before and after the objects being linked to
22293 # create a shared library.
22294 predep_objects=$lt_predep_objects
22295 postdep_objects=$lt_postdep_objects
22296 predeps=$lt_predeps
22297 postdeps=$lt_postdeps
22298
22299 # The library search path used internally by the compiler when linking
22300 # a shared library.
22301 compiler_lib_search_path=$lt_compiler_lib_search_path
22302
22303 # ### END LIBTOOL CONFIG
22304
22305 _LT_EOF
22306
22307   case $host_os in
22308   aix3*)
22309     cat <<\_LT_EOF >> "$cfgfile"
22310 # AIX sometimes has problems with the GCC collect2 program.  For some
22311 # reason, if we set the COLLECT_NAMES environment variable, the problems
22312 # vanish in a puff of smoke.
22313 if test "X${COLLECT_NAMES+set}" != Xset; then
22314   COLLECT_NAMES=
22315   export COLLECT_NAMES
22316 fi
22317 _LT_EOF
22318     ;;
22319   esac
22320
22321
22322 ltmain="$ac_aux_dir/ltmain.sh"
22323
22324
22325   # We use sed instead of cat because bash on DJGPP gets confused if
22326   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22327   # text mode, it properly converts lines to CR/LF.  This bash problem
22328   # is reportedly fixed, but why not run on old versions too?
22329   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22330     || (rm -f "$cfgfile"; exit 1)
22331
22332   case $xsi_shell in
22333   yes)
22334     cat << \_LT_EOF >> "$cfgfile"
22335
22336 # func_dirname file append nondir_replacement
22337 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22338 # otherwise set result to NONDIR_REPLACEMENT.
22339 func_dirname ()
22340 {
22341   case ${1} in
22342     */*) func_dirname_result="${1%/*}${2}" ;;
22343     *  ) func_dirname_result="${3}" ;;
22344   esac
22345 }
22346
22347 # func_basename file
22348 func_basename ()
22349 {
22350   func_basename_result="${1##*/}"
22351 }
22352
22353 # func_dirname_and_basename file append nondir_replacement
22354 # perform func_basename and func_dirname in a single function
22355 # call:
22356 #   dirname:  Compute the dirname of FILE.  If nonempty,
22357 #             add APPEND to the result, otherwise set result
22358 #             to NONDIR_REPLACEMENT.
22359 #             value returned in "$func_dirname_result"
22360 #   basename: Compute filename of FILE.
22361 #             value retuned in "$func_basename_result"
22362 # Implementation must be kept synchronized with func_dirname
22363 # and func_basename. For efficiency, we do not delegate to
22364 # those functions but instead duplicate the functionality here.
22365 func_dirname_and_basename ()
22366 {
22367   case ${1} in
22368     */*) func_dirname_result="${1%/*}${2}" ;;
22369     *  ) func_dirname_result="${3}" ;;
22370   esac
22371   func_basename_result="${1##*/}"
22372 }
22373
22374 # func_stripname prefix suffix name
22375 # strip PREFIX and SUFFIX off of NAME.
22376 # PREFIX and SUFFIX must not contain globbing or regex special
22377 # characters, hashes, percent signs, but SUFFIX may contain a leading
22378 # dot (in which case that matches only a dot).
22379 func_stripname ()
22380 {
22381   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22382   # positional parameters, so assign one to ordinary parameter first.
22383   func_stripname_result=${3}
22384   func_stripname_result=${func_stripname_result#"${1}"}
22385   func_stripname_result=${func_stripname_result%"${2}"}
22386 }
22387
22388 # func_opt_split
22389 func_opt_split ()
22390 {
22391   func_opt_split_opt=${1%%=*}
22392   func_opt_split_arg=${1#*=}
22393 }
22394
22395 # func_lo2o object
22396 func_lo2o ()
22397 {
22398   case ${1} in
22399     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22400     *)    func_lo2o_result=${1} ;;
22401   esac
22402 }
22403
22404 # func_xform libobj-or-source
22405 func_xform ()
22406 {
22407   func_xform_result=${1%.*}.lo
22408 }
22409
22410 # func_arith arithmetic-term...
22411 func_arith ()
22412 {
22413   func_arith_result=$(( $* ))
22414 }
22415
22416 # func_len string
22417 # STRING may not start with a hyphen.
22418 func_len ()
22419 {
22420   func_len_result=${#1}
22421 }
22422
22423 _LT_EOF
22424     ;;
22425   *) # Bourne compatible functions.
22426     cat << \_LT_EOF >> "$cfgfile"
22427
22428 # func_dirname file append nondir_replacement
22429 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22430 # otherwise set result to NONDIR_REPLACEMENT.
22431 func_dirname ()
22432 {
22433   # Extract subdirectory from the argument.
22434   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22435   if test "X$func_dirname_result" = "X${1}"; then
22436     func_dirname_result="${3}"
22437   else
22438     func_dirname_result="$func_dirname_result${2}"
22439   fi
22440 }
22441
22442 # func_basename file
22443 func_basename ()
22444 {
22445   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22446 }
22447
22448
22449 # func_stripname prefix suffix name
22450 # strip PREFIX and SUFFIX off of NAME.
22451 # PREFIX and SUFFIX must not contain globbing or regex special
22452 # characters, hashes, percent signs, but SUFFIX may contain a leading
22453 # dot (in which case that matches only a dot).
22454 # func_strip_suffix prefix name
22455 func_stripname ()
22456 {
22457   case ${2} in
22458     .*) func_stripname_result=`$ECHO "X${3}" \
22459            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22460     *)  func_stripname_result=`$ECHO "X${3}" \
22461            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22462   esac
22463 }
22464
22465 # sed scripts:
22466 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22467 my_sed_long_arg='1s/^-[^=]*=//'
22468
22469 # func_opt_split
22470 func_opt_split ()
22471 {
22472   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22473   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22474 }
22475
22476 # func_lo2o object
22477 func_lo2o ()
22478 {
22479   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22480 }
22481
22482 # func_xform libobj-or-source
22483 func_xform ()
22484 {
22485   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22486 }
22487
22488 # func_arith arithmetic-term...
22489 func_arith ()
22490 {
22491   func_arith_result=`expr "$@"`
22492 }
22493
22494 # func_len string
22495 # STRING may not start with a hyphen.
22496 func_len ()
22497 {
22498   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22499 }
22500
22501 _LT_EOF
22502 esac
22503
22504 case $lt_shell_append in
22505   yes)
22506     cat << \_LT_EOF >> "$cfgfile"
22507
22508 # func_append var value
22509 # Append VALUE to the end of shell variable VAR.
22510 func_append ()
22511 {
22512   eval "$1+=\$2"
22513 }
22514 _LT_EOF
22515     ;;
22516   *)
22517     cat << \_LT_EOF >> "$cfgfile"
22518
22519 # func_append var value
22520 # Append VALUE to the end of shell variable VAR.
22521 func_append ()
22522 {
22523   eval "$1=\$$1\$2"
22524 }
22525
22526 _LT_EOF
22527     ;;
22528   esac
22529
22530
22531   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22532     || (rm -f "$cfgfile"; exit 1)
22533
22534   mv -f "$cfgfile" "$ofile" ||
22535     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22536   chmod +x "$ofile"
22537
22538
22539     cat <<_LT_EOF >> "$ofile"
22540
22541 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22542
22543 # The linker used to build libraries.
22544 LD=$lt_LD_CXX
22545
22546 # Commands used to build an old-style archive.
22547 old_archive_cmds=$lt_old_archive_cmds_CXX
22548
22549 # A language specific compiler.
22550 CC=$lt_compiler_CXX
22551
22552 # Is the compiler the GNU compiler?
22553 with_gcc=$GCC_CXX
22554
22555 # Compiler flag to turn off builtin functions.
22556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22557
22558 # How to pass a linker flag through the compiler.
22559 wl=$lt_lt_prog_compiler_wl_CXX
22560
22561 # Additional compiler flags for building library objects.
22562 pic_flag=$lt_lt_prog_compiler_pic_CXX
22563
22564 # Compiler flag to prevent dynamic linking.
22565 link_static_flag=$lt_lt_prog_compiler_static_CXX
22566
22567 # Does compiler simultaneously support -c and -o options?
22568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22569
22570 # Whether or not to add -lc for building shared libraries.
22571 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22572
22573 # Whether or not to disallow shared libs when runtime libs are static.
22574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22575
22576 # Compiler flag to allow reflexive dlopens.
22577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22578
22579 # Compiler flag to generate shared objects directly from archives.
22580 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22581
22582 # Whether the compiler copes with passing no objects directly.
22583 compiler_needs_object=$lt_compiler_needs_object_CXX
22584
22585 # Create an old-style archive from a shared archive.
22586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22587
22588 # Create a temporary old-style archive to link instead of a shared archive.
22589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22590
22591 # Commands used to build a shared archive.
22592 archive_cmds=$lt_archive_cmds_CXX
22593 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22594
22595 # Commands used to build a loadable module if different from building
22596 # a shared archive.
22597 module_cmds=$lt_module_cmds_CXX
22598 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22599
22600 # Whether we are building with GNU ld or not.
22601 with_gnu_ld=$lt_with_gnu_ld_CXX
22602
22603 # Flag that allows shared libraries with undefined symbols to be built.
22604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22605
22606 # Flag that enforces no undefined symbols.
22607 no_undefined_flag=$lt_no_undefined_flag_CXX
22608
22609 # Flag to hardcode \$libdir into a binary during linking.
22610 # This must work even if \$libdir does not exist
22611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22612
22613 # If ld is used when linking, flag to hardcode \$libdir into a binary
22614 # during linking.  This must work even if \$libdir does not exist.
22615 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22616
22617 # Whether we need a single "-rpath" flag with a separated argument.
22618 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22619
22620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22621 # DIR into the resulting binary.
22622 hardcode_direct=$hardcode_direct_CXX
22623
22624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22625 # DIR into the resulting binary and the resulting library dependency is
22626 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22627 # library is relocated.
22628 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22629
22630 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22631 # into the resulting binary.
22632 hardcode_minus_L=$hardcode_minus_L_CXX
22633
22634 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22635 # into the resulting binary.
22636 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22637
22638 # Set to "yes" if building a shared library automatically hardcodes DIR
22639 # into the library and all subsequent libraries and executables linked
22640 # against it.
22641 hardcode_automatic=$hardcode_automatic_CXX
22642
22643 # Set to yes if linker adds runtime paths of dependent libraries
22644 # to runtime path list.
22645 inherit_rpath=$inherit_rpath_CXX
22646
22647 # Whether libtool must link a program against all its dependency libraries.
22648 link_all_deplibs=$link_all_deplibs_CXX
22649
22650 # Fix the shell variable \$srcfile for the compiler.
22651 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22652
22653 # Set to "yes" if exported symbols are required.
22654 always_export_symbols=$always_export_symbols_CXX
22655
22656 # The commands to list exported symbols.
22657 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22658
22659 # Symbols that should not be listed in the preloaded symbols.
22660 exclude_expsyms=$lt_exclude_expsyms_CXX
22661
22662 # Symbols that must always be exported.
22663 include_expsyms=$lt_include_expsyms_CXX
22664
22665 # Commands necessary for linking programs (against libraries) with templates.
22666 prelink_cmds=$lt_prelink_cmds_CXX
22667
22668 # Specify filename containing input files.
22669 file_list_spec=$lt_file_list_spec_CXX
22670
22671 # How to hardcode a shared library path into an executable.
22672 hardcode_action=$hardcode_action_CXX
22673
22674 # The directories searched by this compiler when creating a shared library.
22675 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22676
22677 # Dependencies to place before and after the objects being linked to
22678 # create a shared library.
22679 predep_objects=$lt_predep_objects_CXX
22680 postdep_objects=$lt_postdep_objects_CXX
22681 predeps=$lt_predeps_CXX
22682 postdeps=$lt_postdeps_CXX
22683
22684 # The library search path used internally by the compiler when linking
22685 # a shared library.
22686 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22687
22688 # ### END LIBTOOL TAG CONFIG: CXX
22689 _LT_EOF
22690
22691  ;;
22692
22693   esac
22694 done # for ac_tag
22695
22696
22697 as_fn_exit 0
22698 _ACEOF
22699 ac_clean_files=$ac_clean_files_save
22700
22701 test $ac_write_fail = 0 ||
22702   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22703
22704
22705 # configure is writing to config.log, and then calls config.status.
22706 # config.status does its own redirection, appending to config.log.
22707 # Unfortunately, on DOS this fails, as config.log is still kept open
22708 # by configure, so config.status won't be able to write to it; its
22709 # output is simply discarded.  So we exec the FD to /dev/null,
22710 # effectively closing config.log, so it can be properly (re)opened and
22711 # appended to by config.status.  When coming back to configure, we
22712 # need to make the FD available again.
22713 if test "$no_create" != yes; then
22714   ac_cs_success=:
22715   ac_config_status_args=
22716   test "$silent" = yes &&
22717     ac_config_status_args="$ac_config_status_args --quiet"
22718   exec 5>/dev/null
22719   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22720   exec 5>>config.log
22721   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22722   # would make configure fail if this is the last instruction.
22723   $ac_cs_success || as_fn_exit $?
22724 fi
22725 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22726   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22727 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22728 fi
22729
22730