]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
e019f04d10d4b61fcadbf522b63b19b20480c48b
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.14.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
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         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$lt_ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $ECHO works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<_LT_EOF
567 $*
568 _LT_EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$lt_ECHO"; then
577   if test "X${echo_test_string+set}" != Xset; then
578     # find a string as large as possible, as long as the shell can cope with it
579     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583       then
584         break
585       fi
586     done
587   fi
588
589   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591      test "X$echo_testing_string" = "X$echo_test_string"; then
592     :
593   else
594     # The Solaris, AIX, and Digital Unix default echo programs unquote
595     # backslashes.  This makes it impossible to quote backslashes using
596     #   echo "$something" | sed 's/\\/\\\\/g'
597     #
598     # So, first we look for a working echo in the user's PATH.
599
600     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601     for dir in $PATH /usr/ucb; do
602       IFS="$lt_save_ifs"
603       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606          test "X$echo_testing_string" = "X$echo_test_string"; then
607         ECHO="$dir/echo"
608         break
609       fi
610     done
611     IFS="$lt_save_ifs"
612
613     if test "X$ECHO" = Xecho; then
614       # We didn't find a better echo, so look for alternatives.
615       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617          test "X$echo_testing_string" = "X$echo_test_string"; then
618         # This shell has a builtin print -r that does the trick.
619         ECHO='print -r'
620       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621            test "X$CONFIG_SHELL" != X/bin/ksh; then
622         # If we have ksh, try running configure again with it.
623         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624         export ORIGINAL_CONFIG_SHELL
625         CONFIG_SHELL=/bin/ksh
626         export CONFIG_SHELL
627         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628       else
629         # Try using printf.
630         ECHO='printf %s\n'
631         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633            test "X$echo_testing_string" = "X$echo_test_string"; then
634           # Cool, printf works
635           :
636         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637              test "X$echo_testing_string" = 'X\t' &&
638              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639              test "X$echo_testing_string" = "X$echo_test_string"; then
640           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641           export CONFIG_SHELL
642           SHELL="$CONFIG_SHELL"
643           export SHELL
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646              test "X$echo_testing_string" = 'X\t' &&
647              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648              test "X$echo_testing_string" = "X$echo_test_string"; then
649           ECHO="$CONFIG_SHELL $0 --fallback-echo"
650         else
651           # maybe with a smaller string...
652           prev=:
653
654           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656             then
657               break
658             fi
659             prev="$cmd"
660           done
661
662           if test "$prev" != 'sed 50q "$0"'; then
663             echo_test_string=`eval $prev`
664             export echo_test_string
665             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666           else
667             # Oops.  We lost completely, so just stick with echo.
668             ECHO=echo
669           fi
670         fi
671       fi
672     fi
673   fi
674 fi
675
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 fi
682
683
684
685
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
688
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694 #
695 # Initializations.
696 #
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
705
706 # Identity of this package.
707 PACKAGE_NAME='bacula'
708 PACKAGE_TARNAME='bacula'
709 PACKAGE_VERSION='5.1.14'
710 PACKAGE_STRING='bacula 5.1.14'
711 PACKAGE_BUGREPORT=''
712 PACKAGE_URL=''
713
714 ac_unique_file="src/version.h"
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_header_list=
752 ac_subst_vars='LTLIBOBJS
753 COMPRESS_MANPAGES
754 DISTVER
755 DISTNAME
756 MACOSX
757 WIN32
758 PSCMD
759 TAPEDRIVE
760 OBJLIST
761 WRAPLIBS
762 WLDFLAGS
763 WCFLAGS
764 DLIB
765 DINCLUDE
766 DEBUG
767 FDLIBS
768 CAP_LIBS
769 ZLIBS
770 LIBOBJS
771 X_EXTRA_LIBS
772 X_LIBS
773 X_PRE_LIBS
774 X_CFLAGS
775 XMKMF
776 GETCONF
777 uncomment_dbi
778 SHARED_CATALOG_TARGETS
779 DEFAULT_DB_TYPE
780 DB_LIBS
781 DB_BACKENDS
782 SQLITE_BINDIR
783 SQLITE_INCLUDE
784 SQLITE_LIBS
785 MYSQL_BINDIR
786 MYSQL_INCLUDE
787 MYSQL_LIBS
788 POSTGRESQL_BINDIR
789 POSTGRESQL_INCLUDE
790 POSTGRESQL_LIBS
791 SBINPERM
792 fd_group
793 fd_user
794 sd_group
795 sd_user
796 dir_group
797 dir_user
798 db_port
799 db_password
800 db_user
801 db_name
802 mon_sd_password
803 mon_fd_password
804 mon_dir_password
805 sd_password
806 fd_password
807 dir_password
808 sd_port
809 fd_port
810 dir_port
811 baseport
812 subsysdir
813 piddir
814 smtp_host
815 job_email
816 dump_email
817 plugindir
818 logdir
819 bsrdir
820 scriptdir
821 hostname
822 basename
823 archivedir
824 working_dir
825 OPENSSL_INC
826 OPENSSL_LIBS
827 PYTHON_INCDIR
828 PYTHON_LIBS
829 READLINE_SRC
830 CONS_LDFLAGS
831 CONS_LIBS
832 CONS_SRC
833 CONS_OBJ
834 CONS_INC
835 STORED_DIR
836 DIR_TOOLS
837 DIRD_DIR
838 ALL_DIRS
839 STATIC_WX_CONS
840 STATIC_GNOME_CONS
841 STATIC_CONS
842 STATIC_DIR
843 STATIC_SD
844 STATIC_FD
845 TTOOL_LDFLAGS
846 TRAY_MONITOR_DIR
847 TRAY_MONITOR_LDFLAGS
848 TRAY_MONITOR_CPPFLAGS
849 WX_DIR
850 WXCONS_LDFLAGS
851 WXCONS_CPPFLAGS
852 QWT
853 QWT_LIB
854 QWT_LDFLAGS
855 QWT_INC
856 BAT_DIR
857 INTL_LIBTOOL_SUFFIX_PREFIX
858 INTLOBJS
859 GENCAT
860 INSTOBJEXT
861 DATADIRNAME
862 CATOBJEXT
863 USE_INCLUDED_LIBINTL
864 BUILD_INCLUDED_LIBINTL
865 INTLBISON
866 HAVE_WPRINTF
867 HAVE_SNPRINTF
868 HAVE_ASPRINTF
869 HAVE_POSIX_PRINTF
870 GLIBC21
871 ALLOCA
872 GLIBC2
873 POSUB
874 LTLIBINTL
875 LIBINTL
876 INTLLIBS
877 LTLIBICONV
878 LIBICONV
879 INTL_MACOSX_LIBS
880 MSGMERGE
881 XGETTEXT
882 GMSGFMT
883 MSGFMT
884 USE_NLS
885 MKINSTALLDIRS
886 SET_MAKE
887 HAVE_DARWIN_OS_FALSE
888 HAVE_DARWIN_OS_TRUE
889 HAVE_IRIX_OS_FALSE
890 HAVE_IRIX_OS_TRUE
891 HAVE_SGI_OS_FALSE
892 HAVE_SGI_OS_TRUE
893 HAVE_BSDI_OS_FALSE
894 HAVE_BSDI_OS_TRUE
895 HAVE_OPENBSD_OS_FALSE
896 HAVE_OPENBSD_OS_TRUE
897 HAVE_NETBSD_OS_FALSE
898 HAVE_NETBSD_OS_TRUE
899 HAVE_FREEBSD_OS_FALSE
900 HAVE_FREEBSD_OS_TRUE
901 HAVE_LINUX_OS_FALSE
902 HAVE_LINUX_OS_TRUE
903 HAVE_HPUX_OS_FALSE
904 HAVE_HPUX_OS_TRUE
905 HAVE_AIX_OS_FALSE
906 HAVE_AIX_OS_TRUE
907 HAVE_OSF1_OS_FALSE
908 HAVE_OSF1_OS_TRUE
909 HAVE_SUN_OS_FALSE
910 HAVE_SUN_OS_TRUE
911 INCLUDE_UNINSTALL_TARGET
912 INCLUDE_INSTALL_TARGET
913 FD_PLUGIN_DIR
914 QMAKE_LIBTOOL
915 LIBTOOL_CLEAN_TARGET
916 LIBTOOL_UNINSTALL_TARGET
917 LIBTOOL_INSTALL_TARGET
918 DEFAULT_SHARED_OBJECT_TYPE
919 DEFAULT_ARCHIVE_TYPE
920 DEFAULT_OBJECT_TYPE
921 CXXCPP
922 OTOOL64
923 OTOOL
924 LIPO
925 NMEDIT
926 DSYMUTIL
927 lt_ECHO
928 RANLIB
929 STRIP
930 OBJDUMP
931 LN_S
932 NM
933 ac_ct_DUMPBIN
934 DUMPBIN
935 LD
936 FGREP
937 host_os
938 host_vendor
939 host_cpu
940 host
941 build_os
942 build_vendor
943 build_cpu
944 build
945 LIBTOOL
946 LOCAL_DEFS
947 LOCAL_LDFLAGS
948 LOCAL_CFLAGS
949 LOCAL_LIBS
950 MAKE_SHELL
951 ARFLAGS
952 AWK
953 PIDOF
954 CDRECORD
955 WXFLAGS
956 WXCONFIG
957 GMAKE
958 QMAKE
959 PKGCONFIG
960 DVDRWFORMAT
961 DVDRWMEDIAINFO
962 GROWISOFS
963 PYTHON
964 MKISOFS
965 DD
966 MTX
967 OPENSSL
968 AR
969 TBL
970 CMP
971 ECHO
972 SED
973 CP
974 REMOVE
975 MV
976 INSTALL_DATA
977 INSTALL_SCRIPT
978 INSTALL_PROGRAM
979 EGREP
980 GREP
981 CPP
982 ac_ct_CXX
983 CXXFLAGS
984 CXX
985 OBJEXT
986 EXEEXT
987 ac_ct_CC
988 CPPFLAGS
989 LDFLAGS
990 CFLAGS
991 CC
992 LIBBACFIND_LT_RELEASE
993 LIBBACCATS_LT_RELEASE
994 LIBBACSQL_LT_RELEASE
995 LIBBACPY_LT_RELEASE
996 LIBBACCFG_LT_RELEASE
997 LIBBAC_LT_RELEASE
998 BDB_VERSION
999 post_host
1000 BACULA
1001 LSMDATE
1002 DATE
1003 VERSION
1004 FALSEPRG
1005 TRUEPRG
1006 WIN32TOPDIR
1007 WIN32MAINDIR
1008 WIN32BUILDDIR
1009 TOP_DIR
1010 BUILD_DIR
1011 target_alias
1012 host_alias
1013 build_alias
1014 LIBS
1015 ECHO_T
1016 ECHO_N
1017 ECHO_C
1018 DEFS
1019 mandir
1020 localedir
1021 libdir
1022 psdir
1023 pdfdir
1024 dvidir
1025 htmldir
1026 infodir
1027 docdir
1028 oldincludedir
1029 includedir
1030 localstatedir
1031 sharedstatedir
1032 sysconfdir
1033 datadir
1034 datarootdir
1035 libexecdir
1036 sbindir
1037 bindir
1038 program_transform_name
1039 prefix
1040 exec_prefix
1041 PACKAGE_URL
1042 PACKAGE_BUGREPORT
1043 PACKAGE_STRING
1044 PACKAGE_VERSION
1045 PACKAGE_TARNAME
1046 PACKAGE_NAME
1047 PATH_SEPARATOR
1048 SHELL'
1049 ac_subst_files='MCOMMON'
1050 ac_user_opts='
1051 enable_option_checking
1052 enable_libtool
1053 enable_shared
1054 enable_static
1055 with_pic
1056 enable_fast_install
1057 with_gnu_ld
1058 enable_libtool_lock
1059 enable_includes
1060 enable_nls
1061 enable_rpath
1062 with_libiconv_prefix
1063 with_libintl_prefix
1064 with_included_gettext
1065 enable_gnome
1066 enable_bat
1067 enable_bwx_console
1068 enable_tray_monitor
1069 enable_smartalloc
1070 enable_lockmgr
1071 enable_static_tools
1072 enable_static_fd
1073 enable_static_sd
1074 enable_static_dir
1075 enable_static_cons
1076 enable_client_only
1077 enable_build_dird
1078 enable_build_stored
1079 enable_conio
1080 enable_ipv6
1081 enable_readline
1082 with_readline
1083 with_python
1084 with_tcp_wrappers
1085 with_openssl
1086 with_working_dir
1087 with_archivedir
1088 with_basename
1089 with_hostname
1090 with_scriptdir
1091 with_bsrdir
1092 with_logdir
1093 with_plugindir
1094 with_dump_email
1095 with_job_email
1096 with_smtp_host
1097 with_pid_dir
1098 with_subsys_dir
1099 with_baseport
1100 with_dir_password
1101 with_fd_password
1102 with_sd_password
1103 with_mon_dir_password
1104 with_mon_fd_password
1105 with_mon_sd_password
1106 with_db_name
1107 with_db_user
1108 with_db_password
1109 with_db_port
1110 with_dir_user
1111 with_dir_group
1112 with_sd_user
1113 with_sd_group
1114 with_fd_user
1115 with_fd_group
1116 with_sbin_perm
1117 with_postgresql
1118 with_mysql
1119 with_embedded_mysql
1120 with_sqlite3
1121 enable_batch_insert
1122 enable_largefile
1123 with_x
1124 enable_acl
1125 enable_xattr
1126 '
1127       ac_precious_vars='build_alias
1128 host_alias
1129 target_alias
1130 CC
1131 CFLAGS
1132 LDFLAGS
1133 LIBS
1134 CPPFLAGS
1135 CXX
1136 CXXFLAGS
1137 CCC
1138 CPP
1139 WXCONFIG
1140 WXFLAGS
1141 CXXCPP
1142 XMKMF'
1143
1144
1145 # Initialize some variables set by options.
1146 ac_init_help=
1147 ac_init_version=false
1148 ac_unrecognized_opts=
1149 ac_unrecognized_sep=
1150 # The variables have the same names as the options, with
1151 # dashes changed to underlines.
1152 cache_file=/dev/null
1153 exec_prefix=NONE
1154 no_create=
1155 no_recursion=
1156 prefix=NONE
1157 program_prefix=NONE
1158 program_suffix=NONE
1159 program_transform_name=s,x,x,
1160 silent=
1161 site=
1162 srcdir=
1163 verbose=
1164 x_includes=NONE
1165 x_libraries=NONE
1166
1167 # Installation directory options.
1168 # These are left unexpanded so users can "make install exec_prefix=/foo"
1169 # and all the variables that are supposed to be based on exec_prefix
1170 # by default will actually change.
1171 # Use braces instead of parens because sh, perl, etc. also accept them.
1172 # (The list follows the same order as the GNU Coding Standards.)
1173 bindir='${exec_prefix}/bin'
1174 sbindir='${exec_prefix}/sbin'
1175 libexecdir='${exec_prefix}/libexec'
1176 datarootdir='${prefix}/share'
1177 datadir='${datarootdir}'
1178 sysconfdir='${prefix}/etc'
1179 sharedstatedir='${prefix}/com'
1180 localstatedir='${prefix}/var'
1181 includedir='${prefix}/include'
1182 oldincludedir='/usr/include'
1183 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1184 infodir='${datarootdir}/info'
1185 htmldir='${docdir}'
1186 dvidir='${docdir}'
1187 pdfdir='${docdir}'
1188 psdir='${docdir}'
1189 libdir='${exec_prefix}/lib'
1190 localedir='${datarootdir}/locale'
1191 mandir='${datarootdir}/man'
1192
1193 ac_prev=
1194 ac_dashdash=
1195 for ac_option
1196 do
1197   # If the previous option needs an argument, assign it.
1198   if test -n "$ac_prev"; then
1199     eval $ac_prev=\$ac_option
1200     ac_prev=
1201     continue
1202   fi
1203
1204   case $ac_option in
1205   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1206   *=)   ac_optarg= ;;
1207   *)    ac_optarg=yes ;;
1208   esac
1209
1210   # Accept the important Cygnus configure options, so we can diagnose typos.
1211
1212   case $ac_dashdash$ac_option in
1213   --)
1214     ac_dashdash=yes ;;
1215
1216   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1217     ac_prev=bindir ;;
1218   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1219     bindir=$ac_optarg ;;
1220
1221   -build | --build | --buil | --bui | --bu)
1222     ac_prev=build_alias ;;
1223   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1224     build_alias=$ac_optarg ;;
1225
1226   -cache-file | --cache-file | --cache-fil | --cache-fi \
1227   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1228     ac_prev=cache_file ;;
1229   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1230   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1231     cache_file=$ac_optarg ;;
1232
1233   --config-cache | -C)
1234     cache_file=config.cache ;;
1235
1236   -datadir | --datadir | --datadi | --datad)
1237     ac_prev=datadir ;;
1238   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1239     datadir=$ac_optarg ;;
1240
1241   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1242   | --dataroo | --dataro | --datar)
1243     ac_prev=datarootdir ;;
1244   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1245   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1246     datarootdir=$ac_optarg ;;
1247
1248   -disable-* | --disable-*)
1249     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252       as_fn_error $? "invalid feature name: $ac_useropt"
1253     ac_useropt_orig=$ac_useropt
1254     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255     case $ac_user_opts in
1256       *"
1257 "enable_$ac_useropt"
1258 "*) ;;
1259       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1260          ac_unrecognized_sep=', ';;
1261     esac
1262     eval enable_$ac_useropt=no ;;
1263
1264   -docdir | --docdir | --docdi | --doc | --do)
1265     ac_prev=docdir ;;
1266   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1267     docdir=$ac_optarg ;;
1268
1269   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1270     ac_prev=dvidir ;;
1271   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1272     dvidir=$ac_optarg ;;
1273
1274   -enable-* | --enable-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error $? "invalid feature name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "enable_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval enable_$ac_useropt=\$ac_optarg ;;
1289
1290   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1291   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1292   | --exec | --exe | --ex)
1293     ac_prev=exec_prefix ;;
1294   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1295   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1296   | --exec=* | --exe=* | --ex=*)
1297     exec_prefix=$ac_optarg ;;
1298
1299   -gas | --gas | --ga | --g)
1300     # Obsolete; use --with-gas.
1301     with_gas=yes ;;
1302
1303   -help | --help | --hel | --he | -h)
1304     ac_init_help=long ;;
1305   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1306     ac_init_help=recursive ;;
1307   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1308     ac_init_help=short ;;
1309
1310   -host | --host | --hos | --ho)
1311     ac_prev=host_alias ;;
1312   -host=* | --host=* | --hos=* | --ho=*)
1313     host_alias=$ac_optarg ;;
1314
1315   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1316     ac_prev=htmldir ;;
1317   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1318   | --ht=*)
1319     htmldir=$ac_optarg ;;
1320
1321   -includedir | --includedir | --includedi | --included | --include \
1322   | --includ | --inclu | --incl | --inc)
1323     ac_prev=includedir ;;
1324   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1325   | --includ=* | --inclu=* | --incl=* | --inc=*)
1326     includedir=$ac_optarg ;;
1327
1328   -infodir | --infodir | --infodi | --infod | --info | --inf)
1329     ac_prev=infodir ;;
1330   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1331     infodir=$ac_optarg ;;
1332
1333   -libdir | --libdir | --libdi | --libd)
1334     ac_prev=libdir ;;
1335   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1336     libdir=$ac_optarg ;;
1337
1338   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1339   | --libexe | --libex | --libe)
1340     ac_prev=libexecdir ;;
1341   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1342   | --libexe=* | --libex=* | --libe=*)
1343     libexecdir=$ac_optarg ;;
1344
1345   -localedir | --localedir | --localedi | --localed | --locale)
1346     ac_prev=localedir ;;
1347   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1348     localedir=$ac_optarg ;;
1349
1350   -localstatedir | --localstatedir | --localstatedi | --localstated \
1351   | --localstate | --localstat | --localsta | --localst | --locals)
1352     ac_prev=localstatedir ;;
1353   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1354   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1355     localstatedir=$ac_optarg ;;
1356
1357   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1358     ac_prev=mandir ;;
1359   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1360     mandir=$ac_optarg ;;
1361
1362   -nfp | --nfp | --nf)
1363     # Obsolete; use --without-fp.
1364     with_fp=no ;;
1365
1366   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1367   | --no-cr | --no-c | -n)
1368     no_create=yes ;;
1369
1370   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1371   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1372     no_recursion=yes ;;
1373
1374   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1375   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1376   | --oldin | --oldi | --old | --ol | --o)
1377     ac_prev=oldincludedir ;;
1378   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1379   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1380   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1381     oldincludedir=$ac_optarg ;;
1382
1383   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1384     ac_prev=prefix ;;
1385   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1386     prefix=$ac_optarg ;;
1387
1388   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1389   | --program-pre | --program-pr | --program-p)
1390     ac_prev=program_prefix ;;
1391   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1392   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1393     program_prefix=$ac_optarg ;;
1394
1395   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1396   | --program-suf | --program-su | --program-s)
1397     ac_prev=program_suffix ;;
1398   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1399   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1400     program_suffix=$ac_optarg ;;
1401
1402   -program-transform-name | --program-transform-name \
1403   | --program-transform-nam | --program-transform-na \
1404   | --program-transform-n | --program-transform- \
1405   | --program-transform | --program-transfor \
1406   | --program-transfo | --program-transf \
1407   | --program-trans | --program-tran \
1408   | --progr-tra | --program-tr | --program-t)
1409     ac_prev=program_transform_name ;;
1410   -program-transform-name=* | --program-transform-name=* \
1411   | --program-transform-nam=* | --program-transform-na=* \
1412   | --program-transform-n=* | --program-transform-=* \
1413   | --program-transform=* | --program-transfor=* \
1414   | --program-transfo=* | --program-transf=* \
1415   | --program-trans=* | --program-tran=* \
1416   | --progr-tra=* | --program-tr=* | --program-t=*)
1417     program_transform_name=$ac_optarg ;;
1418
1419   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1420     ac_prev=pdfdir ;;
1421   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1422     pdfdir=$ac_optarg ;;
1423
1424   -psdir | --psdir | --psdi | --psd | --ps)
1425     ac_prev=psdir ;;
1426   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1427     psdir=$ac_optarg ;;
1428
1429   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1430   | -silent | --silent | --silen | --sile | --sil)
1431     silent=yes ;;
1432
1433   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1434     ac_prev=sbindir ;;
1435   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1436   | --sbi=* | --sb=*)
1437     sbindir=$ac_optarg ;;
1438
1439   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1440   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1441   | --sharedst | --shareds | --shared | --share | --shar \
1442   | --sha | --sh)
1443     ac_prev=sharedstatedir ;;
1444   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1445   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1446   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1447   | --sha=* | --sh=*)
1448     sharedstatedir=$ac_optarg ;;
1449
1450   -site | --site | --sit)
1451     ac_prev=site ;;
1452   -site=* | --site=* | --sit=*)
1453     site=$ac_optarg ;;
1454
1455   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1456     ac_prev=srcdir ;;
1457   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1458     srcdir=$ac_optarg ;;
1459
1460   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1461   | --syscon | --sysco | --sysc | --sys | --sy)
1462     ac_prev=sysconfdir ;;
1463   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1464   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1465     sysconfdir=$ac_optarg ;;
1466
1467   -target | --target | --targe | --targ | --tar | --ta | --t)
1468     ac_prev=target_alias ;;
1469   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1470     target_alias=$ac_optarg ;;
1471
1472   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1473     verbose=yes ;;
1474
1475   -version | --version | --versio | --versi | --vers | -V)
1476     ac_init_version=: ;;
1477
1478   -with-* | --with-*)
1479     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1480     # Reject names that are not valid shell variable names.
1481     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1482       as_fn_error $? "invalid package name: $ac_useropt"
1483     ac_useropt_orig=$ac_useropt
1484     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485     case $ac_user_opts in
1486       *"
1487 "with_$ac_useropt"
1488 "*) ;;
1489       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1490          ac_unrecognized_sep=', ';;
1491     esac
1492     eval with_$ac_useropt=\$ac_optarg ;;
1493
1494   -without-* | --without-*)
1495     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1496     # Reject names that are not valid shell variable names.
1497     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1498       as_fn_error $? "invalid package name: $ac_useropt"
1499     ac_useropt_orig=$ac_useropt
1500     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1501     case $ac_user_opts in
1502       *"
1503 "with_$ac_useropt"
1504 "*) ;;
1505       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1506          ac_unrecognized_sep=', ';;
1507     esac
1508     eval with_$ac_useropt=no ;;
1509
1510   --x)
1511     # Obsolete; use --with-x.
1512     with_x=yes ;;
1513
1514   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1515   | --x-incl | --x-inc | --x-in | --x-i)
1516     ac_prev=x_includes ;;
1517   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1518   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1519     x_includes=$ac_optarg ;;
1520
1521   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1522   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1523     ac_prev=x_libraries ;;
1524   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1525   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1526     x_libraries=$ac_optarg ;;
1527
1528   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1529 Try \`$0 --help' for more information"
1530     ;;
1531
1532   *=*)
1533     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1534     # Reject names that are not valid shell variable names.
1535     case $ac_envvar in #(
1536       '' | [0-9]* | *[!_$as_cr_alnum]* )
1537       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1538     esac
1539     eval $ac_envvar=\$ac_optarg
1540     export $ac_envvar ;;
1541
1542   *)
1543     # FIXME: should be removed in autoconf 3.0.
1544     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1545     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1546       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1547     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1548     ;;
1549
1550   esac
1551 done
1552
1553 if test -n "$ac_prev"; then
1554   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1555   as_fn_error $? "missing argument to $ac_option"
1556 fi
1557
1558 if test -n "$ac_unrecognized_opts"; then
1559   case $enable_option_checking in
1560     no) ;;
1561     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1562     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1563   esac
1564 fi
1565
1566 # Check all directory arguments for consistency.
1567 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1568                 datadir sysconfdir sharedstatedir localstatedir includedir \
1569                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1570                 libdir localedir mandir
1571 do
1572   eval ac_val=\$$ac_var
1573   # Remove trailing slashes.
1574   case $ac_val in
1575     */ )
1576       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1577       eval $ac_var=\$ac_val;;
1578   esac
1579   # Be sure to have absolute directory names.
1580   case $ac_val in
1581     [\\/$]* | ?:[\\/]* )  continue;;
1582     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1583   esac
1584   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1585 done
1586
1587 # There might be people who depend on the old broken behavior: `$host'
1588 # used to hold the argument of --host etc.
1589 # FIXME: To remove some day.
1590 build=$build_alias
1591 host=$host_alias
1592 target=$target_alias
1593
1594 # FIXME: To remove some day.
1595 if test "x$host_alias" != x; then
1596   if test "x$build_alias" = x; then
1597     cross_compiling=maybe
1598     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1599     If a cross compiler is detected then cross compile mode will be used" >&2
1600   elif test "x$build_alias" != "x$host_alias"; then
1601     cross_compiling=yes
1602   fi
1603 fi
1604
1605 ac_tool_prefix=
1606 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1607
1608 test "$silent" = yes && exec 6>/dev/null
1609
1610
1611 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1612 ac_ls_di=`ls -di .` &&
1613 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1614   as_fn_error $? "working directory cannot be determined"
1615 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1616   as_fn_error $? "pwd does not report name of working directory"
1617
1618
1619 # Find the source files, if location was not specified.
1620 if test -z "$srcdir"; then
1621   ac_srcdir_defaulted=yes
1622   # Try the directory containing this script, then the parent directory.
1623   ac_confdir=`$as_dirname -- "$as_myself" ||
1624 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1625          X"$as_myself" : 'X\(//\)[^/]' \| \
1626          X"$as_myself" : 'X\(//\)$' \| \
1627          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1628 $as_echo X"$as_myself" |
1629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1630             s//\1/
1631             q
1632           }
1633           /^X\(\/\/\)[^/].*/{
1634             s//\1/
1635             q
1636           }
1637           /^X\(\/\/\)$/{
1638             s//\1/
1639             q
1640           }
1641           /^X\(\/\).*/{
1642             s//\1/
1643             q
1644           }
1645           s/.*/./; q'`
1646   srcdir=$ac_confdir
1647   if test ! -r "$srcdir/$ac_unique_file"; then
1648     srcdir=..
1649   fi
1650 else
1651   ac_srcdir_defaulted=no
1652 fi
1653 if test ! -r "$srcdir/$ac_unique_file"; then
1654   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1655   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1656 fi
1657 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1658 ac_abs_confdir=`(
1659         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1660         pwd)`
1661 # When building in place, set srcdir=.
1662 if test "$ac_abs_confdir" = "$ac_pwd"; then
1663   srcdir=.
1664 fi
1665 # Remove unnecessary trailing slashes from srcdir.
1666 # Double slashes in file names in object file debugging info
1667 # mess up M-x gdb in Emacs.
1668 case $srcdir in
1669 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1670 esac
1671 for ac_var in $ac_precious_vars; do
1672   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1673   eval ac_env_${ac_var}_value=\$${ac_var}
1674   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1675   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1676 done
1677
1678 #
1679 # Report the --help message.
1680 #
1681 if test "$ac_init_help" = "long"; then
1682   # Omit some internal or obsolete options to make the list less imposing.
1683   # This message is too long to be a string in the A/UX 3.1 sh.
1684   cat <<_ACEOF
1685 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1686
1687 Usage: $0 [OPTION]... [VAR=VALUE]...
1688
1689 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1690 VAR=VALUE.  See below for descriptions of some of the useful variables.
1691
1692 Defaults for the options are specified in brackets.
1693
1694 Configuration:
1695   -h, --help              display this help and exit
1696       --help=short        display options specific to this package
1697       --help=recursive    display the short help of all the included packages
1698   -V, --version           display version information and exit
1699   -q, --quiet, --silent   do not print \`checking ...' messages
1700       --cache-file=FILE   cache test results in FILE [disabled]
1701   -C, --config-cache      alias for \`--cache-file=config.cache'
1702   -n, --no-create         do not create output files
1703       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1704
1705 Installation directories:
1706   --prefix=PREFIX         install architecture-independent files in PREFIX
1707                           [$ac_default_prefix]
1708   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1709                           [PREFIX]
1710
1711 By default, \`make install' will install all the files in
1712 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1713 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1714 for instance \`--prefix=\$HOME'.
1715
1716 For better control, use the options below.
1717
1718 Fine tuning of the installation directories:
1719   --bindir=DIR            user executables [EPREFIX/bin]
1720   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1721   --libexecdir=DIR        program executables [EPREFIX/libexec]
1722   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1723   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1724   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1725   --libdir=DIR            object code libraries [EPREFIX/lib]
1726   --includedir=DIR        C header files [PREFIX/include]
1727   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1728   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1729   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1730   --infodir=DIR           info documentation [DATAROOTDIR/info]
1731   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1732   --mandir=DIR            man documentation [DATAROOTDIR/man]
1733   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1734   --htmldir=DIR           html documentation [DOCDIR]
1735   --dvidir=DIR            dvi documentation [DOCDIR]
1736   --pdfdir=DIR            pdf documentation [DOCDIR]
1737   --psdir=DIR             ps documentation [DOCDIR]
1738 _ACEOF
1739
1740   cat <<\_ACEOF
1741
1742 X features:
1743   --x-includes=DIR    X include files are in DIR
1744   --x-libraries=DIR   X library files are in DIR
1745
1746 System types:
1747   --build=BUILD     configure for building on BUILD [guessed]
1748   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1749 _ACEOF
1750 fi
1751
1752 if test -n "$ac_init_help"; then
1753   case $ac_init_help in
1754      short | recursive ) echo "Configuration of bacula 5.1.14:";;
1755    esac
1756   cat <<\_ACEOF
1757
1758 Optional Features:
1759   --disable-option-checking  ignore unrecognized --enable/--with options
1760   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1761   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1762   --enable-libtool        enable building using GNU libtool [default=yes]
1763   --enable-shared[=PKGS]  build shared libraries [default=yes]
1764   --enable-static[=PKGS]  build static libraries [default=no]
1765   --enable-fast-install[=PKGS]
1766                           optimize for fast installation [default=yes]
1767   --disable-libtool-lock  avoid locking (might break parallel builds)
1768   --enable-includes       enable installing of include files [default=no]
1769   --disable-nls           do not use Native Language Support
1770   --disable-rpath         do not hardcode runtime library paths
1771   --enable-gnome          enable build of bgnome-console GUI [default=no]
1772   --enable-bat            enable build of bat Qt4 GUI [default=no]
1773   --enable-bwx-console    enable build of wxWidgets console [default=no]
1774   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1775                           KDE [default=no]
1776   --enable-smartalloc     enable smartalloc debugging support [default=no]
1777   --enable-lockmgr        enable lock manager support [default=no]
1778   --enable-static-tools   enable static tape tools [default=no]
1779   --enable-static-fd      enable static File daemon [default=no]
1780   --enable-static-sd      enable static Storage daemon [default=no]
1781   --enable-static-dir     enable static Director [default=no]
1782   --enable-static-cons    enable static Console [default=no]
1783   --enable-client-only    build client (File daemon) only [default=no]
1784   --enable-build-dird     enable building of dird (Director) [default=yes]
1785   --enable-build-stored   enable building of stored (Storage daemon)
1786                           [default=yes]
1787   --disable-conio         disable conio support [default=no]
1788   --enable-ipv6           enable ipv6 support [default=yes]
1789   --disable-readline      disable readline support [default=yes]
1790   --enable-batch-insert   enable the DB batch insert code [default=yes]
1791   --disable-largefile     omit support for large files
1792   --disable-acl           disable acl support [default=auto]
1793   --disable-xattr         disable xattr support [default=auto]
1794
1795 Optional Packages:
1796   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1797   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1798   --with-pic              try to use only PIC/non-PIC objects [default=use
1799                           both]
1800   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1801   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1802   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1803   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1804   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1805   --without-libintl-prefix     don't search for libintl in includedir and libdir
1806   --with-included-gettext use the GNU gettext library included here
1807   --with-readline[=DIR]   specify readline library directory
1808   --with-python[=DIR]     Include Python support. DIR is the Python base
1809                           install directory, default is to search through a
1810                           number of common places for the Python files.
1811   --with-tcp-wrappers[=DIR]
1812                           enable tcpwrappers support
1813   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1814   --with-working-dir=PATH specify path of Bacula working directory
1815   --with-archivedir=PATH  specify path of SD archive directory
1816   --with-basename=RESNAME specify base resource name for daemons
1817   --with-hostname=RESNAME specify host name for daemons
1818   --with-scriptdir=PATH   specify path of Bacula scripts directory
1819   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1820   --with-logdir=PATH      specify path of Bacula logs directory
1821   --with-plugindir=PATH   specify path of Bacula plugins directory
1822   --with-dump-email=EMAIL dump email address
1823   --with-job-email=EMAIL  job output email address
1824   --with-smtp-host=HOST   SMTP mail host address
1825   --with-pid-dir=PATH     specify location of Bacula pid files
1826   --with-subsys-dir=PATH  specify location of Bacula subsys file
1827   --with-baseport=PORT    specify base port address for daemons
1828   --with-dir-password=PASSWORD
1829                           specify Director's password
1830   --with-fd-password=PASSWORD
1831                           specify Client's password
1832   --with-sd-password=PASSWORD
1833                           specify Storage daemon's password
1834   --with-mon-dir-password=PASSWORD
1835                           specify Director's password used by the monitor
1836   --with-mon-fd-password=PASSWORD
1837                           specify Client's password used by the monitor
1838   --with-mon-sd-password=PASSWORD
1839                           specify Storage daemon's password used by the
1840                           monitor
1841   --with-db-name=DBNAME   specify database name [default=bacula]
1842   --with-db-user=UNAME    specify database user [default=bacula]
1843   --with-db-password=PWD  specify database password [default=*none*]
1844   --with-db-port=DBPORT   specify a database port [default=null]
1845   --with-dir-user=USER    specify user for Director daemon
1846   --with-dir-group=GROUP  specify group for Director daemon
1847   --with-sd-user=USER     specify user for Storage daemon
1848   --with-sd-group=GROUP   specify group for Storage daemon
1849   --with-fd-user=USER     specify user for File daemon
1850   --with-fd-group=GROUP   specify group for File daemon
1851   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1852   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1853                           base install directory, [default=/usr/local/pgsql]
1854   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1855                           directory, default is to search through a number of
1856                           common places for the MySQL files.
1857   --with-embedded-mysql[=DIR]
1858                           Include MySQL support. DIR is the MySQL base install
1859                           directory, default is to search through a number of
1860                           common places for the MySQL files.
1861   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1862                           install directory, default is to search through a
1863                           number of common places for the SQLite3 files.
1864   --with-x                use the X Window System
1865
1866 Some influential environment variables:
1867   CC          C compiler command
1868   CFLAGS      C compiler flags
1869   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1870               nonstandard directory <lib dir>
1871   LIBS        libraries to pass to the linker, e.g. -l<library>
1872   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1873               you have headers in a nonstandard directory <include dir>
1874   CXX         C++ compiler command
1875   CXXFLAGS    C++ compiler flags
1876   CPP         C preprocessor
1877   WXCONFIG    wx-config command. On some systems, you must set it to
1878               wx-config-2.6 to use wxWidgets 2.6.
1879   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1880   CXXCPP      C++ preprocessor
1881   XMKMF       Path to xmkmf, Makefile generator for X Window System
1882
1883 Use these variables to override the choices made by `configure' or to help
1884 it to find libraries and programs with nonstandard names/locations.
1885
1886 Report bugs to the package provider.
1887 _ACEOF
1888 ac_status=$?
1889 fi
1890
1891 if test "$ac_init_help" = "recursive"; then
1892   # If there are subdirs, report their specific --help.
1893   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1894     test -d "$ac_dir" ||
1895       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1896       continue
1897     ac_builddir=.
1898
1899 case "$ac_dir" in
1900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1901 *)
1902   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1903   # A ".." for each directory in $ac_dir_suffix.
1904   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1905   case $ac_top_builddir_sub in
1906   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1907   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1908   esac ;;
1909 esac
1910 ac_abs_top_builddir=$ac_pwd
1911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1912 # for backward compatibility:
1913 ac_top_builddir=$ac_top_build_prefix
1914
1915 case $srcdir in
1916   .)  # We are building in place.
1917     ac_srcdir=.
1918     ac_top_srcdir=$ac_top_builddir_sub
1919     ac_abs_top_srcdir=$ac_pwd ;;
1920   [\\/]* | ?:[\\/]* )  # Absolute name.
1921     ac_srcdir=$srcdir$ac_dir_suffix;
1922     ac_top_srcdir=$srcdir
1923     ac_abs_top_srcdir=$srcdir ;;
1924   *) # Relative name.
1925     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1926     ac_top_srcdir=$ac_top_build_prefix$srcdir
1927     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1928 esac
1929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1930
1931     cd "$ac_dir" || { ac_status=$?; continue; }
1932     # Check for guested configure.
1933     if test -f "$ac_srcdir/configure.gnu"; then
1934       echo &&
1935       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1936     elif test -f "$ac_srcdir/configure"; then
1937       echo &&
1938       $SHELL "$ac_srcdir/configure" --help=recursive
1939     else
1940       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1941     fi || ac_status=$?
1942     cd "$ac_pwd" || { ac_status=$?; break; }
1943   done
1944 fi
1945
1946 test -n "$ac_init_help" && exit $ac_status
1947 if $ac_init_version; then
1948   cat <<\_ACEOF
1949 bacula configure 5.1.14
1950 generated by GNU Autoconf 2.68
1951
1952 Copyright (C) 2010 Free Software Foundation, Inc.
1953 This configure script is free software; the Free Software Foundation
1954 gives unlimited permission to copy, distribute and modify it.
1955 _ACEOF
1956   exit
1957 fi
1958
1959 ## ------------------------ ##
1960 ## Autoconf initialization. ##
1961 ## ------------------------ ##
1962
1963 # ac_fn_c_try_compile LINENO
1964 # --------------------------
1965 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_compile ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   rm -f conftest.$ac_objext
1970   if { { ac_try="$ac_compile"
1971 case "(($ac_try" in
1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973   *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977   (eval "$ac_compile") 2>conftest.err
1978   ac_status=$?
1979   if test -s conftest.err; then
1980     grep -v '^ *+' conftest.err >conftest.er1
1981     cat conftest.er1 >&5
1982     mv -f conftest.er1 conftest.err
1983   fi
1984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985   test $ac_status = 0; } && {
1986          test -z "$ac_c_werror_flag" ||
1987          test ! -s conftest.err
1988        } && test -s conftest.$ac_objext; then :
1989   ac_retval=0
1990 else
1991   $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994         ac_retval=1
1995 fi
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997   as_fn_set_status $ac_retval
1998
1999 } # ac_fn_c_try_compile
2000
2001 # ac_fn_cxx_try_compile LINENO
2002 # ----------------------------
2003 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_cxx_try_compile ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   rm -f conftest.$ac_objext
2008   if { { ac_try="$ac_compile"
2009 case "(($ac_try" in
2010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011   *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015   (eval "$ac_compile") 2>conftest.err
2016   ac_status=$?
2017   if test -s conftest.err; then
2018     grep -v '^ *+' conftest.err >conftest.er1
2019     cat conftest.er1 >&5
2020     mv -f conftest.er1 conftest.err
2021   fi
2022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023   test $ac_status = 0; } && {
2024          test -z "$ac_cxx_werror_flag" ||
2025          test ! -s conftest.err
2026        } && test -s conftest.$ac_objext; then :
2027   ac_retval=0
2028 else
2029   $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2031
2032         ac_retval=1
2033 fi
2034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035   as_fn_set_status $ac_retval
2036
2037 } # ac_fn_cxx_try_compile
2038
2039 # ac_fn_c_try_cpp LINENO
2040 # ----------------------
2041 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_c_try_cpp ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   if { { ac_try="$ac_cpp conftest.$ac_ext"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2053   ac_status=$?
2054   if test -s conftest.err; then
2055     grep -v '^ *+' conftest.err >conftest.er1
2056     cat conftest.er1 >&5
2057     mv -f conftest.er1 conftest.err
2058   fi
2059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060   test $ac_status = 0; } > conftest.i && {
2061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2062          test ! -s conftest.err
2063        }; then :
2064   ac_retval=0
2065 else
2066   $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069     ac_retval=1
2070 fi
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072   as_fn_set_status $ac_retval
2073
2074 } # ac_fn_c_try_cpp
2075
2076 # ac_fn_c_try_link LINENO
2077 # -----------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_c_try_link ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   rm -f conftest.$ac_objext conftest$ac_exeext
2083   if { { ac_try="$ac_link"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090   (eval "$ac_link") 2>conftest.err
2091   ac_status=$?
2092   if test -s conftest.err; then
2093     grep -v '^ *+' conftest.err >conftest.er1
2094     cat conftest.er1 >&5
2095     mv -f conftest.er1 conftest.err
2096   fi
2097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098   test $ac_status = 0; } && {
2099          test -z "$ac_c_werror_flag" ||
2100          test ! -s conftest.err
2101        } && test -s conftest$ac_exeext && {
2102          test "$cross_compiling" = yes ||
2103          $as_test_x conftest$ac_exeext
2104        }; then :
2105   ac_retval=0
2106 else
2107   $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110         ac_retval=1
2111 fi
2112   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114   # interfere with the next link command; also delete a directory that is
2115   # left behind by Apple's compiler.  We do this before executing the actions.
2116   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118   as_fn_set_status $ac_retval
2119
2120 } # ac_fn_c_try_link
2121
2122 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2123 # -------------------------------------------------------
2124 # Tests whether HEADER exists and can be compiled using the include files in
2125 # INCLUDES, setting the cache variable VAR accordingly.
2126 ac_fn_c_check_header_compile ()
2127 {
2128   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132   $as_echo_n "(cached) " >&6
2133 else
2134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 $4
2137 #include <$2>
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140   eval "$3=yes"
2141 else
2142   eval "$3=no"
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 fi
2146 eval ac_res=\$$3
2147                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151 } # ac_fn_c_check_header_compile
2152
2153 # ac_fn_c_try_run LINENO
2154 # ----------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2157 ac_fn_c_try_run ()
2158 {
2159   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160   if { { ac_try="$ac_link"
2161 case "(($ac_try" in
2162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163   *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167   (eval "$ac_link") 2>&5
2168   ac_status=$?
2169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171   { { case "(($ac_try" in
2172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173   *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177   (eval "$ac_try") 2>&5
2178   ac_status=$?
2179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180   test $ac_status = 0; }; }; then :
2181   ac_retval=0
2182 else
2183   $as_echo "$as_me: program exited with status $ac_status" >&5
2184        $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187        ac_retval=$ac_status
2188 fi
2189   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191   as_fn_set_status $ac_retval
2192
2193 } # ac_fn_c_try_run
2194
2195 # ac_fn_c_check_func LINENO FUNC VAR
2196 # ----------------------------------
2197 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2198 ac_fn_c_check_func ()
2199 {
2200   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204   $as_echo_n "(cached) " >&6
2205 else
2206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2210 #define $2 innocuous_$2
2211
2212 /* System header to define __stub macros and hopefully few prototypes,
2213     which can conflict with char $2 (); below.
2214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2215     <limits.h> exists even on freestanding compilers.  */
2216
2217 #ifdef __STDC__
2218 # include <limits.h>
2219 #else
2220 # include <assert.h>
2221 #endif
2222
2223 #undef $2
2224
2225 /* Override any GCC internal prototype to avoid an error.
2226    Use char because int might match the return type of a GCC
2227    builtin and then its argument prototype would still apply.  */
2228 #ifdef __cplusplus
2229 extern "C"
2230 #endif
2231 char $2 ();
2232 /* The GNU C library defines this for functions which it implements
2233     to always fail with ENOSYS.  Some functions are actually named
2234     something starting with __ and the normal name is an alias.  */
2235 #if defined __stub_$2 || defined __stub___$2
2236 choke me
2237 #endif
2238
2239 int
2240 main ()
2241 {
2242 return $2 ();
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_link "$LINENO"; then :
2248   eval "$3=yes"
2249 else
2250   eval "$3=no"
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext \
2253     conftest$ac_exeext conftest.$ac_ext
2254 fi
2255 eval ac_res=\$$3
2256                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259
2260 } # ac_fn_c_check_func
2261
2262 # ac_fn_cxx_try_cpp LINENO
2263 # ------------------------
2264 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2265 ac_fn_cxx_try_cpp ()
2266 {
2267   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268   if { { ac_try="$ac_cpp conftest.$ac_ext"
2269 case "(($ac_try" in
2270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271   *) ac_try_echo=$ac_try;;
2272 esac
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2276   ac_status=$?
2277   if test -s conftest.err; then
2278     grep -v '^ *+' conftest.err >conftest.er1
2279     cat conftest.er1 >&5
2280     mv -f conftest.er1 conftest.err
2281   fi
2282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283   test $ac_status = 0; } > conftest.i && {
2284          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2285          test ! -s conftest.err
2286        }; then :
2287   ac_retval=0
2288 else
2289   $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292     ac_retval=1
2293 fi
2294   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295   as_fn_set_status $ac_retval
2296
2297 } # ac_fn_cxx_try_cpp
2298
2299 # ac_fn_cxx_try_link LINENO
2300 # -------------------------
2301 # Try to link conftest.$ac_ext, and return whether this succeeded.
2302 ac_fn_cxx_try_link ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   rm -f conftest.$ac_objext conftest$ac_exeext
2306   if { { ac_try="$ac_link"
2307 case "(($ac_try" in
2308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309   *) ac_try_echo=$ac_try;;
2310 esac
2311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312 $as_echo "$ac_try_echo"; } >&5
2313   (eval "$ac_link") 2>conftest.err
2314   ac_status=$?
2315   if test -s conftest.err; then
2316     grep -v '^ *+' conftest.err >conftest.er1
2317     cat conftest.er1 >&5
2318     mv -f conftest.er1 conftest.err
2319   fi
2320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321   test $ac_status = 0; } && {
2322          test -z "$ac_cxx_werror_flag" ||
2323          test ! -s conftest.err
2324        } && test -s conftest$ac_exeext && {
2325          test "$cross_compiling" = yes ||
2326          $as_test_x conftest$ac_exeext
2327        }; then :
2328   ac_retval=0
2329 else
2330   $as_echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333         ac_retval=1
2334 fi
2335   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2336   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2337   # interfere with the next link command; also delete a directory that is
2338   # left behind by Apple's compiler.  We do this before executing the actions.
2339   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2340   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341   as_fn_set_status $ac_retval
2342
2343 } # ac_fn_cxx_try_link
2344
2345 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2346 # -------------------------------------------
2347 # Tests whether TYPE exists after having included INCLUDES, setting cache
2348 # variable VAR accordingly.
2349 ac_fn_c_check_type ()
2350 {
2351   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2353 $as_echo_n "checking for $2... " >&6; }
2354 if eval \${$3+:} false; then :
2355   $as_echo_n "(cached) " >&6
2356 else
2357   eval "$3=no"
2358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h.  */
2360 $4
2361 int
2362 main ()
2363 {
2364 if (sizeof ($2))
2365          return 0;
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 $4
2374 int
2375 main ()
2376 {
2377 if (sizeof (($2)))
2378             return 0;
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384
2385 else
2386   eval "$3=yes"
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 fi
2392 eval ac_res=\$$3
2393                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2395   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2396
2397 } # ac_fn_c_check_type
2398
2399 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2400 # -------------------------------------------------------
2401 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2402 # the include files in INCLUDES and setting the cache variable VAR
2403 # accordingly.
2404 ac_fn_c_check_header_mongrel ()
2405 {
2406   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407   if eval \${$3+:} false; then :
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409 $as_echo_n "checking for $2... " >&6; }
2410 if eval \${$3+:} false; then :
2411   $as_echo_n "(cached) " >&6
2412 fi
2413 eval ac_res=\$$3
2414                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416 else
2417   # Is the header compilable?
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2419 $as_echo_n "checking $2 usability... " >&6; }
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h.  */
2422 $4
2423 #include <$2>
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426   ac_header_compiler=yes
2427 else
2428   ac_header_compiler=no
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2432 $as_echo "$ac_header_compiler" >&6; }
2433
2434 # Is the header present?
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2436 $as_echo_n "checking $2 presence... " >&6; }
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h.  */
2439 #include <$2>
2440 _ACEOF
2441 if ac_fn_c_try_cpp "$LINENO"; then :
2442   ac_header_preproc=yes
2443 else
2444   ac_header_preproc=no
2445 fi
2446 rm -f conftest.err conftest.i conftest.$ac_ext
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2448 $as_echo "$ac_header_preproc" >&6; }
2449
2450 # So?  What about this header?
2451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2452   yes:no: )
2453     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2454 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2456 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2457     ;;
2458   no:yes:* )
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2460 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2462 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2464 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2466 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2468 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2469     ;;
2470 esac
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if eval \${$3+:} false; then :
2474   $as_echo_n "(cached) " >&6
2475 else
2476   eval "$3=\$ac_header_compiler"
2477 fi
2478 eval ac_res=\$$3
2479                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 fi
2482   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483
2484 } # ac_fn_c_check_header_mongrel
2485
2486 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2487 # --------------------------------------------
2488 # Tries to find the compile-time value of EXPR in a program that includes
2489 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2490 # computed
2491 ac_fn_c_compute_int ()
2492 {
2493   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494   if test "$cross_compiling" = yes; then
2495     # Depending upon the size, compute the lo and hi bounds.
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h.  */
2498 $4
2499 int
2500 main ()
2501 {
2502 static int test_array [1 - 2 * !(($2) >= 0)];
2503 test_array [0] = 0
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   ac_lo=0 ac_mid=0
2511   while :; do
2512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $4
2515 int
2516 main ()
2517 {
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2519 test_array [0] = 0
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526   ac_hi=$ac_mid; break
2527 else
2528   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2529                         if test $ac_lo -le $ac_mid; then
2530                           ac_lo= ac_hi=
2531                           break
2532                         fi
2533                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536   done
2537 else
2538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h.  */
2540 $4
2541 int
2542 main ()
2543 {
2544 static int test_array [1 - 2 * !(($2) < 0)];
2545 test_array [0] = 0
2546
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552   ac_hi=-1 ac_mid=-1
2553   while :; do
2554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 $4
2557 int
2558 main ()
2559 {
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2561 test_array [0] = 0
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568   ac_lo=$ac_mid; break
2569 else
2570   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2571                         if test $ac_mid -le $ac_hi; then
2572                           ac_lo= ac_hi=
2573                           break
2574                         fi
2575                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578   done
2579 else
2580   ac_lo= ac_hi=
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 # Binary search between lo and hi bounds.
2586 while test "x$ac_lo" != "x$ac_hi"; do
2587   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h.  */
2590 $4
2591 int
2592 main ()
2593 {
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2595 test_array [0] = 0
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602   ac_hi=$ac_mid
2603 else
2604   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 done
2608 case $ac_lo in #((
2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2610 '') ac_retval=1 ;;
2611 esac
2612   else
2613     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h.  */
2615 $4
2616 static long int longval () { return $2; }
2617 static unsigned long int ulongval () { return $2; }
2618 #include <stdio.h>
2619 #include <stdlib.h>
2620 int
2621 main ()
2622 {
2623
2624   FILE *f = fopen ("conftest.val", "w");
2625   if (! f)
2626     return 1;
2627   if (($2) < 0)
2628     {
2629       long int i = longval ();
2630       if (i != ($2))
2631         return 1;
2632       fprintf (f, "%ld", i);
2633     }
2634   else
2635     {
2636       unsigned long int i = ulongval ();
2637       if (i != ($2))
2638         return 1;
2639       fprintf (f, "%lu", i);
2640     }
2641   /* Do not output a trailing newline, as this causes \r\n confusion
2642      on some platforms.  */
2643   return ferror (f) || fclose (f) != 0;
2644
2645   ;
2646   return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_run "$LINENO"; then :
2650   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2651 else
2652   ac_retval=1
2653 fi
2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2655   conftest.$ac_objext conftest.beam conftest.$ac_ext
2656 rm -f conftest.val
2657
2658   fi
2659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660   as_fn_set_status $ac_retval
2661
2662 } # ac_fn_c_compute_int
2663
2664 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2665 # ----------------------------------------------------
2666 # Tries to find if the field MEMBER exists in type AGGR, after including
2667 # INCLUDES, setting cache variable VAR accordingly.
2668 ac_fn_c_check_member ()
2669 {
2670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2672 $as_echo_n "checking for $2.$3... " >&6; }
2673 if eval \${$4+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h.  */
2678 $5
2679 int
2680 main ()
2681 {
2682 static $2 ac_aggr;
2683 if (ac_aggr.$3)
2684 return 0;
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 if ac_fn_c_try_compile "$LINENO"; then :
2690   eval "$4=yes"
2691 else
2692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h.  */
2694 $5
2695 int
2696 main ()
2697 {
2698 static $2 ac_aggr;
2699 if (sizeof ac_aggr.$3)
2700 return 0;
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706   eval "$4=yes"
2707 else
2708   eval "$4=no"
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 eval ac_res=\$$4
2715                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718
2719 } # ac_fn_c_check_member
2720
2721 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2722 # ---------------------------------------------
2723 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2724 # accordingly.
2725 ac_fn_c_check_decl ()
2726 {
2727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728   as_decl_name=`echo $2|sed 's/ *(.*//'`
2729   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2731 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2732 if eval \${$3+:} false; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h.  */
2737 $4
2738 int
2739 main ()
2740 {
2741 #ifndef $as_decl_name
2742 #ifdef __cplusplus
2743   (void) $as_decl_use;
2744 #else
2745   (void) $as_decl_name;
2746 #endif
2747 #endif
2748
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 if ac_fn_c_try_compile "$LINENO"; then :
2754   eval "$3=yes"
2755 else
2756   eval "$3=no"
2757 fi
2758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 fi
2760 eval ac_res=\$$3
2761                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764
2765 } # ac_fn_c_check_decl
2766
2767 # ac_fn_cxx_try_run LINENO
2768 # ------------------------
2769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2770 # that executables *can* be run.
2771 ac_fn_cxx_try_run ()
2772 {
2773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774   if { { ac_try="$ac_link"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2780 $as_echo "$ac_try_echo"; } >&5
2781   (eval "$ac_link") 2>&5
2782   ac_status=$?
2783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2784   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2785   { { case "(($ac_try" in
2786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787   *) ac_try_echo=$ac_try;;
2788 esac
2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790 $as_echo "$ac_try_echo"; } >&5
2791   (eval "$ac_try") 2>&5
2792   ac_status=$?
2793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794   test $ac_status = 0; }; }; then :
2795   ac_retval=0
2796 else
2797   $as_echo "$as_me: program exited with status $ac_status" >&5
2798        $as_echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801        ac_retval=$ac_status
2802 fi
2803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805   as_fn_set_status $ac_retval
2806
2807 } # ac_fn_cxx_try_run
2808
2809 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2810 # ---------------------------------------------------------
2811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2812 # the include files in INCLUDES and setting the cache variable VAR
2813 # accordingly.
2814 ac_fn_cxx_check_header_mongrel ()
2815 {
2816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817   if eval \${$3+:} false; then :
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2819 $as_echo_n "checking for $2... " >&6; }
2820 if eval \${$3+:} false; then :
2821   $as_echo_n "(cached) " >&6
2822 fi
2823 eval ac_res=\$$3
2824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 else
2827   # Is the header compilable?
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2829 $as_echo_n "checking $2 usability... " >&6; }
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h.  */
2832 $4
2833 #include <$2>
2834 _ACEOF
2835 if ac_fn_cxx_try_compile "$LINENO"; then :
2836   ac_header_compiler=yes
2837 else
2838   ac_header_compiler=no
2839 fi
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2842 $as_echo "$ac_header_compiler" >&6; }
2843
2844 # Is the header present?
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2846 $as_echo_n "checking $2 presence... " >&6; }
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h.  */
2849 #include <$2>
2850 _ACEOF
2851 if ac_fn_cxx_try_cpp "$LINENO"; then :
2852   ac_header_preproc=yes
2853 else
2854   ac_header_preproc=no
2855 fi
2856 rm -f conftest.err conftest.i conftest.$ac_ext
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2858 $as_echo "$ac_header_preproc" >&6; }
2859
2860 # So?  What about this header?
2861 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2862   yes:no: )
2863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2867     ;;
2868   no:yes:* )
2869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2872 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2876 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2879     ;;
2880 esac
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2882 $as_echo_n "checking for $2... " >&6; }
2883 if eval \${$3+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   eval "$3=\$ac_header_compiler"
2887 fi
2888 eval ac_res=\$$3
2889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2890 $as_echo "$ac_res" >&6; }
2891 fi
2892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2893
2894 } # ac_fn_cxx_check_header_mongrel
2895 cat >config.log <<_ACEOF
2896 This file contains any messages produced by compilers while
2897 running configure, to aid debugging if configure makes a mistake.
2898
2899 It was created by bacula $as_me 5.1.14, which was
2900 generated by GNU Autoconf 2.68.  Invocation command line was
2901
2902   $ $0 $@
2903
2904 _ACEOF
2905 exec 5>>config.log
2906 {
2907 cat <<_ASUNAME
2908 ## --------- ##
2909 ## Platform. ##
2910 ## --------- ##
2911
2912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2917
2918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2919 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2920
2921 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2922 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2924 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2925 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2926 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2927 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2928
2929 _ASUNAME
2930
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     $as_echo "PATH: $as_dir"
2937   done
2938 IFS=$as_save_IFS
2939
2940 } >&5
2941
2942 cat >&5 <<_ACEOF
2943
2944
2945 ## ----------- ##
2946 ## Core tests. ##
2947 ## ----------- ##
2948
2949 _ACEOF
2950
2951
2952 # Keep a trace of the command line.
2953 # Strip out --no-create and --no-recursion so they do not pile up.
2954 # Strip out --silent because we don't want to record it for future runs.
2955 # Also quote any args containing shell meta-characters.
2956 # Make two passes to allow for proper duplicate-argument suppression.
2957 ac_configure_args=
2958 ac_configure_args0=
2959 ac_configure_args1=
2960 ac_must_keep_next=false
2961 for ac_pass in 1 2
2962 do
2963   for ac_arg
2964   do
2965     case $ac_arg in
2966     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2967     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2968     | -silent | --silent | --silen | --sile | --sil)
2969       continue ;;
2970     *\'*)
2971       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2972     esac
2973     case $ac_pass in
2974     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2975     2)
2976       as_fn_append ac_configure_args1 " '$ac_arg'"
2977       if test $ac_must_keep_next = true; then
2978         ac_must_keep_next=false # Got value, back to normal.
2979       else
2980         case $ac_arg in
2981           *=* | --config-cache | -C | -disable-* | --disable-* \
2982           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2983           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2984           | -with-* | --with-* | -without-* | --without-* | --x)
2985             case "$ac_configure_args0 " in
2986               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2987             esac
2988             ;;
2989           -* ) ac_must_keep_next=true ;;
2990         esac
2991       fi
2992       as_fn_append ac_configure_args " '$ac_arg'"
2993       ;;
2994     esac
2995   done
2996 done
2997 { ac_configure_args0=; unset ac_configure_args0;}
2998 { ac_configure_args1=; unset ac_configure_args1;}
2999
3000 # When interrupted or exit'd, cleanup temporary files, and complete
3001 # config.log.  We remove comments because anyway the quotes in there
3002 # would cause problems or look ugly.
3003 # WARNING: Use '\'' to represent an apostrophe within the trap.
3004 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3005 trap 'exit_status=$?
3006   # Save into config.log some information that might help in debugging.
3007   {
3008     echo
3009
3010     $as_echo "## ---------------- ##
3011 ## Cache variables. ##
3012 ## ---------------- ##"
3013     echo
3014     # The following way of writing the cache mishandles newlines in values,
3015 (
3016   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3017     eval ac_val=\$$ac_var
3018     case $ac_val in #(
3019     *${as_nl}*)
3020       case $ac_var in #(
3021       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3023       esac
3024       case $ac_var in #(
3025       _ | IFS | as_nl) ;; #(
3026       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3027       *) { eval $ac_var=; unset $ac_var;} ;;
3028       esac ;;
3029     esac
3030   done
3031   (set) 2>&1 |
3032     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3033     *${as_nl}ac_space=\ *)
3034       sed -n \
3035         "s/'\''/'\''\\\\'\'''\''/g;
3036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3037       ;; #(
3038     *)
3039       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3040       ;;
3041     esac |
3042     sort
3043 )
3044     echo
3045
3046     $as_echo "## ----------------- ##
3047 ## Output variables. ##
3048 ## ----------------- ##"
3049     echo
3050     for ac_var in $ac_subst_vars
3051     do
3052       eval ac_val=\$$ac_var
3053       case $ac_val in
3054       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3055       esac
3056       $as_echo "$ac_var='\''$ac_val'\''"
3057     done | sort
3058     echo
3059
3060     if test -n "$ac_subst_files"; then
3061       $as_echo "## ------------------- ##
3062 ## File substitutions. ##
3063 ## ------------------- ##"
3064       echo
3065       for ac_var in $ac_subst_files
3066       do
3067         eval ac_val=\$$ac_var
3068         case $ac_val in
3069         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070         esac
3071         $as_echo "$ac_var='\''$ac_val'\''"
3072       done | sort
3073       echo
3074     fi
3075
3076     if test -s confdefs.h; then
3077       $as_echo "## ----------- ##
3078 ## confdefs.h. ##
3079 ## ----------- ##"
3080       echo
3081       cat confdefs.h
3082       echo
3083     fi
3084     test "$ac_signal" != 0 &&
3085       $as_echo "$as_me: caught signal $ac_signal"
3086     $as_echo "$as_me: exit $exit_status"
3087   } >&5
3088   rm -f core *.core core.conftest.* &&
3089     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3090     exit $exit_status
3091 ' 0
3092 for ac_signal in 1 2 13 15; do
3093   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3094 done
3095 ac_signal=0
3096
3097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3098 rm -f -r conftest* confdefs.h
3099
3100 $as_echo "/* confdefs.h */" > confdefs.h
3101
3102 # Predefined preprocessor variables.
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_NAME "$PACKAGE_NAME"
3106 _ACEOF
3107
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3110 _ACEOF
3111
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3114 _ACEOF
3115
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_STRING "$PACKAGE_STRING"
3118 _ACEOF
3119
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3122 _ACEOF
3123
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE_URL "$PACKAGE_URL"
3126 _ACEOF
3127
3128
3129 # Let the site file select an alternate cache file if it wants to.
3130 # Prefer an explicitly selected file to automatically selected ones.
3131 ac_site_file1=NONE
3132 ac_site_file2=NONE
3133 if test -n "$CONFIG_SITE"; then
3134   # We do not want a PATH search for config.site.
3135   case $CONFIG_SITE in #((
3136     -*)  ac_site_file1=./$CONFIG_SITE;;
3137     */*) ac_site_file1=$CONFIG_SITE;;
3138     *)   ac_site_file1=./$CONFIG_SITE;;
3139   esac
3140 elif test "x$prefix" != xNONE; then
3141   ac_site_file1=$prefix/share/config.site
3142   ac_site_file2=$prefix/etc/config.site
3143 else
3144   ac_site_file1=$ac_default_prefix/share/config.site
3145   ac_site_file2=$ac_default_prefix/etc/config.site
3146 fi
3147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3148 do
3149   test "x$ac_site_file" = xNONE && continue
3150   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3153     sed 's/^/| /' "$ac_site_file" >&5
3154     . "$ac_site_file" \
3155       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "failed to load site script $ac_site_file
3158 See \`config.log' for more details" "$LINENO" 5; }
3159   fi
3160 done
3161
3162 if test -r "$cache_file"; then
3163   # Some versions of bash will fail to source /dev/null (special files
3164   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3165   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3166     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3167 $as_echo "$as_me: loading cache $cache_file" >&6;}
3168     case $cache_file in
3169       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3170       *)                      . "./$cache_file";;
3171     esac
3172   fi
3173 else
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3175 $as_echo "$as_me: creating cache $cache_file" >&6;}
3176   >$cache_file
3177 fi
3178
3179 as_fn_append ac_header_list " stdlib.h"
3180 as_fn_append ac_header_list " unistd.h"
3181 as_fn_append ac_header_list " sys/param.h"
3182 # Check that the precious variables saved in the cache have kept the same
3183 # value.
3184 ac_cache_corrupted=false
3185 for ac_var in $ac_precious_vars; do
3186   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3187   eval ac_new_set=\$ac_env_${ac_var}_set
3188   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3189   eval ac_new_val=\$ac_env_${ac_var}_value
3190   case $ac_old_set,$ac_new_set in
3191     set,)
3192       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3193 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3194       ac_cache_corrupted=: ;;
3195     ,set)
3196       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3197 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3198       ac_cache_corrupted=: ;;
3199     ,);;
3200     *)
3201       if test "x$ac_old_val" != "x$ac_new_val"; then
3202         # differences in whitespace do not lead to failure.
3203         ac_old_val_w=`echo x $ac_old_val`
3204         ac_new_val_w=`echo x $ac_new_val`
3205         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3206           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3207 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3208           ac_cache_corrupted=:
3209         else
3210           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3211 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3212           eval $ac_var=\$ac_old_val
3213         fi
3214         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3215 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3216         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3217 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3218       fi;;
3219   esac
3220   # Pass precious variables to config.status.
3221   if test "$ac_new_set" = set; then
3222     case $ac_new_val in
3223     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3224     *) ac_arg=$ac_var=$ac_new_val ;;
3225     esac
3226     case " $ac_configure_args " in
3227       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3228       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3229     esac
3230   fi
3231 done
3232 if $ac_cache_corrupted; then
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3236 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3237   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3238 fi
3239 ## -------------------- ##
3240 ## Main body of script. ##
3241 ## -------------------- ##
3242
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249
3250
3251
3252 BUILD_DIR=`pwd`
3253 cd ..
3254 TOP_DIR=`pwd`
3255 cd ${BUILD_DIR}
3256
3257
3258 ac_aux_dir=
3259 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3260   if test -f "$ac_dir/install-sh"; then
3261     ac_aux_dir=$ac_dir
3262     ac_install_sh="$ac_aux_dir/install-sh -c"
3263     break
3264   elif test -f "$ac_dir/install.sh"; then
3265     ac_aux_dir=$ac_dir
3266     ac_install_sh="$ac_aux_dir/install.sh -c"
3267     break
3268   elif test -f "$ac_dir/shtool"; then
3269     ac_aux_dir=$ac_dir
3270     ac_install_sh="$ac_aux_dir/shtool install -c"
3271     break
3272   fi
3273 done
3274 if test -z "$ac_aux_dir"; then
3275   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3276 fi
3277
3278 # These three variables are undocumented and unsupported,
3279 # and are intended to be withdrawn in a future Autoconf release.
3280 # They can cause serious problems if a builder's source tree is in a directory
3281 # whose full name contains unusual characters.
3282 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3283 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3284 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3285
3286
3287 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3288
3289
3290 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3291 WIN32MAINDIR=${BUILD_DIR}
3292 WIN32TOPDIR=${TOP_DIR}
3293
3294
3295
3296
3297 for ac_prog in true
3298 do
3299   # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_path_TRUEPRG+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   case $TRUEPRG in
3307   [\\/]* | ?:[\\/]*)
3308   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3309   ;;
3310   *)
3311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314   IFS=$as_save_IFS
3315   test -z "$as_dir" && as_dir=.
3316     for ac_exec_ext in '' $ac_executable_extensions; do
3317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323   done
3324 IFS=$as_save_IFS
3325
3326   ;;
3327 esac
3328 fi
3329 TRUEPRG=$ac_cv_path_TRUEPRG
3330 if test -n "$TRUEPRG"; then
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3332 $as_echo "$TRUEPRG" >&6; }
3333 else
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339   test -n "$TRUEPRG" && break
3340 done
3341 test -n "$TRUEPRG" || TRUEPRG=":"
3342
3343 for ac_prog in false
3344 do
3345   # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_path_FALSEPRG+:} false; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   case $FALSEPRG in
3353   [\\/]* | ?:[\\/]*)
3354   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3355   ;;
3356   *)
3357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_exec_ext in '' $ac_executable_extensions; do
3363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369   done
3370 IFS=$as_save_IFS
3371
3372   ;;
3373 esac
3374 fi
3375 FALSEPRG=$ac_cv_path_FALSEPRG
3376 if test -n "$FALSEPRG"; then
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3378 $as_echo "$FALSEPRG" >&6; }
3379 else
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385   test -n "$FALSEPRG" && break
3386 done
3387 test -n "$FALSEPRG" || FALSEPRG=":"
3388
3389
3390
3391 post_host=
3392 if test "x$BACULA" != x; then
3393    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3394 fi
3395 BACULA=${BACULA:-Bacula}
3396 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3397 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3398 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3399 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3400
3401 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3402 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3403 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3404
3405 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3406 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3407 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3408
3409
3410 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3411 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3412
3413 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3414 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3415
3416
3417 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3418
3419 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3420
3421
3422 echo "configuring for ${BACULA} $VERSION ($DATE)"
3423
3424
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437   $as_echo_n "(cached) " >&6
3438 else
3439   if test -n "$CC"; then
3440   ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447     for ac_exec_ext in '' $ac_executable_extensions; do
3448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451     break 2
3452   fi
3453 done
3454   done
3455 IFS=$as_save_IFS
3456
3457 fi
3458 fi
3459 CC=$ac_cv_prog_CC
3460 if test -n "$CC"; then
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462 $as_echo "$CC" >&6; }
3463 else
3464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 fi
3467
3468
3469 fi
3470 if test -z "$ac_cv_prog_CC"; then
3471   ac_ct_CC=$CC
3472   # Extract the first word of "gcc", so it can be a program name with args.
3473 set dummy gcc; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   if test -n "$ac_ct_CC"; then
3480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487     for ac_exec_ext in '' $ac_executable_extensions; do
3488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489     ac_cv_prog_ac_ct_CC="gcc"
3490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494   done
3495 IFS=$as_save_IFS
3496
3497 fi
3498 fi
3499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3503 else
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 fi
3507
3508   if test "x$ac_ct_CC" = x; then
3509     CC=""
3510   else
3511     case $cross_compiling:$ac_tool_warned in
3512 yes:)
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515 ac_tool_warned=yes ;;
3516 esac
3517     CC=$ac_ct_CC
3518   fi
3519 else
3520   CC="$ac_cv_prog_CC"
3521 fi
3522
3523 if test -z "$CC"; then
3524           if test -n "$ac_tool_prefix"; then
3525     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3526 set dummy ${ac_tool_prefix}cc; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530   $as_echo_n "(cached) " >&6
3531 else
3532   if test -n "$CC"; then
3533   ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538   IFS=$as_save_IFS
3539   test -z "$as_dir" && as_dir=.
3540     for ac_exec_ext in '' $ac_executable_extensions; do
3541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3542     ac_cv_prog_CC="${ac_tool_prefix}cc"
3543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544     break 2
3545   fi
3546 done
3547   done
3548 IFS=$as_save_IFS
3549
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562   fi
3563 fi
3564 if test -z "$CC"; then
3565   # Extract the first word of "cc", so it can be a program name with args.
3566 set dummy cc; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_CC+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   if test -n "$CC"; then
3573   ac_cv_prog_CC="$CC" # Let the user override the test.
3574 else
3575   ac_prog_rejected=no
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581     for ac_exec_ext in '' $ac_executable_extensions; do
3582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3584        ac_prog_rejected=yes
3585        continue
3586      fi
3587     ac_cv_prog_CC="cc"
3588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592   done
3593 IFS=$as_save_IFS
3594
3595 if test $ac_prog_rejected = yes; then
3596   # We found a bogon in the path, so make sure we never use it.
3597   set dummy $ac_cv_prog_CC
3598   shift
3599   if test $# != 0; then
3600     # We chose a different compiler from the bogus one.
3601     # However, it has the same basename, so the bogon will be chosen
3602     # first if we set CC to just the basename; use the full file name.
3603     shift
3604     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3605   fi
3606 fi
3607 fi
3608 fi
3609 CC=$ac_cv_prog_CC
3610 if test -n "$CC"; then
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3613 else
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618
3619 fi
3620 if test -z "$CC"; then
3621   if test -n "$ac_tool_prefix"; then
3622   for ac_prog in cl.exe
3623   do
3624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if ${ac_cv_prog_CC+:} false; then :
3629   $as_echo_n "(cached) " >&6
3630 else
3631   if test -n "$CC"; then
3632   ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639     for ac_exec_ext in '' $ac_executable_extensions; do
3640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643     break 2
3644   fi
3645 done
3646   done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 CC=$ac_cv_prog_CC
3652 if test -n "$CC"; then
3653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3654 $as_echo "$CC" >&6; }
3655 else
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3659
3660
3661     test -n "$CC" && break
3662   done
3663 fi
3664 if test -z "$CC"; then
3665   ac_ct_CC=$CC
3666   for ac_prog in cl.exe
3667 do
3668   # Extract the first word of "$ac_prog", so it can be a program name with args.
3669 set dummy $ac_prog; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   if test -n "$ac_ct_CC"; then
3676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683     for ac_exec_ext in '' $ac_executable_extensions; do
3684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685     ac_cv_prog_ac_ct_CC="$ac_prog"
3686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690   done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696 if test -n "$ac_ct_CC"; then
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3698 $as_echo "$ac_ct_CC" >&6; }
3699 else
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705   test -n "$ac_ct_CC" && break
3706 done
3707
3708   if test "x$ac_ct_CC" = x; then
3709     CC=""
3710   else
3711     case $cross_compiling:$ac_tool_warned in
3712 yes:)
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3715 ac_tool_warned=yes ;;
3716 esac
3717     CC=$ac_ct_CC
3718   fi
3719 fi
3720
3721 fi
3722
3723
3724 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "no acceptable C compiler found in \$PATH
3727 See \`config.log' for more details" "$LINENO" 5; }
3728
3729 # Provide some information about the compiler.
3730 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3731 set X $ac_compile
3732 ac_compiler=$2
3733 for ac_option in --version -v -V -qversion; do
3734   { { ac_try="$ac_compiler $ac_option >&5"
3735 case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3742   ac_status=$?
3743   if test -s conftest.err; then
3744     sed '10a\
3745 ... rest of stderr output deleted ...
3746          10q' conftest.err >conftest.er1
3747     cat conftest.er1 >&5
3748   fi
3749   rm -f conftest.er1 conftest.err
3750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751   test $ac_status = 0; }
3752 done
3753
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h.  */
3756
3757 int
3758 main ()
3759 {
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 ac_clean_files_save=$ac_clean_files
3766 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3767 # Try to create an executable without -o first, disregard a.out.
3768 # It will help us diagnose broken compilers, and finding out an intuition
3769 # of exeext.
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3771 $as_echo_n "checking whether the C compiler works... " >&6; }
3772 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3773
3774 # The possible output files:
3775 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3776
3777 ac_rmfiles=
3778 for ac_file in $ac_files
3779 do
3780   case $ac_file in
3781     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3782     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3783   esac
3784 done
3785 rm -f $ac_rmfiles
3786
3787 if { { ac_try="$ac_link_default"
3788 case "(($ac_try" in
3789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790   *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794   (eval "$ac_link_default") 2>&5
3795   ac_status=$?
3796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797   test $ac_status = 0; }; then :
3798   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3799 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3800 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3801 # so that the user can short-circuit this test for compilers unknown to
3802 # Autoconf.
3803 for ac_file in $ac_files ''
3804 do
3805   test -f "$ac_file" || continue
3806   case $ac_file in
3807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3808         ;;
3809     [ab].out )
3810         # We found the default executable, but exeext='' is most
3811         # certainly right.
3812         break;;
3813     *.* )
3814         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3815         then :; else
3816            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3817         fi
3818         # We set ac_cv_exeext here because the later test for it is not
3819         # safe: cross compilers may not add the suffix if given an `-o'
3820         # argument, so we may need to know it at that point already.
3821         # Even if this section looks crufty: it has the advantage of
3822         # actually working.
3823         break;;
3824     * )
3825         break;;
3826   esac
3827 done
3828 test "$ac_cv_exeext" = no && ac_cv_exeext=
3829
3830 else
3831   ac_file=''
3832 fi
3833 if test -z "$ac_file"; then :
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error 77 "C compiler cannot create executables
3842 See \`config.log' for more details" "$LINENO" 5; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3845 $as_echo "yes" >&6; }
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3848 $as_echo_n "checking for C compiler default output file name... " >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3850 $as_echo "$ac_file" >&6; }
3851 ac_exeext=$ac_cv_exeext
3852
3853 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3854 ac_clean_files=$ac_clean_files_save
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3856 $as_echo_n "checking for suffix of executables... " >&6; }
3857 if { { ac_try="$ac_link"
3858 case "(($ac_try" in
3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860   *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864   (eval "$ac_link") 2>&5
3865   ac_status=$?
3866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867   test $ac_status = 0; }; then :
3868   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3869 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3870 # work properly (i.e., refer to `conftest.exe'), while it won't with
3871 # `rm'.
3872 for ac_file in conftest.exe conftest conftest.*; do
3873   test -f "$ac_file" || continue
3874   case $ac_file in
3875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877           break;;
3878     * ) break;;
3879   esac
3880 done
3881 else
3882   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3885 See \`config.log' for more details" "$LINENO" 5; }
3886 fi
3887 rm -f conftest conftest$ac_cv_exeext
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3889 $as_echo "$ac_cv_exeext" >&6; }
3890
3891 rm -f conftest.$ac_ext
3892 EXEEXT=$ac_cv_exeext
3893 ac_exeext=$EXEEXT
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h.  */
3896 #include <stdio.h>
3897 int
3898 main ()
3899 {
3900 FILE *f = fopen ("conftest.out", "w");
3901  return ferror (f) || fclose (f) != 0;
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 ac_clean_files="$ac_clean_files conftest.out"
3908 # Check that the compiler produces executables we can run.  If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 if test "$cross_compiling" != yes; then
3913   { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_link") 2>&5
3921   ac_status=$?
3922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923   test $ac_status = 0; }
3924   if { ac_try='./conftest$ac_cv_exeext'
3925   { { case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931   (eval "$ac_try") 2>&5
3932   ac_status=$?
3933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934   test $ac_status = 0; }; }; then
3935     cross_compiling=no
3936   else
3937     if test "$cross_compiling" = maybe; then
3938         cross_compiling=yes
3939     else
3940         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error $? "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details" "$LINENO" 5; }
3945     fi
3946   fi
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3950
3951 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3954 $as_echo_n "checking for suffix of object files... " >&6; }
3955 if ${ac_cv_objext+:} false; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960
3961 int
3962 main ()
3963 {
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 rm -f conftest.o conftest.obj
3970 if { { ac_try="$ac_compile"
3971 case "(($ac_try" in
3972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973   *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977   (eval "$ac_compile") 2>&5
3978   ac_status=$?
3979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980   test $ac_status = 0; }; then :
3981   for ac_file in conftest.o conftest.obj conftest.*; do
3982   test -f "$ac_file" || continue;
3983   case $ac_file in
3984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3986        break;;
3987   esac
3988 done
3989 else
3990   $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error $? "cannot compute suffix of object files: cannot compile
3996 See \`config.log' for more details" "$LINENO" 5; }
3997 fi
3998 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4001 $as_echo "$ac_cv_objext" >&6; }
4002 OBJEXT=$ac_cv_objext
4003 ac_objext=$OBJEXT
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4005 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4006 if ${ac_cv_c_compiler_gnu+:} false; then :
4007   $as_echo_n "(cached) " >&6
4008 else
4009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h.  */
4011
4012 int
4013 main ()
4014 {
4015 #ifndef __GNUC__
4016        choke me
4017 #endif
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024   ac_compiler_gnu=yes
4025 else
4026   ac_compiler_gnu=no
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4030
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4033 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4034 if test $ac_compiler_gnu = yes; then
4035   GCC=yes
4036 else
4037   GCC=
4038 fi
4039 ac_test_CFLAGS=${CFLAGS+set}
4040 ac_save_CFLAGS=$CFLAGS
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4042 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4043 if ${ac_cv_prog_cc_g+:} false; then :
4044   $as_echo_n "(cached) " >&6
4045 else
4046   ac_save_c_werror_flag=$ac_c_werror_flag
4047    ac_c_werror_flag=yes
4048    ac_cv_prog_cc_g=no
4049    CFLAGS="-g"
4050    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h.  */
4052
4053 int
4054 main ()
4055 {
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062   ac_cv_prog_cc_g=yes
4063 else
4064   CFLAGS=""
4065       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077
4078 else
4079   ac_c_werror_flag=$ac_save_c_werror_flag
4080          CFLAGS="-g"
4081          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 if ac_fn_c_try_compile "$LINENO"; then :
4093   ac_cv_prog_cc_g=yes
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100    ac_c_werror_flag=$ac_save_c_werror_flag
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4103 $as_echo "$ac_cv_prog_cc_g" >&6; }
4104 if test "$ac_test_CFLAGS" = set; then
4105   CFLAGS=$ac_save_CFLAGS
4106 elif test $ac_cv_prog_cc_g = yes; then
4107   if test "$GCC" = yes; then
4108     CFLAGS="-g -O2"
4109   else
4110     CFLAGS="-g"
4111   fi
4112 else
4113   if test "$GCC" = yes; then
4114     CFLAGS="-O2"
4115   else
4116     CFLAGS=
4117   fi
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4120 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4121 if ${ac_cv_prog_cc_c89+:} false; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   ac_cv_prog_cc_c89=no
4125 ac_save_CC=$CC
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h.  */
4128 #include <stdarg.h>
4129 #include <stdio.h>
4130 #include <sys/types.h>
4131 #include <sys/stat.h>
4132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4133 struct buf { int x; };
4134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4135 static char *e (p, i)
4136      char **p;
4137      int i;
4138 {
4139   return p[i];
4140 }
4141 static char *f (char * (*g) (char **, int), char **p, ...)
4142 {
4143   char *s;
4144   va_list v;
4145   va_start (v,p);
4146   s = g (p, va_arg (v,int));
4147   va_end (v);
4148   return s;
4149 }
4150
4151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4152    function prototypes and stuff, but not '\xHH' hex character constants.
4153    These don't provoke an error unfortunately, instead are silently treated
4154    as 'x'.  The following induces an error, until -std is added to get
4155    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4156    array size at least.  It's necessary to write '\x00'==0 to get something
4157    that's true only with -std.  */
4158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4159
4160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4161    inside strings and character constants.  */
4162 #define FOO(x) 'x'
4163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4164
4165 int test (int i, double x);
4166 struct s1 {int (*f) (int a);};
4167 struct s2 {int (*f) (double a);};
4168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4169 int argc;
4170 char **argv;
4171 int
4172 main ()
4173 {
4174 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4180         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4181 do
4182   CC="$ac_save_CC $ac_arg"
4183   if ac_fn_c_try_compile "$LINENO"; then :
4184   ac_cv_prog_cc_c89=$ac_arg
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext
4187   test "x$ac_cv_prog_cc_c89" != "xno" && break
4188 done
4189 rm -f conftest.$ac_ext
4190 CC=$ac_save_CC
4191
4192 fi
4193 # AC_CACHE_VAL
4194 case "x$ac_cv_prog_cc_c89" in
4195   x)
4196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4197 $as_echo "none needed" >&6; } ;;
4198   xno)
4199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4200 $as_echo "unsupported" >&6; } ;;
4201   *)
4202     CC="$CC $ac_cv_prog_cc_c89"
4203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4204 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4205 esac
4206 if test "x$ac_cv_prog_cc_c89" != xno; then :
4207
4208 fi
4209
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216 ac_ext=cpp
4217 ac_cpp='$CXXCPP $CPPFLAGS'
4218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4221 if test -z "$CXX"; then
4222   if test -n "$CCC"; then
4223     CXX=$CCC
4224   else
4225     if test -n "$ac_tool_prefix"; then
4226   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4227   do
4228     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_CXX+:} false; then :
4233   $as_echo_n "(cached) " >&6
4234 else
4235   if test -n "$CXX"; then
4236   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243     for ac_exec_ext in '' $ac_executable_extensions; do
4244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247     break 2
4248   fi
4249 done
4250   done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 CXX=$ac_cv_prog_CXX
4256 if test -n "$CXX"; then
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4258 $as_echo "$CXX" >&6; }
4259 else
4260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265     test -n "$CXX" && break
4266   done
4267 fi
4268 if test -z "$CXX"; then
4269   ac_ct_CXX=$CXX
4270   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4271 do
4272   # Extract the first word of "$ac_prog", so it can be a program name with args.
4273 set dummy $ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -n "$ac_ct_CXX"; then
4280   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287     for ac_exec_ext in '' $ac_executable_extensions; do
4288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289     ac_cv_prog_ac_ct_CXX="$ac_prog"
4290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294   done
4295 IFS=$as_save_IFS
4296
4297 fi
4298 fi
4299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4300 if test -n "$ac_ct_CXX"; then
4301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4302 $as_echo "$ac_ct_CXX" >&6; }
4303 else
4304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 fi
4307
4308
4309   test -n "$ac_ct_CXX" && break
4310 done
4311
4312   if test "x$ac_ct_CXX" = x; then
4313     CXX="g++"
4314   else
4315     case $cross_compiling:$ac_tool_warned in
4316 yes:)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319 ac_tool_warned=yes ;;
4320 esac
4321     CXX=$ac_ct_CXX
4322   fi
4323 fi
4324
4325   fi
4326 fi
4327 # Provide some information about the compiler.
4328 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4329 set X $ac_compile
4330 ac_compiler=$2
4331 for ac_option in --version -v -V -qversion; do
4332   { { ac_try="$ac_compiler $ac_option >&5"
4333 case "(($ac_try" in
4334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335   *) ac_try_echo=$ac_try;;
4336 esac
4337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 $as_echo "$ac_try_echo"; } >&5
4339   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4340   ac_status=$?
4341   if test -s conftest.err; then
4342     sed '10a\
4343 ... rest of stderr output deleted ...
4344          10q' conftest.err >conftest.er1
4345     cat conftest.er1 >&5
4346   fi
4347   rm -f conftest.er1 conftest.err
4348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349   test $ac_status = 0; }
4350 done
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4353 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4354 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h.  */
4359
4360 int
4361 main ()
4362 {
4363 #ifndef __GNUC__
4364        choke me
4365 #endif
4366
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 if ac_fn_cxx_try_compile "$LINENO"; then :
4372   ac_compiler_gnu=yes
4373 else
4374   ac_compiler_gnu=no
4375 fi
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4378
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4381 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4382 if test $ac_compiler_gnu = yes; then
4383   GXX=yes
4384 else
4385   GXX=
4386 fi
4387 ac_test_CXXFLAGS=${CXXFLAGS+set}
4388 ac_save_CXXFLAGS=$CXXFLAGS
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4390 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4391 if ${ac_cv_prog_cxx_g+:} false; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4395    ac_cxx_werror_flag=yes
4396    ac_cv_prog_cxx_g=no
4397    CXXFLAGS="-g"
4398    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 if ac_fn_cxx_try_compile "$LINENO"; then :
4410   ac_cv_prog_cxx_g=yes
4411 else
4412   CXXFLAGS=""
4413       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415
4416 int
4417 main ()
4418 {
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_cxx_try_compile "$LINENO"; then :
4425
4426 else
4427   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4428          CXXFLAGS="-g"
4429          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h.  */
4431
4432 int
4433 main ()
4434 {
4435
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_cxx_try_compile "$LINENO"; then :
4441   ac_cv_prog_cxx_g=yes
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4451 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4452 if test "$ac_test_CXXFLAGS" = set; then
4453   CXXFLAGS=$ac_save_CXXFLAGS
4454 elif test $ac_cv_prog_cxx_g = yes; then
4455   if test "$GXX" = yes; then
4456     CXXFLAGS="-g -O2"
4457   else
4458     CXXFLAGS="-g"
4459   fi
4460 else
4461   if test "$GXX" = yes; then
4462     CXXFLAGS="-O2"
4463   else
4464     CXXFLAGS=
4465   fi
4466 fi
4467 ac_ext=c
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472
4473 if test "x$CC" != xcc; then
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4475 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4478 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4479 fi
4480 set dummy $CC; ac_cc=`$as_echo "$2" |
4481                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4482 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487
4488 int
4489 main ()
4490 {
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 # Make sure it works both with $CC and with simple cc.
4497 # We do the test twice because some compilers refuse to overwrite an
4498 # existing .o file with -o, though they will create one.
4499 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4500 rm -f conftest2.*
4501 if { { case "(($ac_try" in
4502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503   *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507   (eval "$ac_try") 2>&5
4508   ac_status=$?
4509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510   test $ac_status = 0; } &&
4511    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513   *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517   (eval "$ac_try") 2>&5
4518   ac_status=$?
4519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520   test $ac_status = 0; };
4521 then
4522   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4523   if test "x$CC" != xcc; then
4524     # Test first that cc exists at all.
4525     if { ac_try='cc -c conftest.$ac_ext >&5'
4526   { { case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532   (eval "$ac_try") 2>&5
4533   ac_status=$?
4534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535   test $ac_status = 0; }; }; then
4536       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4537       rm -f conftest2.*
4538       if { { case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544   (eval "$ac_try") 2>&5
4545   ac_status=$?
4546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547   test $ac_status = 0; } &&
4548          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 $as_echo "$ac_try_echo"; } >&5
4554   (eval "$ac_try") 2>&5
4555   ac_status=$?
4556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557   test $ac_status = 0; };
4558       then
4559         # cc works too.
4560         :
4561       else
4562         # cc exists but doesn't like -o.
4563         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4564       fi
4565     fi
4566   fi
4567 else
4568   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4569 fi
4570 rm -f core conftest*
4571
4572 fi
4573 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4575 $as_echo "yes" >&6; }
4576 else
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579
4580 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4581
4582 fi
4583
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4590 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4591 # On Suns, sometimes $CPP names a directory.
4592 if test -n "$CPP" && test -d "$CPP"; then
4593   CPP=
4594 fi
4595 if test -z "$CPP"; then
4596   if ${ac_cv_prog_CPP+:} false; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599       # Double quotes because CPP needs to be expanded
4600     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4601     do
4602       ac_preproc_ok=false
4603 for ac_c_preproc_warn_flag in '' yes
4604 do
4605   # Use a header file that comes with gcc, so configuring glibc
4606   # with a fresh cross-compiler works.
4607   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608   # <limits.h> exists even on freestanding compilers.
4609   # On the NeXT, cc -E runs the code through the compiler's parser,
4610   # not just through cpp. "Syntax error" is here to catch this case.
4611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h.  */
4613 #ifdef __STDC__
4614 # include <limits.h>
4615 #else
4616 # include <assert.h>
4617 #endif
4618                      Syntax error
4619 _ACEOF
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4621
4622 else
4623   # Broken: fails on valid input.
4624 continue
4625 fi
4626 rm -f conftest.err conftest.i conftest.$ac_ext
4627
4628   # OK, works on sane cases.  Now check whether nonexistent headers
4629   # can be detected and how.
4630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h.  */
4632 #include <ac_nonexistent.h>
4633 _ACEOF
4634 if ac_fn_c_try_cpp "$LINENO"; then :
4635   # Broken: success on invalid input.
4636 continue
4637 else
4638   # Passes both tests.
4639 ac_preproc_ok=:
4640 break
4641 fi
4642 rm -f conftest.err conftest.i conftest.$ac_ext
4643
4644 done
4645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646 rm -f conftest.i conftest.err conftest.$ac_ext
4647 if $ac_preproc_ok; then :
4648   break
4649 fi
4650
4651     done
4652     ac_cv_prog_CPP=$CPP
4653
4654 fi
4655   CPP=$ac_cv_prog_CPP
4656 else
4657   ac_cv_prog_CPP=$CPP
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4660 $as_echo "$CPP" >&6; }
4661 ac_preproc_ok=false
4662 for ac_c_preproc_warn_flag in '' yes
4663 do
4664   # Use a header file that comes with gcc, so configuring glibc
4665   # with a fresh cross-compiler works.
4666   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4667   # <limits.h> exists even on freestanding compilers.
4668   # On the NeXT, cc -E runs the code through the compiler's parser,
4669   # not just through cpp. "Syntax error" is here to catch this case.
4670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h.  */
4672 #ifdef __STDC__
4673 # include <limits.h>
4674 #else
4675 # include <assert.h>
4676 #endif
4677                      Syntax error
4678 _ACEOF
4679 if ac_fn_c_try_cpp "$LINENO"; then :
4680
4681 else
4682   # Broken: fails on valid input.
4683 continue
4684 fi
4685 rm -f conftest.err conftest.i conftest.$ac_ext
4686
4687   # OK, works on sane cases.  Now check whether nonexistent headers
4688   # can be detected and how.
4689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691 #include <ac_nonexistent.h>
4692 _ACEOF
4693 if ac_fn_c_try_cpp "$LINENO"; then :
4694   # Broken: success on invalid input.
4695 continue
4696 else
4697   # Passes both tests.
4698 ac_preproc_ok=:
4699 break
4700 fi
4701 rm -f conftest.err conftest.i conftest.$ac_ext
4702
4703 done
4704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4705 rm -f conftest.i conftest.err conftest.$ac_ext
4706 if $ac_preproc_ok; then :
4707
4708 else
4709   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4712 See \`config.log' for more details" "$LINENO" 5; }
4713 fi
4714
4715 ac_ext=c
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724 if ${ac_cv_path_GREP+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   if test -z "$GREP"; then
4728   ac_path_GREP_found=false
4729   # Loop through the user's path and test for each of PROGNAME-LIST
4730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735     for ac_prog in grep ggrep; do
4736     for ac_exec_ext in '' $ac_executable_extensions; do
4737       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4739 # Check for GNU ac_path_GREP and select it if it is found.
4740   # Check for GNU $ac_path_GREP
4741 case `"$ac_path_GREP" --version 2>&1` in
4742 *GNU*)
4743   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4744 *)
4745   ac_count=0
4746   $as_echo_n 0123456789 >"conftest.in"
4747   while :
4748   do
4749     cat "conftest.in" "conftest.in" >"conftest.tmp"
4750     mv "conftest.tmp" "conftest.in"
4751     cp "conftest.in" "conftest.nl"
4752     $as_echo 'GREP' >> "conftest.nl"
4753     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755     as_fn_arith $ac_count + 1 && ac_count=$as_val
4756     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4757       # Best one so far, save it but keep looking for a better one
4758       ac_cv_path_GREP="$ac_path_GREP"
4759       ac_path_GREP_max=$ac_count
4760     fi
4761     # 10*(2^10) chars as input seems more than enough
4762     test $ac_count -gt 10 && break
4763   done
4764   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765 esac
4766
4767       $ac_path_GREP_found && break 3
4768     done
4769   done
4770   done
4771 IFS=$as_save_IFS
4772   if test -z "$ac_cv_path_GREP"; then
4773     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774   fi
4775 else
4776   ac_cv_path_GREP=$GREP
4777 fi
4778
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4781 $as_echo "$ac_cv_path_GREP" >&6; }
4782  GREP="$ac_cv_path_GREP"
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786 $as_echo_n "checking for egrep... " >&6; }
4787 if ${ac_cv_path_EGREP+:} false; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4791    then ac_cv_path_EGREP="$GREP -E"
4792    else
4793      if test -z "$EGREP"; then
4794   ac_path_EGREP_found=false
4795   # Loop through the user's path and test for each of PROGNAME-LIST
4796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801     for ac_prog in egrep; do
4802     for ac_exec_ext in '' $ac_executable_extensions; do
4803       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4805 # Check for GNU ac_path_EGREP and select it if it is found.
4806   # Check for GNU $ac_path_EGREP
4807 case `"$ac_path_EGREP" --version 2>&1` in
4808 *GNU*)
4809   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4810 *)
4811   ac_count=0
4812   $as_echo_n 0123456789 >"conftest.in"
4813   while :
4814   do
4815     cat "conftest.in" "conftest.in" >"conftest.tmp"
4816     mv "conftest.tmp" "conftest.in"
4817     cp "conftest.in" "conftest.nl"
4818     $as_echo 'EGREP' >> "conftest.nl"
4819     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821     as_fn_arith $ac_count + 1 && ac_count=$as_val
4822     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4823       # Best one so far, save it but keep looking for a better one
4824       ac_cv_path_EGREP="$ac_path_EGREP"
4825       ac_path_EGREP_max=$ac_count
4826     fi
4827     # 10*(2^10) chars as input seems more than enough
4828     test $ac_count -gt 10 && break
4829   done
4830   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 esac
4832
4833       $ac_path_EGREP_found && break 3
4834     done
4835   done
4836   done
4837 IFS=$as_save_IFS
4838   if test -z "$ac_cv_path_EGREP"; then
4839     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840   fi
4841 else
4842   ac_cv_path_EGREP=$EGREP
4843 fi
4844
4845    fi
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4848 $as_echo "$ac_cv_path_EGREP" >&6; }
4849  EGREP="$ac_cv_path_EGREP"
4850
4851
4852 if test $ac_cv_c_compiler_gnu = yes; then
4853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4854 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4855 if ${ac_cv_prog_gcc_traditional+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858     ac_pattern="Autoconf.*'x'"
4859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4861 #include <sgtty.h>
4862 Autoconf TIOCGETP
4863 _ACEOF
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4866   ac_cv_prog_gcc_traditional=yes
4867 else
4868   ac_cv_prog_gcc_traditional=no
4869 fi
4870 rm -f conftest*
4871
4872
4873   if test $ac_cv_prog_gcc_traditional = no; then
4874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h.  */
4876 #include <termio.h>
4877 Autoconf TCGETA
4878 _ACEOF
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4881   ac_cv_prog_gcc_traditional=yes
4882 fi
4883 rm -f conftest*
4884
4885   fi
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4888 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4889   if test $ac_cv_prog_gcc_traditional = yes; then
4890     CC="$CC -traditional"
4891   fi
4892 fi
4893
4894 BASECC=`basename $CC`
4895 have_gcc=no
4896 if test "x$BASECC" = xgcc; then
4897    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4898
4899    have_gcc=yes
4900 fi
4901 # Extract the first word of "$CXX", so it can be a program name with args.
4902 set dummy $CXX; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_path_CXX+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   case $CXX in
4909   [\\/]* | ?:[\\/]*)
4910   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4911   ;;
4912   *)
4913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918     for ac_exec_ext in '' $ac_executable_extensions; do
4919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925   done
4926 IFS=$as_save_IFS
4927
4928   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4929   ;;
4930 esac
4931 fi
4932 CXX=$ac_cv_path_CXX
4933 if test -n "$CXX"; then
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4935 $as_echo "$CXX" >&6; }
4936 else
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940
4941
4942 if test ! -e $CXX; then
4943    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4944 fi
4945
4946 # Find a good install program.  We prefer a C program (faster),
4947 # so one script is as good as another.  But avoid the broken or
4948 # incompatible versions:
4949 # SysV /etc/install, /usr/sbin/install
4950 # SunOS /usr/etc/install
4951 # IRIX /sbin/install
4952 # AIX /bin/install
4953 # AmigaOS /C/install, which installs bootblocks on floppy discs
4954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4957 # OS/2's system install, which has a completely different semantic
4958 # ./install, which can be erroneously created by make from ./install.sh.
4959 # Reject install programs that cannot install multiple files.
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4961 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4962 if test -z "$INSTALL"; then
4963 if ${ac_cv_path_install+:} false; then :
4964   $as_echo_n "(cached) " >&6
4965 else
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     # Account for people who put trailing slashes in PATH elements.
4972 case $as_dir/ in #((
4973   ./ | .// | /[cC]/* | \
4974   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4975   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4976   /usr/ucb/* ) ;;
4977   *)
4978     # OSF1 and SCO ODT 3.0 have their own names for install.
4979     # Don't use installbsd from OSF since it installs stuff as root
4980     # by default.
4981     for ac_prog in ginstall scoinst install; do
4982       for ac_exec_ext in '' $ac_executable_extensions; do
4983         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984           if test $ac_prog = install &&
4985             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4986             # AIX install.  It has an incompatible calling convention.
4987             :
4988           elif test $ac_prog = install &&
4989             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4990             # program-specific install script used by HP pwplus--don't use.
4991             :
4992           else
4993             rm -rf conftest.one conftest.two conftest.dir
4994             echo one > conftest.one
4995             echo two > conftest.two
4996             mkdir conftest.dir
4997             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4998               test -s conftest.one && test -s conftest.two &&
4999               test -s conftest.dir/conftest.one &&
5000               test -s conftest.dir/conftest.two
5001             then
5002               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5003               break 3
5004             fi
5005           fi
5006         fi
5007       done
5008     done
5009     ;;
5010 esac
5011
5012   done
5013 IFS=$as_save_IFS
5014
5015 rm -rf conftest.one conftest.two conftest.dir
5016
5017 fi
5018   if test "${ac_cv_path_install+set}" = set; then
5019     INSTALL=$ac_cv_path_install
5020   else
5021     # As a last resort, use the slow shell script.  Don't cache a
5022     # value for INSTALL within a source directory, because that will
5023     # break other packages using the cache if that directory is
5024     # removed, or if the value is a relative name.
5025     INSTALL=$ac_install_sh
5026   fi
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5029 $as_echo "$INSTALL" >&6; }
5030
5031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5032 # It thinks the first close brace ends the variable substitution.
5033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5034
5035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5036
5037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5038
5039 # Extract the first word of "mv", so it can be a program name with args.
5040 set dummy mv; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_path_MV+:} false; then :
5044   $as_echo_n "(cached) " >&6
5045 else
5046   case $MV in
5047   [\\/]* | ?:[\\/]*)
5048   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5049   ;;
5050   *)
5051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056     for ac_exec_ext in '' $ac_executable_extensions; do
5057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060     break 2
5061   fi
5062 done
5063   done
5064 IFS=$as_save_IFS
5065
5066   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5067   ;;
5068 esac
5069 fi
5070 MV=$ac_cv_path_MV
5071 if test -n "$MV"; then
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5073 $as_echo "$MV" >&6; }
5074 else
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5078
5079
5080 # Extract the first word of "rm", so it can be a program name with args.
5081 set dummy rm; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_path_REMOVE+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   case $REMOVE in
5088   [\\/]* | ?:[\\/]*)
5089   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5090   ;;
5091   *)
5092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106
5107   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5108   ;;
5109 esac
5110 fi
5111 REMOVE=$ac_cv_path_REMOVE
5112 if test -n "$REMOVE"; then
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5114 $as_echo "$REMOVE" >&6; }
5115 else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121 # Extract the first word of "cp", so it can be a program name with args.
5122 set dummy cp; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_path_CP+:} false; then :
5126   $as_echo_n "(cached) " >&6
5127 else
5128   case $CP in
5129   [\\/]* | ?:[\\/]*)
5130   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5131   ;;
5132   *)
5133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136   IFS=$as_save_IFS
5137   test -z "$as_dir" && as_dir=.
5138     for ac_exec_ext in '' $ac_executable_extensions; do
5139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142     break 2
5143   fi
5144 done
5145   done
5146 IFS=$as_save_IFS
5147
5148   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5149   ;;
5150 esac
5151 fi
5152 CP=$ac_cv_path_CP
5153 if test -n "$CP"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5155 $as_echo "$CP" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162 # Extract the first word of "sed", so it can be a program name with args.
5163 set dummy sed; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_path_SED+:} false; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   case $SED in
5170   [\\/]* | ?:[\\/]*)
5171   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5172   ;;
5173   *)
5174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5190   ;;
5191 esac
5192 fi
5193 SED=$ac_cv_path_SED
5194 if test -n "$SED"; then
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5196 $as_echo "$SED" >&6; }
5197 else
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201
5202
5203 # Extract the first word of "echo", so it can be a program name with args.
5204 set dummy echo; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_path_ECHO+:} false; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   case $ECHO in
5211   [\\/]* | ?:[\\/]*)
5212   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5213   ;;
5214   *)
5215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220     for ac_exec_ext in '' $ac_executable_extensions; do
5221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224     break 2
5225   fi
5226 done
5227   done
5228 IFS=$as_save_IFS
5229
5230   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5231   ;;
5232 esac
5233 fi
5234 ECHO=$ac_cv_path_ECHO
5235 if test -n "$ECHO"; then
5236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5237 $as_echo "$ECHO" >&6; }
5238 else
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241 fi
5242
5243
5244 # Extract the first word of "cmp", so it can be a program name with args.
5245 set dummy cmp; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_path_CMP+:} false; then :
5249   $as_echo_n "(cached) " >&6
5250 else
5251   case $CMP in
5252   [\\/]* | ?:[\\/]*)
5253   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5254   ;;
5255   *)
5256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259   IFS=$as_save_IFS
5260   test -z "$as_dir" && as_dir=.
5261     for ac_exec_ext in '' $ac_executable_extensions; do
5262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265     break 2
5266   fi
5267 done
5268   done
5269 IFS=$as_save_IFS
5270
5271   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5272   ;;
5273 esac
5274 fi
5275 CMP=$ac_cv_path_CMP
5276 if test -n "$CMP"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5278 $as_echo "$CMP" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284
5285 # Extract the first word of "tbl", so it can be a program name with args.
5286 set dummy tbl; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_path_TBL+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   case $TBL in
5293   [\\/]* | ?:[\\/]*)
5294   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5295   ;;
5296   *)
5297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302     for ac_exec_ext in '' $ac_executable_extensions; do
5303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309   done
5310 IFS=$as_save_IFS
5311
5312   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5313   ;;
5314 esac
5315 fi
5316 TBL=$ac_cv_path_TBL
5317 if test -n "$TBL"; then
5318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5319 $as_echo "$TBL" >&6; }
5320 else
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5323 fi
5324
5325
5326 # Extract the first word of "ar", so it can be a program name with args.
5327 set dummy ar; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_path_AR+:} false; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333   case $AR in
5334   [\\/]* | ?:[\\/]*)
5335   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5336   ;;
5337   *)
5338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343     for ac_exec_ext in '' $ac_executable_extensions; do
5344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350   done
5351 IFS=$as_save_IFS
5352
5353   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5354   ;;
5355 esac
5356 fi
5357 AR=$ac_cv_path_AR
5358 if test -n "$AR"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5360 $as_echo "$AR" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367 # Extract the first word of "openssl", so it can be a program name with args.
5368 set dummy openssl; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_path_OPENSSL+:} false; then :
5372   $as_echo_n "(cached) " >&6
5373 else
5374   case $OPENSSL in
5375   [\\/]* | ?:[\\/]*)
5376   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5377   ;;
5378   *)
5379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382   IFS=$as_save_IFS
5383   test -z "$as_dir" && as_dir=.
5384     for ac_exec_ext in '' $ac_executable_extensions; do
5385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388     break 2
5389   fi
5390 done
5391   done
5392 IFS=$as_save_IFS
5393
5394   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5395   ;;
5396 esac
5397 fi
5398 OPENSSL=$ac_cv_path_OPENSSL
5399 if test -n "$OPENSSL"; then
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5401 $as_echo "$OPENSSL" >&6; }
5402 else
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406
5407
5408 # Extract the first word of "mtx", so it can be a program name with args.
5409 set dummy mtx; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_path_MTX+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   case $MTX in
5416   [\\/]* | ?:[\\/]*)
5417   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5418   ;;
5419   *)
5420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425     for ac_exec_ext in '' $ac_executable_extensions; do
5426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432   done
5433 IFS=$as_save_IFS
5434
5435   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5436   ;;
5437 esac
5438 fi
5439 MTX=$ac_cv_path_MTX
5440 if test -n "$MTX"; then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5442 $as_echo "$MTX" >&6; }
5443 else
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 # Extract the first word of "dd", so it can be a program name with args.
5450 set dummy dd; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_path_DD+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   case $DD in
5457   [\\/]* | ?:[\\/]*)
5458   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5459   ;;
5460   *)
5461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464   IFS=$as_save_IFS
5465   test -z "$as_dir" && as_dir=.
5466     for ac_exec_ext in '' $ac_executable_extensions; do
5467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470     break 2
5471   fi
5472 done
5473   done
5474 IFS=$as_save_IFS
5475
5476   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5477   ;;
5478 esac
5479 fi
5480 DD=$ac_cv_path_DD
5481 if test -n "$DD"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5483 $as_echo "$DD" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489
5490 # Extract the first word of "mkisofs", so it can be a program name with args.
5491 set dummy mkisofs; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_path_MKISOFS+:} false; then :
5495   $as_echo_n "(cached) " >&6
5496 else
5497   case $MKISOFS in
5498   [\\/]* | ?:[\\/]*)
5499   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5500   ;;
5501   *)
5502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_exec_ext in '' $ac_executable_extensions; do
5508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514   done
5515 IFS=$as_save_IFS
5516
5517   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5518   ;;
5519 esac
5520 fi
5521 MKISOFS=$ac_cv_path_MKISOFS
5522 if test -n "$MKISOFS"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5524 $as_echo "$MKISOFS" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531 # Extract the first word of "python", so it can be a program name with args.
5532 set dummy python; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_path_PYTHON+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   case $PYTHON in
5539   [\\/]* | ?:[\\/]*)
5540   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5541   ;;
5542   *)
5543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5559   ;;
5560 esac
5561 fi
5562 PYTHON=$ac_cv_path_PYTHON
5563 if test -n "$PYTHON"; then
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5565 $as_echo "$PYTHON" >&6; }
5566 else
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571
5572 # Extract the first word of "growisofs", so it can be a program name with args.
5573 set dummy growisofs; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_path_GROWISOFS+:} false; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   case $GROWISOFS in
5580   [\\/]* | ?:[\\/]*)
5581   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5582   ;;
5583   *)
5584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5600   ;;
5601 esac
5602 fi
5603 GROWISOFS=$ac_cv_path_GROWISOFS
5604 if test -n "$GROWISOFS"; then
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5606 $as_echo "$GROWISOFS" >&6; }
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5614 set dummy dvd+rw-mediainfo; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   case $DVDRWMEDIAINFO in
5621   [\\/]* | ?:[\\/]*)
5622   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5623   ;;
5624   *)
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_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5641   ;;
5642 esac
5643 fi
5644 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5645 if test -n "$DVDRWMEDIAINFO"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5647 $as_echo "$DVDRWMEDIAINFO" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5655 set dummy dvd+rw-format; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   case $DVDRWFORMAT in
5662   [\\/]* | ?:[\\/]*)
5663   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5664   ;;
5665   *)
5666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680
5681   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5682   ;;
5683 esac
5684 fi
5685 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5686 if test -n "$DVDRWFORMAT"; then
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5688 $as_echo "$DVDRWFORMAT" >&6; }
5689 else
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694
5695 # Extract the first word of "pkg-config", so it can be a program name with args.
5696 set dummy pkg-config; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_path_PKGCONFIG+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   case $PKGCONFIG in
5703   [\\/]* | ?:[\\/]*)
5704   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5705   ;;
5706   *)
5707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721
5722   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5723   ;;
5724 esac
5725 fi
5726 PKGCONFIG=$ac_cv_path_PKGCONFIG
5727 if test -n "$PKGCONFIG"; then
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5729 $as_echo "$PKGCONFIG" >&6; }
5730 else
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735
5736 # Extract the first word of "qmake", so it can be a program name with args.
5737 set dummy qmake; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_path_QMAKE+:} false; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   case $QMAKE in
5744   [\\/]* | ?:[\\/]*)
5745   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5746   ;;
5747   *)
5748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5764   ;;
5765 esac
5766 fi
5767 QMAKE=$ac_cv_path_QMAKE
5768 if test -n "$QMAKE"; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5770 $as_echo "$QMAKE" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776
5777 # Extract the first word of "gmake", so it can be a program name with args.
5778 set dummy gmake; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_path_GMAKE+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   case $GMAKE in
5785   [\\/]* | ?:[\\/]*)
5786   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5787   ;;
5788   *)
5789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794     for ac_exec_ext in '' $ac_executable_extensions; do
5795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801   done
5802 IFS=$as_save_IFS
5803
5804   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5805   ;;
5806 esac
5807 fi
5808 GMAKE=$ac_cv_path_GMAKE
5809 if test -n "$GMAKE"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5811 $as_echo "$GMAKE" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5817
5818
5819 if test "x$WXCONFIG" = x; then
5820    WXCONFIG=wx-config
5821 fi
5822 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5823 set dummy ${WXCONFIG}; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_path_WXCONFIG+:} false; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   case $WXCONFIG in
5830   [\\/]* | ?:[\\/]*)
5831   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5832   ;;
5833   *)
5834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839     for ac_exec_ext in '' $ac_executable_extensions; do
5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846   done
5847 IFS=$as_save_IFS
5848
5849   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5850   ;;
5851 esac
5852 fi
5853 WXCONFIG=$ac_cv_path_WXCONFIG
5854 if test -n "$WXCONFIG"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5856 $as_echo "$WXCONFIG" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863
5864 # Extract the first word of "cdrecord", so it can be a program name with args.
5865 set dummy cdrecord; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_path_CDRECORD+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   case $CDRECORD in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890
5891   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5892   ;;
5893 esac
5894 fi
5895 CDRECORD=$ac_cv_path_CDRECORD
5896 if test -n "$CDRECORD"; then
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5898 $as_echo "$CDRECORD" >&6; }
5899 else
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904
5905 # Extract the first word of "pidof", so it can be a program name with args.
5906 set dummy pidof; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_path_PIDOF+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   case $PIDOF in
5913   [\\/]* | ?:[\\/]*)
5914   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5915   ;;
5916   *)
5917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922     for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929   done
5930 IFS=$as_save_IFS
5931
5932   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5933   ;;
5934 esac
5935 fi
5936 PIDOF=$ac_cv_path_PIDOF
5937 if test -n "$PIDOF"; then
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5939 $as_echo "$PIDOF" >&6; }
5940 else
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944
5945
5946 for ac_prog in gawk mawk nawk awk
5947 do
5948   # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_AWK+:} false; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   if test -n "$AWK"; then
5956   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963     for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_prog_AWK="$ac_prog"
5966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970   done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 AWK=$ac_cv_prog_AWK
5976 if test -n "$AWK"; then
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5978 $as_echo "$AWK" >&6; }
5979 else
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984
5985   test -n "$AWK" && break
5986 done
5987
5988 # Some AWK programs fail, so test it and warn the user
5989 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5990       { if ((prog == $2) || (("(" prog ")") == $2) ||
5991       (("" prog "") == $2) ||
5992       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5993 else
5994   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5995    The regex engine of $AWK is too broken to be used you
5996    might want to install GNU AWK.
5997    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5998 fi
5999 THE_AWK=$AWK
6000 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6001 set dummy $THE_AWK; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_path_AWK+:} false; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   case $AWK in
6008   [\\/]* | ?:[\\/]*)
6009   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6010   ;;
6011   *)
6012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015   IFS=$as_save_IFS
6016   test -z "$as_dir" && as_dir=.
6017     for ac_exec_ext in '' $ac_executable_extensions; do
6018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021     break 2
6022   fi
6023 done
6024   done
6025 IFS=$as_save_IFS
6026
6027   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6028   ;;
6029 esac
6030 fi
6031 AWK=$ac_cv_path_AWK
6032 if test -n "$AWK"; then
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6034 $as_echo "$AWK" >&6; }
6035 else
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039
6040
6041
6042
6043 test -n "$ARFLAG" || ARFLAGS="cr"
6044
6045
6046 MAKE_SHELL=/bin/sh
6047
6048
6049
6050
6051
6052
6053
6054 use_libtool=yes
6055 # Check whether --enable-libtool was given.
6056 if test "${enable_libtool+set}" = set; then :
6057   enableval=$enable_libtool;
6058        if test x$enableval = xno; then
6059           use_libtool=no
6060        fi
6061
6062
6063 fi
6064
6065 case `pwd` in
6066   *\ * | *\     *)
6067     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6069 esac
6070
6071
6072
6073 macro_version='2.2.6'
6074 macro_revision='1.3012'
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 ltmain="$ac_aux_dir/ltmain.sh"
6089
6090 # Make sure we can run config.sub.
6091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6092   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6095 $as_echo_n "checking build system type... " >&6; }
6096 if ${ac_cv_build+:} false; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   ac_build_alias=$build_alias
6100 test "x$ac_build_alias" = x &&
6101   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6102 test "x$ac_build_alias" = x &&
6103   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6105   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6106
6107 fi
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6109 $as_echo "$ac_cv_build" >&6; }
6110 case $ac_cv_build in
6111 *-*-*) ;;
6112 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6113 esac
6114 build=$ac_cv_build
6115 ac_save_IFS=$IFS; IFS='-'
6116 set x $ac_cv_build
6117 shift
6118 build_cpu=$1
6119 build_vendor=$2
6120 shift; shift
6121 # Remember, the first character of IFS is used to create $*,
6122 # except with old shells:
6123 build_os=$*
6124 IFS=$ac_save_IFS
6125 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6126
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6129 $as_echo_n "checking host system type... " >&6; }
6130 if ${ac_cv_host+:} false; then :
6131   $as_echo_n "(cached) " >&6
6132 else
6133   if test "x$host_alias" = x; then
6134   ac_cv_host=$ac_cv_build
6135 else
6136   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6137     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6138 fi
6139
6140 fi
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6142 $as_echo "$ac_cv_host" >&6; }
6143 case $ac_cv_host in
6144 *-*-*) ;;
6145 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6146 esac
6147 host=$ac_cv_host
6148 ac_save_IFS=$IFS; IFS='-'
6149 set x $ac_cv_host
6150 shift
6151 host_cpu=$1
6152 host_vendor=$2
6153 shift; shift
6154 # Remember, the first character of IFS is used to create $*,
6155 # except with old shells:
6156 host_os=$*
6157 IFS=$ac_save_IFS
6158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6159
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6162 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6163 if ${ac_cv_path_SED+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6167      for ac_i in 1 2 3 4 5 6 7; do
6168        ac_script="$ac_script$as_nl$ac_script"
6169      done
6170      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6171      { ac_script=; unset ac_script;}
6172      if test -z "$SED"; then
6173   ac_path_SED_found=false
6174   # Loop through the user's path and test for each of PROGNAME-LIST
6175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180     for ac_prog in sed gsed; do
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6183       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6184 # Check for GNU ac_path_SED and select it if it is found.
6185   # Check for GNU $ac_path_SED
6186 case `"$ac_path_SED" --version 2>&1` in
6187 *GNU*)
6188   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6189 *)
6190   ac_count=0
6191   $as_echo_n 0123456789 >"conftest.in"
6192   while :
6193   do
6194     cat "conftest.in" "conftest.in" >"conftest.tmp"
6195     mv "conftest.tmp" "conftest.in"
6196     cp "conftest.in" "conftest.nl"
6197     $as_echo '' >> "conftest.nl"
6198     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6199     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6200     as_fn_arith $ac_count + 1 && ac_count=$as_val
6201     if test $ac_count -gt ${ac_path_SED_max-0}; then
6202       # Best one so far, save it but keep looking for a better one
6203       ac_cv_path_SED="$ac_path_SED"
6204       ac_path_SED_max=$ac_count
6205     fi
6206     # 10*(2^10) chars as input seems more than enough
6207     test $ac_count -gt 10 && break
6208   done
6209   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6210 esac
6211
6212       $ac_path_SED_found && break 3
6213     done
6214   done
6215   done
6216 IFS=$as_save_IFS
6217   if test -z "$ac_cv_path_SED"; then
6218     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6219   fi
6220 else
6221   ac_cv_path_SED=$SED
6222 fi
6223
6224 fi
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6226 $as_echo "$ac_cv_path_SED" >&6; }
6227  SED="$ac_cv_path_SED"
6228   rm -f conftest.sed
6229
6230 test -z "$SED" && SED=sed
6231 Xsed="$SED -e 1s/^X//"
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6244 $as_echo_n "checking for fgrep... " >&6; }
6245 if ${ac_cv_path_FGREP+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6249    then ac_cv_path_FGREP="$GREP -F"
6250    else
6251      if test -z "$FGREP"; then
6252   ac_path_FGREP_found=false
6253   # Loop through the user's path and test for each of PROGNAME-LIST
6254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259     for ac_prog in fgrep; do
6260     for ac_exec_ext in '' $ac_executable_extensions; do
6261       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6262       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6263 # Check for GNU ac_path_FGREP and select it if it is found.
6264   # Check for GNU $ac_path_FGREP
6265 case `"$ac_path_FGREP" --version 2>&1` in
6266 *GNU*)
6267   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6268 *)
6269   ac_count=0
6270   $as_echo_n 0123456789 >"conftest.in"
6271   while :
6272   do
6273     cat "conftest.in" "conftest.in" >"conftest.tmp"
6274     mv "conftest.tmp" "conftest.in"
6275     cp "conftest.in" "conftest.nl"
6276     $as_echo 'FGREP' >> "conftest.nl"
6277     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6278     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6279     as_fn_arith $ac_count + 1 && ac_count=$as_val
6280     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6281       # Best one so far, save it but keep looking for a better one
6282       ac_cv_path_FGREP="$ac_path_FGREP"
6283       ac_path_FGREP_max=$ac_count
6284     fi
6285     # 10*(2^10) chars as input seems more than enough
6286     test $ac_count -gt 10 && break
6287   done
6288   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6289 esac
6290
6291       $ac_path_FGREP_found && break 3
6292     done
6293   done
6294   done
6295 IFS=$as_save_IFS
6296   if test -z "$ac_cv_path_FGREP"; then
6297     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6298   fi
6299 else
6300   ac_cv_path_FGREP=$FGREP
6301 fi
6302
6303    fi
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6306 $as_echo "$ac_cv_path_FGREP" >&6; }
6307  FGREP="$ac_cv_path_FGREP"
6308
6309
6310 test -z "$GREP" && GREP=grep
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330 # Check whether --with-gnu-ld was given.
6331 if test "${with_gnu_ld+set}" = set; then :
6332   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6333 else
6334   with_gnu_ld=no
6335 fi
6336
6337 ac_prog=ld
6338 if test "$GCC" = yes; then
6339   # Check if gcc -print-prog-name=ld gives a path.
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6341 $as_echo_n "checking for ld used by $CC... " >&6; }
6342   case $host in
6343   *-*-mingw*)
6344     # gcc leaves a trailing carriage return which upsets mingw
6345     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6346   *)
6347     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6348   esac
6349   case $ac_prog in
6350     # Accept absolute paths.
6351     [\\/]* | ?:[\\/]*)
6352       re_direlt='/[^/][^/]*/\.\./'
6353       # Canonicalize the pathname of ld
6354       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6355       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6356         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6357       done
6358       test -z "$LD" && LD="$ac_prog"
6359       ;;
6360   "")
6361     # If it fails, then pretend we aren't using GCC.
6362     ac_prog=ld
6363     ;;
6364   *)
6365     # If it is relative, then search for the first ld in PATH.
6366     with_gnu_ld=unknown
6367     ;;
6368   esac
6369 elif test "$with_gnu_ld" = yes; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6371 $as_echo_n "checking for GNU ld... " >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6374 $as_echo_n "checking for non-GNU ld... " >&6; }
6375 fi
6376 if ${lt_cv_path_LD+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   if test -z "$LD"; then
6380   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381   for ac_dir in $PATH; do
6382     IFS="$lt_save_ifs"
6383     test -z "$ac_dir" && ac_dir=.
6384     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6385       lt_cv_path_LD="$ac_dir/$ac_prog"
6386       # Check to see if the program is GNU ld.  I'd rather use --version,
6387       # but apparently some variants of GNU ld only accept -v.
6388       # Break only if it was the GNU/non-GNU ld that we prefer.
6389       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6390       *GNU* | *'with BFD'*)
6391         test "$with_gnu_ld" != no && break
6392         ;;
6393       *)
6394         test "$with_gnu_ld" != yes && break
6395         ;;
6396       esac
6397     fi
6398   done
6399   IFS="$lt_save_ifs"
6400 else
6401   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6402 fi
6403 fi
6404
6405 LD="$lt_cv_path_LD"
6406 if test -n "$LD"; then
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6408 $as_echo "$LD" >&6; }
6409 else
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6415 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6416 if ${lt_cv_prog_gnu_ld+:} false; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6420 case `$LD -v 2>&1 </dev/null` in
6421 *GNU* | *'with BFD'*)
6422   lt_cv_prog_gnu_ld=yes
6423   ;;
6424 *)
6425   lt_cv_prog_gnu_ld=no
6426   ;;
6427 esac
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6430 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6431 with_gnu_ld=$lt_cv_prog_gnu_ld
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6442 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6443 if ${lt_cv_path_NM+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$NM"; then
6447   # Let the user override the test.
6448   lt_cv_path_NM="$NM"
6449 else
6450   lt_nm_to_check="${ac_tool_prefix}nm"
6451   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6452     lt_nm_to_check="$lt_nm_to_check nm"
6453   fi
6454   for lt_tmp_nm in $lt_nm_to_check; do
6455     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6456     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6457       IFS="$lt_save_ifs"
6458       test -z "$ac_dir" && ac_dir=.
6459       tmp_nm="$ac_dir/$lt_tmp_nm"
6460       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6461         # Check to see if the nm accepts a BSD-compat flag.
6462         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6463         #   nm: unknown option "B" ignored
6464         # Tru64's nm complains that /dev/null is an invalid object file
6465         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6466         */dev/null* | *'Invalid file or object type'*)
6467           lt_cv_path_NM="$tmp_nm -B"
6468           break
6469           ;;
6470         *)
6471           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6472           */dev/null*)
6473             lt_cv_path_NM="$tmp_nm -p"
6474             break
6475             ;;
6476           *)
6477             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6478             continue # so that we can try to find one that supports BSD flags
6479             ;;
6480           esac
6481           ;;
6482         esac
6483       fi
6484     done
6485     IFS="$lt_save_ifs"
6486   done
6487   : ${lt_cv_path_NM=no}
6488 fi
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6491 $as_echo "$lt_cv_path_NM" >&6; }
6492 if test "$lt_cv_path_NM" != "no"; then
6493   NM="$lt_cv_path_NM"
6494 else
6495   # Didn't find any BSD compatible name lister, look for dumpbin.
6496   if test -n "$ac_tool_prefix"; then
6497   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6498   do
6499     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_DUMPBIN+:} false; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$DUMPBIN"; then
6507   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 DUMPBIN=$ac_cv_prog_DUMPBIN
6527 if test -n "$DUMPBIN"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6529 $as_echo "$DUMPBIN" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535
6536     test -n "$DUMPBIN" && break
6537   done
6538 fi
6539 if test -z "$DUMPBIN"; then
6540   ac_ct_DUMPBIN=$DUMPBIN
6541   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6542 do
6543   # Extract the first word of "$ac_prog", so it can be a program name with args.
6544 set dummy $ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$ac_ct_DUMPBIN"; then
6551   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6571 if test -n "$ac_ct_DUMPBIN"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6573 $as_echo "$ac_ct_DUMPBIN" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579
6580   test -n "$ac_ct_DUMPBIN" && break
6581 done
6582
6583   if test "x$ac_ct_DUMPBIN" = x; then
6584     DUMPBIN=":"
6585   else
6586     case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6591 esac
6592     DUMPBIN=$ac_ct_DUMPBIN
6593   fi
6594 fi
6595
6596
6597   if test "$DUMPBIN" != ":"; then
6598     NM="$DUMPBIN"
6599   fi
6600 fi
6601 test -z "$NM" && NM=nm
6602
6603
6604
6605
6606
6607
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6609 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6610 if ${lt_cv_nm_interface+:} false; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613   lt_cv_nm_interface="BSD nm"
6614   echo "int some_variable = 0;" > conftest.$ac_ext
6615   (eval echo "\"\$as_me:6615: $ac_compile\"" >&5)
6616   (eval "$ac_compile" 2>conftest.err)
6617   cat conftest.err >&5
6618   (eval echo "\"\$as_me:6618: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6619   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6620   cat conftest.err >&5
6621   (eval echo "\"\$as_me:6621: output\"" >&5)
6622   cat conftest.out >&5
6623   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6624     lt_cv_nm_interface="MS dumpbin"
6625   fi
6626   rm -f conftest*
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6629 $as_echo "$lt_cv_nm_interface" >&6; }
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6632 $as_echo_n "checking whether ln -s works... " >&6; }
6633 LN_S=$as_ln_s
6634 if test "$LN_S" = "ln -s"; then
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6637 else
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6639 $as_echo "no, using $LN_S" >&6; }
6640 fi
6641
6642 # find the maximum length of command line arguments
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6644 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6645 if ${lt_cv_sys_max_cmd_len+:} false; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648     i=0
6649   teststring="ABCD"
6650
6651   case $build_os in
6652   msdosdjgpp*)
6653     # On DJGPP, this test can blow up pretty badly due to problems in libc
6654     # (any single argument exceeding 2000 bytes causes a buffer overrun
6655     # during glob expansion).  Even if it were fixed, the result of this
6656     # check would be larger than it should be.
6657     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6658     ;;
6659
6660   gnu*)
6661     # Under GNU Hurd, this test is not required because there is
6662     # no limit to the length of command line arguments.
6663     # Libtool will interpret -1 as no limit whatsoever
6664     lt_cv_sys_max_cmd_len=-1;
6665     ;;
6666
6667   cygwin* | mingw* | cegcc*)
6668     # On Win9x/ME, this test blows up -- it succeeds, but takes
6669     # about 5 minutes as the teststring grows exponentially.
6670     # Worse, since 9x/ME are not pre-emptively multitasking,
6671     # you end up with a "frozen" computer, even though with patience
6672     # the test eventually succeeds (with a max line length of 256k).
6673     # Instead, let's just punt: use the minimum linelength reported by
6674     # all of the supported platforms: 8192 (on NT/2K/XP).
6675     lt_cv_sys_max_cmd_len=8192;
6676     ;;
6677
6678   amigaos*)
6679     # On AmigaOS with pdksh, this test takes hours, literally.
6680     # So we just punt and use a minimum line length of 8192.
6681     lt_cv_sys_max_cmd_len=8192;
6682     ;;
6683
6684   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6685     # This has been around since 386BSD, at least.  Likely further.
6686     if test -x /sbin/sysctl; then
6687       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6688     elif test -x /usr/sbin/sysctl; then
6689       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6690     else
6691       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6692     fi
6693     # And add a safety zone
6694     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6695     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6696     ;;
6697
6698   interix*)
6699     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6700     lt_cv_sys_max_cmd_len=196608
6701     ;;
6702
6703   osf*)
6704     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6705     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6706     # nice to cause kernel panics so lets avoid the loop below.
6707     # First set a reasonable default.
6708     lt_cv_sys_max_cmd_len=16384
6709     #
6710     if test -x /sbin/sysconfig; then
6711       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6712         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6713       esac
6714     fi
6715     ;;
6716   sco3.2v5*)
6717     lt_cv_sys_max_cmd_len=102400
6718     ;;
6719   sysv5* | sco5v6* | sysv4.2uw2*)
6720     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6721     if test -n "$kargmax"; then
6722       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6723     else
6724       lt_cv_sys_max_cmd_len=32768
6725     fi
6726     ;;
6727   *)
6728     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6729     if test -n "$lt_cv_sys_max_cmd_len"; then
6730       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6731       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6732     else
6733       # Make teststring a little bigger before we do anything with it.
6734       # a 1K string should be a reasonable start.
6735       for i in 1 2 3 4 5 6 7 8 ; do
6736         teststring=$teststring$teststring
6737       done
6738       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6739       # If test is not a shell built-in, we'll probably end up computing a
6740       # maximum length that is only half of the actual maximum length, but
6741       # we can't tell.
6742       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6743                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6744               test $i != 17 # 1/2 MB should be enough
6745       do
6746         i=`expr $i + 1`
6747         teststring=$teststring$teststring
6748       done
6749       # Only check the string length outside the loop.
6750       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6751       teststring=
6752       # Add a significant safety factor because C++ compilers can tack on
6753       # massive amounts of additional arguments before passing them to the
6754       # linker.  It appears as though 1/2 is a usable value.
6755       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6756     fi
6757     ;;
6758   esac
6759
6760 fi
6761
6762 if test -n $lt_cv_sys_max_cmd_len ; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6764 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6767 $as_echo "none" >&6; }
6768 fi
6769 max_cmd_len=$lt_cv_sys_max_cmd_len
6770
6771
6772
6773
6774
6775
6776 : ${CP="cp -f"}
6777 : ${MV="mv -f"}
6778 : ${RM="rm -f"}
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6781 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6782 # Try some XSI features
6783 xsi_shell=no
6784 ( _lt_dummy="a/b/c"
6785   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6786       = c,a/b,, \
6787     && eval 'test $(( 1 + 1 )) -eq 2 \
6788     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6789   && xsi_shell=yes
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6791 $as_echo "$xsi_shell" >&6; }
6792
6793
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6795 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6796 lt_shell_append=no
6797 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6798     >/dev/null 2>&1 \
6799   && lt_shell_append=yes
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6801 $as_echo "$lt_shell_append" >&6; }
6802
6803
6804 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6805   lt_unset=unset
6806 else
6807   lt_unset=false
6808 fi
6809
6810
6811
6812
6813
6814 # test EBCDIC or ASCII
6815 case `echo X|tr X '\101'` in
6816  A) # ASCII based system
6817     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6818   lt_SP2NL='tr \040 \012'
6819   lt_NL2SP='tr \015\012 \040\040'
6820   ;;
6821  *) # EBCDIC based system
6822   lt_SP2NL='tr \100 \n'
6823   lt_NL2SP='tr \r\n \100\100'
6824   ;;
6825 esac
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6836 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6837 if ${lt_cv_ld_reload_flag+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   lt_cv_ld_reload_flag='-r'
6841 fi
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6843 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6844 reload_flag=$lt_cv_ld_reload_flag
6845 case $reload_flag in
6846 "" | " "*) ;;
6847 *) reload_flag=" $reload_flag" ;;
6848 esac
6849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6850 case $host_os in
6851   darwin*)
6852     if test "$GCC" = yes; then
6853       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6854     else
6855       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6856     fi
6857     ;;
6858 esac
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 if test -n "$ac_tool_prefix"; then
6869   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_OBJDUMP+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   if test -n "$OBJDUMP"; then
6877   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884     for ac_exec_ext in '' $ac_executable_extensions; do
6885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891   done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 OBJDUMP=$ac_cv_prog_OBJDUMP
6897 if test -n "$OBJDUMP"; then
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6899 $as_echo "$OBJDUMP" >&6; }
6900 else
6901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_OBJDUMP"; then
6908   ac_ct_OBJDUMP=$OBJDUMP
6909   # Extract the first word of "objdump", so it can be a program name with args.
6910 set dummy objdump; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   if test -n "$ac_ct_OBJDUMP"; then
6917   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924     for ac_exec_ext in '' $ac_executable_extensions; do
6925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931   done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6937 if test -n "$ac_ct_OBJDUMP"; then
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6939 $as_echo "$ac_ct_OBJDUMP" >&6; }
6940 else
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945   if test "x$ac_ct_OBJDUMP" = x; then
6946     OBJDUMP="false"
6947   else
6948     case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954     OBJDUMP=$ac_ct_OBJDUMP
6955   fi
6956 else
6957   OBJDUMP="$ac_cv_prog_OBJDUMP"
6958 fi
6959
6960 test -z "$OBJDUMP" && OBJDUMP=objdump
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6971 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6972 if ${lt_cv_deplibs_check_method+:} false; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   lt_cv_file_magic_cmd='$MAGIC_CMD'
6976 lt_cv_file_magic_test_file=
6977 lt_cv_deplibs_check_method='unknown'
6978 # Need to set the preceding variable on all platforms that support
6979 # interlibrary dependencies.
6980 # 'none' -- dependencies not supported.
6981 # `unknown' -- same as none, but documents that we really don't know.
6982 # 'pass_all' -- all dependencies passed with no checks.
6983 # 'test_compile' -- check by making test program.
6984 # 'file_magic [[regex]]' -- check by looking for files in library path
6985 # which responds to the $file_magic_cmd with a given extended regex.
6986 # If you have `file' or equivalent on your system and you're not sure
6987 # whether `pass_all' will *always* work, you probably want this one.
6988
6989 case $host_os in
6990 aix[4-9]*)
6991   lt_cv_deplibs_check_method=pass_all
6992   ;;
6993
6994 beos*)
6995   lt_cv_deplibs_check_method=pass_all
6996   ;;
6997
6998 bsdi[45]*)
6999   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7000   lt_cv_file_magic_cmd='/usr/bin/file -L'
7001   lt_cv_file_magic_test_file=/shlib/libc.so
7002   ;;
7003
7004 cygwin*)
7005   # func_win32_libid is a shell function defined in ltmain.sh
7006   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007   lt_cv_file_magic_cmd='func_win32_libid'
7008   ;;
7009
7010 mingw* | pw32*)
7011   # Base MSYS/MinGW do not provide the 'file' command needed by
7012   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7013   # unless we find 'file', for example because we are cross-compiling.
7014   if ( file / ) >/dev/null 2>&1; then
7015     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7016     lt_cv_file_magic_cmd='func_win32_libid'
7017   else
7018     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7019     lt_cv_file_magic_cmd='$OBJDUMP -f'
7020   fi
7021   ;;
7022
7023 cegcc)
7024   # use the weaker test based on 'objdump'. See mingw*.
7025   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7026   lt_cv_file_magic_cmd='$OBJDUMP -f'
7027   ;;
7028
7029 darwin* | rhapsody*)
7030   lt_cv_deplibs_check_method=pass_all
7031   ;;
7032
7033 freebsd* | dragonfly*)
7034   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7035     case $host_cpu in
7036     i*86 )
7037       # Not sure whether the presence of OpenBSD here was a mistake.
7038       # Let's accept both of them until this is cleared up.
7039       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7040       lt_cv_file_magic_cmd=/usr/bin/file
7041       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7042       ;;
7043     esac
7044   else
7045     lt_cv_deplibs_check_method=pass_all
7046   fi
7047   ;;
7048
7049 gnu*)
7050   lt_cv_deplibs_check_method=pass_all
7051   ;;
7052
7053 hpux10.20* | hpux11*)
7054   lt_cv_file_magic_cmd=/usr/bin/file
7055   case $host_cpu in
7056   ia64*)
7057     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7058     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7059     ;;
7060   hppa*64*)
7061     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]'
7062     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7063     ;;
7064   *)
7065     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7066     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7067     ;;
7068   esac
7069   ;;
7070
7071 interix[3-9]*)
7072   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7073   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7074   ;;
7075
7076 irix5* | irix6* | nonstopux*)
7077   case $LD in
7078   *-32|*"-32 ") libmagic=32-bit;;
7079   *-n32|*"-n32 ") libmagic=N32;;
7080   *-64|*"-64 ") libmagic=64-bit;;
7081   *) libmagic=never-match;;
7082   esac
7083   lt_cv_deplibs_check_method=pass_all
7084   ;;
7085
7086 # This must be Linux ELF.
7087 linux* | k*bsd*-gnu)
7088   lt_cv_deplibs_check_method=pass_all
7089   ;;
7090
7091 netbsd*)
7092   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7093     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7094   else
7095     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7096   fi
7097   ;;
7098
7099 newos6*)
7100   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7101   lt_cv_file_magic_cmd=/usr/bin/file
7102   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7103   ;;
7104
7105 *nto* | *qnx*)
7106   lt_cv_deplibs_check_method=pass_all
7107   ;;
7108
7109 openbsd*)
7110   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7111     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7112   else
7113     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7114   fi
7115   ;;
7116
7117 osf3* | osf4* | osf5*)
7118   lt_cv_deplibs_check_method=pass_all
7119   ;;
7120
7121 rdos*)
7122   lt_cv_deplibs_check_method=pass_all
7123   ;;
7124
7125 solaris*)
7126   lt_cv_deplibs_check_method=pass_all
7127   ;;
7128
7129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7130   lt_cv_deplibs_check_method=pass_all
7131   ;;
7132
7133 sysv4 | sysv4.3*)
7134   case $host_vendor in
7135   motorola)
7136     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]'
7137     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7138     ;;
7139   ncr)
7140     lt_cv_deplibs_check_method=pass_all
7141     ;;
7142   sequent)
7143     lt_cv_file_magic_cmd='/bin/file'
7144     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7145     ;;
7146   sni)
7147     lt_cv_file_magic_cmd='/bin/file'
7148     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7149     lt_cv_file_magic_test_file=/lib/libc.so
7150     ;;
7151   siemens)
7152     lt_cv_deplibs_check_method=pass_all
7153     ;;
7154   pc)
7155     lt_cv_deplibs_check_method=pass_all
7156     ;;
7157   esac
7158   ;;
7159
7160 tpf*)
7161   lt_cv_deplibs_check_method=pass_all
7162   ;;
7163 esac
7164
7165 fi
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7167 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7168 file_magic_cmd=$lt_cv_file_magic_cmd
7169 deplibs_check_method=$lt_cv_deplibs_check_method
7170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 if test -n "$ac_tool_prefix"; then
7184   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7185 set dummy ${ac_tool_prefix}ar; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_AR+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   if test -n "$AR"; then
7192   ac_cv_prog_AR="$AR" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199     for ac_exec_ext in '' $ac_executable_extensions; do
7200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201     ac_cv_prog_AR="${ac_tool_prefix}ar"
7202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206   done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
7211 AR=$ac_cv_prog_AR
7212 if test -n "$AR"; then
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7214 $as_echo "$AR" >&6; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221 fi
7222 if test -z "$ac_cv_prog_AR"; then
7223   ac_ct_AR=$AR
7224   # Extract the first word of "ar", so it can be a program name with args.
7225 set dummy ar; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231   if test -n "$ac_ct_AR"; then
7232   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239     for ac_exec_ext in '' $ac_executable_extensions; do
7240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241     ac_cv_prog_ac_ct_AR="ar"
7242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246   done
7247 IFS=$as_save_IFS
7248
7249 fi
7250 fi
7251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7252 if test -n "$ac_ct_AR"; then
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7254 $as_echo "$ac_ct_AR" >&6; }
7255 else
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 fi
7259
7260   if test "x$ac_ct_AR" = x; then
7261     AR="false"
7262   else
7263     case $cross_compiling:$ac_tool_warned in
7264 yes:)
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7268 esac
7269     AR=$ac_ct_AR
7270   fi
7271 else
7272   AR="$ac_cv_prog_AR"
7273 fi
7274
7275 test -z "$AR" && AR=ar
7276 test -z "$AR_FLAGS" && AR_FLAGS=cru
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288 if test -n "$ac_tool_prefix"; then
7289   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}strip; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_STRIP+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$STRIP"; then
7297   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 STRIP=$ac_cv_prog_STRIP
7317 if test -n "$STRIP"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7319 $as_echo "$STRIP" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325
7326 fi
7327 if test -z "$ac_cv_prog_STRIP"; then
7328   ac_ct_STRIP=$STRIP
7329   # Extract the first word of "strip", so it can be a program name with args.
7330 set dummy strip; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7334   $as_echo_n "(cached) " >&6
7335 else
7336   if test -n "$ac_ct_STRIP"; then
7337   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342   IFS=$as_save_IFS
7343   test -z "$as_dir" && as_dir=.
7344     for ac_exec_ext in '' $ac_executable_extensions; do
7345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346     ac_cv_prog_ac_ct_STRIP="strip"
7347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348     break 2
7349   fi
7350 done
7351   done
7352 IFS=$as_save_IFS
7353
7354 fi
7355 fi
7356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7357 if test -n "$ac_ct_STRIP"; then
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7359 $as_echo "$ac_ct_STRIP" >&6; }
7360 else
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363 fi
7364
7365   if test "x$ac_ct_STRIP" = x; then
7366     STRIP=":"
7367   else
7368     case $cross_compiling:$ac_tool_warned in
7369 yes:)
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374     STRIP=$ac_ct_STRIP
7375   fi
7376 else
7377   STRIP="$ac_cv_prog_STRIP"
7378 fi
7379
7380 test -z "$STRIP" && STRIP=:
7381
7382
7383
7384
7385
7386
7387 if test -n "$ac_tool_prefix"; then
7388   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_RANLIB+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$RANLIB"; then
7396   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 RANLIB=$ac_cv_prog_RANLIB
7416 if test -n "$RANLIB"; then
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7418 $as_echo "$RANLIB" >&6; }
7419 else
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424
7425 fi
7426 if test -z "$ac_cv_prog_RANLIB"; then
7427   ac_ct_RANLIB=$RANLIB
7428   # Extract the first word of "ranlib", so it can be a program name with args.
7429 set dummy ranlib; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7433   $as_echo_n "(cached) " >&6
7434 else
7435   if test -n "$ac_ct_RANLIB"; then
7436   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443     for ac_exec_ext in '' $ac_executable_extensions; do
7444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445     ac_cv_prog_ac_ct_RANLIB="ranlib"
7446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447     break 2
7448   fi
7449 done
7450   done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7456 if test -n "$ac_ct_RANLIB"; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7458 $as_echo "$ac_ct_RANLIB" >&6; }
7459 else
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464   if test "x$ac_ct_RANLIB" = x; then
7465     RANLIB=":"
7466   else
7467     case $cross_compiling:$ac_tool_warned in
7468 yes:)
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471 ac_tool_warned=yes ;;
7472 esac
7473     RANLIB=$ac_ct_RANLIB
7474   fi
7475 else
7476   RANLIB="$ac_cv_prog_RANLIB"
7477 fi
7478
7479 test -z "$RANLIB" && RANLIB=:
7480
7481
7482
7483
7484
7485
7486 # Determine commands to create old-style static archives.
7487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7488 old_postinstall_cmds='chmod 644 $oldlib'
7489 old_postuninstall_cmds=
7490
7491 if test -n "$RANLIB"; then
7492   case $host_os in
7493   openbsd*)
7494     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7495     ;;
7496   *)
7497     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7498     ;;
7499   esac
7500   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7501 fi
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 # If no C compiler was specified, use CC.
7537 LTCC=${LTCC-"$CC"}
7538
7539 # If no C compiler flags were specified, use CFLAGS.
7540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7541
7542 # Allow CC to be a program name with arguments.
7543 compiler=$CC
7544
7545
7546 # Check for command to grab the raw symbol name followed by C symbol from nm.
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7549 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552
7553 # These are sane defaults that work on at least a few old systems.
7554 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7555
7556 # Character class describing NM global symbol codes.
7557 symcode='[BCDEGRST]'
7558
7559 # Regexp to match symbols that can be accessed directly from C.
7560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7561
7562 # Define system-specific variables.
7563 case $host_os in
7564 aix*)
7565   symcode='[BCDT]'
7566   ;;
7567 cygwin* | mingw* | pw32* | cegcc*)
7568   symcode='[ABCDGISTW]'
7569   ;;
7570 hpux*)
7571   if test "$host_cpu" = ia64; then
7572     symcode='[ABCDEGRST]'
7573   fi
7574   ;;
7575 irix* | nonstopux*)
7576   symcode='[BCDEGRST]'
7577   ;;
7578 osf*)
7579   symcode='[BCDEGQRST]'
7580   ;;
7581 solaris*)
7582   symcode='[BDRT]'
7583   ;;
7584 sco3.2v5*)
7585   symcode='[DT]'
7586   ;;
7587 sysv4.2uw2*)
7588   symcode='[DT]'
7589   ;;
7590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7591   symcode='[ABDT]'
7592   ;;
7593 sysv4)
7594   symcode='[DFNSTU]'
7595   ;;
7596 esac
7597
7598 # If we're using GNU nm, then use its standard symbol codes.
7599 case `$NM -V 2>&1` in
7600 *GNU* | *'with BFD'*)
7601   symcode='[ABCDGIRSTW]' ;;
7602 esac
7603
7604 # Transform an extracted symbol line into a proper C declaration.
7605 # Some systems (esp. on ia64) link data and code symbols differently,
7606 # so use this general approach.
7607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7608
7609 # Transform an extracted symbol line into symbol name and symbol address
7610 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7611 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'"
7612
7613 # Handle CRLF in mingw tool chain
7614 opt_cr=
7615 case $build_os in
7616 mingw*)
7617   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7618   ;;
7619 esac
7620
7621 # Try without a prefix underscore, then with it.
7622 for ac_symprfx in "" "_"; do
7623
7624   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7625   symxfrm="\\1 $ac_symprfx\\2 \\2"
7626
7627   # Write the raw and C identifiers.
7628   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7629     # Fake it for dumpbin and say T for any non-static function
7630     # and D for any global variable.
7631     # Also find C++ and __fastcall symbols from MSVC++,
7632     # which start with @ or ?.
7633     lt_cv_sys_global_symbol_pipe="$AWK '"\
7634 "     {last_section=section; section=\$ 3};"\
7635 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7636 "     \$ 0!~/External *\|/{next};"\
7637 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7638 "     {if(hide[section]) next};"\
7639 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7640 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7641 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7642 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7643 "     ' prfx=^$ac_symprfx"
7644   else
7645     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7646   fi
7647
7648   # Check to see that the pipe works correctly.
7649   pipe_works=no
7650
7651   rm -f conftest*
7652   cat > conftest.$ac_ext <<_LT_EOF
7653 #ifdef __cplusplus
7654 extern "C" {
7655 #endif
7656 char nm_test_var;
7657 void nm_test_func(void);
7658 void nm_test_func(void){}
7659 #ifdef __cplusplus
7660 }
7661 #endif
7662 int main(){nm_test_var='a';nm_test_func();return(0);}
7663 _LT_EOF
7664
7665   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7666   (eval $ac_compile) 2>&5
7667   ac_status=$?
7668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669   test $ac_status = 0; }; then
7670     # Now try to grab the symbols.
7671     nlist=conftest.nm
7672     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7673   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7674   ac_status=$?
7675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676   test $ac_status = 0; } && test -s "$nlist"; then
7677       # Try sorting and uniquifying the output.
7678       if sort "$nlist" | uniq > "$nlist"T; then
7679         mv -f "$nlist"T "$nlist"
7680       else
7681         rm -f "$nlist"T
7682       fi
7683
7684       # Make sure that we snagged all the symbols we need.
7685       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7686         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7687           cat <<_LT_EOF > conftest.$ac_ext
7688 #ifdef __cplusplus
7689 extern "C" {
7690 #endif
7691
7692 _LT_EOF
7693           # Now generate the symbol file.
7694           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7695
7696           cat <<_LT_EOF >> conftest.$ac_ext
7697
7698 /* The mapping between symbol names and symbols.  */
7699 const struct {
7700   const char *name;
7701   void       *address;
7702 }
7703 lt__PROGRAM__LTX_preloaded_symbols[] =
7704 {
7705   { "@PROGRAM@", (void *) 0 },
7706 _LT_EOF
7707           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7708           cat <<\_LT_EOF >> conftest.$ac_ext
7709   {0, (void *) 0}
7710 };
7711
7712 /* This works around a problem in FreeBSD linker */
7713 #ifdef FREEBSD_WORKAROUND
7714 static const void *lt_preloaded_setup() {
7715   return lt__PROGRAM__LTX_preloaded_symbols;
7716 }
7717 #endif
7718
7719 #ifdef __cplusplus
7720 }
7721 #endif
7722 _LT_EOF
7723           # Now try linking the two files.
7724           mv conftest.$ac_objext conftstm.$ac_objext
7725           lt_save_LIBS="$LIBS"
7726           lt_save_CFLAGS="$CFLAGS"
7727           LIBS="conftstm.$ac_objext"
7728           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7729           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7730   (eval $ac_link) 2>&5
7731   ac_status=$?
7732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7734             pipe_works=yes
7735           fi
7736           LIBS="$lt_save_LIBS"
7737           CFLAGS="$lt_save_CFLAGS"
7738         else
7739           echo "cannot find nm_test_func in $nlist" >&5
7740         fi
7741       else
7742         echo "cannot find nm_test_var in $nlist" >&5
7743       fi
7744     else
7745       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7746     fi
7747   else
7748     echo "$progname: failed program was:" >&5
7749     cat conftest.$ac_ext >&5
7750   fi
7751   rm -rf conftest* conftst*
7752
7753   # Do not use the global_symbol_pipe unless it works.
7754   if test "$pipe_works" = yes; then
7755     break
7756   else
7757     lt_cv_sys_global_symbol_pipe=
7758   fi
7759 done
7760
7761 fi
7762
7763 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7764   lt_cv_sys_global_symbol_to_cdecl=
7765 fi
7766 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7768 $as_echo "failed" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7771 $as_echo "ok" >&6; }
7772 fi
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --enable-libtool-lock was given.
7796 if test "${enable_libtool_lock+set}" = set; then :
7797   enableval=$enable_libtool_lock;
7798 fi
7799
7800 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7801
7802 # Some flags need to be propagated to the compiler or linker for good
7803 # libtool support.
7804 case $host in
7805 ia64-*-hpux*)
7806   # Find out which ABI we are using.
7807   echo 'int i;' > conftest.$ac_ext
7808   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7809   (eval $ac_compile) 2>&5
7810   ac_status=$?
7811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812   test $ac_status = 0; }; then
7813     case `/usr/bin/file conftest.$ac_objext` in
7814       *ELF-32*)
7815         HPUX_IA64_MODE="32"
7816         ;;
7817       *ELF-64*)
7818         HPUX_IA64_MODE="64"
7819         ;;
7820     esac
7821   fi
7822   rm -rf conftest*
7823   ;;
7824 *-*-irix6*)
7825   # Find out which ABI we are using.
7826   echo '#line 7826 "configure"' > conftest.$ac_ext
7827   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828   (eval $ac_compile) 2>&5
7829   ac_status=$?
7830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831   test $ac_status = 0; }; then
7832     if test "$lt_cv_prog_gnu_ld" = yes; then
7833       case `/usr/bin/file conftest.$ac_objext` in
7834         *32-bit*)
7835           LD="${LD-ld} -melf32bsmip"
7836           ;;
7837         *N32*)
7838           LD="${LD-ld} -melf32bmipn32"
7839           ;;
7840         *64-bit*)
7841           LD="${LD-ld} -melf64bmip"
7842         ;;
7843       esac
7844     else
7845       case `/usr/bin/file conftest.$ac_objext` in
7846         *32-bit*)
7847           LD="${LD-ld} -32"
7848           ;;
7849         *N32*)
7850           LD="${LD-ld} -n32"
7851           ;;
7852         *64-bit*)
7853           LD="${LD-ld} -64"
7854           ;;
7855       esac
7856     fi
7857   fi
7858   rm -rf conftest*
7859   ;;
7860
7861 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7862 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7863   # Find out which ABI we are using.
7864   echo 'int i;' > conftest.$ac_ext
7865   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7866   (eval $ac_compile) 2>&5
7867   ac_status=$?
7868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869   test $ac_status = 0; }; then
7870     case `/usr/bin/file conftest.o` in
7871       *32-bit*)
7872         case $host in
7873           x86_64-*kfreebsd*-gnu)
7874             LD="${LD-ld} -m elf_i386_fbsd"
7875             ;;
7876           x86_64-*linux*)
7877             LD="${LD-ld} -m elf_i386"
7878             ;;
7879           ppc64-*linux*|powerpc64-*linux*)
7880             LD="${LD-ld} -m elf32ppclinux"
7881             ;;
7882           s390x-*linux*)
7883             LD="${LD-ld} -m elf_s390"
7884             ;;
7885           sparc64-*linux*)
7886             LD="${LD-ld} -m elf32_sparc"
7887             ;;
7888         esac
7889         ;;
7890       *64-bit*)
7891         case $host in
7892           x86_64-*kfreebsd*-gnu)
7893             LD="${LD-ld} -m elf_x86_64_fbsd"
7894             ;;
7895           x86_64-*linux*)
7896             LD="${LD-ld} -m elf_x86_64"
7897             ;;
7898           ppc*-*linux*|powerpc*-*linux*)
7899             LD="${LD-ld} -m elf64ppc"
7900             ;;
7901           s390*-*linux*|s390*-*tpf*)
7902             LD="${LD-ld} -m elf64_s390"
7903             ;;
7904           sparc*-*linux*)
7905             LD="${LD-ld} -m elf64_sparc"
7906             ;;
7907         esac
7908         ;;
7909     esac
7910   fi
7911   rm -rf conftest*
7912   ;;
7913
7914 *-*-sco3.2v5*)
7915   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7916   SAVE_CFLAGS="$CFLAGS"
7917   CFLAGS="$CFLAGS -belf"
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7919 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7920 if ${lt_cv_cc_needs_belf+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   ac_ext=c
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
7929      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h.  */
7931
7932 int
7933 main ()
7934 {
7935
7936   ;
7937   return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_link "$LINENO"; then :
7941   lt_cv_cc_needs_belf=yes
7942 else
7943   lt_cv_cc_needs_belf=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext \
7946     conftest$ac_exeext conftest.$ac_ext
7947      ac_ext=c
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953 fi
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7955 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7956   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7957     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7958     CFLAGS="$SAVE_CFLAGS"
7959   fi
7960   ;;
7961 sparc*-*solaris*)
7962   # Find out which ABI we are using.
7963   echo 'int i;' > conftest.$ac_ext
7964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7965   (eval $ac_compile) 2>&5
7966   ac_status=$?
7967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7968   test $ac_status = 0; }; then
7969     case `/usr/bin/file conftest.o` in
7970     *64-bit*)
7971       case $lt_cv_prog_gnu_ld in
7972       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7973       *)
7974         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7975           LD="${LD-ld} -64"
7976         fi
7977         ;;
7978       esac
7979       ;;
7980     esac
7981   fi
7982   rm -rf conftest*
7983   ;;
7984 esac
7985
7986 need_locks="$enable_libtool_lock"
7987
7988
7989   case $host_os in
7990     rhapsody* | darwin*)
7991     if test -n "$ac_tool_prefix"; then
7992   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   if test -n "$DSYMUTIL"; then
8000   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007     for ac_exec_ext in '' $ac_executable_extensions; do
8008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014   done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8020 if test -n "$DSYMUTIL"; then
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8022 $as_echo "$DSYMUTIL" >&6; }
8023 else
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_DSYMUTIL"; then
8031   ac_ct_DSYMUTIL=$DSYMUTIL
8032   # Extract the first word of "dsymutil", so it can be a program name with args.
8033 set dummy dsymutil; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   if test -n "$ac_ct_DSYMUTIL"; then
8040   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047     for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054   done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8060 if test -n "$ac_ct_DSYMUTIL"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8062 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068   if test "x$ac_ct_DSYMUTIL" = x; then
8069     DSYMUTIL=":"
8070   else
8071     case $cross_compiling:$ac_tool_warned in
8072 yes:)
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8076 esac
8077     DSYMUTIL=$ac_ct_DSYMUTIL
8078   fi
8079 else
8080   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8081 fi
8082
8083     if test -n "$ac_tool_prefix"; then
8084   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_NMEDIT+:} false; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   if test -n "$NMEDIT"; then
8092   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099     for ac_exec_ext in '' $ac_executable_extensions; do
8100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106   done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 NMEDIT=$ac_cv_prog_NMEDIT
8112 if test -n "$NMEDIT"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8114 $as_echo "$NMEDIT" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_NMEDIT"; then
8123   ac_ct_NMEDIT=$NMEDIT
8124   # Extract the first word of "nmedit", so it can be a program name with args.
8125 set dummy nmedit; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   if test -n "$ac_ct_NMEDIT"; then
8132   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8152 if test -n "$ac_ct_NMEDIT"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8154 $as_echo "$ac_ct_NMEDIT" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160   if test "x$ac_ct_NMEDIT" = x; then
8161     NMEDIT=":"
8162   else
8163     case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169     NMEDIT=$ac_ct_NMEDIT
8170   fi
8171 else
8172   NMEDIT="$ac_cv_prog_NMEDIT"
8173 fi
8174
8175     if test -n "$ac_tool_prefix"; then
8176   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if ${ac_cv_prog_LIPO+:} false; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   if test -n "$LIPO"; then
8184   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191     for ac_exec_ext in '' $ac_executable_extensions; do
8192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198   done
8199 IFS=$as_save_IFS
8200
8201 fi
8202 fi
8203 LIPO=$ac_cv_prog_LIPO
8204 if test -n "$LIPO"; then
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8206 $as_echo "$LIPO" >&6; }
8207 else
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211
8212
8213 fi
8214 if test -z "$ac_cv_prog_LIPO"; then
8215   ac_ct_LIPO=$LIPO
8216   # Extract the first word of "lipo", so it can be a program name with args.
8217 set dummy lipo; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   if test -n "$ac_ct_LIPO"; then
8224   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229   IFS=$as_save_IFS
8230   test -z "$as_dir" && as_dir=.
8231     for ac_exec_ext in '' $ac_executable_extensions; do
8232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233     ac_cv_prog_ac_ct_LIPO="lipo"
8234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235     break 2
8236   fi
8237 done
8238   done
8239 IFS=$as_save_IFS
8240
8241 fi
8242 fi
8243 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8244 if test -n "$ac_ct_LIPO"; then
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8246 $as_echo "$ac_ct_LIPO" >&6; }
8247 else
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251
8252   if test "x$ac_ct_LIPO" = x; then
8253     LIPO=":"
8254   else
8255     case $cross_compiling:$ac_tool_warned in
8256 yes:)
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8260 esac
8261     LIPO=$ac_ct_LIPO
8262   fi
8263 else
8264   LIPO="$ac_cv_prog_LIPO"
8265 fi
8266
8267     if test -n "$ac_tool_prefix"; then
8268   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8269 set dummy ${ac_tool_prefix}otool; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if ${ac_cv_prog_OTOOL+:} false; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   if test -n "$OTOOL"; then
8276   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281   IFS=$as_save_IFS
8282   test -z "$as_dir" && as_dir=.
8283     for ac_exec_ext in '' $ac_executable_extensions; do
8284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287     break 2
8288   fi
8289 done
8290   done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 OTOOL=$ac_cv_prog_OTOOL
8296 if test -n "$OTOOL"; then
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8298 $as_echo "$OTOOL" >&6; }
8299 else
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304
8305 fi
8306 if test -z "$ac_cv_prog_OTOOL"; then
8307   ac_ct_OTOOL=$OTOOL
8308   # Extract the first word of "otool", so it can be a program name with args.
8309 set dummy otool; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   if test -n "$ac_ct_OTOOL"; then
8316   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321   IFS=$as_save_IFS
8322   test -z "$as_dir" && as_dir=.
8323     for ac_exec_ext in '' $ac_executable_extensions; do
8324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325     ac_cv_prog_ac_ct_OTOOL="otool"
8326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327     break 2
8328   fi
8329 done
8330   done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8336 if test -n "$ac_ct_OTOOL"; then
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8338 $as_echo "$ac_ct_OTOOL" >&6; }
8339 else
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344   if test "x$ac_ct_OTOOL" = x; then
8345     OTOOL=":"
8346   else
8347     case $cross_compiling:$ac_tool_warned in
8348 yes:)
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351 ac_tool_warned=yes ;;
8352 esac
8353     OTOOL=$ac_ct_OTOOL
8354   fi
8355 else
8356   OTOOL="$ac_cv_prog_OTOOL"
8357 fi
8358
8359     if test -n "$ac_tool_prefix"; then
8360   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_OTOOL64+:} false; then :
8365   $as_echo_n "(cached) " >&6
8366 else
8367   if test -n "$OTOOL64"; then
8368   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375     for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382   done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 OTOOL64=$ac_cv_prog_OTOOL64
8388 if test -n "$OTOOL64"; then
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8390 $as_echo "$OTOOL64" >&6; }
8391 else
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8394 fi
8395
8396
8397 fi
8398 if test -z "$ac_cv_prog_OTOOL64"; then
8399   ac_ct_OTOOL64=$OTOOL64
8400   # Extract the first word of "otool64", so it can be a program name with args.
8401 set dummy otool64; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   if test -n "$ac_ct_OTOOL64"; then
8408   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415     for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_prog_ac_ct_OTOOL64="otool64"
8418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422   done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8428 if test -n "$ac_ct_OTOOL64"; then
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8430 $as_echo "$ac_ct_OTOOL64" >&6; }
8431 else
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436   if test "x$ac_ct_OTOOL64" = x; then
8437     OTOOL64=":"
8438   else
8439     case $cross_compiling:$ac_tool_warned in
8440 yes:)
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8443 ac_tool_warned=yes ;;
8444 esac
8445     OTOOL64=$ac_ct_OTOOL64
8446   fi
8447 else
8448   OTOOL64="$ac_cv_prog_OTOOL64"
8449 fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8478 $as_echo_n "checking for -single_module linker flag... " >&6; }
8479 if ${lt_cv_apple_cc_single_mod+:} false; then :
8480   $as_echo_n "(cached) " >&6
8481 else
8482   lt_cv_apple_cc_single_mod=no
8483       if test -z "${LT_MULTI_MODULE}"; then
8484         # By default we will add the -single_module flag. You can override
8485         # by either setting the environment variable LT_MULTI_MODULE
8486         # non-empty at configure time, or by adding -multi_module to the
8487         # link flags.
8488         rm -rf libconftest.dylib*
8489         echo "int foo(void){return 1;}" > conftest.c
8490         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8491 -dynamiclib -Wl,-single_module conftest.c" >&5
8492         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8493           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8494         _lt_result=$?
8495         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8496           lt_cv_apple_cc_single_mod=yes
8497         else
8498           cat conftest.err >&5
8499         fi
8500         rm -rf libconftest.dylib*
8501         rm -f conftest.*
8502       fi
8503 fi
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8505 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8507 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8508 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   lt_cv_ld_exported_symbols_list=no
8512       save_LDFLAGS=$LDFLAGS
8513       echo "_main" > conftest.sym
8514       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8515       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h.  */
8517
8518 int
8519 main ()
8520 {
8521
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_c_try_link "$LINENO"; then :
8527   lt_cv_ld_exported_symbols_list=yes
8528 else
8529   lt_cv_ld_exported_symbols_list=no
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext \
8532     conftest$ac_exeext conftest.$ac_ext
8533         LDFLAGS="$save_LDFLAGS"
8534
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8537 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8538     case $host_os in
8539     rhapsody* | darwin1.[012])
8540       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8541     darwin1.*)
8542       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8543     darwin*) # darwin 5.x on
8544       # if running on 10.5 or later, the deployment target defaults
8545       # to the OS version, if on x86, and 10.4, the deployment
8546       # target defaults to 10.4. Don't you love it?
8547       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8548         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8549           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8550         10.[012]*)
8551           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8552         10.*)
8553           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8554       esac
8555     ;;
8556   esac
8557     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8558       _lt_dar_single_mod='$single_module'
8559     fi
8560     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8561       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8562     else
8563       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8564     fi
8565     if test "$DSYMUTIL" != ":"; then
8566       _lt_dsymutil='~$DSYMUTIL $lib || :'
8567     else
8568       _lt_dsymutil=
8569     fi
8570     ;;
8571   esac
8572
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8574 $as_echo_n "checking for ANSI C header files... " >&6; }
8575 if ${ac_cv_header_stdc+:} false; then :
8576   $as_echo_n "(cached) " >&6
8577 else
8578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h.  */
8580 #include <stdlib.h>
8581 #include <stdarg.h>
8582 #include <string.h>
8583 #include <float.h>
8584
8585 int
8586 main ()
8587 {
8588
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 if ac_fn_c_try_compile "$LINENO"; then :
8594   ac_cv_header_stdc=yes
8595 else
8596   ac_cv_header_stdc=no
8597 fi
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599
8600 if test $ac_cv_header_stdc = yes; then
8601   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h.  */
8604 #include <string.h>
8605
8606 _ACEOF
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608   $EGREP "memchr" >/dev/null 2>&1; then :
8609
8610 else
8611   ac_cv_header_stdc=no
8612 fi
8613 rm -f conftest*
8614
8615 fi
8616
8617 if test $ac_cv_header_stdc = yes; then
8618   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h.  */
8621 #include <stdlib.h>
8622
8623 _ACEOF
8624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8625   $EGREP "free" >/dev/null 2>&1; then :
8626
8627 else
8628   ac_cv_header_stdc=no
8629 fi
8630 rm -f conftest*
8631
8632 fi
8633
8634 if test $ac_cv_header_stdc = yes; then
8635   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8636   if test "$cross_compiling" = yes; then :
8637   :
8638 else
8639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h.  */
8641 #include <ctype.h>
8642 #include <stdlib.h>
8643 #if ((' ' & 0x0FF) == 0x020)
8644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8646 #else
8647 # define ISLOWER(c) \
8648                    (('a' <= (c) && (c) <= 'i') \
8649                      || ('j' <= (c) && (c) <= 'r') \
8650                      || ('s' <= (c) && (c) <= 'z'))
8651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8652 #endif
8653
8654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8655 int
8656 main ()
8657 {
8658   int i;
8659   for (i = 0; i < 256; i++)
8660     if (XOR (islower (i), ISLOWER (i))
8661         || toupper (i) != TOUPPER (i))
8662       return 2;
8663   return 0;
8664 }
8665 _ACEOF
8666 if ac_fn_c_try_run "$LINENO"; then :
8667
8668 else
8669   ac_cv_header_stdc=no
8670 fi
8671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8672   conftest.$ac_objext conftest.beam conftest.$ac_ext
8673 fi
8674
8675 fi
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8678 $as_echo "$ac_cv_header_stdc" >&6; }
8679 if test $ac_cv_header_stdc = yes; then
8680
8681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8682
8683 fi
8684
8685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8687                   inttypes.h stdint.h unistd.h
8688 do :
8689   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8691 "
8692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8693   cat >>confdefs.h <<_ACEOF
8694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8695 _ACEOF
8696
8697 fi
8698
8699 done
8700
8701
8702 for ac_header in dlfcn.h
8703 do :
8704   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8705 "
8706 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8707   cat >>confdefs.h <<_ACEOF
8708 #define HAVE_DLFCN_H 1
8709 _ACEOF
8710
8711 fi
8712
8713 done
8714
8715
8716
8717 ac_ext=cpp
8718 ac_cpp='$CXXCPP $CPPFLAGS'
8719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8722 if test -z "$CXX"; then
8723   if test -n "$CCC"; then
8724     CXX=$CCC
8725   else
8726     if test -n "$ac_tool_prefix"; then
8727   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8728   do
8729     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_CXX+:} false; then :
8734   $as_echo_n "(cached) " >&6
8735 else
8736   if test -n "$CXX"; then
8737   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742   IFS=$as_save_IFS
8743   test -z "$as_dir" && as_dir=.
8744     for ac_exec_ext in '' $ac_executable_extensions; do
8745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748     break 2
8749   fi
8750 done
8751   done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 CXX=$ac_cv_prog_CXX
8757 if test -n "$CXX"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8759 $as_echo "$CXX" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764
8765
8766     test -n "$CXX" && break
8767   done
8768 fi
8769 if test -z "$CXX"; then
8770   ac_ct_CXX=$CXX
8771   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8772 do
8773   # Extract the first word of "$ac_prog", so it can be a program name with args.
8774 set dummy $ac_prog; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8778   $as_echo_n "(cached) " >&6
8779 else
8780   if test -n "$ac_ct_CXX"; then
8781   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786   IFS=$as_save_IFS
8787   test -z "$as_dir" && as_dir=.
8788     for ac_exec_ext in '' $ac_executable_extensions; do
8789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790     ac_cv_prog_ac_ct_CXX="$ac_prog"
8791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792     break 2
8793   fi
8794 done
8795   done
8796 IFS=$as_save_IFS
8797
8798 fi
8799 fi
8800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8801 if test -n "$ac_ct_CXX"; then
8802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8803 $as_echo "$ac_ct_CXX" >&6; }
8804 else
8805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8807 fi
8808
8809
8810   test -n "$ac_ct_CXX" && break
8811 done
8812
8813   if test "x$ac_ct_CXX" = x; then
8814     CXX="g++"
8815   else
8816     case $cross_compiling:$ac_tool_warned in
8817 yes:)
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8820 ac_tool_warned=yes ;;
8821 esac
8822     CXX=$ac_ct_CXX
8823   fi
8824 fi
8825
8826   fi
8827 fi
8828 # Provide some information about the compiler.
8829 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8830 set X $ac_compile
8831 ac_compiler=$2
8832 for ac_option in --version -v -V -qversion; do
8833   { { ac_try="$ac_compiler $ac_option >&5"
8834 case "(($ac_try" in
8835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836   *) ac_try_echo=$ac_try;;
8837 esac
8838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8839 $as_echo "$ac_try_echo"; } >&5
8840   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8841   ac_status=$?
8842   if test -s conftest.err; then
8843     sed '10a\
8844 ... rest of stderr output deleted ...
8845          10q' conftest.err >conftest.er1
8846     cat conftest.er1 >&5
8847   fi
8848   rm -f conftest.er1 conftest.err
8849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8850   test $ac_status = 0; }
8851 done
8852
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8854 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8855 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8856   $as_echo_n "(cached) " >&6
8857 else
8858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h.  */
8860
8861 int
8862 main ()
8863 {
8864 #ifndef __GNUC__
8865        choke me
8866 #endif
8867
8868   ;
8869   return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_cxx_try_compile "$LINENO"; then :
8873   ac_compiler_gnu=yes
8874 else
8875   ac_compiler_gnu=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8879
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8882 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8883 if test $ac_compiler_gnu = yes; then
8884   GXX=yes
8885 else
8886   GXX=
8887 fi
8888 ac_test_CXXFLAGS=${CXXFLAGS+set}
8889 ac_save_CXXFLAGS=$CXXFLAGS
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8891 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8892 if ${ac_cv_prog_cxx_g+:} false; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8896    ac_cxx_werror_flag=yes
8897    ac_cv_prog_cxx_g=no
8898    CXXFLAGS="-g"
8899    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901
8902 int
8903 main ()
8904 {
8905
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_cxx_try_compile "$LINENO"; then :
8911   ac_cv_prog_cxx_g=yes
8912 else
8913   CXXFLAGS=""
8914       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h.  */
8916
8917 int
8918 main ()
8919 {
8920
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_cxx_try_compile "$LINENO"; then :
8926
8927 else
8928   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8929          CXXFLAGS="-g"
8930          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h.  */
8932
8933 int
8934 main ()
8935 {
8936
8937   ;
8938   return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_cxx_try_compile "$LINENO"; then :
8942   ac_cv_prog_cxx_g=yes
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 fi
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8952 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8953 if test "$ac_test_CXXFLAGS" = set; then
8954   CXXFLAGS=$ac_save_CXXFLAGS
8955 elif test $ac_cv_prog_cxx_g = yes; then
8956   if test "$GXX" = yes; then
8957     CXXFLAGS="-g -O2"
8958   else
8959     CXXFLAGS="-g"
8960   fi
8961 else
8962   if test "$GXX" = yes; then
8963     CXXFLAGS="-O2"
8964   else
8965     CXXFLAGS=
8966   fi
8967 fi
8968 ac_ext=c
8969 ac_cpp='$CPP $CPPFLAGS'
8970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8973
8974 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8975     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8976     (test "X$CXX" != "Xg++"))) ; then
8977   ac_ext=cpp
8978 ac_cpp='$CXXCPP $CPPFLAGS'
8979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8983 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8984 if test -z "$CXXCPP"; then
8985   if ${ac_cv_prog_CXXCPP+:} false; then :
8986   $as_echo_n "(cached) " >&6
8987 else
8988       # Double quotes because CXXCPP needs to be expanded
8989     for CXXCPP in "$CXX -E" "/lib/cpp"
8990     do
8991       ac_preproc_ok=false
8992 for ac_cxx_preproc_warn_flag in '' yes
8993 do
8994   # Use a header file that comes with gcc, so configuring glibc
8995   # with a fresh cross-compiler works.
8996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8997   # <limits.h> exists even on freestanding compilers.
8998   # On the NeXT, cc -E runs the code through the compiler's parser,
8999   # not just through cpp. "Syntax error" is here to catch this case.
9000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h.  */
9002 #ifdef __STDC__
9003 # include <limits.h>
9004 #else
9005 # include <assert.h>
9006 #endif
9007                      Syntax error
9008 _ACEOF
9009 if ac_fn_cxx_try_cpp "$LINENO"; then :
9010
9011 else
9012   # Broken: fails on valid input.
9013 continue
9014 fi
9015 rm -f conftest.err conftest.i conftest.$ac_ext
9016
9017   # OK, works on sane cases.  Now check whether nonexistent headers
9018   # can be detected and how.
9019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h.  */
9021 #include <ac_nonexistent.h>
9022 _ACEOF
9023 if ac_fn_cxx_try_cpp "$LINENO"; then :
9024   # Broken: success on invalid input.
9025 continue
9026 else
9027   # Passes both tests.
9028 ac_preproc_ok=:
9029 break
9030 fi
9031 rm -f conftest.err conftest.i conftest.$ac_ext
9032
9033 done
9034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9035 rm -f conftest.i conftest.err conftest.$ac_ext
9036 if $ac_preproc_ok; then :
9037   break
9038 fi
9039
9040     done
9041     ac_cv_prog_CXXCPP=$CXXCPP
9042
9043 fi
9044   CXXCPP=$ac_cv_prog_CXXCPP
9045 else
9046   ac_cv_prog_CXXCPP=$CXXCPP
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9049 $as_echo "$CXXCPP" >&6; }
9050 ac_preproc_ok=false
9051 for ac_cxx_preproc_warn_flag in '' yes
9052 do
9053   # Use a header file that comes with gcc, so configuring glibc
9054   # with a fresh cross-compiler works.
9055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9056   # <limits.h> exists even on freestanding compilers.
9057   # On the NeXT, cc -E runs the code through the compiler's parser,
9058   # not just through cpp. "Syntax error" is here to catch this case.
9059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h.  */
9061 #ifdef __STDC__
9062 # include <limits.h>
9063 #else
9064 # include <assert.h>
9065 #endif
9066                      Syntax error
9067 _ACEOF
9068 if ac_fn_cxx_try_cpp "$LINENO"; then :
9069
9070 else
9071   # Broken: fails on valid input.
9072 continue
9073 fi
9074 rm -f conftest.err conftest.i conftest.$ac_ext
9075
9076   # OK, works on sane cases.  Now check whether nonexistent headers
9077   # can be detected and how.
9078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h.  */
9080 #include <ac_nonexistent.h>
9081 _ACEOF
9082 if ac_fn_cxx_try_cpp "$LINENO"; then :
9083   # Broken: success on invalid input.
9084 continue
9085 else
9086   # Passes both tests.
9087 ac_preproc_ok=:
9088 break
9089 fi
9090 rm -f conftest.err conftest.i conftest.$ac_ext
9091
9092 done
9093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9094 rm -f conftest.i conftest.err conftest.$ac_ext
9095 if $ac_preproc_ok; then :
9096
9097 else
9098   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9100 _lt_caught_CXX_error=yes; }
9101 fi
9102
9103 ac_ext=c
9104 ac_cpp='$CPP $CPPFLAGS'
9105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9108
9109 else
9110   _lt_caught_CXX_error=yes
9111 fi
9112
9113
9114
9115
9116
9117 # Set options
9118 # Check whether --enable-shared was given.
9119 if test "${enable_shared+set}" = set; then :
9120   enableval=$enable_shared; p=${PACKAGE-default}
9121     case $enableval in
9122     yes) enable_shared=yes ;;
9123     no) enable_shared=no ;;
9124     *)
9125       enable_shared=no
9126       # Look at the argument we got.  We use all the common list separators.
9127       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9128       for pkg in $enableval; do
9129         IFS="$lt_save_ifs"
9130         if test "X$pkg" = "X$p"; then
9131           enable_shared=yes
9132         fi
9133       done
9134       IFS="$lt_save_ifs"
9135       ;;
9136     esac
9137 else
9138   enable_shared=yes
9139 fi
9140
9141
9142
9143
9144
9145
9146
9147 # Check whether --enable-static was given.
9148 if test "${enable_static+set}" = set; then :
9149   enableval=$enable_static; p=${PACKAGE-default}
9150     case $enableval in
9151     yes) enable_static=yes ;;
9152     no) enable_static=no ;;
9153     *)
9154      enable_static=no
9155       # Look at the argument we got.  We use all the common list separators.
9156       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9157       for pkg in $enableval; do
9158         IFS="$lt_save_ifs"
9159         if test "X$pkg" = "X$p"; then
9160           enable_static=yes
9161         fi
9162       done
9163       IFS="$lt_save_ifs"
9164       ;;
9165     esac
9166 else
9167   enable_static=no
9168 fi
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179         enable_dlopen=no
9180
9181
9182   enable_win32_dll=no
9183
9184
9185
9186
9187
9188 # Check whether --with-pic was given.
9189 if test "${with_pic+set}" = set; then :
9190   withval=$with_pic; pic_mode="$withval"
9191 else
9192   pic_mode=default
9193 fi
9194
9195
9196 test -z "$pic_mode" && pic_mode=default
9197
9198
9199
9200
9201
9202
9203
9204   # Check whether --enable-fast-install was given.
9205 if test "${enable_fast_install+set}" = set; then :
9206   enableval=$enable_fast_install; p=${PACKAGE-default}
9207     case $enableval in
9208     yes) enable_fast_install=yes ;;
9209     no) enable_fast_install=no ;;
9210     *)
9211       enable_fast_install=no
9212       # Look at the argument we got.  We use all the common list separators.
9213       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9214       for pkg in $enableval; do
9215         IFS="$lt_save_ifs"
9216         if test "X$pkg" = "X$p"; then
9217           enable_fast_install=yes
9218         fi
9219       done
9220       IFS="$lt_save_ifs"
9221       ;;
9222     esac
9223 else
9224   enable_fast_install=yes
9225 fi
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237 # This can be used to rebuild libtool when needed
9238 LIBTOOL_DEPS="$ltmain"
9239
9240 # Always use our own libtool.
9241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267 test -z "$LN_S" && LN_S="ln -s"
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282 if test -n "${ZSH_VERSION+set}" ; then
9283    setopt NO_GLOB_SUBST
9284 fi
9285
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9287 $as_echo_n "checking for objdir... " >&6; }
9288 if ${lt_cv_objdir+:} false; then :
9289   $as_echo_n "(cached) " >&6
9290 else
9291   rm -f .libs 2>/dev/null
9292 mkdir .libs 2>/dev/null
9293 if test -d .libs; then
9294   lt_cv_objdir=.libs
9295 else
9296   # MS-DOS does not allow filenames that begin with a dot.
9297   lt_cv_objdir=_libs
9298 fi
9299 rmdir .libs 2>/dev/null
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9302 $as_echo "$lt_cv_objdir" >&6; }
9303 objdir=$lt_cv_objdir
9304
9305
9306
9307
9308
9309 cat >>confdefs.h <<_ACEOF
9310 #define LT_OBJDIR "$lt_cv_objdir/"
9311 _ACEOF
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 case $host_os in
9330 aix3*)
9331   # AIX sometimes has problems with the GCC collect2 program.  For some
9332   # reason, if we set the COLLECT_NAMES environment variable, the problems
9333   # vanish in a puff of smoke.
9334   if test "X${COLLECT_NAMES+set}" != Xset; then
9335     COLLECT_NAMES=
9336     export COLLECT_NAMES
9337   fi
9338   ;;
9339 esac
9340
9341 # Sed substitution that helps us do robust quoting.  It backslashifies
9342 # metacharacters that are still active within double-quoted strings.
9343 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9344
9345 # Same as above, but do not quote variable references.
9346 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9347
9348 # Sed substitution to delay expansion of an escaped shell variable in a
9349 # double_quote_subst'ed string.
9350 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9351
9352 # Sed substitution to delay expansion of an escaped single quote.
9353 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9354
9355 # Sed substitution to avoid accidental globbing in evaled expressions
9356 no_glob_subst='s/\*/\\\*/g'
9357
9358 # Global variables:
9359 ofile=libtool
9360 can_build_shared=yes
9361
9362 # All known linkers require a `.a' archive for static linking (except MSVC,
9363 # which needs '.lib').
9364 libext=a
9365
9366 with_gnu_ld="$lt_cv_prog_gnu_ld"
9367
9368 old_CC="$CC"
9369 old_CFLAGS="$CFLAGS"
9370
9371 # Set sane defaults for various variables
9372 test -z "$CC" && CC=cc
9373 test -z "$LTCC" && LTCC=$CC
9374 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9375 test -z "$LD" && LD=ld
9376 test -z "$ac_objext" && ac_objext=o
9377
9378 for cc_temp in $compiler""; do
9379   case $cc_temp in
9380     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9381     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9382     \-*) ;;
9383     *) break;;
9384   esac
9385 done
9386 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9387
9388
9389 # Only perform the check for file, if the check method requires it
9390 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9391 case $deplibs_check_method in
9392 file_magic*)
9393   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9395 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9396 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9397   $as_echo_n "(cached) " >&6
9398 else
9399   case $MAGIC_CMD in
9400 [\\/*] |  ?:[\\/]*)
9401   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9402   ;;
9403 *)
9404   lt_save_MAGIC_CMD="$MAGIC_CMD"
9405   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9406   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9407   for ac_dir in $ac_dummy; do
9408     IFS="$lt_save_ifs"
9409     test -z "$ac_dir" && ac_dir=.
9410     if test -f $ac_dir/${ac_tool_prefix}file; then
9411       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9412       if test -n "$file_magic_test_file"; then
9413         case $deplibs_check_method in
9414         "file_magic "*)
9415           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9416           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9417           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9418             $EGREP "$file_magic_regex" > /dev/null; then
9419             :
9420           else
9421             cat <<_LT_EOF 1>&2
9422
9423 *** Warning: the command libtool uses to detect shared libraries,
9424 *** $file_magic_cmd, produces output that libtool cannot recognize.
9425 *** The result is that libtool may fail to recognize shared libraries
9426 *** as such.  This will affect the creation of libtool libraries that
9427 *** depend on shared libraries, but programs linked with such libtool
9428 *** libraries will work regardless of this problem.  Nevertheless, you
9429 *** may want to report the problem to your system manager and/or to
9430 *** bug-libtool@gnu.org
9431
9432 _LT_EOF
9433           fi ;;
9434         esac
9435       fi
9436       break
9437     fi
9438   done
9439   IFS="$lt_save_ifs"
9440   MAGIC_CMD="$lt_save_MAGIC_CMD"
9441   ;;
9442 esac
9443 fi
9444
9445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9446 if test -n "$MAGIC_CMD"; then
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9448 $as_echo "$MAGIC_CMD" >&6; }
9449 else
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453
9454
9455
9456
9457
9458 if test -z "$lt_cv_path_MAGIC_CMD"; then
9459   if test -n "$ac_tool_prefix"; then
9460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9461 $as_echo_n "checking for file... " >&6; }
9462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   case $MAGIC_CMD in
9466 [\\/*] |  ?:[\\/]*)
9467   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9468   ;;
9469 *)
9470   lt_save_MAGIC_CMD="$MAGIC_CMD"
9471   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9472   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9473   for ac_dir in $ac_dummy; do
9474     IFS="$lt_save_ifs"
9475     test -z "$ac_dir" && ac_dir=.
9476     if test -f $ac_dir/file; then
9477       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9478       if test -n "$file_magic_test_file"; then
9479         case $deplibs_check_method in
9480         "file_magic "*)
9481           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9482           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9483           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9484             $EGREP "$file_magic_regex" > /dev/null; then
9485             :
9486           else
9487             cat <<_LT_EOF 1>&2
9488
9489 *** Warning: the command libtool uses to detect shared libraries,
9490 *** $file_magic_cmd, produces output that libtool cannot recognize.
9491 *** The result is that libtool may fail to recognize shared libraries
9492 *** as such.  This will affect the creation of libtool libraries that
9493 *** depend on shared libraries, but programs linked with such libtool
9494 *** libraries will work regardless of this problem.  Nevertheless, you
9495 *** may want to report the problem to your system manager and/or to
9496 *** bug-libtool@gnu.org
9497
9498 _LT_EOF
9499           fi ;;
9500         esac
9501       fi
9502       break
9503     fi
9504   done
9505   IFS="$lt_save_ifs"
9506   MAGIC_CMD="$lt_save_MAGIC_CMD"
9507   ;;
9508 esac
9509 fi
9510
9511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9512 if test -n "$MAGIC_CMD"; then
9513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9514 $as_echo "$MAGIC_CMD" >&6; }
9515 else
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9518 fi
9519
9520
9521   else
9522     MAGIC_CMD=:
9523   fi
9524 fi
9525
9526   fi
9527   ;;
9528 esac
9529
9530 # Use C for the default configuration in the libtool script
9531
9532 lt_save_CC="$CC"
9533 ac_ext=c
9534 ac_cpp='$CPP $CPPFLAGS'
9535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9538
9539
9540 # Source file extension for C test sources.
9541 ac_ext=c
9542
9543 # Object file extension for compiled C test sources.
9544 objext=o
9545 objext=$objext
9546
9547 # Code to be used in simple compile tests
9548 lt_simple_compile_test_code="int some_variable = 0;"
9549
9550 # Code to be used in simple link tests
9551 lt_simple_link_test_code='int main(){return(0);}'
9552
9553
9554
9555
9556
9557
9558
9559 # If no C compiler was specified, use CC.
9560 LTCC=${LTCC-"$CC"}
9561
9562 # If no C compiler flags were specified, use CFLAGS.
9563 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9564
9565 # Allow CC to be a program name with arguments.
9566 compiler=$CC
9567
9568 # Save the default compiler, since it gets overwritten when the other
9569 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9570 compiler_DEFAULT=$CC
9571
9572 # save warnings/boilerplate of simple test code
9573 ac_outfile=conftest.$ac_objext
9574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9576 _lt_compiler_boilerplate=`cat conftest.err`
9577 $RM conftest*
9578
9579 ac_outfile=conftest.$ac_objext
9580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9582 _lt_linker_boilerplate=`cat conftest.err`
9583 $RM -r conftest*
9584
9585
9586 ## CAVEAT EMPTOR:
9587 ## There is no encapsulation within the following macros, do not change
9588 ## the running order or otherwise move them around unless you know exactly
9589 ## what you are doing...
9590 if test -n "$compiler"; then
9591
9592 lt_prog_compiler_no_builtin_flag=
9593
9594 if test "$GCC" = yes; then
9595   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9596
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9598 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9599 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9600   $as_echo_n "(cached) " >&6
9601 else
9602   lt_cv_prog_compiler_rtti_exceptions=no
9603    ac_outfile=conftest.$ac_objext
9604    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605    lt_compiler_flag="-fno-rtti -fno-exceptions"
9606    # Insert the option either (1) after the last *FLAGS variable, or
9607    # (2) before a word containing "conftest.", or (3) at the end.
9608    # Note that $ac_compile itself does not contain backslashes and begins
9609    # with a dollar sign (not a hyphen), so the echo should work correctly.
9610    # The option is referenced via a variable to avoid confusing sed.
9611    lt_compile=`echo "$ac_compile" | $SED \
9612    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9613    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9614    -e 's:$: $lt_compiler_flag:'`
9615    (eval echo "\"\$as_me:9615: $lt_compile\"" >&5)
9616    (eval "$lt_compile" 2>conftest.err)
9617    ac_status=$?
9618    cat conftest.err >&5
9619    echo "$as_me:9619: \$? = $ac_status" >&5
9620    if (exit $ac_status) && test -s "$ac_outfile"; then
9621      # The compiler can only warn and ignore the option if not recognized
9622      # So say no if there are warnings other than the usual output.
9623      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9624      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9625      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9626        lt_cv_prog_compiler_rtti_exceptions=yes
9627      fi
9628    fi
9629    $RM conftest*
9630
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9633 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9634
9635 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9636     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9637 else
9638     :
9639 fi
9640
9641 fi
9642
9643
9644
9645
9646
9647
9648   lt_prog_compiler_wl=
9649 lt_prog_compiler_pic=
9650 lt_prog_compiler_static=
9651
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9653 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9654
9655   if test "$GCC" = yes; then
9656     lt_prog_compiler_wl='-Wl,'
9657     lt_prog_compiler_static='-static'
9658
9659     case $host_os in
9660       aix*)
9661       # All AIX code is PIC.
9662       if test "$host_cpu" = ia64; then
9663         # AIX 5 now supports IA64 processor
9664         lt_prog_compiler_static='-Bstatic'
9665       fi
9666       ;;
9667
9668     amigaos*)
9669       case $host_cpu in
9670       powerpc)
9671             # see comment about AmigaOS4 .so support
9672             lt_prog_compiler_pic='-fPIC'
9673         ;;
9674       m68k)
9675             # FIXME: we need at least 68020 code to build shared libraries, but
9676             # adding the `-m68020' flag to GCC prevents building anything better,
9677             # like `-m68040'.
9678             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9679         ;;
9680       esac
9681       ;;
9682
9683     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9684       # PIC is the default for these OSes.
9685       ;;
9686
9687     mingw* | cygwin* | pw32* | os2* | cegcc*)
9688       # This hack is so that the source file can tell whether it is being
9689       # built for inclusion in a dll (and should export symbols for example).
9690       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9691       # (--disable-auto-import) libraries
9692       lt_prog_compiler_pic='-DDLL_EXPORT'
9693       ;;
9694
9695     darwin* | rhapsody*)
9696       # PIC is the default on this platform
9697       # Common symbols not allowed in MH_DYLIB files
9698       lt_prog_compiler_pic='-fno-common'
9699       ;;
9700
9701     hpux*)
9702       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9703       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9704       # sets the default TLS model and affects inlining.
9705       case $host_cpu in
9706       hppa*64*)
9707         # +Z the default
9708         ;;
9709       *)
9710         lt_prog_compiler_pic='-fPIC'
9711         ;;
9712       esac
9713       ;;
9714
9715     interix[3-9]*)
9716       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9717       # Instead, we relocate shared libraries at runtime.
9718       ;;
9719
9720     msdosdjgpp*)
9721       # Just because we use GCC doesn't mean we suddenly get shared libraries
9722       # on systems that don't support them.
9723       lt_prog_compiler_can_build_shared=no
9724       enable_shared=no
9725       ;;
9726
9727     *nto* | *qnx*)
9728       # QNX uses GNU C++, but need to define -shared option too, otherwise
9729       # it will coredump.
9730       lt_prog_compiler_pic='-fPIC -shared'
9731       ;;
9732
9733     sysv4*MP*)
9734       if test -d /usr/nec; then
9735         lt_prog_compiler_pic=-Kconform_pic
9736       fi
9737       ;;
9738
9739     *)
9740       lt_prog_compiler_pic='-fPIC'
9741       ;;
9742     esac
9743   else
9744     # PORTME Check for flag to pass linker flags through the system compiler.
9745     case $host_os in
9746     aix*)
9747       lt_prog_compiler_wl='-Wl,'
9748       if test "$host_cpu" = ia64; then
9749         # AIX 5 now supports IA64 processor
9750         lt_prog_compiler_static='-Bstatic'
9751       else
9752         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9753       fi
9754       ;;
9755
9756     mingw* | cygwin* | pw32* | os2* | cegcc*)
9757       # This hack is so that the source file can tell whether it is being
9758       # built for inclusion in a dll (and should export symbols for example).
9759       lt_prog_compiler_pic='-DDLL_EXPORT'
9760       ;;
9761
9762     hpux9* | hpux10* | hpux11*)
9763       lt_prog_compiler_wl='-Wl,'
9764       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9765       # not for PA HP-UX.
9766       case $host_cpu in
9767       hppa*64*|ia64*)
9768         # +Z the default
9769         ;;
9770       *)
9771         lt_prog_compiler_pic='+Z'
9772         ;;
9773       esac
9774       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9775       lt_prog_compiler_static='${wl}-a ${wl}archive'
9776       ;;
9777
9778     irix5* | irix6* | nonstopux*)
9779       lt_prog_compiler_wl='-Wl,'
9780       # PIC (with -KPIC) is the default.
9781       lt_prog_compiler_static='-non_shared'
9782       ;;
9783
9784     linux* | k*bsd*-gnu)
9785       case $cc_basename in
9786       # old Intel for x86_64 which still supported -KPIC.
9787       ecc*)
9788         lt_prog_compiler_wl='-Wl,'
9789         lt_prog_compiler_pic='-KPIC'
9790         lt_prog_compiler_static='-static'
9791         ;;
9792       # icc used to be incompatible with GCC.
9793       # ICC 10 doesn't accept -KPIC any more.
9794       icc* | ifort*)
9795         lt_prog_compiler_wl='-Wl,'
9796         lt_prog_compiler_pic='-fPIC'
9797         lt_prog_compiler_static='-static'
9798         ;;
9799       # Lahey Fortran 8.1.
9800       lf95*)
9801         lt_prog_compiler_wl='-Wl,'
9802         lt_prog_compiler_pic='--shared'
9803         lt_prog_compiler_static='--static'
9804         ;;
9805       pgcc* | pgf77* | pgf90* | pgf95*)
9806         # Portland Group compilers (*not* the Pentium gcc compiler,
9807         # which looks to be a dead project)
9808         lt_prog_compiler_wl='-Wl,'
9809         lt_prog_compiler_pic='-fpic'
9810         lt_prog_compiler_static='-Bstatic'
9811         ;;
9812       ccc*)
9813         lt_prog_compiler_wl='-Wl,'
9814         # All Alpha code is PIC.
9815         lt_prog_compiler_static='-non_shared'
9816         ;;
9817       xl*)
9818         # IBM XL C 8.0/Fortran 10.1 on PPC
9819         lt_prog_compiler_wl='-Wl,'
9820         lt_prog_compiler_pic='-qpic'
9821         lt_prog_compiler_static='-qstaticlink'
9822         ;;
9823       *)
9824         case `$CC -V 2>&1 | sed 5q` in
9825         *Sun\ C*)
9826           # Sun C 5.9
9827           lt_prog_compiler_pic='-KPIC'
9828           lt_prog_compiler_static='-Bstatic'
9829           lt_prog_compiler_wl='-Wl,'
9830           ;;
9831         *Sun\ F*)
9832           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9833           lt_prog_compiler_pic='-KPIC'
9834           lt_prog_compiler_static='-Bstatic'
9835           lt_prog_compiler_wl=''
9836           ;;
9837         esac
9838         ;;
9839       esac
9840       ;;
9841
9842     newsos6)
9843       lt_prog_compiler_pic='-KPIC'
9844       lt_prog_compiler_static='-Bstatic'
9845       ;;
9846
9847     *nto* | *qnx*)
9848       # QNX uses GNU C++, but need to define -shared option too, otherwise
9849       # it will coredump.
9850       lt_prog_compiler_pic='-fPIC -shared'
9851       ;;
9852
9853     osf3* | osf4* | osf5*)
9854       lt_prog_compiler_wl='-Wl,'
9855       # All OSF/1 code is PIC.
9856       lt_prog_compiler_static='-non_shared'
9857       ;;
9858
9859     rdos*)
9860       lt_prog_compiler_static='-non_shared'
9861       ;;
9862
9863     solaris*)
9864       lt_prog_compiler_pic='-KPIC'
9865       lt_prog_compiler_static='-Bstatic'
9866       case $cc_basename in
9867       f77* | f90* | f95*)
9868         lt_prog_compiler_wl='-Qoption ld ';;
9869       *)
9870         lt_prog_compiler_wl='-Wl,';;
9871       esac
9872       ;;
9873
9874     sunos4*)
9875       lt_prog_compiler_wl='-Qoption ld '
9876       lt_prog_compiler_pic='-PIC'
9877       lt_prog_compiler_static='-Bstatic'
9878       ;;
9879
9880     sysv4 | sysv4.2uw2* | sysv4.3*)
9881       lt_prog_compiler_wl='-Wl,'
9882       lt_prog_compiler_pic='-KPIC'
9883       lt_prog_compiler_static='-Bstatic'
9884       ;;
9885
9886     sysv4*MP*)
9887       if test -d /usr/nec ;then
9888         lt_prog_compiler_pic='-Kconform_pic'
9889         lt_prog_compiler_static='-Bstatic'
9890       fi
9891       ;;
9892
9893     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9894       lt_prog_compiler_wl='-Wl,'
9895       lt_prog_compiler_pic='-KPIC'
9896       lt_prog_compiler_static='-Bstatic'
9897       ;;
9898
9899     unicos*)
9900       lt_prog_compiler_wl='-Wl,'
9901       lt_prog_compiler_can_build_shared=no
9902       ;;
9903
9904     uts4*)
9905       lt_prog_compiler_pic='-pic'
9906       lt_prog_compiler_static='-Bstatic'
9907       ;;
9908
9909     *)
9910       lt_prog_compiler_can_build_shared=no
9911       ;;
9912     esac
9913   fi
9914
9915 case $host_os in
9916   # For platforms which do not support PIC, -DPIC is meaningless:
9917   *djgpp*)
9918     lt_prog_compiler_pic=
9919     ;;
9920   *)
9921     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9922     ;;
9923 esac
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9925 $as_echo "$lt_prog_compiler_pic" >&6; }
9926
9927
9928
9929
9930
9931
9932 #
9933 # Check to make sure the PIC flag actually works.
9934 #
9935 if test -n "$lt_prog_compiler_pic"; then
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9938 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   lt_cv_prog_compiler_pic_works=no
9942    ac_outfile=conftest.$ac_objext
9943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9944    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9945    # Insert the option either (1) after the last *FLAGS variable, or
9946    # (2) before a word containing "conftest.", or (3) at the end.
9947    # Note that $ac_compile itself does not contain backslashes and begins
9948    # with a dollar sign (not a hyphen), so the echo should work correctly.
9949    # The option is referenced via a variable to avoid confusing sed.
9950    lt_compile=`echo "$ac_compile" | $SED \
9951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9953    -e 's:$: $lt_compiler_flag:'`
9954    (eval echo "\"\$as_me:9954: $lt_compile\"" >&5)
9955    (eval "$lt_compile" 2>conftest.err)
9956    ac_status=$?
9957    cat conftest.err >&5
9958    echo "$as_me:9958: \$? = $ac_status" >&5
9959    if (exit $ac_status) && test -s "$ac_outfile"; then
9960      # The compiler can only warn and ignore the option if not recognized
9961      # So say no if there are warnings other than the usual output.
9962      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9963      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9964      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9965        lt_cv_prog_compiler_pic_works=yes
9966      fi
9967    fi
9968    $RM conftest*
9969
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9972 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9973
9974 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9975     case $lt_prog_compiler_pic in
9976      "" | " "*) ;;
9977      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9978      esac
9979 else
9980     lt_prog_compiler_pic=
9981      lt_prog_compiler_can_build_shared=no
9982 fi
9983
9984 fi
9985
9986
9987
9988
9989
9990
9991 #
9992 # Check to make sure the static flag actually works.
9993 #
9994 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9996 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9997 if ${lt_cv_prog_compiler_static_works+:} false; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000   lt_cv_prog_compiler_static_works=no
10001    save_LDFLAGS="$LDFLAGS"
10002    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10003    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10004    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10005      # The linker can only warn and ignore the option if not recognized
10006      # So say no if there are warnings
10007      if test -s conftest.err; then
10008        # Append any errors to the config.log.
10009        cat conftest.err 1>&5
10010        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10011        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10012        if diff conftest.exp conftest.er2 >/dev/null; then
10013          lt_cv_prog_compiler_static_works=yes
10014        fi
10015      else
10016        lt_cv_prog_compiler_static_works=yes
10017      fi
10018    fi
10019    $RM -r conftest*
10020    LDFLAGS="$save_LDFLAGS"
10021
10022 fi
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10024 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10025
10026 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10027     :
10028 else
10029     lt_prog_compiler_static=
10030 fi
10031
10032
10033
10034
10035
10036
10037
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10040 if ${lt_cv_prog_compiler_c_o+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   lt_cv_prog_compiler_c_o=no
10044    $RM -r conftest 2>/dev/null
10045    mkdir conftest
10046    cd conftest
10047    mkdir out
10048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10049
10050    lt_compiler_flag="-o out/conftest2.$ac_objext"
10051    # Insert the option either (1) after the last *FLAGS variable, or
10052    # (2) before a word containing "conftest.", or (3) at the end.
10053    # Note that $ac_compile itself does not contain backslashes and begins
10054    # with a dollar sign (not a hyphen), so the echo should work correctly.
10055    lt_compile=`echo "$ac_compile" | $SED \
10056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10058    -e 's:$: $lt_compiler_flag:'`
10059    (eval echo "\"\$as_me:10059: $lt_compile\"" >&5)
10060    (eval "$lt_compile" 2>out/conftest.err)
10061    ac_status=$?
10062    cat out/conftest.err >&5
10063    echo "$as_me:10063: \$? = $ac_status" >&5
10064    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10065    then
10066      # The compiler can only warn and ignore the option if not recognized
10067      # So say no if there are warnings
10068      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10069      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10070      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10071        lt_cv_prog_compiler_c_o=yes
10072      fi
10073    fi
10074    chmod u+w . 2>&5
10075    $RM conftest*
10076    # SGI C++ compiler will create directory out/ii_files/ for
10077    # template instantiation
10078    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10079    $RM out/* && rmdir out
10080    cd ..
10081    $RM -r conftest
10082    $RM conftest*
10083
10084 fi
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10087
10088
10089
10090
10091
10092
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10094 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10095 if ${lt_cv_prog_compiler_c_o+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   lt_cv_prog_compiler_c_o=no
10099    $RM -r conftest 2>/dev/null
10100    mkdir conftest
10101    cd conftest
10102    mkdir out
10103    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10104
10105    lt_compiler_flag="-o out/conftest2.$ac_objext"
10106    # Insert the option either (1) after the last *FLAGS variable, or
10107    # (2) before a word containing "conftest.", or (3) at the end.
10108    # Note that $ac_compile itself does not contain backslashes and begins
10109    # with a dollar sign (not a hyphen), so the echo should work correctly.
10110    lt_compile=`echo "$ac_compile" | $SED \
10111    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10113    -e 's:$: $lt_compiler_flag:'`
10114    (eval echo "\"\$as_me:10114: $lt_compile\"" >&5)
10115    (eval "$lt_compile" 2>out/conftest.err)
10116    ac_status=$?
10117    cat out/conftest.err >&5
10118    echo "$as_me:10118: \$? = $ac_status" >&5
10119    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10120    then
10121      # The compiler can only warn and ignore the option if not recognized
10122      # So say no if there are warnings
10123      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10124      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10125      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10126        lt_cv_prog_compiler_c_o=yes
10127      fi
10128    fi
10129    chmod u+w . 2>&5
10130    $RM conftest*
10131    # SGI C++ compiler will create directory out/ii_files/ for
10132    # template instantiation
10133    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10134    $RM out/* && rmdir out
10135    cd ..
10136    $RM -r conftest
10137    $RM conftest*
10138
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10141 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10142
10143
10144
10145
10146 hard_links="nottested"
10147 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10148   # do not overwrite the value of need_locks provided by the user
10149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10150 $as_echo_n "checking if we can lock with hard links... " >&6; }
10151   hard_links=yes
10152   $RM conftest*
10153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10154   touch conftest.a
10155   ln conftest.a conftest.b 2>&5 || hard_links=no
10156   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10158 $as_echo "$hard_links" >&6; }
10159   if test "$hard_links" = no; then
10160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10161 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10162     need_locks=warn
10163   fi
10164 else
10165   need_locks=no
10166 fi
10167
10168
10169
10170
10171
10172
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10174 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10175
10176   runpath_var=
10177   allow_undefined_flag=
10178   always_export_symbols=no
10179   archive_cmds=
10180   archive_expsym_cmds=
10181   compiler_needs_object=no
10182   enable_shared_with_static_runtimes=no
10183   export_dynamic_flag_spec=
10184   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10185   hardcode_automatic=no
10186   hardcode_direct=no
10187   hardcode_direct_absolute=no
10188   hardcode_libdir_flag_spec=
10189   hardcode_libdir_flag_spec_ld=
10190   hardcode_libdir_separator=
10191   hardcode_minus_L=no
10192   hardcode_shlibpath_var=unsupported
10193   inherit_rpath=no
10194   link_all_deplibs=unknown
10195   module_cmds=
10196   module_expsym_cmds=
10197   old_archive_from_new_cmds=
10198   old_archive_from_expsyms_cmds=
10199   thread_safe_flag_spec=
10200   whole_archive_flag_spec=
10201   # include_expsyms should be a list of space-separated symbols to be *always*
10202   # included in the symbol list
10203   include_expsyms=
10204   # exclude_expsyms can be an extended regexp of symbols to exclude
10205   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10206   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10207   # as well as any symbol that contains `d'.
10208   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10209   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10210   # platforms (ab)use it in PIC code, but their linkers get confused if
10211   # the symbol is explicitly referenced.  Since portable code cannot
10212   # rely on this symbol name, it's probably fine to never include it in
10213   # preloaded symbol tables.
10214   # Exclude shared library initialization/finalization symbols.
10215   extract_expsyms_cmds=
10216
10217   case $host_os in
10218   cygwin* | mingw* | pw32* | cegcc*)
10219     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10220     # When not using gcc, we currently assume that we are using
10221     # Microsoft Visual C++.
10222     if test "$GCC" != yes; then
10223       with_gnu_ld=no
10224     fi
10225     ;;
10226   interix*)
10227     # we just hope/assume this is gcc and not c89 (= MSVC++)
10228     with_gnu_ld=yes
10229     ;;
10230   openbsd*)
10231     with_gnu_ld=no
10232     ;;
10233   esac
10234
10235   ld_shlibs=yes
10236   if test "$with_gnu_ld" = yes; then
10237     # If archive_cmds runs LD, not CC, wlarc should be empty
10238     wlarc='${wl}'
10239
10240     # Set some defaults for GNU ld with shared library support. These
10241     # are reset later if shared libraries are not supported. Putting them
10242     # here allows them to be overridden if necessary.
10243     runpath_var=LD_RUN_PATH
10244     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10245     export_dynamic_flag_spec='${wl}--export-dynamic'
10246     # ancient GNU ld didn't support --whole-archive et. al.
10247     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10248       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10249     else
10250       whole_archive_flag_spec=
10251     fi
10252     supports_anon_versioning=no
10253     case `$LD -v 2>&1` in
10254       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10255       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10256       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10257       *\ 2.11.*) ;; # other 2.11 versions
10258       *) supports_anon_versioning=yes ;;
10259     esac
10260
10261     # See if GNU ld supports shared libraries.
10262     case $host_os in
10263     aix[3-9]*)
10264       # On AIX/PPC, the GNU linker is very broken
10265       if test "$host_cpu" != ia64; then
10266         ld_shlibs=no
10267         cat <<_LT_EOF 1>&2
10268
10269 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10270 *** to be unable to reliably create shared libraries on AIX.
10271 *** Therefore, libtool is disabling shared libraries support.  If you
10272 *** really care for shared libraries, you may want to modify your PATH
10273 *** so that a non-GNU linker is found, and then restart.
10274
10275 _LT_EOF
10276       fi
10277       ;;
10278
10279     amigaos*)
10280       case $host_cpu in
10281       powerpc)
10282             # see comment about AmigaOS4 .so support
10283             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10284             archive_expsym_cmds=''
10285         ;;
10286       m68k)
10287             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)'
10288             hardcode_libdir_flag_spec='-L$libdir'
10289             hardcode_minus_L=yes
10290         ;;
10291       esac
10292       ;;
10293
10294     beos*)
10295       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10296         allow_undefined_flag=unsupported
10297         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10298         # support --undefined.  This deserves some investigation.  FIXME
10299         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300       else
10301         ld_shlibs=no
10302       fi
10303       ;;
10304
10305     cygwin* | mingw* | pw32* | cegcc*)
10306       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10307       # as there is no search path for DLLs.
10308       hardcode_libdir_flag_spec='-L$libdir'
10309       allow_undefined_flag=unsupported
10310       always_export_symbols=no
10311       enable_shared_with_static_runtimes=yes
10312       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10313
10314       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10315         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10316         # If the export-symbols file already is a .def file (1st line
10317         # is EXPORTS), use it as is; otherwise, prepend...
10318         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10319           cp $export_symbols $output_objdir/$soname.def;
10320         else
10321           echo EXPORTS > $output_objdir/$soname.def;
10322           cat $export_symbols >> $output_objdir/$soname.def;
10323         fi~
10324         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10325       else
10326         ld_shlibs=no
10327       fi
10328       ;;
10329
10330     interix[3-9]*)
10331       hardcode_direct=no
10332       hardcode_shlibpath_var=no
10333       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10334       export_dynamic_flag_spec='${wl}-E'
10335       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10336       # Instead, shared libraries are loaded at an image base (0x10000000 by
10337       # default) and relocated if they conflict, which is a slow very memory
10338       # consuming and fragmenting process.  To avoid this, we pick a random,
10339       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10340       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10341       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10342       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'
10343       ;;
10344
10345     gnu* | linux* | tpf* | k*bsd*-gnu)
10346       tmp_diet=no
10347       if test "$host_os" = linux-dietlibc; then
10348         case $cc_basename in
10349           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10350         esac
10351       fi
10352       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10353          && test "$tmp_diet" = no
10354       then
10355         tmp_addflag=
10356         tmp_sharedflag='-shared'
10357         case $cc_basename,$host_cpu in
10358         pgcc*)                          # Portland Group C compiler
10359           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'
10360           tmp_addflag=' $pic_flag'
10361           ;;
10362         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10363           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'
10364           tmp_addflag=' $pic_flag -Mnomain' ;;
10365         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10366           tmp_addflag=' -i_dynamic' ;;
10367         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10368           tmp_addflag=' -i_dynamic -nofor_main' ;;
10369         ifc* | ifort*)                  # Intel Fortran compiler
10370           tmp_addflag=' -nofor_main' ;;
10371         lf95*)                          # Lahey Fortran 8.1
10372           whole_archive_flag_spec=
10373           tmp_sharedflag='--shared' ;;
10374         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10375           tmp_sharedflag='-qmkshrobj'
10376           tmp_addflag= ;;
10377         esac
10378         case `$CC -V 2>&1 | sed 5q` in
10379         *Sun\ C*)                       # Sun C 5.9
10380           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'
10381           compiler_needs_object=yes
10382           tmp_sharedflag='-G' ;;
10383         *Sun\ F*)                       # Sun Fortran 8.3
10384           tmp_sharedflag='-G' ;;
10385         esac
10386         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10387
10388         if test "x$supports_anon_versioning" = xyes; then
10389           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10390             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10391             echo "local: *; };" >> $output_objdir/$libname.ver~
10392             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10393         fi
10394
10395         case $cc_basename in
10396         xlf*)
10397           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10398           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10399           hardcode_libdir_flag_spec=
10400           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10401           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10402           if test "x$supports_anon_versioning" = xyes; then
10403             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10404               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10405               echo "local: *; };" >> $output_objdir/$libname.ver~
10406               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10407           fi
10408           ;;
10409         esac
10410       else
10411         ld_shlibs=no
10412       fi
10413       ;;
10414
10415     netbsd*)
10416       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10417         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10418         wlarc=
10419       else
10420         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10422       fi
10423       ;;
10424
10425     solaris*)
10426       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10427         ld_shlibs=no
10428         cat <<_LT_EOF 1>&2
10429
10430 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10431 *** create shared libraries on Solaris systems.  Therefore, libtool
10432 *** is disabling shared libraries support.  We urge you to upgrade GNU
10433 *** binutils to release 2.9.1 or newer.  Another option is to modify
10434 *** your PATH or compiler configuration so that the native linker is
10435 *** used, and then restart.
10436
10437 _LT_EOF
10438       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10439         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10440         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10441       else
10442         ld_shlibs=no
10443       fi
10444       ;;
10445
10446     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10447       case `$LD -v 2>&1` in
10448         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10449         ld_shlibs=no
10450         cat <<_LT_EOF 1>&2
10451
10452 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10453 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10454 *** is disabling shared libraries support.  We urge you to upgrade GNU
10455 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10456 *** your PATH or compiler configuration so that the native linker is
10457 *** used, and then restart.
10458
10459 _LT_EOF
10460         ;;
10461         *)
10462           # For security reasons, it is highly recommended that you always
10463           # use absolute paths for naming shared libraries, and exclude the
10464           # DT_RUNPATH tag from executables and libraries.  But doing so
10465           # requires that you compile everything twice, which is a pain.
10466           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10467             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10469             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10470           else
10471             ld_shlibs=no
10472           fi
10473         ;;
10474       esac
10475       ;;
10476
10477     sunos4*)
10478       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10479       wlarc=
10480       hardcode_direct=yes
10481       hardcode_shlibpath_var=no
10482       ;;
10483
10484     *)
10485       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10486         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10487         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10488       else
10489         ld_shlibs=no
10490       fi
10491       ;;
10492     esac
10493
10494     if test "$ld_shlibs" = no; then
10495       runpath_var=
10496       hardcode_libdir_flag_spec=
10497       export_dynamic_flag_spec=
10498       whole_archive_flag_spec=
10499     fi
10500   else
10501     # PORTME fill in a description of your system's linker (not GNU ld)
10502     case $host_os in
10503     aix3*)
10504       allow_undefined_flag=unsupported
10505       always_export_symbols=yes
10506       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'
10507       # Note: this linker hardcodes the directories in LIBPATH if there
10508       # are no directories specified by -L.
10509       hardcode_minus_L=yes
10510       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10511         # Neither direct hardcoding nor static linking is supported with a
10512         # broken collect2.
10513         hardcode_direct=unsupported
10514       fi
10515       ;;
10516
10517     aix[4-9]*)
10518       if test "$host_cpu" = ia64; then
10519         # On IA64, the linker does run time linking by default, so we don't
10520         # have to do anything special.
10521         aix_use_runtimelinking=no
10522         exp_sym_flag='-Bexport'
10523         no_entry_flag=""
10524       else
10525         # If we're using GNU nm, then we don't want the "-C" option.
10526         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10527         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10528           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'
10529         else
10530           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'
10531         fi
10532         aix_use_runtimelinking=no
10533
10534         # Test if we are trying to use run time linking or normal
10535         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10536         # need to do runtime linking.
10537         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10538           for ld_flag in $LDFLAGS; do
10539           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10540             aix_use_runtimelinking=yes
10541             break
10542           fi
10543           done
10544           ;;
10545         esac
10546
10547         exp_sym_flag='-bexport'
10548         no_entry_flag='-bnoentry'
10549       fi
10550
10551       # When large executables or shared objects are built, AIX ld can
10552       # have problems creating the table of contents.  If linking a library
10553       # or program results in "error TOC overflow" add -mminimal-toc to
10554       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10555       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10556
10557       archive_cmds=''
10558       hardcode_direct=yes
10559       hardcode_direct_absolute=yes
10560       hardcode_libdir_separator=':'
10561       link_all_deplibs=yes
10562       file_list_spec='${wl}-f,'
10563
10564       if test "$GCC" = yes; then
10565         case $host_os in aix4.[012]|aix4.[012].*)
10566         # We only want to do this on AIX 4.2 and lower, the check
10567         # below for broken collect2 doesn't work under 4.3+
10568           collect2name=`${CC} -print-prog-name=collect2`
10569           if test -f "$collect2name" &&
10570            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10571           then
10572           # We have reworked collect2
10573           :
10574           else
10575           # We have old collect2
10576           hardcode_direct=unsupported
10577           # It fails to find uninstalled libraries when the uninstalled
10578           # path is not listed in the libpath.  Setting hardcode_minus_L
10579           # to unsupported forces relinking
10580           hardcode_minus_L=yes
10581           hardcode_libdir_flag_spec='-L$libdir'
10582           hardcode_libdir_separator=
10583           fi
10584           ;;
10585         esac
10586         shared_flag='-shared'
10587         if test "$aix_use_runtimelinking" = yes; then
10588           shared_flag="$shared_flag "'${wl}-G'
10589         fi
10590       else
10591         # not using gcc
10592         if test "$host_cpu" = ia64; then
10593         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10594         # chokes on -Wl,-G. The following line is correct:
10595           shared_flag='-G'
10596         else
10597           if test "$aix_use_runtimelinking" = yes; then
10598             shared_flag='${wl}-G'
10599           else
10600             shared_flag='${wl}-bM:SRE'
10601           fi
10602         fi
10603       fi
10604
10605       export_dynamic_flag_spec='${wl}-bexpall'
10606       # It seems that -bexpall does not export symbols beginning with
10607       # underscore (_), so it is better to generate a list of symbols to export.
10608       always_export_symbols=yes
10609       if test "$aix_use_runtimelinking" = yes; then
10610         # Warning - without using the other runtime loading flags (-brtl),
10611         # -berok will link without error, but may produce a broken library.
10612         allow_undefined_flag='-berok'
10613         # Determine the default libpath from the value encoded in an
10614         # empty executable.
10615         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h.  */
10617
10618 int
10619 main ()
10620 {
10621
10622   ;
10623   return 0;
10624 }
10625 _ACEOF
10626 if ac_fn_c_try_link "$LINENO"; then :
10627
10628 lt_aix_libpath_sed='
10629     /Import File Strings/,/^$/ {
10630         /^0/ {
10631             s/^0  *\(.*\)$/\1/
10632             p
10633         }
10634     }'
10635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10636 # Check for a 64-bit object if we didn't find anything.
10637 if test -z "$aix_libpath"; then
10638   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10639 fi
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext \
10642     conftest$ac_exeext conftest.$ac_ext
10643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10644
10645         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10646         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"
10647       else
10648         if test "$host_cpu" = ia64; then
10649           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10650           allow_undefined_flag="-z nodefs"
10651           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"
10652         else
10653          # Determine the default libpath from the value encoded in an
10654          # empty executable.
10655          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h.  */
10657
10658 int
10659 main ()
10660 {
10661
10662   ;
10663   return 0;
10664 }
10665 _ACEOF
10666 if ac_fn_c_try_link "$LINENO"; then :
10667
10668 lt_aix_libpath_sed='
10669     /Import File Strings/,/^$/ {
10670         /^0/ {
10671             s/^0  *\(.*\)$/\1/
10672             p
10673         }
10674     }'
10675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10676 # Check for a 64-bit object if we didn't find anything.
10677 if test -z "$aix_libpath"; then
10678   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10679 fi
10680 fi
10681 rm -f core conftest.err conftest.$ac_objext \
10682     conftest$ac_exeext conftest.$ac_ext
10683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10684
10685          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10686           # Warning - without using the other run time loading flags,
10687           # -berok will link without error, but may produce a broken library.
10688           no_undefined_flag=' ${wl}-bernotok'
10689           allow_undefined_flag=' ${wl}-berok'
10690           # Exported symbols can be pulled into shared objects from archives
10691           whole_archive_flag_spec='$convenience'
10692           archive_cmds_need_lc=yes
10693           # This is similar to how AIX traditionally builds its shared libraries.
10694           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'
10695         fi
10696       fi
10697       ;;
10698
10699     amigaos*)
10700       case $host_cpu in
10701       powerpc)
10702             # see comment about AmigaOS4 .so support
10703             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704             archive_expsym_cmds=''
10705         ;;
10706       m68k)
10707             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)'
10708             hardcode_libdir_flag_spec='-L$libdir'
10709             hardcode_minus_L=yes
10710         ;;
10711       esac
10712       ;;
10713
10714     bsdi[45]*)
10715       export_dynamic_flag_spec=-rdynamic
10716       ;;
10717
10718     cygwin* | mingw* | pw32* | cegcc*)
10719       # When not using gcc, we currently assume that we are using
10720       # Microsoft Visual C++.
10721       # hardcode_libdir_flag_spec is actually meaningless, as there is
10722       # no search path for DLLs.
10723       hardcode_libdir_flag_spec=' '
10724       allow_undefined_flag=unsupported
10725       # Tell ltmain to make .lib files, not .a files.
10726       libext=lib
10727       # Tell ltmain to make .dll files, not .so files.
10728       shrext_cmds=".dll"
10729       # FIXME: Setting linknames here is a bad hack.
10730       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10731       # The linker will automatically build a .lib file if we build a DLL.
10732       old_archive_from_new_cmds='true'
10733       # FIXME: Should let the user specify the lib program.
10734       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10735       fix_srcfile_path='`cygpath -w "$srcfile"`'
10736       enable_shared_with_static_runtimes=yes
10737       ;;
10738
10739     darwin* | rhapsody*)
10740
10741
10742   archive_cmds_need_lc=no
10743   hardcode_direct=no
10744   hardcode_automatic=yes
10745   hardcode_shlibpath_var=unsupported
10746   whole_archive_flag_spec=''
10747   link_all_deplibs=yes
10748   allow_undefined_flag="$_lt_dar_allow_undefined"
10749   case $cc_basename in
10750      ifort*) _lt_dar_can_shared=yes ;;
10751      *) _lt_dar_can_shared=$GCC ;;
10752   esac
10753   if test "$_lt_dar_can_shared" = "yes"; then
10754     output_verbose_link_cmd=echo
10755     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10756     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10757     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}"
10758     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}"
10759
10760   else
10761   ld_shlibs=no
10762   fi
10763
10764       ;;
10765
10766     dgux*)
10767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768       hardcode_libdir_flag_spec='-L$libdir'
10769       hardcode_shlibpath_var=no
10770       ;;
10771
10772     freebsd1*)
10773       ld_shlibs=no
10774       ;;
10775
10776     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10777     # support.  Future versions do this automatically, but an explicit c++rt0.o
10778     # does not break anything, and helps significantly (at the cost of a little
10779     # extra space).
10780     freebsd2.2*)
10781       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10782       hardcode_libdir_flag_spec='-R$libdir'
10783       hardcode_direct=yes
10784       hardcode_shlibpath_var=no
10785       ;;
10786
10787     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10788     freebsd2*)
10789       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10790       hardcode_direct=yes
10791       hardcode_minus_L=yes
10792       hardcode_shlibpath_var=no
10793       ;;
10794
10795     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10796     freebsd* | dragonfly*)
10797       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10798       hardcode_libdir_flag_spec='-R$libdir'
10799       hardcode_direct=yes
10800       hardcode_shlibpath_var=no
10801       ;;
10802
10803     hpux9*)
10804       if test "$GCC" = yes; then
10805         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'
10806       else
10807         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'
10808       fi
10809       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10810       hardcode_libdir_separator=:
10811       hardcode_direct=yes
10812
10813       # hardcode_minus_L: Not really in the search PATH,
10814       # but as the default location of the library.
10815       hardcode_minus_L=yes
10816       export_dynamic_flag_spec='${wl}-E'
10817       ;;
10818
10819     hpux10*)
10820       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10821         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10822       else
10823         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10824       fi
10825       if test "$with_gnu_ld" = no; then
10826         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10827         hardcode_libdir_flag_spec_ld='+b $libdir'
10828         hardcode_libdir_separator=:
10829         hardcode_direct=yes
10830         hardcode_direct_absolute=yes
10831         export_dynamic_flag_spec='${wl}-E'
10832         # hardcode_minus_L: Not really in the search PATH,
10833         # but as the default location of the library.
10834         hardcode_minus_L=yes
10835       fi
10836       ;;
10837
10838     hpux11*)
10839       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10840         case $host_cpu in
10841         hppa*64*)
10842           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10843           ;;
10844         ia64*)
10845           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10846           ;;
10847         *)
10848           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10849           ;;
10850         esac
10851       else
10852         case $host_cpu in
10853         hppa*64*)
10854           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10855           ;;
10856         ia64*)
10857           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10858           ;;
10859         *)
10860           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10861           ;;
10862         esac
10863       fi
10864       if test "$with_gnu_ld" = no; then
10865         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10866         hardcode_libdir_separator=:
10867
10868         case $host_cpu in
10869         hppa*64*|ia64*)
10870           hardcode_direct=no
10871           hardcode_shlibpath_var=no
10872           ;;
10873         *)
10874           hardcode_direct=yes
10875           hardcode_direct_absolute=yes
10876           export_dynamic_flag_spec='${wl}-E'
10877
10878           # hardcode_minus_L: Not really in the search PATH,
10879           # but as the default location of the library.
10880           hardcode_minus_L=yes
10881           ;;
10882         esac
10883       fi
10884       ;;
10885
10886     irix5* | irix6* | nonstopux*)
10887       if test "$GCC" = yes; then
10888         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'
10889         # Try to use the -exported_symbol ld option, if it does not
10890         # work, assume that -exports_file does not work either and
10891         # implicitly export all symbols.
10892         save_LDFLAGS="$LDFLAGS"
10893         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10894         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h.  */
10896 int foo(void) {}
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899   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'
10900
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903     conftest$ac_exeext conftest.$ac_ext
10904         LDFLAGS="$save_LDFLAGS"
10905       else
10906         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'
10907         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'
10908       fi
10909       archive_cmds_need_lc='no'
10910       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10911       hardcode_libdir_separator=:
10912       inherit_rpath=yes
10913       link_all_deplibs=yes
10914       ;;
10915
10916     netbsd*)
10917       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10919       else
10920         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10921       fi
10922       hardcode_libdir_flag_spec='-R$libdir'
10923       hardcode_direct=yes
10924       hardcode_shlibpath_var=no
10925       ;;
10926
10927     newsos6)
10928       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929       hardcode_direct=yes
10930       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10931       hardcode_libdir_separator=:
10932       hardcode_shlibpath_var=no
10933       ;;
10934
10935     *nto* | *qnx*)
10936       ;;
10937
10938     openbsd*)
10939       if test -f /usr/libexec/ld.so; then
10940         hardcode_direct=yes
10941         hardcode_shlibpath_var=no
10942         hardcode_direct_absolute=yes
10943         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10944           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10945           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10946           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10947           export_dynamic_flag_spec='${wl}-E'
10948         else
10949           case $host_os in
10950            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10951              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10952              hardcode_libdir_flag_spec='-R$libdir'
10953              ;;
10954            *)
10955              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10956              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10957              ;;
10958           esac
10959         fi
10960       else
10961         ld_shlibs=no
10962       fi
10963       ;;
10964
10965     os2*)
10966       hardcode_libdir_flag_spec='-L$libdir'
10967       hardcode_minus_L=yes
10968       allow_undefined_flag=unsupported
10969       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'
10970       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10971       ;;
10972
10973     osf3*)
10974       if test "$GCC" = yes; then
10975         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10976         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'
10977       else
10978         allow_undefined_flag=' -expect_unresolved \*'
10979         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'
10980       fi
10981       archive_cmds_need_lc='no'
10982       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10983       hardcode_libdir_separator=:
10984       ;;
10985
10986     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10987       if test "$GCC" = yes; then
10988         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10989         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'
10990         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10991       else
10992         allow_undefined_flag=' -expect_unresolved \*'
10993         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'
10994         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~
10995         $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'
10996
10997         # Both c and cxx compiler support -rpath directly
10998         hardcode_libdir_flag_spec='-rpath $libdir'
10999       fi
11000       archive_cmds_need_lc='no'
11001       hardcode_libdir_separator=:
11002       ;;
11003
11004     solaris*)
11005       no_undefined_flag=' -z defs'
11006       if test "$GCC" = yes; then
11007         wlarc='${wl}'
11008         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11010           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11011       else
11012         case `$CC -V 2>&1` in
11013         *"Compilers 5.0"*)
11014           wlarc=''
11015           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11017           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11018           ;;
11019         *)
11020           wlarc='${wl}'
11021           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11022           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11023           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11024           ;;
11025         esac
11026       fi
11027       hardcode_libdir_flag_spec='-R$libdir'
11028       hardcode_shlibpath_var=no
11029       case $host_os in
11030       solaris2.[0-5] | solaris2.[0-5].*) ;;
11031       *)
11032         # The compiler driver will combine and reorder linker options,
11033         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11034         # but is careful enough not to reorder.
11035         # Supported since Solaris 2.6 (maybe 2.5.1?)
11036         if test "$GCC" = yes; then
11037           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11038         else
11039           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11040         fi
11041         ;;
11042       esac
11043       link_all_deplibs=yes
11044       ;;
11045
11046     sunos4*)
11047       if test "x$host_vendor" = xsequent; then
11048         # Use $CC to link under sequent, because it throws in some extra .o
11049         # files that make .init and .fini sections work.
11050         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11051       else
11052         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11053       fi
11054       hardcode_libdir_flag_spec='-L$libdir'
11055       hardcode_direct=yes
11056       hardcode_minus_L=yes
11057       hardcode_shlibpath_var=no
11058       ;;
11059
11060     sysv4)
11061       case $host_vendor in
11062         sni)
11063           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064           hardcode_direct=yes # is this really true???
11065         ;;
11066         siemens)
11067           ## LD is ld it makes a PLAMLIB
11068           ## CC just makes a GrossModule.
11069           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11070           reload_cmds='$CC -r -o $output$reload_objs'
11071           hardcode_direct=no
11072         ;;
11073         motorola)
11074           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11075           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11076         ;;
11077       esac
11078       runpath_var='LD_RUN_PATH'
11079       hardcode_shlibpath_var=no
11080       ;;
11081
11082     sysv4.3*)
11083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084       hardcode_shlibpath_var=no
11085       export_dynamic_flag_spec='-Bexport'
11086       ;;
11087
11088     sysv4*MP*)
11089       if test -d /usr/nec; then
11090         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091         hardcode_shlibpath_var=no
11092         runpath_var=LD_RUN_PATH
11093         hardcode_runpath_var=yes
11094         ld_shlibs=yes
11095       fi
11096       ;;
11097
11098     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11099       no_undefined_flag='${wl}-z,text'
11100       archive_cmds_need_lc=no
11101       hardcode_shlibpath_var=no
11102       runpath_var='LD_RUN_PATH'
11103
11104       if test "$GCC" = yes; then
11105         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11106         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11107       else
11108         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11109         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110       fi
11111       ;;
11112
11113     sysv5* | sco3.2v5* | sco5v6*)
11114       # Note: We can NOT use -z defs as we might desire, because we do not
11115       # link with -lc, and that would cause any symbols used from libc to
11116       # always be unresolved, which means just about no library would
11117       # ever link correctly.  If we're not using GNU ld we use -z text
11118       # though, which does catch some bad symbols but isn't as heavy-handed
11119       # as -z defs.
11120       no_undefined_flag='${wl}-z,text'
11121       allow_undefined_flag='${wl}-z,nodefs'
11122       archive_cmds_need_lc=no
11123       hardcode_shlibpath_var=no
11124       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11125       hardcode_libdir_separator=':'
11126       link_all_deplibs=yes
11127       export_dynamic_flag_spec='${wl}-Bexport'
11128       runpath_var='LD_RUN_PATH'
11129
11130       if test "$GCC" = yes; then
11131         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133       else
11134         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136       fi
11137       ;;
11138
11139     uts4*)
11140       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141       hardcode_libdir_flag_spec='-L$libdir'
11142       hardcode_shlibpath_var=no
11143       ;;
11144
11145     *)
11146       ld_shlibs=no
11147       ;;
11148     esac
11149
11150     if test x$host_vendor = xsni; then
11151       case $host in
11152       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11153         export_dynamic_flag_spec='${wl}-Blargedynsym'
11154         ;;
11155       esac
11156     fi
11157   fi
11158
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11160 $as_echo "$ld_shlibs" >&6; }
11161 test "$ld_shlibs" = no && can_build_shared=no
11162
11163 with_gnu_ld=$with_gnu_ld
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179 #
11180 # Do we need to explicitly link libc?
11181 #
11182 case "x$archive_cmds_need_lc" in
11183 x|xyes)
11184   # Assume -lc should be added
11185   archive_cmds_need_lc=yes
11186
11187   if test "$enable_shared" = yes && test "$GCC" = yes; then
11188     case $archive_cmds in
11189     *'~'*)
11190       # FIXME: we may have to deal with multi-command sequences.
11191       ;;
11192     '$CC '*)
11193       # Test whether the compiler implicitly links with -lc since on some
11194       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11195       # to ld, don't add -lc before -lgcc.
11196       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11197 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11198       $RM conftest*
11199       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11200
11201       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11202   (eval $ac_compile) 2>&5
11203   ac_status=$?
11204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11205   test $ac_status = 0; } 2>conftest.err; then
11206         soname=conftest
11207         lib=conftest
11208         libobjs=conftest.$ac_objext
11209         deplibs=
11210         wl=$lt_prog_compiler_wl
11211         pic_flag=$lt_prog_compiler_pic
11212         compiler_flags=-v
11213         linker_flags=-v
11214         verstring=
11215         output_objdir=.
11216         libname=conftest
11217         lt_save_allow_undefined_flag=$allow_undefined_flag
11218         allow_undefined_flag=
11219         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11220   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11221   ac_status=$?
11222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11223   test $ac_status = 0; }
11224         then
11225           archive_cmds_need_lc=no
11226         else
11227           archive_cmds_need_lc=yes
11228         fi
11229         allow_undefined_flag=$lt_save_allow_undefined_flag
11230       else
11231         cat conftest.err 1>&5
11232       fi
11233       $RM conftest*
11234       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11235 $as_echo "$archive_cmds_need_lc" >&6; }
11236       ;;
11237     esac
11238   fi
11239   ;;
11240 esac
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11400
11401 if test "$GCC" = yes; then
11402   case $host_os in
11403     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11404     *) lt_awk_arg="/^libraries:/" ;;
11405   esac
11406   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11407   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11408     # if the path contains ";" then we assume it to be the separator
11409     # otherwise default to the standard path separator (i.e. ":") - it is
11410     # assumed that no part of a normal pathname contains ";" but that should
11411     # okay in the real world where ";" in dirpaths is itself problematic.
11412     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11413   else
11414     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11415   fi
11416   # Ok, now we have the path, separated by spaces, we can step through it
11417   # and add multilib dir if necessary.
11418   lt_tmp_lt_search_path_spec=
11419   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11420   for lt_sys_path in $lt_search_path_spec; do
11421     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11422       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11423     else
11424       test -d "$lt_sys_path" && \
11425         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11426     fi
11427   done
11428   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11429 BEGIN {RS=" "; FS="/|\n";} {
11430   lt_foo="";
11431   lt_count=0;
11432   for (lt_i = NF; lt_i > 0; lt_i--) {
11433     if ($lt_i != "" && $lt_i != ".") {
11434       if ($lt_i == "..") {
11435         lt_count++;
11436       } else {
11437         if (lt_count == 0) {
11438           lt_foo="/" $lt_i lt_foo;
11439         } else {
11440           lt_count--;
11441         }
11442       }
11443     }
11444   }
11445   if (lt_foo != "") { lt_freq[lt_foo]++; }
11446   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11447 }'`
11448   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11449 else
11450   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11451 fi
11452 library_names_spec=
11453 libname_spec='lib$name'
11454 soname_spec=
11455 shrext_cmds=".so"
11456 postinstall_cmds=
11457 postuninstall_cmds=
11458 finish_cmds=
11459 finish_eval=
11460 shlibpath_var=
11461 shlibpath_overrides_runpath=unknown
11462 version_type=none
11463 dynamic_linker="$host_os ld.so"
11464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11465 need_lib_prefix=unknown
11466 hardcode_into_libs=no
11467
11468 # when you set need_version to no, make sure it does not cause -set_version
11469 # flags to be left without arguments
11470 need_version=unknown
11471
11472 case $host_os in
11473 aix3*)
11474   version_type=linux
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11476   shlibpath_var=LIBPATH
11477
11478   # AIX 3 has no versioning support, so we append a major version to the name.
11479   soname_spec='${libname}${release}${shared_ext}$major'
11480   ;;
11481
11482 aix[4-9]*)
11483   version_type=linux
11484   need_lib_prefix=no
11485   need_version=no
11486   hardcode_into_libs=yes
11487   if test "$host_cpu" = ia64; then
11488     # AIX 5 supports IA64
11489     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11490     shlibpath_var=LD_LIBRARY_PATH
11491   else
11492     # With GCC up to 2.95.x, collect2 would create an import file
11493     # for dependence libraries.  The import file would start with
11494     # the line `#! .'.  This would cause the generated library to
11495     # depend on `.', always an invalid library.  This was fixed in
11496     # development snapshots of GCC prior to 3.0.
11497     case $host_os in
11498       aix4 | aix4.[01] | aix4.[01].*)
11499       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11500            echo ' yes '
11501            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11502         :
11503       else
11504         can_build_shared=no
11505       fi
11506       ;;
11507     esac
11508     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11509     # soname into executable. Probably we can add versioning support to
11510     # collect2, so additional links can be useful in future.
11511     if test "$aix_use_runtimelinking" = yes; then
11512       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11513       # instead of lib<name>.a to let people know that these are not
11514       # typical AIX shared libraries.
11515       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516     else
11517       # We preserve .a as extension for shared libraries through AIX4.2
11518       # and later when we are not doing run time linking.
11519       library_names_spec='${libname}${release}.a $libname.a'
11520       soname_spec='${libname}${release}${shared_ext}$major'
11521     fi
11522     shlibpath_var=LIBPATH
11523   fi
11524   ;;
11525
11526 amigaos*)
11527   case $host_cpu in
11528   powerpc)
11529     # Since July 2007 AmigaOS4 officially supports .so libraries.
11530     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532     ;;
11533   m68k)
11534     library_names_spec='$libname.ixlibrary $libname.a'
11535     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11536     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'
11537     ;;
11538   esac
11539   ;;
11540
11541 beos*)
11542   library_names_spec='${libname}${shared_ext}'
11543   dynamic_linker="$host_os ld.so"
11544   shlibpath_var=LIBRARY_PATH
11545   ;;
11546
11547 bsdi[45]*)
11548   version_type=linux
11549   need_version=no
11550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551   soname_spec='${libname}${release}${shared_ext}$major'
11552   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11555   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11556   # the default ld.so.conf also contains /usr/contrib/lib and
11557   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11558   # libtool to hard-code these into programs
11559   ;;
11560
11561 cygwin* | mingw* | pw32* | cegcc*)
11562   version_type=windows
11563   shrext_cmds=".dll"
11564   need_version=no
11565   need_lib_prefix=no
11566
11567   case $GCC,$host_os in
11568   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11569     library_names_spec='$libname.dll.a'
11570     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11571     postinstall_cmds='base_file=`basename \${file}`~
11572       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11573       dldir=$destdir/`dirname \$dlpath`~
11574       test -d \$dldir || mkdir -p \$dldir~
11575       $install_prog $dir/$dlname \$dldir/$dlname~
11576       chmod a+x \$dldir/$dlname~
11577       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11578         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11579       fi'
11580     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11581       dlpath=$dir/\$dldll~
11582        $RM \$dlpath'
11583     shlibpath_overrides_runpath=yes
11584
11585     case $host_os in
11586     cygwin*)
11587       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11588       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11589       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11590       ;;
11591     mingw* | cegcc*)
11592       # MinGW DLLs use traditional 'lib' prefix
11593       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11594       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11595       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11596         # It is most probably a Windows format PATH printed by
11597         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11598         # path with ; separators, and with drive letters. We can handle the
11599         # drive letters (cygwin fileutils understands them), so leave them,
11600         # especially as we might pass files found there to a mingw objdump,
11601         # which wouldn't understand a cygwinified path. Ahh.
11602         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11603       else
11604         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11605       fi
11606       ;;
11607     pw32*)
11608       # pw32 DLLs use 'pw' prefix rather than 'lib'
11609       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11610       ;;
11611     esac
11612     ;;
11613
11614   *)
11615     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11616     ;;
11617   esac
11618   dynamic_linker='Win32 ld.exe'
11619   # FIXME: first we should search . and the directory the executable is in
11620   shlibpath_var=PATH
11621   ;;
11622
11623 darwin* | rhapsody*)
11624   dynamic_linker="$host_os dyld"
11625   version_type=darwin
11626   need_lib_prefix=no
11627   need_version=no
11628   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11629   soname_spec='${libname}${release}${major}$shared_ext'
11630   shlibpath_overrides_runpath=yes
11631   shlibpath_var=DYLD_LIBRARY_PATH
11632   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11633
11634   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11635   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11636   ;;
11637
11638 dgux*)
11639   version_type=linux
11640   need_lib_prefix=no
11641   need_version=no
11642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11643   soname_spec='${libname}${release}${shared_ext}$major'
11644   shlibpath_var=LD_LIBRARY_PATH
11645   ;;
11646
11647 freebsd1*)
11648   dynamic_linker=no
11649   ;;
11650
11651 freebsd* | dragonfly*)
11652   # DragonFly does not have aout.  When/if they implement a new
11653   # versioning mechanism, adjust this.
11654   if test -x /usr/bin/objformat; then
11655     objformat=`/usr/bin/objformat`
11656   else
11657     case $host_os in
11658     freebsd[123]*) objformat=aout ;;
11659     *) objformat=elf ;;
11660     esac
11661   fi
11662   version_type=freebsd-$objformat
11663   case $version_type in
11664     freebsd-elf*)
11665       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11666       need_version=no
11667       need_lib_prefix=no
11668       ;;
11669     freebsd-*)
11670       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11671       need_version=yes
11672       ;;
11673   esac
11674   shlibpath_var=LD_LIBRARY_PATH
11675   case $host_os in
11676   freebsd2*)
11677     shlibpath_overrides_runpath=yes
11678     ;;
11679   freebsd3.[01]* | freebsdelf3.[01]*)
11680     shlibpath_overrides_runpath=yes
11681     hardcode_into_libs=yes
11682     ;;
11683   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11684   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11685     shlibpath_overrides_runpath=no
11686     hardcode_into_libs=yes
11687     ;;
11688   *) # from 4.6 on, and DragonFly
11689     shlibpath_overrides_runpath=yes
11690     hardcode_into_libs=yes
11691     ;;
11692   esac
11693   ;;
11694
11695 gnu*)
11696   version_type=linux
11697   need_lib_prefix=no
11698   need_version=no
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11700   soname_spec='${libname}${release}${shared_ext}$major'
11701   shlibpath_var=LD_LIBRARY_PATH
11702   hardcode_into_libs=yes
11703   ;;
11704
11705 hpux9* | hpux10* | hpux11*)
11706   # Give a soname corresponding to the major version so that dld.sl refuses to
11707   # link against other versions.
11708   version_type=sunos
11709   need_lib_prefix=no
11710   need_version=no
11711   case $host_cpu in
11712   ia64*)
11713     shrext_cmds='.so'
11714     hardcode_into_libs=yes
11715     dynamic_linker="$host_os dld.so"
11716     shlibpath_var=LD_LIBRARY_PATH
11717     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719     soname_spec='${libname}${release}${shared_ext}$major'
11720     if test "X$HPUX_IA64_MODE" = X32; then
11721       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11722     else
11723       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11724     fi
11725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11726     ;;
11727   hppa*64*)
11728     shrext_cmds='.sl'
11729     hardcode_into_libs=yes
11730     dynamic_linker="$host_os dld.sl"
11731     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11732     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11734     soname_spec='${libname}${release}${shared_ext}$major'
11735     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11737     ;;
11738   *)
11739     shrext_cmds='.sl'
11740     dynamic_linker="$host_os dld.sl"
11741     shlibpath_var=SHLIB_PATH
11742     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744     soname_spec='${libname}${release}${shared_ext}$major'
11745     ;;
11746   esac
11747   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11748   postinstall_cmds='chmod 555 $lib'
11749   ;;
11750
11751 interix[3-9]*)
11752   version_type=linux
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11758   shlibpath_var=LD_LIBRARY_PATH
11759   shlibpath_overrides_runpath=no
11760   hardcode_into_libs=yes
11761   ;;
11762
11763 irix5* | irix6* | nonstopux*)
11764   case $host_os in
11765     nonstopux*) version_type=nonstopux ;;
11766     *)
11767         if test "$lt_cv_prog_gnu_ld" = yes; then
11768                 version_type=linux
11769         else
11770                 version_type=irix
11771         fi ;;
11772   esac
11773   need_lib_prefix=no
11774   need_version=no
11775   soname_spec='${libname}${release}${shared_ext}$major'
11776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11777   case $host_os in
11778   irix5* | nonstopux*)
11779     libsuff= shlibsuff=
11780     ;;
11781   *)
11782     case $LD in # libtool.m4 will add one of these switches to LD
11783     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11784       libsuff= shlibsuff= libmagic=32-bit;;
11785     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11786       libsuff=32 shlibsuff=N32 libmagic=N32;;
11787     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11788       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11789     *) libsuff= shlibsuff= libmagic=never-match;;
11790     esac
11791     ;;
11792   esac
11793   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11794   shlibpath_overrides_runpath=no
11795   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11796   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11797   hardcode_into_libs=yes
11798   ;;
11799
11800 # No shared lib support for Linux oldld, aout, or coff.
11801 linux*oldld* | linux*aout* | linux*coff*)
11802   dynamic_linker=no
11803   ;;
11804
11805 # This must be Linux ELF.
11806 linux* | k*bsd*-gnu)
11807   version_type=linux
11808   need_lib_prefix=no
11809   need_version=no
11810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811   soname_spec='${libname}${release}${shared_ext}$major'
11812   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11813   shlibpath_var=LD_LIBRARY_PATH
11814   shlibpath_overrides_runpath=no
11815   # Some binutils ld are patched to set DT_RUNPATH
11816   save_LDFLAGS=$LDFLAGS
11817   save_libdir=$libdir
11818   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11819        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h.  */
11822
11823 int
11824 main ()
11825 {
11826
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"; then :
11832   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11833   shlibpath_overrides_runpath=yes
11834 fi
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext \
11837     conftest$ac_exeext conftest.$ac_ext
11838   LDFLAGS=$save_LDFLAGS
11839   libdir=$save_libdir
11840
11841   # This implies no fast_install, which is unacceptable.
11842   # Some rework will be needed to allow for fast_install
11843   # before this can be enabled.
11844   hardcode_into_libs=yes
11845
11846   # Append ld.so.conf contents to the search path
11847   if test -f /etc/ld.so.conf; then
11848     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' ' '`
11849     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11850   fi
11851
11852   # We used to test for /lib/ld.so.1 and disable shared libraries on
11853   # powerpc, because MkLinux only supported shared libraries with the
11854   # GNU dynamic linker.  Since this was broken with cross compilers,
11855   # most powerpc-linux boxes support dynamic linking these days and
11856   # people can always --disable-shared, the test was removed, and we
11857   # assume the GNU/Linux dynamic linker is in use.
11858   dynamic_linker='GNU/Linux ld.so'
11859   ;;
11860
11861 netbsd*)
11862   version_type=sunos
11863   need_lib_prefix=no
11864   need_version=no
11865   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11867     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11868     dynamic_linker='NetBSD (a.out) ld.so'
11869   else
11870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11871     soname_spec='${libname}${release}${shared_ext}$major'
11872     dynamic_linker='NetBSD ld.elf_so'
11873   fi
11874   shlibpath_var=LD_LIBRARY_PATH
11875   shlibpath_overrides_runpath=yes
11876   hardcode_into_libs=yes
11877   ;;
11878
11879 newsos6)
11880   version_type=linux
11881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882   shlibpath_var=LD_LIBRARY_PATH
11883   shlibpath_overrides_runpath=yes
11884   ;;
11885
11886 *nto* | *qnx*)
11887   version_type=qnx
11888   need_lib_prefix=no
11889   need_version=no
11890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891   soname_spec='${libname}${release}${shared_ext}$major'
11892   shlibpath_var=LD_LIBRARY_PATH
11893   shlibpath_overrides_runpath=no
11894   hardcode_into_libs=yes
11895   dynamic_linker='ldqnx.so'
11896   ;;
11897
11898 openbsd*)
11899   version_type=sunos
11900   sys_lib_dlsearch_path_spec="/usr/lib"
11901   need_lib_prefix=no
11902   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11903   case $host_os in
11904     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11905     *)                          need_version=no  ;;
11906   esac
11907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11908   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11909   shlibpath_var=LD_LIBRARY_PATH
11910   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11911     case $host_os in
11912       openbsd2.[89] | openbsd2.[89].*)
11913         shlibpath_overrides_runpath=no
11914         ;;
11915       *)
11916         shlibpath_overrides_runpath=yes
11917         ;;
11918       esac
11919   else
11920     shlibpath_overrides_runpath=yes
11921   fi
11922   ;;
11923
11924 os2*)
11925   libname_spec='$name'
11926   shrext_cmds=".dll"
11927   need_lib_prefix=no
11928   library_names_spec='$libname${shared_ext} $libname.a'
11929   dynamic_linker='OS/2 ld.exe'
11930   shlibpath_var=LIBPATH
11931   ;;
11932
11933 osf3* | osf4* | osf5*)
11934   version_type=osf
11935   need_lib_prefix=no
11936   need_version=no
11937   soname_spec='${libname}${release}${shared_ext}$major'
11938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11941   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11942   ;;
11943
11944 rdos*)
11945   dynamic_linker=no
11946   ;;
11947
11948 solaris*)
11949   version_type=linux
11950   need_lib_prefix=no
11951   need_version=no
11952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953   soname_spec='${libname}${release}${shared_ext}$major'
11954   shlibpath_var=LD_LIBRARY_PATH
11955   shlibpath_overrides_runpath=yes
11956   hardcode_into_libs=yes
11957   # ldd complains unless libraries are executable
11958   postinstall_cmds='chmod +x $lib'
11959   ;;
11960
11961 sunos4*)
11962   version_type=sunos
11963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11964   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11965   shlibpath_var=LD_LIBRARY_PATH
11966   shlibpath_overrides_runpath=yes
11967   if test "$with_gnu_ld" = yes; then
11968     need_lib_prefix=no
11969   fi
11970   need_version=yes
11971   ;;
11972
11973 sysv4 | sysv4.3*)
11974   version_type=linux
11975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976   soname_spec='${libname}${release}${shared_ext}$major'
11977   shlibpath_var=LD_LIBRARY_PATH
11978   case $host_vendor in
11979     sni)
11980       shlibpath_overrides_runpath=no
11981       need_lib_prefix=no
11982       runpath_var=LD_RUN_PATH
11983       ;;
11984     siemens)
11985       need_lib_prefix=no
11986       ;;
11987     motorola)
11988       need_lib_prefix=no
11989       need_version=no
11990       shlibpath_overrides_runpath=no
11991       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11992       ;;
11993   esac
11994   ;;
11995
11996 sysv4*MP*)
11997   if test -d /usr/nec ;then
11998     version_type=linux
11999     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12000     soname_spec='$libname${shared_ext}.$major'
12001     shlibpath_var=LD_LIBRARY_PATH
12002   fi
12003   ;;
12004
12005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12006   version_type=freebsd-elf
12007   need_lib_prefix=no
12008   need_version=no
12009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12010   soname_spec='${libname}${release}${shared_ext}$major'
12011   shlibpath_var=LD_LIBRARY_PATH
12012   shlibpath_overrides_runpath=yes
12013   hardcode_into_libs=yes
12014   if test "$with_gnu_ld" = yes; then
12015     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12016   else
12017     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12018     case $host_os in
12019       sco3.2v5*)
12020         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12021         ;;
12022     esac
12023   fi
12024   sys_lib_dlsearch_path_spec='/usr/lib'
12025   ;;
12026
12027 tpf*)
12028   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12029   version_type=linux
12030   need_lib_prefix=no
12031   need_version=no
12032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033   shlibpath_var=LD_LIBRARY_PATH
12034   shlibpath_overrides_runpath=no
12035   hardcode_into_libs=yes
12036   ;;
12037
12038 uts4*)
12039   version_type=linux
12040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041   soname_spec='${libname}${release}${shared_ext}$major'
12042   shlibpath_var=LD_LIBRARY_PATH
12043   ;;
12044
12045 *)
12046   dynamic_linker=no
12047   ;;
12048 esac
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12050 $as_echo "$dynamic_linker" >&6; }
12051 test "$dynamic_linker" = no && can_build_shared=no
12052
12053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12054 if test "$GCC" = yes; then
12055   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12056 fi
12057
12058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12059   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12060 fi
12061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12062   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12063 fi
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12153 hardcode_action=
12154 if test -n "$hardcode_libdir_flag_spec" ||
12155    test -n "$runpath_var" ||
12156    test "X$hardcode_automatic" = "Xyes" ; then
12157
12158   # We can hardcode non-existent directories.
12159   if test "$hardcode_direct" != no &&
12160      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12161      # have to relink, otherwise we might link with an installed library
12162      # when we should be linking with a yet-to-be-installed one
12163      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12164      test "$hardcode_minus_L" != no; then
12165     # Linking always hardcodes the temporary library directory.
12166     hardcode_action=relink
12167   else
12168     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12169     hardcode_action=immediate
12170   fi
12171 else
12172   # We cannot hardcode anything, or else we can only hardcode existing
12173   # directories.
12174   hardcode_action=unsupported
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12177 $as_echo "$hardcode_action" >&6; }
12178
12179 if test "$hardcode_action" = relink ||
12180    test "$inherit_rpath" = yes; then
12181   # Fast installation is not supported
12182   enable_fast_install=no
12183 elif test "$shlibpath_overrides_runpath" = yes ||
12184      test "$enable_shared" = no; then
12185   # Fast installation is not necessary
12186   enable_fast_install=needless
12187 fi
12188
12189
12190
12191
12192
12193
12194   if test "x$enable_dlopen" != xyes; then
12195   enable_dlopen=unknown
12196   enable_dlopen_self=unknown
12197   enable_dlopen_self_static=unknown
12198 else
12199   lt_cv_dlopen=no
12200   lt_cv_dlopen_libs=
12201
12202   case $host_os in
12203   beos*)
12204     lt_cv_dlopen="load_add_on"
12205     lt_cv_dlopen_libs=
12206     lt_cv_dlopen_self=yes
12207     ;;
12208
12209   mingw* | pw32* | cegcc*)
12210     lt_cv_dlopen="LoadLibrary"
12211     lt_cv_dlopen_libs=
12212     ;;
12213
12214   cygwin*)
12215     lt_cv_dlopen="dlopen"
12216     lt_cv_dlopen_libs=
12217     ;;
12218
12219   darwin*)
12220   # if libdl is installed we need to link against it
12221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12222 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12223 if ${ac_cv_lib_dl_dlopen+:} false; then :
12224   $as_echo_n "(cached) " >&6
12225 else
12226   ac_check_lib_save_LIBS=$LIBS
12227 LIBS="-ldl  $LIBS"
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h.  */
12230
12231 /* Override any GCC internal prototype to avoid an error.
12232    Use char because int might match the return type of a GCC
12233    builtin and then its argument prototype would still apply.  */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 char dlopen ();
12238 int
12239 main ()
12240 {
12241 return dlopen ();
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 if ac_fn_c_try_link "$LINENO"; then :
12247   ac_cv_lib_dl_dlopen=yes
12248 else
12249   ac_cv_lib_dl_dlopen=no
12250 fi
12251 rm -f core conftest.err conftest.$ac_objext \
12252     conftest$ac_exeext conftest.$ac_ext
12253 LIBS=$ac_check_lib_save_LIBS
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12256 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12257 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12258   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12259 else
12260
12261     lt_cv_dlopen="dyld"
12262     lt_cv_dlopen_libs=
12263     lt_cv_dlopen_self=yes
12264
12265 fi
12266
12267     ;;
12268
12269   *)
12270     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12271 if test "x$ac_cv_func_shl_load" = xyes; then :
12272   lt_cv_dlopen="shl_load"
12273 else
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12275 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12276 if ${ac_cv_lib_dld_shl_load+:} false; then :
12277   $as_echo_n "(cached) " >&6
12278 else
12279   ac_check_lib_save_LIBS=$LIBS
12280 LIBS="-ldld  $LIBS"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283
12284 /* Override any GCC internal prototype to avoid an error.
12285    Use char because int might match the return type of a GCC
12286    builtin and then its argument prototype would still apply.  */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char shl_load ();
12291 int
12292 main ()
12293 {
12294 return shl_load ();
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300   ac_cv_lib_dld_shl_load=yes
12301 else
12302   ac_cv_lib_dld_shl_load=no
12303 fi
12304 rm -f core conftest.err conftest.$ac_objext \
12305     conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12309 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12310 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12311   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12312 else
12313   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12314 if test "x$ac_cv_func_dlopen" = xyes; then :
12315   lt_cv_dlopen="dlopen"
12316 else
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12318 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12319 if ${ac_cv_lib_dl_dlopen+:} false; then :
12320   $as_echo_n "(cached) " >&6
12321 else
12322   ac_check_lib_save_LIBS=$LIBS
12323 LIBS="-ldl  $LIBS"
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h.  */
12326
12327 /* Override any GCC internal prototype to avoid an error.
12328    Use char because int might match the return type of a GCC
12329    builtin and then its argument prototype would still apply.  */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char dlopen ();
12334 int
12335 main ()
12336 {
12337 return dlopen ();
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"; then :
12343   ac_cv_lib_dl_dlopen=yes
12344 else
12345   ac_cv_lib_dl_dlopen=no
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext \
12348     conftest$ac_exeext conftest.$ac_ext
12349 LIBS=$ac_check_lib_save_LIBS
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12352 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12353 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12354   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12355 else
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12357 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12358 if ${ac_cv_lib_svld_dlopen+:} false; then :
12359   $as_echo_n "(cached) " >&6
12360 else
12361   ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lsvld  $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h.  */
12365
12366 /* Override any GCC internal prototype to avoid an error.
12367    Use char because int might match the return type of a GCC
12368    builtin and then its argument prototype would still apply.  */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char dlopen ();
12373 int
12374 main ()
12375 {
12376 return dlopen ();
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382   ac_cv_lib_svld_dlopen=yes
12383 else
12384   ac_cv_lib_svld_dlopen=no
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext \
12387     conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12391 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12392 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12393   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12394 else
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12396 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12397 if ${ac_cv_lib_dld_dld_link+:} false; then :
12398   $as_echo_n "(cached) " >&6
12399 else
12400   ac_check_lib_save_LIBS=$LIBS
12401 LIBS="-ldld  $LIBS"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h.  */
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406    Use char because int might match the return type of a GCC
12407    builtin and then its argument prototype would still apply.  */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char dld_link ();
12412 int
12413 main ()
12414 {
12415 return dld_link ();
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421   ac_cv_lib_dld_dld_link=yes
12422 else
12423   ac_cv_lib_dld_dld_link=no
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext \
12426     conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12428 fi
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12430 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12431 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12432   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12433 fi
12434
12435
12436 fi
12437
12438
12439 fi
12440
12441
12442 fi
12443
12444
12445 fi
12446
12447
12448 fi
12449
12450     ;;
12451   esac
12452
12453   if test "x$lt_cv_dlopen" != xno; then
12454     enable_dlopen=yes
12455   else
12456     enable_dlopen=no
12457   fi
12458
12459   case $lt_cv_dlopen in
12460   dlopen)
12461     save_CPPFLAGS="$CPPFLAGS"
12462     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12463
12464     save_LDFLAGS="$LDFLAGS"
12465     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12466
12467     save_LIBS="$LIBS"
12468     LIBS="$lt_cv_dlopen_libs $LIBS"
12469
12470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12471 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12472 if ${lt_cv_dlopen_self+:} false; then :
12473   $as_echo_n "(cached) " >&6
12474 else
12475           if test "$cross_compiling" = yes; then :
12476   lt_cv_dlopen_self=cross
12477 else
12478   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12479   lt_status=$lt_dlunknown
12480   cat > conftest.$ac_ext <<_LT_EOF
12481 #line 12481 "configure"
12482 #include "confdefs.h"
12483
12484 #if HAVE_DLFCN_H
12485 #include <dlfcn.h>
12486 #endif
12487
12488 #include <stdio.h>
12489
12490 #ifdef RTLD_GLOBAL
12491 #  define LT_DLGLOBAL           RTLD_GLOBAL
12492 #else
12493 #  ifdef DL_GLOBAL
12494 #    define LT_DLGLOBAL         DL_GLOBAL
12495 #  else
12496 #    define LT_DLGLOBAL         0
12497 #  endif
12498 #endif
12499
12500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12501    find out it does not work in some platform. */
12502 #ifndef LT_DLLAZY_OR_NOW
12503 #  ifdef RTLD_LAZY
12504 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12505 #  else
12506 #    ifdef DL_LAZY
12507 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12508 #    else
12509 #      ifdef RTLD_NOW
12510 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12511 #      else
12512 #        ifdef DL_NOW
12513 #          define LT_DLLAZY_OR_NOW      DL_NOW
12514 #        else
12515 #          define LT_DLLAZY_OR_NOW      0
12516 #        endif
12517 #      endif
12518 #    endif
12519 #  endif
12520 #endif
12521
12522 void fnord() { int i=42;}
12523 int main ()
12524 {
12525   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12526   int status = $lt_dlunknown;
12527
12528   if (self)
12529     {
12530       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12531       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12532       /* dlclose (self); */
12533     }
12534   else
12535     puts (dlerror ());
12536
12537   return status;
12538 }
12539 _LT_EOF
12540   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12541   (eval $ac_link) 2>&5
12542   ac_status=$?
12543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12544   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12545     (./conftest; exit; ) >&5 2>/dev/null
12546     lt_status=$?
12547     case x$lt_status in
12548       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12549       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12550       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12551     esac
12552   else :
12553     # compilation failed
12554     lt_cv_dlopen_self=no
12555   fi
12556 fi
12557 rm -fr conftest*
12558
12559
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12562 $as_echo "$lt_cv_dlopen_self" >&6; }
12563
12564     if test "x$lt_cv_dlopen_self" = xyes; then
12565       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12566       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12567 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12568 if ${lt_cv_dlopen_self_static+:} false; then :
12569   $as_echo_n "(cached) " >&6
12570 else
12571           if test "$cross_compiling" = yes; then :
12572   lt_cv_dlopen_self_static=cross
12573 else
12574   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12575   lt_status=$lt_dlunknown
12576   cat > conftest.$ac_ext <<_LT_EOF
12577 #line 12577 "configure"
12578 #include "confdefs.h"
12579
12580 #if HAVE_DLFCN_H
12581 #include <dlfcn.h>
12582 #endif
12583
12584 #include <stdio.h>
12585
12586 #ifdef RTLD_GLOBAL
12587 #  define LT_DLGLOBAL           RTLD_GLOBAL
12588 #else
12589 #  ifdef DL_GLOBAL
12590 #    define LT_DLGLOBAL         DL_GLOBAL
12591 #  else
12592 #    define LT_DLGLOBAL         0
12593 #  endif
12594 #endif
12595
12596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12597    find out it does not work in some platform. */
12598 #ifndef LT_DLLAZY_OR_NOW
12599 #  ifdef RTLD_LAZY
12600 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12601 #  else
12602 #    ifdef DL_LAZY
12603 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12604 #    else
12605 #      ifdef RTLD_NOW
12606 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12607 #      else
12608 #        ifdef DL_NOW
12609 #          define LT_DLLAZY_OR_NOW      DL_NOW
12610 #        else
12611 #          define LT_DLLAZY_OR_NOW      0
12612 #        endif
12613 #      endif
12614 #    endif
12615 #  endif
12616 #endif
12617
12618 void fnord() { int i=42;}
12619 int main ()
12620 {
12621   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12622   int status = $lt_dlunknown;
12623
12624   if (self)
12625     {
12626       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12627       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12628       /* dlclose (self); */
12629     }
12630   else
12631     puts (dlerror ());
12632
12633   return status;
12634 }
12635 _LT_EOF
12636   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12637   (eval $ac_link) 2>&5
12638   ac_status=$?
12639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12641     (./conftest; exit; ) >&5 2>/dev/null
12642     lt_status=$?
12643     case x$lt_status in
12644       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12645       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12646       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12647     esac
12648   else :
12649     # compilation failed
12650     lt_cv_dlopen_self_static=no
12651   fi
12652 fi
12653 rm -fr conftest*
12654
12655
12656 fi
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12658 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12659     fi
12660
12661     CPPFLAGS="$save_CPPFLAGS"
12662     LDFLAGS="$save_LDFLAGS"
12663     LIBS="$save_LIBS"
12664     ;;
12665   esac
12666
12667   case $lt_cv_dlopen_self in
12668   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12669   *) enable_dlopen_self=unknown ;;
12670   esac
12671
12672   case $lt_cv_dlopen_self_static in
12673   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12674   *) enable_dlopen_self_static=unknown ;;
12675   esac
12676 fi
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694 striplib=
12695 old_striplib=
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12697 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12698 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12699   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12700   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12702 $as_echo "yes" >&6; }
12703 else
12704 # FIXME - insert some real tests, host_os isn't really good enough
12705   case $host_os in
12706   darwin*)
12707     if test -n "$STRIP" ; then
12708       striplib="$STRIP -x"
12709       old_striplib="$STRIP -S"
12710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12711 $as_echo "yes" >&6; }
12712     else
12713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12715     fi
12716     ;;
12717   *)
12718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720     ;;
12721   esac
12722 fi
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735   # Report which library types will actually be built
12736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12737 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12739 $as_echo "$can_build_shared" >&6; }
12740
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12742 $as_echo_n "checking whether to build shared libraries... " >&6; }
12743   test "$can_build_shared" = "no" && enable_shared=no
12744
12745   # On AIX, shared libraries and static libraries use the same namespace, and
12746   # are all built from PIC.
12747   case $host_os in
12748   aix3*)
12749     test "$enable_shared" = yes && enable_static=no
12750     if test -n "$RANLIB"; then
12751       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12752       postinstall_cmds='$RANLIB $lib'
12753     fi
12754     ;;
12755
12756   aix[4-9]*)
12757     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12758       test "$enable_shared" = yes && enable_static=no
12759     fi
12760     ;;
12761   esac
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12763 $as_echo "$enable_shared" >&6; }
12764
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12766 $as_echo_n "checking whether to build static libraries... " >&6; }
12767   # Make sure either enable_shared or enable_static is yes.
12768   test "$enable_shared" = yes || enable_static=yes
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12770 $as_echo "$enable_static" >&6; }
12771
12772
12773
12774
12775 fi
12776 ac_ext=c
12777 ac_cpp='$CPP $CPPFLAGS'
12778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781
12782 CC="$lt_save_CC"
12783
12784
12785 ac_ext=cpp
12786 ac_cpp='$CXXCPP $CPPFLAGS'
12787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12790
12791 archive_cmds_need_lc_CXX=no
12792 allow_undefined_flag_CXX=
12793 always_export_symbols_CXX=no
12794 archive_expsym_cmds_CXX=
12795 compiler_needs_object_CXX=no
12796 export_dynamic_flag_spec_CXX=
12797 hardcode_direct_CXX=no
12798 hardcode_direct_absolute_CXX=no
12799 hardcode_libdir_flag_spec_CXX=
12800 hardcode_libdir_flag_spec_ld_CXX=
12801 hardcode_libdir_separator_CXX=
12802 hardcode_minus_L_CXX=no
12803 hardcode_shlibpath_var_CXX=unsupported
12804 hardcode_automatic_CXX=no
12805 inherit_rpath_CXX=no
12806 module_cmds_CXX=
12807 module_expsym_cmds_CXX=
12808 link_all_deplibs_CXX=unknown
12809 old_archive_cmds_CXX=$old_archive_cmds
12810 no_undefined_flag_CXX=
12811 whole_archive_flag_spec_CXX=
12812 enable_shared_with_static_runtimes_CXX=no
12813
12814 # Source file extension for C++ test sources.
12815 ac_ext=cpp
12816
12817 # Object file extension for compiled C++ test sources.
12818 objext=o
12819 objext_CXX=$objext
12820
12821 # No sense in running all these tests if we already determined that
12822 # the CXX compiler isn't working.  Some variables (like enable_shared)
12823 # are currently assumed to apply to all compilers on this platform,
12824 # and will be corrupted by setting them based on a non-working compiler.
12825 if test "$_lt_caught_CXX_error" != yes; then
12826   # Code to be used in simple compile tests
12827   lt_simple_compile_test_code="int some_variable = 0;"
12828
12829   # Code to be used in simple link tests
12830   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12831
12832   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12833
12834
12835
12836
12837
12838
12839 # If no C compiler was specified, use CC.
12840 LTCC=${LTCC-"$CC"}
12841
12842 # If no C compiler flags were specified, use CFLAGS.
12843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12844
12845 # Allow CC to be a program name with arguments.
12846 compiler=$CC
12847
12848
12849   # save warnings/boilerplate of simple test code
12850   ac_outfile=conftest.$ac_objext
12851 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12853 _lt_compiler_boilerplate=`cat conftest.err`
12854 $RM conftest*
12855
12856   ac_outfile=conftest.$ac_objext
12857 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12859 _lt_linker_boilerplate=`cat conftest.err`
12860 $RM -r conftest*
12861
12862
12863   # Allow CC to be a program name with arguments.
12864   lt_save_CC=$CC
12865   lt_save_LD=$LD
12866   lt_save_GCC=$GCC
12867   GCC=$GXX
12868   lt_save_with_gnu_ld=$with_gnu_ld
12869   lt_save_path_LD=$lt_cv_path_LD
12870   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12871     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12872   else
12873     $as_unset lt_cv_prog_gnu_ld
12874   fi
12875   if test -n "${lt_cv_path_LDCXX+set}"; then
12876     lt_cv_path_LD=$lt_cv_path_LDCXX
12877   else
12878     $as_unset lt_cv_path_LD
12879   fi
12880   test -z "${LDCXX+set}" || LD=$LDCXX
12881   CC=${CXX-"c++"}
12882   compiler=$CC
12883   compiler_CXX=$CC
12884   for cc_temp in $compiler""; do
12885   case $cc_temp in
12886     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12887     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12888     \-*) ;;
12889     *) break;;
12890   esac
12891 done
12892 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12893
12894
12895   if test -n "$compiler"; then
12896     # We don't want -fno-exception when compiling C++ code, so set the
12897     # no_builtin_flag separately
12898     if test "$GXX" = yes; then
12899       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12900     else
12901       lt_prog_compiler_no_builtin_flag_CXX=
12902     fi
12903
12904     if test "$GXX" = yes; then
12905       # Set up default GNU C++ configuration
12906
12907
12908
12909 # Check whether --with-gnu-ld was given.
12910 if test "${with_gnu_ld+set}" = set; then :
12911   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12912 else
12913   with_gnu_ld=no
12914 fi
12915
12916 ac_prog=ld
12917 if test "$GCC" = yes; then
12918   # Check if gcc -print-prog-name=ld gives a path.
12919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12920 $as_echo_n "checking for ld used by $CC... " >&6; }
12921   case $host in
12922   *-*-mingw*)
12923     # gcc leaves a trailing carriage return which upsets mingw
12924     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12925   *)
12926     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12927   esac
12928   case $ac_prog in
12929     # Accept absolute paths.
12930     [\\/]* | ?:[\\/]*)
12931       re_direlt='/[^/][^/]*/\.\./'
12932       # Canonicalize the pathname of ld
12933       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12934       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12935         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12936       done
12937       test -z "$LD" && LD="$ac_prog"
12938       ;;
12939   "")
12940     # If it fails, then pretend we aren't using GCC.
12941     ac_prog=ld
12942     ;;
12943   *)
12944     # If it is relative, then search for the first ld in PATH.
12945     with_gnu_ld=unknown
12946     ;;
12947   esac
12948 elif test "$with_gnu_ld" = yes; then
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12950 $as_echo_n "checking for GNU ld... " >&6; }
12951 else
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12953 $as_echo_n "checking for non-GNU ld... " >&6; }
12954 fi
12955 if ${lt_cv_path_LD+:} false; then :
12956   $as_echo_n "(cached) " >&6
12957 else
12958   if test -z "$LD"; then
12959   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12960   for ac_dir in $PATH; do
12961     IFS="$lt_save_ifs"
12962     test -z "$ac_dir" && ac_dir=.
12963     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12964       lt_cv_path_LD="$ac_dir/$ac_prog"
12965       # Check to see if the program is GNU ld.  I'd rather use --version,
12966       # but apparently some variants of GNU ld only accept -v.
12967       # Break only if it was the GNU/non-GNU ld that we prefer.
12968       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12969       *GNU* | *'with BFD'*)
12970         test "$with_gnu_ld" != no && break
12971         ;;
12972       *)
12973         test "$with_gnu_ld" != yes && break
12974         ;;
12975       esac
12976     fi
12977   done
12978   IFS="$lt_save_ifs"
12979 else
12980   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12981 fi
12982 fi
12983
12984 LD="$lt_cv_path_LD"
12985 if test -n "$LD"; then
12986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12987 $as_echo "$LD" >&6; }
12988 else
12989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12991 fi
12992 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12994 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12995 if ${lt_cv_prog_gnu_ld+:} false; then :
12996   $as_echo_n "(cached) " >&6
12997 else
12998   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12999 case `$LD -v 2>&1 </dev/null` in
13000 *GNU* | *'with BFD'*)
13001   lt_cv_prog_gnu_ld=yes
13002   ;;
13003 *)
13004   lt_cv_prog_gnu_ld=no
13005   ;;
13006 esac
13007 fi
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13009 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13010 with_gnu_ld=$lt_cv_prog_gnu_ld
13011
13012
13013
13014
13015
13016
13017
13018       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13019       # archiving commands below assume that GNU ld is being used.
13020       if test "$with_gnu_ld" = yes; then
13021         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022         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'
13023
13024         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13025         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13026
13027         # If archive_cmds runs LD, not CC, wlarc should be empty
13028         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13029         #     investigate it a little bit more. (MM)
13030         wlarc='${wl}'
13031
13032         # ancient GNU ld didn't support --whole-archive et. al.
13033         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13034           $GREP 'no-whole-archive' > /dev/null; then
13035           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13036         else
13037           whole_archive_flag_spec_CXX=
13038         fi
13039       else
13040         with_gnu_ld=no
13041         wlarc=
13042
13043         # A generic and very simple default shared library creation
13044         # command for GNU C++ for the case where it uses the native
13045         # linker, instead of GNU ld.  If possible, this setting should
13046         # overridden to take advantage of the native linker features on
13047         # the platform it is being used on.
13048         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13049       fi
13050
13051       # Commands to make compiler produce verbose output that lists
13052       # what "hidden" libraries, object files and flags are used when
13053       # linking a shared library.
13054       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13055
13056     else
13057       GXX=no
13058       with_gnu_ld=no
13059       wlarc=
13060     fi
13061
13062     # PORTME: fill in a description of your system's C++ link characteristics
13063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13065     ld_shlibs_CXX=yes
13066     case $host_os in
13067       aix3*)
13068         # FIXME: insert proper C++ library support
13069         ld_shlibs_CXX=no
13070         ;;
13071       aix[4-9]*)
13072         if test "$host_cpu" = ia64; then
13073           # On IA64, the linker does run time linking by default, so we don't
13074           # have to do anything special.
13075           aix_use_runtimelinking=no
13076           exp_sym_flag='-Bexport'
13077           no_entry_flag=""
13078         else
13079           aix_use_runtimelinking=no
13080
13081           # Test if we are trying to use run time linking or normal
13082           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13083           # need to do runtime linking.
13084           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13085             for ld_flag in $LDFLAGS; do
13086               case $ld_flag in
13087               *-brtl*)
13088                 aix_use_runtimelinking=yes
13089                 break
13090                 ;;
13091               esac
13092             done
13093             ;;
13094           esac
13095
13096           exp_sym_flag='-bexport'
13097           no_entry_flag='-bnoentry'
13098         fi
13099
13100         # When large executables or shared objects are built, AIX ld can
13101         # have problems creating the table of contents.  If linking a library
13102         # or program results in "error TOC overflow" add -mminimal-toc to
13103         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13104         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13105
13106         archive_cmds_CXX=''
13107         hardcode_direct_CXX=yes
13108         hardcode_direct_absolute_CXX=yes
13109         hardcode_libdir_separator_CXX=':'
13110         link_all_deplibs_CXX=yes
13111         file_list_spec_CXX='${wl}-f,'
13112
13113         if test "$GXX" = yes; then
13114           case $host_os in aix4.[012]|aix4.[012].*)
13115           # We only want to do this on AIX 4.2 and lower, the check
13116           # below for broken collect2 doesn't work under 4.3+
13117           collect2name=`${CC} -print-prog-name=collect2`
13118           if test -f "$collect2name" &&
13119              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13120           then
13121             # We have reworked collect2
13122             :
13123           else
13124             # We have old collect2
13125             hardcode_direct_CXX=unsupported
13126             # It fails to find uninstalled libraries when the uninstalled
13127             # path is not listed in the libpath.  Setting hardcode_minus_L
13128             # to unsupported forces relinking
13129             hardcode_minus_L_CXX=yes
13130             hardcode_libdir_flag_spec_CXX='-L$libdir'
13131             hardcode_libdir_separator_CXX=
13132           fi
13133           esac
13134           shared_flag='-shared'
13135           if test "$aix_use_runtimelinking" = yes; then
13136             shared_flag="$shared_flag "'${wl}-G'
13137           fi
13138         else
13139           # not using gcc
13140           if test "$host_cpu" = ia64; then
13141           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13142           # chokes on -Wl,-G. The following line is correct:
13143           shared_flag='-G'
13144           else
13145             if test "$aix_use_runtimelinking" = yes; then
13146               shared_flag='${wl}-G'
13147             else
13148               shared_flag='${wl}-bM:SRE'
13149             fi
13150           fi
13151         fi
13152
13153         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13154         # It seems that -bexpall does not export symbols beginning with
13155         # underscore (_), so it is better to generate a list of symbols to
13156         # export.
13157         always_export_symbols_CXX=yes
13158         if test "$aix_use_runtimelinking" = yes; then
13159           # Warning - without using the other runtime loading flags (-brtl),
13160           # -berok will link without error, but may produce a broken library.
13161           allow_undefined_flag_CXX='-berok'
13162           # Determine the default libpath from the value encoded in an empty
13163           # executable.
13164           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h.  */
13166
13167 int
13168 main ()
13169 {
13170
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_cxx_try_link "$LINENO"; then :
13176
13177 lt_aix_libpath_sed='
13178     /Import File Strings/,/^$/ {
13179         /^0/ {
13180             s/^0  *\(.*\)$/\1/
13181             p
13182         }
13183     }'
13184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13185 # Check for a 64-bit object if we didn't find anything.
13186 if test -z "$aix_libpath"; then
13187   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13188 fi
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext \
13191     conftest$ac_exeext conftest.$ac_ext
13192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13193
13194           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13195
13196           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"
13197         else
13198           if test "$host_cpu" = ia64; then
13199             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13200             allow_undefined_flag_CXX="-z nodefs"
13201             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"
13202           else
13203             # Determine the default libpath from the value encoded in an
13204             # empty executable.
13205             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h.  */
13207
13208 int
13209 main ()
13210 {
13211
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_cxx_try_link "$LINENO"; then :
13217
13218 lt_aix_libpath_sed='
13219     /Import File Strings/,/^$/ {
13220         /^0/ {
13221             s/^0  *\(.*\)$/\1/
13222             p
13223         }
13224     }'
13225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13226 # Check for a 64-bit object if we didn't find anything.
13227 if test -z "$aix_libpath"; then
13228   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13229 fi
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext \
13232     conftest$ac_exeext conftest.$ac_ext
13233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13234
13235             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13236             # Warning - without using the other run time loading flags,
13237             # -berok will link without error, but may produce a broken library.
13238             no_undefined_flag_CXX=' ${wl}-bernotok'
13239             allow_undefined_flag_CXX=' ${wl}-berok'
13240             # Exported symbols can be pulled into shared objects from archives
13241             whole_archive_flag_spec_CXX='$convenience'
13242             archive_cmds_need_lc_CXX=yes
13243             # This is similar to how AIX traditionally builds its shared
13244             # libraries.
13245             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'
13246           fi
13247         fi
13248         ;;
13249
13250       beos*)
13251         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13252           allow_undefined_flag_CXX=unsupported
13253           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13254           # support --undefined.  This deserves some investigation.  FIXME
13255           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13256         else
13257           ld_shlibs_CXX=no
13258         fi
13259         ;;
13260
13261       chorus*)
13262         case $cc_basename in
13263           *)
13264           # FIXME: insert proper C++ library support
13265           ld_shlibs_CXX=no
13266           ;;
13267         esac
13268         ;;
13269
13270       cygwin* | mingw* | pw32* | cegcc*)
13271         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13272         # as there is no search path for DLLs.
13273         hardcode_libdir_flag_spec_CXX='-L$libdir'
13274         allow_undefined_flag_CXX=unsupported
13275         always_export_symbols_CXX=no
13276         enable_shared_with_static_runtimes_CXX=yes
13277
13278         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13279           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'
13280           # If the export-symbols file already is a .def file (1st line
13281           # is EXPORTS), use it as is; otherwise, prepend...
13282           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13283             cp $export_symbols $output_objdir/$soname.def;
13284           else
13285             echo EXPORTS > $output_objdir/$soname.def;
13286             cat $export_symbols >> $output_objdir/$soname.def;
13287           fi~
13288           $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'
13289         else
13290           ld_shlibs_CXX=no
13291         fi
13292         ;;
13293       darwin* | rhapsody*)
13294
13295
13296   archive_cmds_need_lc_CXX=no
13297   hardcode_direct_CXX=no
13298   hardcode_automatic_CXX=yes
13299   hardcode_shlibpath_var_CXX=unsupported
13300   whole_archive_flag_spec_CXX=''
13301   link_all_deplibs_CXX=yes
13302   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13303   case $cc_basename in
13304      ifort*) _lt_dar_can_shared=yes ;;
13305      *) _lt_dar_can_shared=$GCC ;;
13306   esac
13307   if test "$_lt_dar_can_shared" = "yes"; then
13308     output_verbose_link_cmd=echo
13309     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}"
13310     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13311     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}"
13312     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}"
13313        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13314       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}"
13315       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}"
13316     fi
13317
13318   else
13319   ld_shlibs_CXX=no
13320   fi
13321
13322         ;;
13323
13324       dgux*)
13325         case $cc_basename in
13326           ec++*)
13327             # FIXME: insert proper C++ library support
13328             ld_shlibs_CXX=no
13329             ;;
13330           ghcx*)
13331             # Green Hills C++ Compiler
13332             # FIXME: insert proper C++ library support
13333             ld_shlibs_CXX=no
13334             ;;
13335           *)
13336             # FIXME: insert proper C++ library support
13337             ld_shlibs_CXX=no
13338             ;;
13339         esac
13340         ;;
13341
13342       freebsd[12]*)
13343         # C++ shared libraries reported to be fairly broken before
13344         # switch to ELF
13345         ld_shlibs_CXX=no
13346         ;;
13347
13348       freebsd-elf*)
13349         archive_cmds_need_lc_CXX=no
13350         ;;
13351
13352       freebsd* | dragonfly*)
13353         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13354         # conventions
13355         ld_shlibs_CXX=yes
13356         ;;
13357
13358       gnu*)
13359         ;;
13360
13361       hpux9*)
13362         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13363         hardcode_libdir_separator_CXX=:
13364         export_dynamic_flag_spec_CXX='${wl}-E'
13365         hardcode_direct_CXX=yes
13366         hardcode_minus_L_CXX=yes # Not in the search PATH,
13367                                              # but as the default
13368                                              # location of the library.
13369
13370         case $cc_basename in
13371           CC*)
13372             # FIXME: insert proper C++ library support
13373             ld_shlibs_CXX=no
13374             ;;
13375           aCC*)
13376             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'
13377             # Commands to make compiler produce verbose output that lists
13378             # what "hidden" libraries, object files and flags are used when
13379             # linking a shared library.
13380             #
13381             # There doesn't appear to be a way to prevent this compiler from
13382             # explicitly linking system object files so we need to strip them
13383             # from the output so that they don't get included in the library
13384             # dependencies.
13385             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'
13386             ;;
13387           *)
13388             if test "$GXX" = yes; then
13389               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'
13390             else
13391               # FIXME: insert proper C++ library support
13392               ld_shlibs_CXX=no
13393             fi
13394             ;;
13395         esac
13396         ;;
13397
13398       hpux10*|hpux11*)
13399         if test $with_gnu_ld = no; then
13400           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13401           hardcode_libdir_separator_CXX=:
13402
13403           case $host_cpu in
13404             hppa*64*|ia64*)
13405               ;;
13406             *)
13407               export_dynamic_flag_spec_CXX='${wl}-E'
13408               ;;
13409           esac
13410         fi
13411         case $host_cpu in
13412           hppa*64*|ia64*)
13413             hardcode_direct_CXX=no
13414             hardcode_shlibpath_var_CXX=no
13415             ;;
13416           *)
13417             hardcode_direct_CXX=yes
13418             hardcode_direct_absolute_CXX=yes
13419             hardcode_minus_L_CXX=yes # Not in the search PATH,
13420                                                  # but as the default
13421                                                  # location of the library.
13422             ;;
13423         esac
13424
13425         case $cc_basename in
13426           CC*)
13427             # FIXME: insert proper C++ library support
13428             ld_shlibs_CXX=no
13429             ;;
13430           aCC*)
13431             case $host_cpu in
13432               hppa*64*)
13433                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13434                 ;;
13435               ia64*)
13436                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13437                 ;;
13438               *)
13439                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13440                 ;;
13441             esac
13442             # Commands to make compiler produce verbose output that lists
13443             # what "hidden" libraries, object files and flags are used when
13444             # linking a shared library.
13445             #
13446             # There doesn't appear to be a way to prevent this compiler from
13447             # explicitly linking system object files so we need to strip them
13448             # from the output so that they don't get included in the library
13449             # dependencies.
13450             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'
13451             ;;
13452           *)
13453             if test "$GXX" = yes; then
13454               if test $with_gnu_ld = no; then
13455                 case $host_cpu in
13456                   hppa*64*)
13457                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13458                     ;;
13459                   ia64*)
13460                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461                     ;;
13462                   *)
13463                     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'
13464                     ;;
13465                 esac
13466               fi
13467             else
13468               # FIXME: insert proper C++ library support
13469               ld_shlibs_CXX=no
13470             fi
13471             ;;
13472         esac
13473         ;;
13474
13475       interix[3-9]*)
13476         hardcode_direct_CXX=no
13477         hardcode_shlibpath_var_CXX=no
13478         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13479         export_dynamic_flag_spec_CXX='${wl}-E'
13480         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13481         # Instead, shared libraries are loaded at an image base (0x10000000 by
13482         # default) and relocated if they conflict, which is a slow very memory
13483         # consuming and fragmenting process.  To avoid this, we pick a random,
13484         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13485         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13486         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'
13487         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'
13488         ;;
13489       irix5* | irix6*)
13490         case $cc_basename in
13491           CC*)
13492             # SGI C++
13493             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'
13494
13495             # Archives containing C++ object files must be created using
13496             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13497             # necessary to make sure instantiated templates are included
13498             # in the archive.
13499             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13500             ;;
13501           *)
13502             if test "$GXX" = yes; then
13503               if test "$with_gnu_ld" = no; then
13504                 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'
13505               else
13506                 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'
13507               fi
13508             fi
13509             link_all_deplibs_CXX=yes
13510             ;;
13511         esac
13512         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13513         hardcode_libdir_separator_CXX=:
13514         inherit_rpath_CXX=yes
13515         ;;
13516
13517       linux* | k*bsd*-gnu)
13518         case $cc_basename in
13519           KCC*)
13520             # Kuck and Associates, Inc. (KAI) C++ Compiler
13521
13522             # KCC will only create a shared library if the output file
13523             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13524             # to its proper name (with version) after linking.
13525             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'
13526             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'
13527             # Commands to make compiler produce verbose output that lists
13528             # what "hidden" libraries, object files and flags are used when
13529             # linking a shared library.
13530             #
13531             # There doesn't appear to be a way to prevent this compiler from
13532             # explicitly linking system object files so we need to strip them
13533             # from the output so that they don't get included in the library
13534             # dependencies.
13535             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'
13536
13537             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13538             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539
13540             # Archives containing C++ object files must be created using
13541             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13542             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13543             ;;
13544           icpc* | ecpc* )
13545             # Intel C++
13546             with_gnu_ld=yes
13547             # version 8.0 and above of icpc choke on multiply defined symbols
13548             # if we add $predep_objects and $postdep_objects, however 7.1 and
13549             # earlier do not add the objects themselves.
13550             case `$CC -V 2>&1` in
13551               *"Version 7."*)
13552                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13553                 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'
13554                 ;;
13555               *)  # Version 8.0 or newer
13556                 tmp_idyn=
13557                 case $host_cpu in
13558                   ia64*) tmp_idyn=' -i_dynamic';;
13559                 esac
13560                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561                 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'
13562                 ;;
13563             esac
13564             archive_cmds_need_lc_CXX=no
13565             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13566             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13567             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13568             ;;
13569           pgCC* | pgcpp*)
13570             # Portland Group C++ compiler
13571             case `$CC -V` in
13572             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13573               prelink_cmds_CXX='tpldir=Template.dir~
13574                 rm -rf $tpldir~
13575                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13576                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13577               old_archive_cmds_CXX='tpldir=Template.dir~
13578                 rm -rf $tpldir~
13579                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13580                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13581                 $RANLIB $oldlib'
13582               archive_cmds_CXX='tpldir=Template.dir~
13583                 rm -rf $tpldir~
13584                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13585                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13586               archive_expsym_cmds_CXX='tpldir=Template.dir~
13587                 rm -rf $tpldir~
13588                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13589                 $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'
13590               ;;
13591             *) # Version 6 will use weak symbols
13592               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13593               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'
13594               ;;
13595             esac
13596
13597             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13598             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13599             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'
13600             ;;
13601           cxx*)
13602             # Compaq C++
13603             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13604             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'
13605
13606             runpath_var=LD_RUN_PATH
13607             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13608             hardcode_libdir_separator_CXX=:
13609
13610             # Commands to make compiler produce verbose output that lists
13611             # what "hidden" libraries, object files and flags are used when
13612             # linking a shared library.
13613             #
13614             # There doesn't appear to be a way to prevent this compiler from
13615             # explicitly linking system object files so we need to strip them
13616             # from the output so that they don't get included in the library
13617             # dependencies.
13618             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'
13619             ;;
13620           xl*)
13621             # IBM XL 8.0 on PPC, with GNU ld
13622             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13623             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13624             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13625             if test "x$supports_anon_versioning" = xyes; then
13626               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13627                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13628                 echo "local: *; };" >> $output_objdir/$libname.ver~
13629                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13630             fi
13631             ;;
13632           *)
13633             case `$CC -V 2>&1 | sed 5q` in
13634             *Sun\ C*)
13635               # Sun C++ 5.9
13636               no_undefined_flag_CXX=' -zdefs'
13637               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13638               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'
13639               hardcode_libdir_flag_spec_CXX='-R$libdir'
13640               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'
13641               compiler_needs_object_CXX=yes
13642
13643               # Not sure whether something based on
13644               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13645               # would be better.
13646               output_verbose_link_cmd='echo'
13647
13648               # Archives containing C++ object files must be created using
13649               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13650               # necessary to make sure instantiated templates are included
13651               # in the archive.
13652               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13653               ;;
13654             esac
13655             ;;
13656         esac
13657         ;;
13658
13659       lynxos*)
13660         # FIXME: insert proper C++ library support
13661         ld_shlibs_CXX=no
13662         ;;
13663
13664       m88k*)
13665         # FIXME: insert proper C++ library support
13666         ld_shlibs_CXX=no
13667         ;;
13668
13669       mvs*)
13670         case $cc_basename in
13671           cxx*)
13672             # FIXME: insert proper C++ library support
13673             ld_shlibs_CXX=no
13674             ;;
13675           *)
13676             # FIXME: insert proper C++ library support
13677             ld_shlibs_CXX=no
13678             ;;
13679         esac
13680         ;;
13681
13682       netbsd*)
13683         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13684           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13685           wlarc=
13686           hardcode_libdir_flag_spec_CXX='-R$libdir'
13687           hardcode_direct_CXX=yes
13688           hardcode_shlibpath_var_CXX=no
13689         fi
13690         # Workaround some broken pre-1.5 toolchains
13691         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13692         ;;
13693
13694       *nto* | *qnx*)
13695         ld_shlibs_CXX=yes
13696         ;;
13697
13698       openbsd2*)
13699         # C++ shared libraries are fairly broken
13700         ld_shlibs_CXX=no
13701         ;;
13702
13703       openbsd*)
13704         if test -f /usr/libexec/ld.so; then
13705           hardcode_direct_CXX=yes
13706           hardcode_shlibpath_var_CXX=no
13707           hardcode_direct_absolute_CXX=yes
13708           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13709           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13710           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13711             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13712             export_dynamic_flag_spec_CXX='${wl}-E'
13713             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13714           fi
13715           output_verbose_link_cmd=echo
13716         else
13717           ld_shlibs_CXX=no
13718         fi
13719         ;;
13720
13721       osf3* | osf4* | osf5*)
13722         case $cc_basename in
13723           KCC*)
13724             # Kuck and Associates, Inc. (KAI) C++ Compiler
13725
13726             # KCC will only create a shared library if the output file
13727             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13728             # to its proper name (with version) after linking.
13729             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'
13730
13731             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13732             hardcode_libdir_separator_CXX=:
13733
13734             # Archives containing C++ object files must be created using
13735             # the KAI C++ compiler.
13736             case $host in
13737               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13738               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13739             esac
13740             ;;
13741           RCC*)
13742             # Rational C++ 2.4.1
13743             # FIXME: insert proper C++ library support
13744             ld_shlibs_CXX=no
13745             ;;
13746           cxx*)
13747             case $host in
13748               osf3*)
13749                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13750                 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'
13751                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13752                 ;;
13753               *)
13754                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13755                 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'
13756                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13757                   echo "-hidden">> $lib.exp~
13758                   $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~
13759                   $RM $lib.exp'
13760                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13761                 ;;
13762             esac
13763
13764             hardcode_libdir_separator_CXX=:
13765
13766             # Commands to make compiler produce verbose output that lists
13767             # what "hidden" libraries, object files and flags are used when
13768             # linking a shared library.
13769             #
13770             # There doesn't appear to be a way to prevent this compiler from
13771             # explicitly linking system object files so we need to strip them
13772             # from the output so that they don't get included in the library
13773             # dependencies.
13774             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'
13775             ;;
13776           *)
13777             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13778               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13779               case $host in
13780                 osf3*)
13781                   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'
13782                   ;;
13783                 *)
13784                   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'
13785                   ;;
13786               esac
13787
13788               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13789               hardcode_libdir_separator_CXX=:
13790
13791               # Commands to make compiler produce verbose output that lists
13792               # what "hidden" libraries, object files and flags are used when
13793               # linking a shared library.
13794               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13795
13796             else
13797               # FIXME: insert proper C++ library support
13798               ld_shlibs_CXX=no
13799             fi
13800             ;;
13801         esac
13802         ;;
13803
13804       psos*)
13805         # FIXME: insert proper C++ library support
13806         ld_shlibs_CXX=no
13807         ;;
13808
13809       sunos4*)
13810         case $cc_basename in
13811           CC*)
13812             # Sun C++ 4.x
13813             # FIXME: insert proper C++ library support
13814             ld_shlibs_CXX=no
13815             ;;
13816           lcc*)
13817             # Lucid
13818             # FIXME: insert proper C++ library support
13819             ld_shlibs_CXX=no
13820             ;;
13821           *)
13822             # FIXME: insert proper C++ library support
13823             ld_shlibs_CXX=no
13824             ;;
13825         esac
13826         ;;
13827
13828       solaris*)
13829         case $cc_basename in
13830           CC*)
13831             # Sun C++ 4.2, 5.x and Centerline C++
13832             archive_cmds_need_lc_CXX=yes
13833             no_undefined_flag_CXX=' -zdefs'
13834             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13835             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13836               $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'
13837
13838             hardcode_libdir_flag_spec_CXX='-R$libdir'
13839             hardcode_shlibpath_var_CXX=no
13840             case $host_os in
13841               solaris2.[0-5] | solaris2.[0-5].*) ;;
13842               *)
13843                 # The compiler driver will combine and reorder linker options,
13844                 # but understands `-z linker_flag'.
13845                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13846                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13847                 ;;
13848             esac
13849             link_all_deplibs_CXX=yes
13850
13851             output_verbose_link_cmd='echo'
13852
13853             # Archives containing C++ object files must be created using
13854             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13855             # necessary to make sure instantiated templates are included
13856             # in the archive.
13857             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13858             ;;
13859           gcx*)
13860             # Green Hills C++ Compiler
13861             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13862
13863             # The C++ compiler must be used to create the archive.
13864             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13865             ;;
13866           *)
13867             # GNU C++ compiler with Solaris linker
13868             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13869               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13870               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13871                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13872                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13873                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13874
13875                 # Commands to make compiler produce verbose output that lists
13876                 # what "hidden" libraries, object files and flags are used when
13877                 # linking a shared library.
13878                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13879               else
13880                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13881                 # platform.
13882                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13883                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13884                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13885
13886                 # Commands to make compiler produce verbose output that lists
13887                 # what "hidden" libraries, object files and flags are used when
13888                 # linking a shared library.
13889                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13890               fi
13891
13892               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13893               case $host_os in
13894                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13895                 *)
13896                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13897                   ;;
13898               esac
13899             fi
13900             ;;
13901         esac
13902         ;;
13903
13904     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13905       no_undefined_flag_CXX='${wl}-z,text'
13906       archive_cmds_need_lc_CXX=no
13907       hardcode_shlibpath_var_CXX=no
13908       runpath_var='LD_RUN_PATH'
13909
13910       case $cc_basename in
13911         CC*)
13912           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13913           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13914           ;;
13915         *)
13916           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13917           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13918           ;;
13919       esac
13920       ;;
13921
13922       sysv5* | sco3.2v5* | sco5v6*)
13923         # Note: We can NOT use -z defs as we might desire, because we do not
13924         # link with -lc, and that would cause any symbols used from libc to
13925         # always be unresolved, which means just about no library would
13926         # ever link correctly.  If we're not using GNU ld we use -z text
13927         # though, which does catch some bad symbols but isn't as heavy-handed
13928         # as -z defs.
13929         no_undefined_flag_CXX='${wl}-z,text'
13930         allow_undefined_flag_CXX='${wl}-z,nodefs'
13931         archive_cmds_need_lc_CXX=no
13932         hardcode_shlibpath_var_CXX=no
13933         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13934         hardcode_libdir_separator_CXX=':'
13935         link_all_deplibs_CXX=yes
13936         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13937         runpath_var='LD_RUN_PATH'
13938
13939         case $cc_basename in
13940           CC*)
13941             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13942             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13943             ;;
13944           *)
13945             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13947             ;;
13948         esac
13949       ;;
13950
13951       tandem*)
13952         case $cc_basename in
13953           NCC*)
13954             # NonStop-UX NCC 3.20
13955             # FIXME: insert proper C++ library support
13956             ld_shlibs_CXX=no
13957             ;;
13958           *)
13959             # FIXME: insert proper C++ library support
13960             ld_shlibs_CXX=no
13961             ;;
13962         esac
13963         ;;
13964
13965       vxworks*)
13966         # FIXME: insert proper C++ library support
13967         ld_shlibs_CXX=no
13968         ;;
13969
13970       *)
13971         # FIXME: insert proper C++ library support
13972         ld_shlibs_CXX=no
13973         ;;
13974     esac
13975
13976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13977 $as_echo "$ld_shlibs_CXX" >&6; }
13978     test "$ld_shlibs_CXX" = no && can_build_shared=no
13979
13980     GCC_CXX="$GXX"
13981     LD_CXX="$LD"
13982
13983     ## CAVEAT EMPTOR:
13984     ## There is no encapsulation within the following macros, do not change
13985     ## the running order or otherwise move them around unless you know exactly
13986     ## what you are doing...
13987     # Dependencies to place before and after the object being linked:
13988 predep_objects_CXX=
13989 postdep_objects_CXX=
13990 predeps_CXX=
13991 postdeps_CXX=
13992 compiler_lib_search_path_CXX=
13993
13994 cat > conftest.$ac_ext <<_LT_EOF
13995 class Foo
13996 {
13997 public:
13998   Foo (void) { a = 0; }
13999 private:
14000   int a;
14001 };
14002 _LT_EOF
14003
14004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14005   (eval $ac_compile) 2>&5
14006   ac_status=$?
14007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008   test $ac_status = 0; }; then
14009   # Parse the compiler output and extract the necessary
14010   # objects, libraries and library flags.
14011
14012   # Sentinel used to keep track of whether or not we are before
14013   # the conftest object file.
14014   pre_test_object_deps_done=no
14015
14016   for p in `eval "$output_verbose_link_cmd"`; do
14017     case $p in
14018
14019     -L* | -R* | -l*)
14020        # Some compilers place space between "-{L,R}" and the path.
14021        # Remove the space.
14022        if test $p = "-L" ||
14023           test $p = "-R"; then
14024          prev=$p
14025          continue
14026        else
14027          prev=
14028        fi
14029
14030        if test "$pre_test_object_deps_done" = no; then
14031          case $p in
14032          -L* | -R*)
14033            # Internal compiler library paths should come after those
14034            # provided the user.  The postdeps already come after the
14035            # user supplied libs so there is no need to process them.
14036            if test -z "$compiler_lib_search_path_CXX"; then
14037              compiler_lib_search_path_CXX="${prev}${p}"
14038            else
14039              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14040            fi
14041            ;;
14042          # The "-l" case would never come before the object being
14043          # linked, so don't bother handling this case.
14044          esac
14045        else
14046          if test -z "$postdeps_CXX"; then
14047            postdeps_CXX="${prev}${p}"
14048          else
14049            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14050          fi
14051        fi
14052        ;;
14053
14054     *.$objext)
14055        # This assumes that the test object file only shows up
14056        # once in the compiler output.
14057        if test "$p" = "conftest.$objext"; then
14058          pre_test_object_deps_done=yes
14059          continue
14060        fi
14061
14062        if test "$pre_test_object_deps_done" = no; then
14063          if test -z "$predep_objects_CXX"; then
14064            predep_objects_CXX="$p"
14065          else
14066            predep_objects_CXX="$predep_objects_CXX $p"
14067          fi
14068        else
14069          if test -z "$postdep_objects_CXX"; then
14070            postdep_objects_CXX="$p"
14071          else
14072            postdep_objects_CXX="$postdep_objects_CXX $p"
14073          fi
14074        fi
14075        ;;
14076
14077     *) ;; # Ignore the rest.
14078
14079     esac
14080   done
14081
14082   # Clean up.
14083   rm -f a.out a.exe
14084 else
14085   echo "libtool.m4: error: problem compiling CXX test program"
14086 fi
14087
14088 $RM -f confest.$objext
14089
14090 # PORTME: override above test on systems where it is broken
14091 case $host_os in
14092 interix[3-9]*)
14093   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14094   # hack all around it, let's just trust "g++" to DTRT.
14095   predep_objects_CXX=
14096   postdep_objects_CXX=
14097   postdeps_CXX=
14098   ;;
14099
14100 linux*)
14101   case `$CC -V 2>&1 | sed 5q` in
14102   *Sun\ C*)
14103     # Sun C++ 5.9
14104
14105     # The more standards-conforming stlport4 library is
14106     # incompatible with the Cstd library. Avoid specifying
14107     # it if it's in CXXFLAGS. Ignore libCrun as
14108     # -library=stlport4 depends on it.
14109     case " $CXX $CXXFLAGS " in
14110     *" -library=stlport4 "*)
14111       solaris_use_stlport4=yes
14112       ;;
14113     esac
14114
14115     if test "$solaris_use_stlport4" != yes; then
14116       postdeps_CXX='-library=Cstd -library=Crun'
14117     fi
14118     ;;
14119   esac
14120   ;;
14121
14122 solaris*)
14123   case $cc_basename in
14124   CC*)
14125     # The more standards-conforming stlport4 library is
14126     # incompatible with the Cstd library. Avoid specifying
14127     # it if it's in CXXFLAGS. Ignore libCrun as
14128     # -library=stlport4 depends on it.
14129     case " $CXX $CXXFLAGS " in
14130     *" -library=stlport4 "*)
14131       solaris_use_stlport4=yes
14132       ;;
14133     esac
14134
14135     # Adding this requires a known-good setup of shared libraries for
14136     # Sun compiler versions before 5.6, else PIC objects from an old
14137     # archive will be linked into the output, leading to subtle bugs.
14138     if test "$solaris_use_stlport4" != yes; then
14139       postdeps_CXX='-library=Cstd -library=Crun'
14140     fi
14141     ;;
14142   esac
14143   ;;
14144 esac
14145
14146
14147 case " $postdeps_CXX " in
14148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14149 esac
14150  compiler_lib_search_dirs_CXX=
14151 if test -n "${compiler_lib_search_path_CXX}"; then
14152  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14153 fi
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185     lt_prog_compiler_wl_CXX=
14186 lt_prog_compiler_pic_CXX=
14187 lt_prog_compiler_static_CXX=
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14191
14192   # C++ specific cases for pic, static, wl, etc.
14193   if test "$GXX" = yes; then
14194     lt_prog_compiler_wl_CXX='-Wl,'
14195     lt_prog_compiler_static_CXX='-static'
14196
14197     case $host_os in
14198     aix*)
14199       # All AIX code is PIC.
14200       if test "$host_cpu" = ia64; then
14201         # AIX 5 now supports IA64 processor
14202         lt_prog_compiler_static_CXX='-Bstatic'
14203       fi
14204       ;;
14205
14206     amigaos*)
14207       case $host_cpu in
14208       powerpc)
14209             # see comment about AmigaOS4 .so support
14210             lt_prog_compiler_pic_CXX='-fPIC'
14211         ;;
14212       m68k)
14213             # FIXME: we need at least 68020 code to build shared libraries, but
14214             # adding the `-m68020' flag to GCC prevents building anything better,
14215             # like `-m68040'.
14216             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14217         ;;
14218       esac
14219       ;;
14220
14221     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14222       # PIC is the default for these OSes.
14223       ;;
14224     mingw* | cygwin* | os2* | pw32* | cegcc*)
14225       # This hack is so that the source file can tell whether it is being
14226       # built for inclusion in a dll (and should export symbols for example).
14227       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14228       # (--disable-auto-import) libraries
14229       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14230       ;;
14231     darwin* | rhapsody*)
14232       # PIC is the default on this platform
14233       # Common symbols not allowed in MH_DYLIB files
14234       lt_prog_compiler_pic_CXX='-fno-common'
14235       ;;
14236     *djgpp*)
14237       # DJGPP does not support shared libraries at all
14238       lt_prog_compiler_pic_CXX=
14239       ;;
14240     interix[3-9]*)
14241       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14242       # Instead, we relocate shared libraries at runtime.
14243       ;;
14244     sysv4*MP*)
14245       if test -d /usr/nec; then
14246         lt_prog_compiler_pic_CXX=-Kconform_pic
14247       fi
14248       ;;
14249     hpux*)
14250       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14251       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14252       # sets the default TLS model and affects inlining.
14253       case $host_cpu in
14254       hppa*64*)
14255         ;;
14256       *)
14257         lt_prog_compiler_pic_CXX='-fPIC'
14258         ;;
14259       esac
14260       ;;
14261     *qnx* | *nto*)
14262       # QNX uses GNU C++, but need to define -shared option too, otherwise
14263       # it will coredump.
14264       lt_prog_compiler_pic_CXX='-fPIC -shared'
14265       ;;
14266     *)
14267       lt_prog_compiler_pic_CXX='-fPIC'
14268       ;;
14269     esac
14270   else
14271     case $host_os in
14272       aix[4-9]*)
14273         # All AIX code is PIC.
14274         if test "$host_cpu" = ia64; then
14275           # AIX 5 now supports IA64 processor
14276           lt_prog_compiler_static_CXX='-Bstatic'
14277         else
14278           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14279         fi
14280         ;;
14281       chorus*)
14282         case $cc_basename in
14283         cxch68*)
14284           # Green Hills C++ Compiler
14285           # _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"
14286           ;;
14287         esac
14288         ;;
14289       dgux*)
14290         case $cc_basename in
14291           ec++*)
14292             lt_prog_compiler_pic_CXX='-KPIC'
14293             ;;
14294           ghcx*)
14295             # Green Hills C++ Compiler
14296             lt_prog_compiler_pic_CXX='-pic'
14297             ;;
14298           *)
14299             ;;
14300         esac
14301         ;;
14302       freebsd* | dragonfly*)
14303         # FreeBSD uses GNU C++
14304         ;;
14305       hpux9* | hpux10* | hpux11*)
14306         case $cc_basename in
14307           CC*)
14308             lt_prog_compiler_wl_CXX='-Wl,'
14309             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14310             if test "$host_cpu" != ia64; then
14311               lt_prog_compiler_pic_CXX='+Z'
14312             fi
14313             ;;
14314           aCC*)
14315             lt_prog_compiler_wl_CXX='-Wl,'
14316             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14317             case $host_cpu in
14318             hppa*64*|ia64*)
14319               # +Z the default
14320               ;;
14321             *)
14322               lt_prog_compiler_pic_CXX='+Z'
14323               ;;
14324             esac
14325             ;;
14326           *)
14327             ;;
14328         esac
14329         ;;
14330       interix*)
14331         # This is c89, which is MS Visual C++ (no shared libs)
14332         # Anyone wants to do a port?
14333         ;;
14334       irix5* | irix6* | nonstopux*)
14335         case $cc_basename in
14336           CC*)
14337             lt_prog_compiler_wl_CXX='-Wl,'
14338             lt_prog_compiler_static_CXX='-non_shared'
14339             # CC pic flag -KPIC is the default.
14340             ;;
14341           *)
14342             ;;
14343         esac
14344         ;;
14345       linux* | k*bsd*-gnu)
14346         case $cc_basename in
14347           KCC*)
14348             # KAI C++ Compiler
14349             lt_prog_compiler_wl_CXX='--backend -Wl,'
14350             lt_prog_compiler_pic_CXX='-fPIC'
14351             ;;
14352           ecpc* )
14353             # old Intel C++ for x86_64 which still supported -KPIC.
14354             lt_prog_compiler_wl_CXX='-Wl,'
14355             lt_prog_compiler_pic_CXX='-KPIC'
14356             lt_prog_compiler_static_CXX='-static'
14357             ;;
14358           icpc* )
14359             # Intel C++, used to be incompatible with GCC.
14360             # ICC 10 doesn't accept -KPIC any more.
14361             lt_prog_compiler_wl_CXX='-Wl,'
14362             lt_prog_compiler_pic_CXX='-fPIC'
14363             lt_prog_compiler_static_CXX='-static'
14364             ;;
14365           pgCC* | pgcpp*)
14366             # Portland Group C++ compiler
14367             lt_prog_compiler_wl_CXX='-Wl,'
14368             lt_prog_compiler_pic_CXX='-fpic'
14369             lt_prog_compiler_static_CXX='-Bstatic'
14370             ;;
14371           cxx*)
14372             # Compaq C++
14373             # Make sure the PIC flag is empty.  It appears that all Alpha
14374             # Linux and Compaq Tru64 Unix objects are PIC.
14375             lt_prog_compiler_pic_CXX=
14376             lt_prog_compiler_static_CXX='-non_shared'
14377             ;;
14378           xlc* | xlC*)
14379             # IBM XL 8.0 on PPC
14380             lt_prog_compiler_wl_CXX='-Wl,'
14381             lt_prog_compiler_pic_CXX='-qpic'
14382             lt_prog_compiler_static_CXX='-qstaticlink'
14383             ;;
14384           *)
14385             case `$CC -V 2>&1 | sed 5q` in
14386             *Sun\ C*)
14387               # Sun C++ 5.9
14388               lt_prog_compiler_pic_CXX='-KPIC'
14389               lt_prog_compiler_static_CXX='-Bstatic'
14390               lt_prog_compiler_wl_CXX='-Qoption ld '
14391               ;;
14392             esac
14393             ;;
14394         esac
14395         ;;
14396       lynxos*)
14397         ;;
14398       m88k*)
14399         ;;
14400       mvs*)
14401         case $cc_basename in
14402           cxx*)
14403             lt_prog_compiler_pic_CXX='-W c,exportall'
14404             ;;
14405           *)
14406             ;;
14407         esac
14408         ;;
14409       netbsd*)
14410         ;;
14411       *qnx* | *nto*)
14412         # QNX uses GNU C++, but need to define -shared option too, otherwise
14413         # it will coredump.
14414         lt_prog_compiler_pic_CXX='-fPIC -shared'
14415         ;;
14416       osf3* | osf4* | osf5*)
14417         case $cc_basename in
14418           KCC*)
14419             lt_prog_compiler_wl_CXX='--backend -Wl,'
14420             ;;
14421           RCC*)
14422             # Rational C++ 2.4.1
14423             lt_prog_compiler_pic_CXX='-pic'
14424             ;;
14425           cxx*)
14426             # Digital/Compaq C++
14427             lt_prog_compiler_wl_CXX='-Wl,'
14428             # Make sure the PIC flag is empty.  It appears that all Alpha
14429             # Linux and Compaq Tru64 Unix objects are PIC.
14430             lt_prog_compiler_pic_CXX=
14431             lt_prog_compiler_static_CXX='-non_shared'
14432             ;;
14433           *)
14434             ;;
14435         esac
14436         ;;
14437       psos*)
14438         ;;
14439       solaris*)
14440         case $cc_basename in
14441           CC*)
14442             # Sun C++ 4.2, 5.x and Centerline C++
14443             lt_prog_compiler_pic_CXX='-KPIC'
14444             lt_prog_compiler_static_CXX='-Bstatic'
14445             lt_prog_compiler_wl_CXX='-Qoption ld '
14446             ;;
14447           gcx*)
14448             # Green Hills C++ Compiler
14449             lt_prog_compiler_pic_CXX='-PIC'
14450             ;;
14451           *)
14452             ;;
14453         esac
14454         ;;
14455       sunos4*)
14456         case $cc_basename in
14457           CC*)
14458             # Sun C++ 4.x
14459             lt_prog_compiler_pic_CXX='-pic'
14460             lt_prog_compiler_static_CXX='-Bstatic'
14461             ;;
14462           lcc*)
14463             # Lucid
14464             lt_prog_compiler_pic_CXX='-pic'
14465             ;;
14466           *)
14467             ;;
14468         esac
14469         ;;
14470       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14471         case $cc_basename in
14472           CC*)
14473             lt_prog_compiler_wl_CXX='-Wl,'
14474             lt_prog_compiler_pic_CXX='-KPIC'
14475             lt_prog_compiler_static_CXX='-Bstatic'
14476             ;;
14477         esac
14478         ;;
14479       tandem*)
14480         case $cc_basename in
14481           NCC*)
14482             # NonStop-UX NCC 3.20
14483             lt_prog_compiler_pic_CXX='-KPIC'
14484             ;;
14485           *)
14486             ;;
14487         esac
14488         ;;
14489       vxworks*)
14490         ;;
14491       *)
14492         lt_prog_compiler_can_build_shared_CXX=no
14493         ;;
14494     esac
14495   fi
14496
14497 case $host_os in
14498   # For platforms which do not support PIC, -DPIC is meaningless:
14499   *djgpp*)
14500     lt_prog_compiler_pic_CXX=
14501     ;;
14502   *)
14503     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14504     ;;
14505 esac
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14507 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14508
14509
14510
14511 #
14512 # Check to make sure the PIC flag actually works.
14513 #
14514 if test -n "$lt_prog_compiler_pic_CXX"; then
14515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14516 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14517 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14518   $as_echo_n "(cached) " >&6
14519 else
14520   lt_cv_prog_compiler_pic_works_CXX=no
14521    ac_outfile=conftest.$ac_objext
14522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14524    # Insert the option either (1) after the last *FLAGS variable, or
14525    # (2) before a word containing "conftest.", or (3) at the end.
14526    # Note that $ac_compile itself does not contain backslashes and begins
14527    # with a dollar sign (not a hyphen), so the echo should work correctly.
14528    # The option is referenced via a variable to avoid confusing sed.
14529    lt_compile=`echo "$ac_compile" | $SED \
14530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532    -e 's:$: $lt_compiler_flag:'`
14533    (eval echo "\"\$as_me:14533: $lt_compile\"" >&5)
14534    (eval "$lt_compile" 2>conftest.err)
14535    ac_status=$?
14536    cat conftest.err >&5
14537    echo "$as_me:14537: \$? = $ac_status" >&5
14538    if (exit $ac_status) && test -s "$ac_outfile"; then
14539      # The compiler can only warn and ignore the option if not recognized
14540      # So say no if there are warnings other than the usual output.
14541      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14542      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14543      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14544        lt_cv_prog_compiler_pic_works_CXX=yes
14545      fi
14546    fi
14547    $RM conftest*
14548
14549 fi
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14551 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14552
14553 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14554     case $lt_prog_compiler_pic_CXX in
14555      "" | " "*) ;;
14556      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14557      esac
14558 else
14559     lt_prog_compiler_pic_CXX=
14560      lt_prog_compiler_can_build_shared_CXX=no
14561 fi
14562
14563 fi
14564
14565
14566
14567 #
14568 # Check to make sure the static flag actually works.
14569 #
14570 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14572 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14573 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14574   $as_echo_n "(cached) " >&6
14575 else
14576   lt_cv_prog_compiler_static_works_CXX=no
14577    save_LDFLAGS="$LDFLAGS"
14578    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14579    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14580    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14581      # The linker can only warn and ignore the option if not recognized
14582      # So say no if there are warnings
14583      if test -s conftest.err; then
14584        # Append any errors to the config.log.
14585        cat conftest.err 1>&5
14586        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14587        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14588        if diff conftest.exp conftest.er2 >/dev/null; then
14589          lt_cv_prog_compiler_static_works_CXX=yes
14590        fi
14591      else
14592        lt_cv_prog_compiler_static_works_CXX=yes
14593      fi
14594    fi
14595    $RM -r conftest*
14596    LDFLAGS="$save_LDFLAGS"
14597
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14600 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14601
14602 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14603     :
14604 else
14605     lt_prog_compiler_static_CXX=
14606 fi
14607
14608
14609
14610
14611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14612 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14613 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14614   $as_echo_n "(cached) " >&6
14615 else
14616   lt_cv_prog_compiler_c_o_CXX=no
14617    $RM -r conftest 2>/dev/null
14618    mkdir conftest
14619    cd conftest
14620    mkdir out
14621    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14622
14623    lt_compiler_flag="-o out/conftest2.$ac_objext"
14624    # Insert the option either (1) after the last *FLAGS variable, or
14625    # (2) before a word containing "conftest.", or (3) at the end.
14626    # Note that $ac_compile itself does not contain backslashes and begins
14627    # with a dollar sign (not a hyphen), so the echo should work correctly.
14628    lt_compile=`echo "$ac_compile" | $SED \
14629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631    -e 's:$: $lt_compiler_flag:'`
14632    (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633    (eval "$lt_compile" 2>out/conftest.err)
14634    ac_status=$?
14635    cat out/conftest.err >&5
14636    echo "$as_me:14636: \$? = $ac_status" >&5
14637    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14638    then
14639      # The compiler can only warn and ignore the option if not recognized
14640      # So say no if there are warnings
14641      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14642      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14643      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14644        lt_cv_prog_compiler_c_o_CXX=yes
14645      fi
14646    fi
14647    chmod u+w . 2>&5
14648    $RM conftest*
14649    # SGI C++ compiler will create directory out/ii_files/ for
14650    # template instantiation
14651    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14652    $RM out/* && rmdir out
14653    cd ..
14654    $RM -r conftest
14655    $RM conftest*
14656
14657 fi
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14659 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14660
14661
14662
14663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14665 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14666   $as_echo_n "(cached) " >&6
14667 else
14668   lt_cv_prog_compiler_c_o_CXX=no
14669    $RM -r conftest 2>/dev/null
14670    mkdir conftest
14671    cd conftest
14672    mkdir out
14673    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14674
14675    lt_compiler_flag="-o out/conftest2.$ac_objext"
14676    # Insert the option either (1) after the last *FLAGS variable, or
14677    # (2) before a word containing "conftest.", or (3) at the end.
14678    # Note that $ac_compile itself does not contain backslashes and begins
14679    # with a dollar sign (not a hyphen), so the echo should work correctly.
14680    lt_compile=`echo "$ac_compile" | $SED \
14681    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14682    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14683    -e 's:$: $lt_compiler_flag:'`
14684    (eval echo "\"\$as_me:14684: $lt_compile\"" >&5)
14685    (eval "$lt_compile" 2>out/conftest.err)
14686    ac_status=$?
14687    cat out/conftest.err >&5
14688    echo "$as_me:14688: \$? = $ac_status" >&5
14689    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14690    then
14691      # The compiler can only warn and ignore the option if not recognized
14692      # So say no if there are warnings
14693      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14694      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14695      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14696        lt_cv_prog_compiler_c_o_CXX=yes
14697      fi
14698    fi
14699    chmod u+w . 2>&5
14700    $RM conftest*
14701    # SGI C++ compiler will create directory out/ii_files/ for
14702    # template instantiation
14703    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14704    $RM out/* && rmdir out
14705    cd ..
14706    $RM -r conftest
14707    $RM conftest*
14708
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14711 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14712
14713
14714
14715
14716 hard_links="nottested"
14717 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14718   # do not overwrite the value of need_locks provided by the user
14719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14720 $as_echo_n "checking if we can lock with hard links... " >&6; }
14721   hard_links=yes
14722   $RM conftest*
14723   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14724   touch conftest.a
14725   ln conftest.a conftest.b 2>&5 || hard_links=no
14726   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14728 $as_echo "$hard_links" >&6; }
14729   if test "$hard_links" = no; then
14730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14731 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14732     need_locks=warn
14733   fi
14734 else
14735   need_locks=no
14736 fi
14737
14738
14739
14740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14742
14743   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14744   case $host_os in
14745   aix[4-9]*)
14746     # If we're using GNU nm, then we don't want the "-C" option.
14747     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14748     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14749       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'
14750     else
14751       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'
14752     fi
14753     ;;
14754   pw32*)
14755     export_symbols_cmds_CXX="$ltdll_cmds"
14756   ;;
14757   cygwin* | mingw* | cegcc*)
14758     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'
14759   ;;
14760   *)
14761     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14762   ;;
14763   esac
14764   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14765
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14767 $as_echo "$ld_shlibs_CXX" >&6; }
14768 test "$ld_shlibs_CXX" = no && can_build_shared=no
14769
14770 with_gnu_ld_CXX=$with_gnu_ld
14771
14772
14773
14774
14775
14776
14777 #
14778 # Do we need to explicitly link libc?
14779 #
14780 case "x$archive_cmds_need_lc_CXX" in
14781 x|xyes)
14782   # Assume -lc should be added
14783   archive_cmds_need_lc_CXX=yes
14784
14785   if test "$enable_shared" = yes && test "$GCC" = yes; then
14786     case $archive_cmds_CXX in
14787     *'~'*)
14788       # FIXME: we may have to deal with multi-command sequences.
14789       ;;
14790     '$CC '*)
14791       # Test whether the compiler implicitly links with -lc since on some
14792       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14793       # to ld, don't add -lc before -lgcc.
14794       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14795 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14796       $RM conftest*
14797       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14798
14799       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14800   (eval $ac_compile) 2>&5
14801   ac_status=$?
14802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14803   test $ac_status = 0; } 2>conftest.err; then
14804         soname=conftest
14805         lib=conftest
14806         libobjs=conftest.$ac_objext
14807         deplibs=
14808         wl=$lt_prog_compiler_wl_CXX
14809         pic_flag=$lt_prog_compiler_pic_CXX
14810         compiler_flags=-v
14811         linker_flags=-v
14812         verstring=
14813         output_objdir=.
14814         libname=conftest
14815         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14816         allow_undefined_flag_CXX=
14817         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14818   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14819   ac_status=$?
14820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14821   test $ac_status = 0; }
14822         then
14823           archive_cmds_need_lc_CXX=no
14824         else
14825           archive_cmds_need_lc_CXX=yes
14826         fi
14827         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14828       else
14829         cat conftest.err 1>&5
14830       fi
14831       $RM conftest*
14832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14833 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14834       ;;
14835     esac
14836   fi
14837   ;;
14838 esac
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14904 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14905
14906 library_names_spec=
14907 libname_spec='lib$name'
14908 soname_spec=
14909 shrext_cmds=".so"
14910 postinstall_cmds=
14911 postuninstall_cmds=
14912 finish_cmds=
14913 finish_eval=
14914 shlibpath_var=
14915 shlibpath_overrides_runpath=unknown
14916 version_type=none
14917 dynamic_linker="$host_os ld.so"
14918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14919 need_lib_prefix=unknown
14920 hardcode_into_libs=no
14921
14922 # when you set need_version to no, make sure it does not cause -set_version
14923 # flags to be left without arguments
14924 need_version=unknown
14925
14926 case $host_os in
14927 aix3*)
14928   version_type=linux
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14930   shlibpath_var=LIBPATH
14931
14932   # AIX 3 has no versioning support, so we append a major version to the name.
14933   soname_spec='${libname}${release}${shared_ext}$major'
14934   ;;
14935
14936 aix[4-9]*)
14937   version_type=linux
14938   need_lib_prefix=no
14939   need_version=no
14940   hardcode_into_libs=yes
14941   if test "$host_cpu" = ia64; then
14942     # AIX 5 supports IA64
14943     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14944     shlibpath_var=LD_LIBRARY_PATH
14945   else
14946     # With GCC up to 2.95.x, collect2 would create an import file
14947     # for dependence libraries.  The import file would start with
14948     # the line `#! .'.  This would cause the generated library to
14949     # depend on `.', always an invalid library.  This was fixed in
14950     # development snapshots of GCC prior to 3.0.
14951     case $host_os in
14952       aix4 | aix4.[01] | aix4.[01].*)
14953       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14954            echo ' yes '
14955            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14956         :
14957       else
14958         can_build_shared=no
14959       fi
14960       ;;
14961     esac
14962     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14963     # soname into executable. Probably we can add versioning support to
14964     # collect2, so additional links can be useful in future.
14965     if test "$aix_use_runtimelinking" = yes; then
14966       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14967       # instead of lib<name>.a to let people know that these are not
14968       # typical AIX shared libraries.
14969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970     else
14971       # We preserve .a as extension for shared libraries through AIX4.2
14972       # and later when we are not doing run time linking.
14973       library_names_spec='${libname}${release}.a $libname.a'
14974       soname_spec='${libname}${release}${shared_ext}$major'
14975     fi
14976     shlibpath_var=LIBPATH
14977   fi
14978   ;;
14979
14980 amigaos*)
14981   case $host_cpu in
14982   powerpc)
14983     # Since July 2007 AmigaOS4 officially supports .so libraries.
14984     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986     ;;
14987   m68k)
14988     library_names_spec='$libname.ixlibrary $libname.a'
14989     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14990     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'
14991     ;;
14992   esac
14993   ;;
14994
14995 beos*)
14996   library_names_spec='${libname}${shared_ext}'
14997   dynamic_linker="$host_os ld.so"
14998   shlibpath_var=LIBRARY_PATH
14999   ;;
15000
15001 bsdi[45]*)
15002   version_type=linux
15003   need_version=no
15004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005   soname_spec='${libname}${release}${shared_ext}$major'
15006   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15007   shlibpath_var=LD_LIBRARY_PATH
15008   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15009   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15010   # the default ld.so.conf also contains /usr/contrib/lib and
15011   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15012   # libtool to hard-code these into programs
15013   ;;
15014
15015 cygwin* | mingw* | pw32* | cegcc*)
15016   version_type=windows
15017   shrext_cmds=".dll"
15018   need_version=no
15019   need_lib_prefix=no
15020
15021   case $GCC,$host_os in
15022   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15023     library_names_spec='$libname.dll.a'
15024     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15025     postinstall_cmds='base_file=`basename \${file}`~
15026       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15027       dldir=$destdir/`dirname \$dlpath`~
15028       test -d \$dldir || mkdir -p \$dldir~
15029       $install_prog $dir/$dlname \$dldir/$dlname~
15030       chmod a+x \$dldir/$dlname~
15031       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15032         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15033       fi'
15034     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15035       dlpath=$dir/\$dldll~
15036        $RM \$dlpath'
15037     shlibpath_overrides_runpath=yes
15038
15039     case $host_os in
15040     cygwin*)
15041       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15042       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15043       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15044       ;;
15045     mingw* | cegcc*)
15046       # MinGW DLLs use traditional 'lib' prefix
15047       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15048       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15049       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15050         # It is most probably a Windows format PATH printed by
15051         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15052         # path with ; separators, and with drive letters. We can handle the
15053         # drive letters (cygwin fileutils understands them), so leave them,
15054         # especially as we might pass files found there to a mingw objdump,
15055         # which wouldn't understand a cygwinified path. Ahh.
15056         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15057       else
15058         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15059       fi
15060       ;;
15061     pw32*)
15062       # pw32 DLLs use 'pw' prefix rather than 'lib'
15063       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15064       ;;
15065     esac
15066     ;;
15067
15068   *)
15069     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15070     ;;
15071   esac
15072   dynamic_linker='Win32 ld.exe'
15073   # FIXME: first we should search . and the directory the executable is in
15074   shlibpath_var=PATH
15075   ;;
15076
15077 darwin* | rhapsody*)
15078   dynamic_linker="$host_os dyld"
15079   version_type=darwin
15080   need_lib_prefix=no
15081   need_version=no
15082   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15083   soname_spec='${libname}${release}${major}$shared_ext'
15084   shlibpath_overrides_runpath=yes
15085   shlibpath_var=DYLD_LIBRARY_PATH
15086   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15087
15088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15089   ;;
15090
15091 dgux*)
15092   version_type=linux
15093   need_lib_prefix=no
15094   need_version=no
15095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15096   soname_spec='${libname}${release}${shared_ext}$major'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   ;;
15099
15100 freebsd1*)
15101   dynamic_linker=no
15102   ;;
15103
15104 freebsd* | dragonfly*)
15105   # DragonFly does not have aout.  When/if they implement a new
15106   # versioning mechanism, adjust this.
15107   if test -x /usr/bin/objformat; then
15108     objformat=`/usr/bin/objformat`
15109   else
15110     case $host_os in
15111     freebsd[123]*) objformat=aout ;;
15112     *) objformat=elf ;;
15113     esac
15114   fi
15115   version_type=freebsd-$objformat
15116   case $version_type in
15117     freebsd-elf*)
15118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15119       need_version=no
15120       need_lib_prefix=no
15121       ;;
15122     freebsd-*)
15123       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15124       need_version=yes
15125       ;;
15126   esac
15127   shlibpath_var=LD_LIBRARY_PATH
15128   case $host_os in
15129   freebsd2*)
15130     shlibpath_overrides_runpath=yes
15131     ;;
15132   freebsd3.[01]* | freebsdelf3.[01]*)
15133     shlibpath_overrides_runpath=yes
15134     hardcode_into_libs=yes
15135     ;;
15136   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15137   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15138     shlibpath_overrides_runpath=no
15139     hardcode_into_libs=yes
15140     ;;
15141   *) # from 4.6 on, and DragonFly
15142     shlibpath_overrides_runpath=yes
15143     hardcode_into_libs=yes
15144     ;;
15145   esac
15146   ;;
15147
15148 gnu*)
15149   version_type=linux
15150   need_lib_prefix=no
15151   need_version=no
15152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15153   soname_spec='${libname}${release}${shared_ext}$major'
15154   shlibpath_var=LD_LIBRARY_PATH
15155   hardcode_into_libs=yes
15156   ;;
15157
15158 hpux9* | hpux10* | hpux11*)
15159   # Give a soname corresponding to the major version so that dld.sl refuses to
15160   # link against other versions.
15161   version_type=sunos
15162   need_lib_prefix=no
15163   need_version=no
15164   case $host_cpu in
15165   ia64*)
15166     shrext_cmds='.so'
15167     hardcode_into_libs=yes
15168     dynamic_linker="$host_os dld.so"
15169     shlibpath_var=LD_LIBRARY_PATH
15170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172     soname_spec='${libname}${release}${shared_ext}$major'
15173     if test "X$HPUX_IA64_MODE" = X32; then
15174       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15175     else
15176       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15177     fi
15178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15179     ;;
15180   hppa*64*)
15181     shrext_cmds='.sl'
15182     hardcode_into_libs=yes
15183     dynamic_linker="$host_os dld.sl"
15184     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15185     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187     soname_spec='${libname}${release}${shared_ext}$major'
15188     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15189     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15190     ;;
15191   *)
15192     shrext_cmds='.sl'
15193     dynamic_linker="$host_os dld.sl"
15194     shlibpath_var=SHLIB_PATH
15195     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197     soname_spec='${libname}${release}${shared_ext}$major'
15198     ;;
15199   esac
15200   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15201   postinstall_cmds='chmod 555 $lib'
15202   ;;
15203
15204 interix[3-9]*)
15205   version_type=linux
15206   need_lib_prefix=no
15207   need_version=no
15208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15209   soname_spec='${libname}${release}${shared_ext}$major'
15210   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15211   shlibpath_var=LD_LIBRARY_PATH
15212   shlibpath_overrides_runpath=no
15213   hardcode_into_libs=yes
15214   ;;
15215
15216 irix5* | irix6* | nonstopux*)
15217   case $host_os in
15218     nonstopux*) version_type=nonstopux ;;
15219     *)
15220         if test "$lt_cv_prog_gnu_ld" = yes; then
15221                 version_type=linux
15222         else
15223                 version_type=irix
15224         fi ;;
15225   esac
15226   need_lib_prefix=no
15227   need_version=no
15228   soname_spec='${libname}${release}${shared_ext}$major'
15229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15230   case $host_os in
15231   irix5* | nonstopux*)
15232     libsuff= shlibsuff=
15233     ;;
15234   *)
15235     case $LD in # libtool.m4 will add one of these switches to LD
15236     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15237       libsuff= shlibsuff= libmagic=32-bit;;
15238     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15239       libsuff=32 shlibsuff=N32 libmagic=N32;;
15240     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15241       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15242     *) libsuff= shlibsuff= libmagic=never-match;;
15243     esac
15244     ;;
15245   esac
15246   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15247   shlibpath_overrides_runpath=no
15248   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15249   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15250   hardcode_into_libs=yes
15251   ;;
15252
15253 # No shared lib support for Linux oldld, aout, or coff.
15254 linux*oldld* | linux*aout* | linux*coff*)
15255   dynamic_linker=no
15256   ;;
15257
15258 # This must be Linux ELF.
15259 linux* | k*bsd*-gnu)
15260   version_type=linux
15261   need_lib_prefix=no
15262   need_version=no
15263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264   soname_spec='${libname}${release}${shared_ext}$major'
15265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15266   shlibpath_var=LD_LIBRARY_PATH
15267   shlibpath_overrides_runpath=no
15268   # Some binutils ld are patched to set DT_RUNPATH
15269   save_LDFLAGS=$LDFLAGS
15270   save_libdir=$libdir
15271   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15272        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h.  */
15275
15276 int
15277 main ()
15278 {
15279
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 if ac_fn_cxx_try_link "$LINENO"; then :
15285   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15286   shlibpath_overrides_runpath=yes
15287 fi
15288 fi
15289 rm -f core conftest.err conftest.$ac_objext \
15290     conftest$ac_exeext conftest.$ac_ext
15291   LDFLAGS=$save_LDFLAGS
15292   libdir=$save_libdir
15293
15294   # This implies no fast_install, which is unacceptable.
15295   # Some rework will be needed to allow for fast_install
15296   # before this can be enabled.
15297   hardcode_into_libs=yes
15298
15299   # Append ld.so.conf contents to the search path
15300   if test -f /etc/ld.so.conf; then
15301     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' ' '`
15302     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15303   fi
15304
15305   # We used to test for /lib/ld.so.1 and disable shared libraries on
15306   # powerpc, because MkLinux only supported shared libraries with the
15307   # GNU dynamic linker.  Since this was broken with cross compilers,
15308   # most powerpc-linux boxes support dynamic linking these days and
15309   # people can always --disable-shared, the test was removed, and we
15310   # assume the GNU/Linux dynamic linker is in use.
15311   dynamic_linker='GNU/Linux ld.so'
15312   ;;
15313
15314 netbsd*)
15315   version_type=sunos
15316   need_lib_prefix=no
15317   need_version=no
15318   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15320     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15321     dynamic_linker='NetBSD (a.out) ld.so'
15322   else
15323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15324     soname_spec='${libname}${release}${shared_ext}$major'
15325     dynamic_linker='NetBSD ld.elf_so'
15326   fi
15327   shlibpath_var=LD_LIBRARY_PATH
15328   shlibpath_overrides_runpath=yes
15329   hardcode_into_libs=yes
15330   ;;
15331
15332 newsos6)
15333   version_type=linux
15334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335   shlibpath_var=LD_LIBRARY_PATH
15336   shlibpath_overrides_runpath=yes
15337   ;;
15338
15339 *nto* | *qnx*)
15340   version_type=qnx
15341   need_lib_prefix=no
15342   need_version=no
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344   soname_spec='${libname}${release}${shared_ext}$major'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   shlibpath_overrides_runpath=no
15347   hardcode_into_libs=yes
15348   dynamic_linker='ldqnx.so'
15349   ;;
15350
15351 openbsd*)
15352   version_type=sunos
15353   sys_lib_dlsearch_path_spec="/usr/lib"
15354   need_lib_prefix=no
15355   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15356   case $host_os in
15357     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15358     *)                          need_version=no  ;;
15359   esac
15360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15361   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15362   shlibpath_var=LD_LIBRARY_PATH
15363   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15364     case $host_os in
15365       openbsd2.[89] | openbsd2.[89].*)
15366         shlibpath_overrides_runpath=no
15367         ;;
15368       *)
15369         shlibpath_overrides_runpath=yes
15370         ;;
15371       esac
15372   else
15373     shlibpath_overrides_runpath=yes
15374   fi
15375   ;;
15376
15377 os2*)
15378   libname_spec='$name'
15379   shrext_cmds=".dll"
15380   need_lib_prefix=no
15381   library_names_spec='$libname${shared_ext} $libname.a'
15382   dynamic_linker='OS/2 ld.exe'
15383   shlibpath_var=LIBPATH
15384   ;;
15385
15386 osf3* | osf4* | osf5*)
15387   version_type=osf
15388   need_lib_prefix=no
15389   need_version=no
15390   soname_spec='${libname}${release}${shared_ext}$major'
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15394   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15395   ;;
15396
15397 rdos*)
15398   dynamic_linker=no
15399   ;;
15400
15401 solaris*)
15402   version_type=linux
15403   need_lib_prefix=no
15404   need_version=no
15405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406   soname_spec='${libname}${release}${shared_ext}$major'
15407   shlibpath_var=LD_LIBRARY_PATH
15408   shlibpath_overrides_runpath=yes
15409   hardcode_into_libs=yes
15410   # ldd complains unless libraries are executable
15411   postinstall_cmds='chmod +x $lib'
15412   ;;
15413
15414 sunos4*)
15415   version_type=sunos
15416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15417   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15418   shlibpath_var=LD_LIBRARY_PATH
15419   shlibpath_overrides_runpath=yes
15420   if test "$with_gnu_ld" = yes; then
15421     need_lib_prefix=no
15422   fi
15423   need_version=yes
15424   ;;
15425
15426 sysv4 | sysv4.3*)
15427   version_type=linux
15428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429   soname_spec='${libname}${release}${shared_ext}$major'
15430   shlibpath_var=LD_LIBRARY_PATH
15431   case $host_vendor in
15432     sni)
15433       shlibpath_overrides_runpath=no
15434       need_lib_prefix=no
15435       runpath_var=LD_RUN_PATH
15436       ;;
15437     siemens)
15438       need_lib_prefix=no
15439       ;;
15440     motorola)
15441       need_lib_prefix=no
15442       need_version=no
15443       shlibpath_overrides_runpath=no
15444       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15445       ;;
15446   esac
15447   ;;
15448
15449 sysv4*MP*)
15450   if test -d /usr/nec ;then
15451     version_type=linux
15452     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15453     soname_spec='$libname${shared_ext}.$major'
15454     shlibpath_var=LD_LIBRARY_PATH
15455   fi
15456   ;;
15457
15458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15459   version_type=freebsd-elf
15460   need_lib_prefix=no
15461   need_version=no
15462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15463   soname_spec='${libname}${release}${shared_ext}$major'
15464   shlibpath_var=LD_LIBRARY_PATH
15465   shlibpath_overrides_runpath=yes
15466   hardcode_into_libs=yes
15467   if test "$with_gnu_ld" = yes; then
15468     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15469   else
15470     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15471     case $host_os in
15472       sco3.2v5*)
15473         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15474         ;;
15475     esac
15476   fi
15477   sys_lib_dlsearch_path_spec='/usr/lib'
15478   ;;
15479
15480 tpf*)
15481   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15482   version_type=linux
15483   need_lib_prefix=no
15484   need_version=no
15485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486   shlibpath_var=LD_LIBRARY_PATH
15487   shlibpath_overrides_runpath=no
15488   hardcode_into_libs=yes
15489   ;;
15490
15491 uts4*)
15492   version_type=linux
15493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494   soname_spec='${libname}${release}${shared_ext}$major'
15495   shlibpath_var=LD_LIBRARY_PATH
15496   ;;
15497
15498 *)
15499   dynamic_linker=no
15500   ;;
15501 esac
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15503 $as_echo "$dynamic_linker" >&6; }
15504 test "$dynamic_linker" = no && can_build_shared=no
15505
15506 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15507 if test "$GCC" = yes; then
15508   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15509 fi
15510
15511 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15512   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15513 fi
15514 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15515   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15516 fi
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
15550
15551
15552
15553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15554 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15555 hardcode_action_CXX=
15556 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15557    test -n "$runpath_var_CXX" ||
15558    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15559
15560   # We can hardcode non-existent directories.
15561   if test "$hardcode_direct_CXX" != no &&
15562      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15563      # have to relink, otherwise we might link with an installed library
15564      # when we should be linking with a yet-to-be-installed one
15565      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15566      test "$hardcode_minus_L_CXX" != no; then
15567     # Linking always hardcodes the temporary library directory.
15568     hardcode_action_CXX=relink
15569   else
15570     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15571     hardcode_action_CXX=immediate
15572   fi
15573 else
15574   # We cannot hardcode anything, or else we can only hardcode existing
15575   # directories.
15576   hardcode_action_CXX=unsupported
15577 fi
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15579 $as_echo "$hardcode_action_CXX" >&6; }
15580
15581 if test "$hardcode_action_CXX" = relink ||
15582    test "$inherit_rpath_CXX" = yes; then
15583   # Fast installation is not supported
15584   enable_fast_install=no
15585 elif test "$shlibpath_overrides_runpath" = yes ||
15586      test "$enable_shared" = no; then
15587   # Fast installation is not necessary
15588   enable_fast_install=needless
15589 fi
15590
15591
15592
15593
15594
15595
15596
15597   fi # test -n "$compiler"
15598
15599   CC=$lt_save_CC
15600   LDCXX=$LD
15601   LD=$lt_save_LD
15602   GCC=$lt_save_GCC
15603   with_gnu_ld=$lt_save_with_gnu_ld
15604   lt_cv_path_LDCXX=$lt_cv_path_LD
15605   lt_cv_path_LD=$lt_save_path_LD
15606   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15607   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15608 fi # test "$_lt_caught_CXX_error" != yes
15609
15610 ac_ext=c
15611 ac_cpp='$CPP $CPPFLAGS'
15612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628         ac_config_commands="$ac_config_commands libtool"
15629
15630
15631
15632
15633 # Only expand once:
15634
15635
15636
15637
15638 if test x$use_libtool != xno; then
15639    DEFAULT_OBJECT_TYPE=".lo"
15640    DEFAULT_ARCHIVE_TYPE=".la"
15641    DEFAULT_SHARED_OBJECT_TYPE=".la"
15642    LIBTOOL="\$(LIBTOOL)"
15643    LIBTOOL_INSTALL_TARGET="libtool-install"
15644    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15645    LIBTOOL_CLEAN_TARGET="libtool-clean"
15646    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15647    FD_PLUGIN_DIR="src/plugins/fd"
15648    have_plugins=yes
15649 else
15650    DEFAULT_OBJECT_TYPE=".o"
15651    DEFAULT_ARCHIVE_TYPE=".a"
15652    DEFAULT_SHARED_OBJECT_TYPE=".so"
15653    LIBTOOL="# \$(LIBTOOL)"
15654    LIBTOOL_INSTALL_TARGET=""
15655    LIBTOOL_UNINSTALL_TARGET=""
15656    LIBTOOL_CLEAN_TARGET=""
15657    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15658    FD_PLUGIN_DIR=""
15659    have_plugins=no
15660 fi
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672 # Check whether --enable-includes was given.
15673 if test "${enable_includes+set}" = set; then :
15674   enableval=$enable_includes;
15675        if test x$enableval = xyes; then
15676           install_includes=yes
15677        fi
15678
15679
15680 fi
15681
15682
15683
15684 if test x$use_libtool != xno -a x$install_includes = xyes; then
15685    INCLUDE_INSTALL_TARGET="install-includes"
15686    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15687 else
15688    INCLUDE_INSTALL_TARGET=""
15689    INCLUDE_UNINSTALL_TARGET=""
15690 fi
15691
15692
15693
15694
15695
15696 case $host_os in
15697   *cygwin* ) CYGWIN=yes;;
15698          * ) CYGWIN=no;;
15699 esac
15700
15701 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15702 then
15703
15704
15705 if $TRUEPRG; then
15706   HAVE_SUN_OS_TRUE=
15707   HAVE_SUN_OS_FALSE='#'
15708 else
15709   HAVE_SUN_OS_TRUE='#'
15710   HAVE_SUN_OS_FALSE=
15711 fi
15712         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15713
15714 else
15715
15716
15717 if $FALSEPRG; then
15718   HAVE_SUN_OS_TRUE=
15719   HAVE_SUN_OS_FALSE='#'
15720 else
15721   HAVE_SUN_OS_TRUE='#'
15722   HAVE_SUN_OS_FALSE=
15723 fi
15724 fi
15725
15726 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15727 then
15728
15729
15730 if $TRUEPRG; then
15731   HAVE_OSF1_OS_TRUE=
15732   HAVE_OSF1_OS_FALSE='#'
15733 else
15734   HAVE_OSF1_OS_TRUE='#'
15735   HAVE_OSF1_OS_FALSE=
15736 fi
15737         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15738
15739 else
15740
15741
15742 if $FALSEPRG; then
15743   HAVE_OSF1_OS_TRUE=
15744   HAVE_OSF1_OS_FALSE='#'
15745 else
15746   HAVE_OSF1_OS_TRUE='#'
15747   HAVE_OSF1_OS_FALSE=
15748 fi
15749 fi
15750
15751 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15752 then
15753
15754
15755 if $TRUEPRG; then
15756   HAVE_AIX_OS_TRUE=
15757   HAVE_AIX_OS_FALSE='#'
15758 else
15759   HAVE_AIX_OS_TRUE='#'
15760   HAVE_AIX_OS_FALSE=
15761 fi
15762         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15763
15764 else
15765
15766
15767 if $FALSEPRG; then
15768   HAVE_AIX_OS_TRUE=
15769   HAVE_AIX_OS_FALSE='#'
15770 else
15771   HAVE_AIX_OS_TRUE='#'
15772   HAVE_AIX_OS_FALSE=
15773 fi
15774 fi
15775
15776 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15777 then
15778
15779
15780 if $TRUEPRG; then
15781   HAVE_HPUX_OS_TRUE=
15782   HAVE_HPUX_OS_FALSE='#'
15783 else
15784   HAVE_HPUX_OS_TRUE='#'
15785   HAVE_HPUX_OS_FALSE=
15786 fi
15787         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15788
15789 else
15790
15791
15792 if $FALSEPRG; then
15793   HAVE_HPUX_OS_TRUE=
15794   HAVE_HPUX_OS_FALSE='#'
15795 else
15796   HAVE_HPUX_OS_TRUE='#'
15797   HAVE_HPUX_OS_FALSE=
15798 fi
15799 fi
15800
15801 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15802 then
15803
15804
15805 if $TRUEPRG; then
15806   HAVE_LINUX_OS_TRUE=
15807   HAVE_LINUX_OS_FALSE='#'
15808 else
15809   HAVE_LINUX_OS_TRUE='#'
15810   HAVE_LINUX_OS_FALSE=
15811 fi
15812         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15813
15814 else
15815
15816
15817 if $FALSEPRG; then
15818   HAVE_LINUX_OS_TRUE=
15819   HAVE_LINUX_OS_FALSE='#'
15820 else
15821   HAVE_LINUX_OS_TRUE='#'
15822   HAVE_LINUX_OS_FALSE=
15823 fi
15824 fi
15825
15826 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15827 then
15828
15829
15830 if $TRUEPRG; then
15831   HAVE_FREEBSD_OS_TRUE=
15832   HAVE_FREEBSD_OS_FALSE='#'
15833 else
15834   HAVE_FREEBSD_OS_TRUE='#'
15835   HAVE_FREEBSD_OS_FALSE=
15836 fi
15837         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15838
15839 else
15840
15841
15842 if $FALSEPRG; then
15843   HAVE_FREEBSD_OS_TRUE=
15844   HAVE_FREEBSD_OS_FALSE='#'
15845 else
15846   HAVE_FREEBSD_OS_TRUE='#'
15847   HAVE_FREEBSD_OS_FALSE=
15848 fi
15849 fi
15850
15851 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15852 then
15853
15854
15855 if $TRUEPRG; then
15856   HAVE_NETBSD_OS_TRUE=
15857   HAVE_NETBSD_OS_FALSE='#'
15858 else
15859   HAVE_NETBSD_OS_TRUE='#'
15860   HAVE_NETBSD_OS_FALSE=
15861 fi
15862         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15863
15864 else
15865
15866
15867 if $FALSEPRG; then
15868   HAVE_NETBSD_OS_TRUE=
15869   HAVE_NETBSD_OS_FALSE='#'
15870 else
15871   HAVE_NETBSD_OS_TRUE='#'
15872   HAVE_NETBSD_OS_FALSE=
15873 fi
15874 fi
15875
15876 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15877 then
15878
15879
15880 if $TRUEPRG; then
15881   HAVE_OPENBSD_OS_TRUE=
15882   HAVE_OPENBSD_OS_FALSE='#'
15883 else
15884   HAVE_OPENBSD_OS_TRUE='#'
15885   HAVE_OPENBSD_OS_FALSE=
15886 fi
15887         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15888
15889 else
15890
15891
15892 if $FALSEPRG; then
15893   HAVE_OPENBSD_OS_TRUE=
15894   HAVE_OPENBSD_OS_FALSE='#'
15895 else
15896   HAVE_OPENBSD_OS_TRUE='#'
15897   HAVE_OPENBSD_OS_FALSE=
15898 fi
15899 fi
15900
15901 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15902 then
15903
15904
15905 if $TRUEPRG; then
15906   HAVE_BSDI_OS_TRUE=
15907   HAVE_BSDI_OS_FALSE='#'
15908 else
15909   HAVE_BSDI_OS_TRUE='#'
15910   HAVE_BSDI_OS_FALSE=
15911 fi
15912         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15913
15914 else
15915
15916
15917 if $FALSEPRG; then
15918   HAVE_BSDI_OS_TRUE=
15919   HAVE_BSDI_OS_FALSE='#'
15920 else
15921   HAVE_BSDI_OS_TRUE='#'
15922   HAVE_BSDI_OS_FALSE=
15923 fi
15924 fi
15925
15926 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15927 then
15928
15929
15930 if $TRUEPRG; then
15931   HAVE_SGI_OS_TRUE=
15932   HAVE_SGI_OS_FALSE='#'
15933 else
15934   HAVE_SGI_OS_TRUE='#'
15935   HAVE_SGI_OS_FALSE=
15936 fi
15937         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15938
15939 else
15940
15941
15942 if $FALSEPRG; then
15943   HAVE_SGI_OS_TRUE=
15944   HAVE_SGI_OS_FALSE='#'
15945 else
15946   HAVE_SGI_OS_TRUE='#'
15947   HAVE_SGI_OS_FALSE=
15948 fi
15949 fi
15950
15951 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15952 then
15953
15954
15955 if $TRUEPRG; then
15956   HAVE_IRIX_OS_TRUE=
15957   HAVE_IRIX_OS_FALSE='#'
15958 else
15959   HAVE_IRIX_OS_TRUE='#'
15960   HAVE_IRIX_OS_FALSE=
15961 fi
15962         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15963
15964 else
15965
15966
15967 if $FALSEPRG; then
15968   HAVE_IRIX_OS_TRUE=
15969   HAVE_IRIX_OS_FALSE='#'
15970 else
15971   HAVE_IRIX_OS_TRUE='#'
15972   HAVE_IRIX_OS_FALSE=
15973 fi
15974 fi
15975
15976 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15977 then
15978
15979
15980 if $TRUEPRG; then
15981   HAVE_DARWIN_OS_TRUE=
15982   HAVE_DARWIN_OS_FALSE='#'
15983 else
15984   HAVE_DARWIN_OS_TRUE='#'
15985   HAVE_DARWIN_OS_FALSE=
15986 fi
15987     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15988
15989 else
15990
15991
15992 if $FALSEPRG; then
15993   HAVE_DARWIN_OS_TRUE=
15994   HAVE_DARWIN_OS_FALSE='#'
15995 else
15996   HAVE_DARWIN_OS_TRUE='#'
15997   HAVE_DARWIN_OS_FALSE=
15998 fi
15999 fi
16000
16001
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16003 $as_echo_n "checking for Operating System Distribution... " >&6; }
16004 if test "x$DISTNAME" != "x"
16005 then
16006         echo "distname set to $DISTNAME"
16007 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16008 then
16009         DISTNAME=alpha
16010 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16011 then
16012         DISTNAME=aix
16013 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16014 then
16015         DISTNAME=hpux
16016 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16017 then
16018         DISTNAME=solaris
16019 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16020 then
16021         DISTNAME=freebsd
16022 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16023 then
16024         DISTNAME=netbsd
16025 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16026 then
16027         DISTNAME=openbsd
16028 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16029 then
16030         DISTNAME=irix
16031 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16032 then
16033         DISTNAME=bsdi
16034 elif test -f /etc/SuSE-release
16035 then
16036         DISTNAME=suse
16037 elif test -d /etc/SuSEconfig
16038 then
16039         DISTNAME=suse5
16040 elif test -f /etc/mandrake-release
16041 then
16042         DISTNAME=mandrake
16043 elif test -f /etc/whitebox-release
16044 then
16045        DISTNAME=redhat
16046 elif test -f /etc/redhat-release
16047 then
16048         DISTNAME=redhat
16049 elif test -f /etc/gentoo-release
16050 then
16051         DISTNAME=gentoo
16052 elif test -f /etc/debian_version
16053 then
16054         DISTNAME=debian
16055 elif test -f /etc/slackware-version
16056 then
16057         DISTNAME=slackware
16058 elif test x$host_vendor = xapple
16059 then
16060     DISTNAME=osx
16061 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16062 then
16063     DISTNAME=darwin
16064 elif test -f /etc/engarde-version
16065 then
16066         DISTNAME=engarde
16067 elif test -f /etc/arch-release
16068 then
16069         DISTNAME=archlinux
16070 elif test "$CYGWIN" = yes
16071 then
16072         DISTNAME=cygwin
16073         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16074
16075 else
16076         DISTNAME=unknown
16077 fi
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16079 $as_echo "done" >&6; }
16080
16081
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16083 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16084 set x ${MAKE-make}
16085 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16086 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16087   $as_echo_n "(cached) " >&6
16088 else
16089   cat >conftest.make <<\_ACEOF
16090 SHELL = /bin/sh
16091 all:
16092         @echo '@@@%%%=$(MAKE)=@@@%%%'
16093 _ACEOF
16094 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16096   *@@@%%%=?*=@@@%%%*)
16097     eval ac_cv_prog_make_${ac_make}_set=yes;;
16098   *)
16099     eval ac_cv_prog_make_${ac_make}_set=no;;
16100 esac
16101 rm -f conftest.make
16102 fi
16103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105 $as_echo "yes" >&6; }
16106   SET_MAKE=
16107 else
16108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16110   SET_MAKE="MAKE=${MAKE-make}"
16111 fi
16112
16113
16114
16115         MKINSTALLDIRS=
16116   if test -n "$ac_aux_dir"; then
16117     case "$ac_aux_dir" in
16118       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16119       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16120     esac
16121   fi
16122   if test -z "$MKINSTALLDIRS"; then
16123     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16124   fi
16125
16126
16127
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16129 $as_echo_n "checking whether NLS is requested... " >&6; }
16130     # Check whether --enable-nls was given.
16131 if test "${enable_nls+set}" = set; then :
16132   enableval=$enable_nls; USE_NLS=$enableval
16133 else
16134   USE_NLS=yes
16135 fi
16136
16137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16138 $as_echo "$USE_NLS" >&6; }
16139
16140
16141
16142
16143
16144
16145 # Prepare PATH_SEPARATOR.
16146 # The user is always right.
16147 if test "${PATH_SEPARATOR+set}" != set; then
16148   echo "#! /bin/sh" >conf$$.sh
16149   echo  "exit 0"   >>conf$$.sh
16150   chmod +x conf$$.sh
16151   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16152     PATH_SEPARATOR=';'
16153   else
16154     PATH_SEPARATOR=:
16155   fi
16156   rm -f conf$$.sh
16157 fi
16158
16159 # Find out how to test for executable files. Don't use a zero-byte file,
16160 # as systems may use methods other than mode bits to determine executability.
16161 cat >conf$$.file <<_ASEOF
16162 #! /bin/sh
16163 exit 0
16164 _ASEOF
16165 chmod +x conf$$.file
16166 if test -x conf$$.file >/dev/null 2>&1; then
16167   ac_executable_p="test -x"
16168 else
16169   ac_executable_p="test -f"
16170 fi
16171 rm -f conf$$.file
16172
16173 # Extract the first word of "msgfmt", so it can be a program name with args.
16174 set dummy msgfmt; ac_word=$2
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16176 $as_echo_n "checking for $ac_word... " >&6; }
16177 if ${ac_cv_path_MSGFMT+:} false; then :
16178   $as_echo_n "(cached) " >&6
16179 else
16180   case "$MSGFMT" in
16181   [\\/]* | ?:[\\/]*)
16182     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16183     ;;
16184   *)
16185     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16186     for ac_dir in $PATH; do
16187       IFS="$ac_save_IFS"
16188       test -z "$ac_dir" && ac_dir=.
16189       for ac_exec_ext in '' $ac_executable_extensions; do
16190         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16191           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16192           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16193      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16194             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16195             break 2
16196           fi
16197         fi
16198       done
16199     done
16200     IFS="$ac_save_IFS"
16201   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16202     ;;
16203 esac
16204 fi
16205 MSGFMT="$ac_cv_path_MSGFMT"
16206 if test "$MSGFMT" != ":"; then
16207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16208 $as_echo "$MSGFMT" >&6; }
16209 else
16210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211 $as_echo "no" >&6; }
16212 fi
16213
16214   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16215 set dummy gmsgfmt; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_path_GMSGFMT+:} false; then :
16219   $as_echo_n "(cached) " >&6
16220 else
16221   case $GMSGFMT in
16222   [\\/]* | ?:[\\/]*)
16223   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16224   ;;
16225   *)
16226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16227 for as_dir in $PATH
16228 do
16229   IFS=$as_save_IFS
16230   test -z "$as_dir" && as_dir=.
16231     for ac_exec_ext in '' $ac_executable_extensions; do
16232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16233     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16235     break 2
16236   fi
16237 done
16238   done
16239 IFS=$as_save_IFS
16240
16241   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16242   ;;
16243 esac
16244 fi
16245 GMSGFMT=$ac_cv_path_GMSGFMT
16246 if test -n "$GMSGFMT"; then
16247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16248 $as_echo "$GMSGFMT" >&6; }
16249 else
16250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251 $as_echo "no" >&6; }
16252 fi
16253
16254
16255
16256
16257 # Prepare PATH_SEPARATOR.
16258 # The user is always right.
16259 if test "${PATH_SEPARATOR+set}" != set; then
16260   echo "#! /bin/sh" >conf$$.sh
16261   echo  "exit 0"   >>conf$$.sh
16262   chmod +x conf$$.sh
16263   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16264     PATH_SEPARATOR=';'
16265   else
16266     PATH_SEPARATOR=:
16267   fi
16268   rm -f conf$$.sh
16269 fi
16270
16271 # Find out how to test for executable files. Don't use a zero-byte file,
16272 # as systems may use methods other than mode bits to determine executability.
16273 cat >conf$$.file <<_ASEOF
16274 #! /bin/sh
16275 exit 0
16276 _ASEOF
16277 chmod +x conf$$.file
16278 if test -x conf$$.file >/dev/null 2>&1; then
16279   ac_executable_p="test -x"
16280 else
16281   ac_executable_p="test -f"
16282 fi
16283 rm -f conf$$.file
16284
16285 # Extract the first word of "xgettext", so it can be a program name with args.
16286 set dummy xgettext; ac_word=$2
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16288 $as_echo_n "checking for $ac_word... " >&6; }
16289 if ${ac_cv_path_XGETTEXT+:} false; then :
16290   $as_echo_n "(cached) " >&6
16291 else
16292   case "$XGETTEXT" in
16293   [\\/]* | ?:[\\/]*)
16294     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16295     ;;
16296   *)
16297     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16298     for ac_dir in $PATH; do
16299       IFS="$ac_save_IFS"
16300       test -z "$ac_dir" && ac_dir=.
16301       for ac_exec_ext in '' $ac_executable_extensions; do
16302         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16303           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16304           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16305      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16306             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16307             break 2
16308           fi
16309         fi
16310       done
16311     done
16312     IFS="$ac_save_IFS"
16313   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16314     ;;
16315 esac
16316 fi
16317 XGETTEXT="$ac_cv_path_XGETTEXT"
16318 if test "$XGETTEXT" != ":"; then
16319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16320 $as_echo "$XGETTEXT" >&6; }
16321 else
16322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16324 fi
16325
16326     rm -f messages.po
16327
16328
16329 # Prepare PATH_SEPARATOR.
16330 # The user is always right.
16331 if test "${PATH_SEPARATOR+set}" != set; then
16332   echo "#! /bin/sh" >conf$$.sh
16333   echo  "exit 0"   >>conf$$.sh
16334   chmod +x conf$$.sh
16335   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16336     PATH_SEPARATOR=';'
16337   else
16338     PATH_SEPARATOR=:
16339   fi
16340   rm -f conf$$.sh
16341 fi
16342
16343 # Find out how to test for executable files. Don't use a zero-byte file,
16344 # as systems may use methods other than mode bits to determine executability.
16345 cat >conf$$.file <<_ASEOF
16346 #! /bin/sh
16347 exit 0
16348 _ASEOF
16349 chmod +x conf$$.file
16350 if test -x conf$$.file >/dev/null 2>&1; then
16351   ac_executable_p="test -x"
16352 else
16353   ac_executable_p="test -f"
16354 fi
16355 rm -f conf$$.file
16356
16357 # Extract the first word of "msgmerge", so it can be a program name with args.
16358 set dummy msgmerge; ac_word=$2
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16360 $as_echo_n "checking for $ac_word... " >&6; }
16361 if ${ac_cv_path_MSGMERGE+:} false; then :
16362   $as_echo_n "(cached) " >&6
16363 else
16364   case "$MSGMERGE" in
16365   [\\/]* | ?:[\\/]*)
16366     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16367     ;;
16368   *)
16369     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16370     for ac_dir in $PATH; do
16371       IFS="$ac_save_IFS"
16372       test -z "$ac_dir" && ac_dir=.
16373       for ac_exec_ext in '' $ac_executable_extensions; do
16374         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16375           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16376           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16377             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16378             break 2
16379           fi
16380         fi
16381       done
16382     done
16383     IFS="$ac_save_IFS"
16384   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16385     ;;
16386 esac
16387 fi
16388 MSGMERGE="$ac_cv_path_MSGMERGE"
16389 if test "$MSGMERGE" != ":"; then
16390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16391 $as_echo "$MSGMERGE" >&6; }
16392 else
16393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16394 $as_echo "no" >&6; }
16395 fi
16396
16397
16398       if test "$GMSGFMT" != ":"; then
16399             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16400        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16401       : ;
16402     else
16403       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16405 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16406       GMSGFMT=":"
16407     fi
16408   fi
16409
16410       if test "$XGETTEXT" != ":"; then
16411             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16412        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16413       : ;
16414     else
16415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16416 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16417       XGETTEXT=":"
16418     fi
16419         rm -f messages.po
16420   fi
16421
16422   ac_config_commands="$ac_config_commands default-1"
16423
16424
16425
16426       if test "X$prefix" = "XNONE"; then
16427     acl_final_prefix="$ac_default_prefix"
16428   else
16429     acl_final_prefix="$prefix"
16430   fi
16431   if test "X$exec_prefix" = "XNONE"; then
16432     acl_final_exec_prefix='${prefix}'
16433   else
16434     acl_final_exec_prefix="$exec_prefix"
16435   fi
16436   acl_save_prefix="$prefix"
16437   prefix="$acl_final_prefix"
16438   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16439   prefix="$acl_save_prefix"
16440
16441
16442 # Check whether --with-gnu-ld was given.
16443 if test "${with_gnu_ld+set}" = set; then :
16444   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16445 else
16446   with_gnu_ld=no
16447 fi
16448
16449 # Prepare PATH_SEPARATOR.
16450 # The user is always right.
16451 if test "${PATH_SEPARATOR+set}" != set; then
16452   echo "#! /bin/sh" >conf$$.sh
16453   echo  "exit 0"   >>conf$$.sh
16454   chmod +x conf$$.sh
16455   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16456     PATH_SEPARATOR=';'
16457   else
16458     PATH_SEPARATOR=:
16459   fi
16460   rm -f conf$$.sh
16461 fi
16462 ac_prog=ld
16463 if test "$GCC" = yes; then
16464   # Check if gcc -print-prog-name=ld gives a path.
16465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16466 $as_echo_n "checking for ld used by GCC... " >&6; }
16467   case $host in
16468   *-*-mingw*)
16469     # gcc leaves a trailing carriage return which upsets mingw
16470     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16471   *)
16472     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16473   esac
16474   case $ac_prog in
16475     # Accept absolute paths.
16476     [\\/]* | [A-Za-z]:[\\/]*)
16477       re_direlt='/[^/][^/]*/\.\./'
16478       # Canonicalize the path of ld
16479       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16480       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16481         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16482       done
16483       test -z "$LD" && LD="$ac_prog"
16484       ;;
16485   "")
16486     # If it fails, then pretend we aren't using GCC.
16487     ac_prog=ld
16488     ;;
16489   *)
16490     # If it is relative, then search for the first ld in PATH.
16491     with_gnu_ld=unknown
16492     ;;
16493   esac
16494 elif test "$with_gnu_ld" = yes; then
16495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16496 $as_echo_n "checking for GNU ld... " >&6; }
16497 else
16498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16499 $as_echo_n "checking for non-GNU ld... " >&6; }
16500 fi
16501 if ${acl_cv_path_LD+:} false; then :
16502   $as_echo_n "(cached) " >&6
16503 else
16504   if test -z "$LD"; then
16505   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16506   for ac_dir in $PATH; do
16507     test -z "$ac_dir" && ac_dir=.
16508     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16509       acl_cv_path_LD="$ac_dir/$ac_prog"
16510       # Check to see if the program is GNU ld.  I'd rather use --version,
16511       # but apparently some GNU ld's only accept -v.
16512       # Break only if it was the GNU/non-GNU ld that we prefer.
16513       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16514       *GNU* | *'with BFD'*)
16515         test "$with_gnu_ld" != no && break ;;
16516       *)
16517         test "$with_gnu_ld" != yes && break ;;
16518       esac
16519     fi
16520   done
16521   IFS="$ac_save_ifs"
16522 else
16523   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16524 fi
16525 fi
16526
16527 LD="$acl_cv_path_LD"
16528 if test -n "$LD"; then
16529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16530 $as_echo "$LD" >&6; }
16531 else
16532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16534 fi
16535 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16538 if ${acl_cv_prog_gnu_ld+:} false; then :
16539   $as_echo_n "(cached) " >&6
16540 else
16541   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16542 case `$LD -v 2>&1 </dev/null` in
16543 *GNU* | *'with BFD'*)
16544   acl_cv_prog_gnu_ld=yes ;;
16545 *)
16546   acl_cv_prog_gnu_ld=no ;;
16547 esac
16548 fi
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16550 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16551 with_gnu_ld=$acl_cv_prog_gnu_ld
16552
16553
16554
16555
16556                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16557 $as_echo_n "checking for shared library run path origin... " >&6; }
16558 if ${acl_cv_rpath+:} false; then :
16559   $as_echo_n "(cached) " >&6
16560 else
16561
16562     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16563     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16564     . ./conftest.sh
16565     rm -f ./conftest.sh
16566     acl_cv_rpath=done
16567
16568 fi
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16570 $as_echo "$acl_cv_rpath" >&6; }
16571   wl="$acl_cv_wl"
16572   libext="$acl_cv_libext"
16573   shlibext="$acl_cv_shlibext"
16574   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16575   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16576   hardcode_direct="$acl_cv_hardcode_direct"
16577   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16578     # Check whether --enable-rpath was given.
16579 if test "${enable_rpath+set}" = set; then :
16580   enableval=$enable_rpath; :
16581 else
16582   enable_rpath=yes
16583 fi
16584
16585
16586
16587
16588
16589
16590
16591
16592     use_additional=yes
16593
16594   acl_save_prefix="$prefix"
16595   prefix="$acl_final_prefix"
16596   acl_save_exec_prefix="$exec_prefix"
16597   exec_prefix="$acl_final_exec_prefix"
16598
16599     eval additional_includedir=\"$includedir\"
16600     eval additional_libdir=\"$libdir\"
16601
16602   exec_prefix="$acl_save_exec_prefix"
16603   prefix="$acl_save_prefix"
16604
16605
16606 # Check whether --with-libiconv-prefix was given.
16607 if test "${with_libiconv_prefix+set}" = set; then :
16608   withval=$with_libiconv_prefix;
16609     if test "X$withval" = "Xno"; then
16610       use_additional=no
16611     else
16612       if test "X$withval" = "X"; then
16613
16614   acl_save_prefix="$prefix"
16615   prefix="$acl_final_prefix"
16616   acl_save_exec_prefix="$exec_prefix"
16617   exec_prefix="$acl_final_exec_prefix"
16618
16619           eval additional_includedir=\"$includedir\"
16620           eval additional_libdir=\"$libdir\"
16621
16622   exec_prefix="$acl_save_exec_prefix"
16623   prefix="$acl_save_prefix"
16624
16625       else
16626         additional_includedir="$withval/include"
16627         additional_libdir="$withval/lib"
16628       fi
16629     fi
16630
16631 fi
16632
16633       LIBICONV=
16634   LTLIBICONV=
16635   INCICONV=
16636   rpathdirs=
16637   ltrpathdirs=
16638   names_already_handled=
16639   names_next_round='iconv '
16640   while test -n "$names_next_round"; do
16641     names_this_round="$names_next_round"
16642     names_next_round=
16643     for name in $names_this_round; do
16644       already_handled=
16645       for n in $names_already_handled; do
16646         if test "$n" = "$name"; then
16647           already_handled=yes
16648           break
16649         fi
16650       done
16651       if test -z "$already_handled"; then
16652         names_already_handled="$names_already_handled $name"
16653                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16654         eval value=\"\$HAVE_LIB$uppername\"
16655         if test -n "$value"; then
16656           if test "$value" = yes; then
16657             eval value=\"\$LIB$uppername\"
16658             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16659             eval value=\"\$LTLIB$uppername\"
16660             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16661           else
16662                                     :
16663           fi
16664         else
16665                               found_dir=
16666           found_la=
16667           found_so=
16668           found_a=
16669           if test $use_additional = yes; then
16670             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16671               found_dir="$additional_libdir"
16672               found_so="$additional_libdir/lib$name.$shlibext"
16673               if test -f "$additional_libdir/lib$name.la"; then
16674                 found_la="$additional_libdir/lib$name.la"
16675               fi
16676             else
16677               if test -f "$additional_libdir/lib$name.$libext"; then
16678                 found_dir="$additional_libdir"
16679                 found_a="$additional_libdir/lib$name.$libext"
16680                 if test -f "$additional_libdir/lib$name.la"; then
16681                   found_la="$additional_libdir/lib$name.la"
16682                 fi
16683               fi
16684             fi
16685           fi
16686           if test "X$found_dir" = "X"; then
16687             for x in $LDFLAGS $LTLIBICONV; do
16688
16689   acl_save_prefix="$prefix"
16690   prefix="$acl_final_prefix"
16691   acl_save_exec_prefix="$exec_prefix"
16692   exec_prefix="$acl_final_exec_prefix"
16693   eval x=\"$x\"
16694   exec_prefix="$acl_save_exec_prefix"
16695   prefix="$acl_save_prefix"
16696
16697               case "$x" in
16698                 -L*)
16699                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16700                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16701                     found_dir="$dir"
16702                     found_so="$dir/lib$name.$shlibext"
16703                     if test -f "$dir/lib$name.la"; then
16704                       found_la="$dir/lib$name.la"
16705                     fi
16706                   else
16707                     if test -f "$dir/lib$name.$libext"; then
16708                       found_dir="$dir"
16709                       found_a="$dir/lib$name.$libext"
16710                       if test -f "$dir/lib$name.la"; then
16711                         found_la="$dir/lib$name.la"
16712                       fi
16713                     fi
16714                   fi
16715                   ;;
16716               esac
16717               if test "X$found_dir" != "X"; then
16718                 break
16719               fi
16720             done
16721           fi
16722           if test "X$found_dir" != "X"; then
16723                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16724             if test "X$found_so" != "X"; then
16725                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16726                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16727               else
16728                                                                                 haveit=
16729                 for x in $ltrpathdirs; do
16730                   if test "X$x" = "X$found_dir"; then
16731                     haveit=yes
16732                     break
16733                   fi
16734                 done
16735                 if test -z "$haveit"; then
16736                   ltrpathdirs="$ltrpathdirs $found_dir"
16737                 fi
16738                                 if test "$hardcode_direct" = yes; then
16739                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16740                 else
16741                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16742                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16743                                                             haveit=
16744                     for x in $rpathdirs; do
16745                       if test "X$x" = "X$found_dir"; then
16746                         haveit=yes
16747                         break
16748                       fi
16749                     done
16750                     if test -z "$haveit"; then
16751                       rpathdirs="$rpathdirs $found_dir"
16752                     fi
16753                   else
16754                                                                                 haveit=
16755                     for x in $LDFLAGS $LIBICONV; do
16756
16757   acl_save_prefix="$prefix"
16758   prefix="$acl_final_prefix"
16759   acl_save_exec_prefix="$exec_prefix"
16760   exec_prefix="$acl_final_exec_prefix"
16761   eval x=\"$x\"
16762   exec_prefix="$acl_save_exec_prefix"
16763   prefix="$acl_save_prefix"
16764
16765                       if test "X$x" = "X-L$found_dir"; then
16766                         haveit=yes
16767                         break
16768                       fi
16769                     done
16770                     if test -z "$haveit"; then
16771                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16772                     fi
16773                     if test "$hardcode_minus_L" != no; then
16774                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16775                     else
16776                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16777                     fi
16778                   fi
16779                 fi
16780               fi
16781             else
16782               if test "X$found_a" != "X"; then
16783                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16784               else
16785                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16786               fi
16787             fi
16788                         additional_includedir=
16789             case "$found_dir" in
16790               */lib | */lib/)
16791                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16792                 additional_includedir="$basedir/include"
16793                 ;;
16794             esac
16795             if test "X$additional_includedir" != "X"; then
16796                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16797                 haveit=
16798                 if test "X$additional_includedir" = "X/usr/local/include"; then
16799                   if test -n "$GCC"; then
16800                     case $host_os in
16801                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16802                     esac
16803                   fi
16804                 fi
16805                 if test -z "$haveit"; then
16806                   for x in $CPPFLAGS $INCICONV; do
16807
16808   acl_save_prefix="$prefix"
16809   prefix="$acl_final_prefix"
16810   acl_save_exec_prefix="$exec_prefix"
16811   exec_prefix="$acl_final_exec_prefix"
16812   eval x=\"$x\"
16813   exec_prefix="$acl_save_exec_prefix"
16814   prefix="$acl_save_prefix"
16815
16816                     if test "X$x" = "X-I$additional_includedir"; then
16817                       haveit=yes
16818                       break
16819                     fi
16820                   done
16821                   if test -z "$haveit"; then
16822                     if test -d "$additional_includedir"; then
16823                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16824                     fi
16825                   fi
16826                 fi
16827               fi
16828             fi
16829                         if test -n "$found_la"; then
16830                                                         save_libdir="$libdir"
16831               case "$found_la" in
16832                 */* | *\\*) . "$found_la" ;;
16833                 *) . "./$found_la" ;;
16834               esac
16835               libdir="$save_libdir"
16836                             for dep in $dependency_libs; do
16837                 case "$dep" in
16838                   -L*)
16839                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16840                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16841                       haveit=
16842                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16843                         if test -n "$GCC"; then
16844                           case $host_os in
16845                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16846                           esac
16847                         fi
16848                       fi
16849                       if test -z "$haveit"; then
16850                         haveit=
16851                         for x in $LDFLAGS $LIBICONV; do
16852
16853   acl_save_prefix="$prefix"
16854   prefix="$acl_final_prefix"
16855   acl_save_exec_prefix="$exec_prefix"
16856   exec_prefix="$acl_final_exec_prefix"
16857   eval x=\"$x\"
16858   exec_prefix="$acl_save_exec_prefix"
16859   prefix="$acl_save_prefix"
16860
16861                           if test "X$x" = "X-L$additional_libdir"; then
16862                             haveit=yes
16863                             break
16864                           fi
16865                         done
16866                         if test -z "$haveit"; then
16867                           if test -d "$additional_libdir"; then
16868                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16869                           fi
16870                         fi
16871                         haveit=
16872                         for x in $LDFLAGS $LTLIBICONV; do
16873
16874   acl_save_prefix="$prefix"
16875   prefix="$acl_final_prefix"
16876   acl_save_exec_prefix="$exec_prefix"
16877   exec_prefix="$acl_final_exec_prefix"
16878   eval x=\"$x\"
16879   exec_prefix="$acl_save_exec_prefix"
16880   prefix="$acl_save_prefix"
16881
16882                           if test "X$x" = "X-L$additional_libdir"; then
16883                             haveit=yes
16884                             break
16885                           fi
16886                         done
16887                         if test -z "$haveit"; then
16888                           if test -d "$additional_libdir"; then
16889                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16890                           fi
16891                         fi
16892                       fi
16893                     fi
16894                     ;;
16895                   -R*)
16896                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16897                     if test "$enable_rpath" != no; then
16898                                                                   haveit=
16899                       for x in $rpathdirs; do
16900                         if test "X$x" = "X$dir"; then
16901                           haveit=yes
16902                           break
16903                         fi
16904                       done
16905                       if test -z "$haveit"; then
16906                         rpathdirs="$rpathdirs $dir"
16907                       fi
16908                                                                   haveit=
16909                       for x in $ltrpathdirs; do
16910                         if test "X$x" = "X$dir"; then
16911                           haveit=yes
16912                           break
16913                         fi
16914                       done
16915                       if test -z "$haveit"; then
16916                         ltrpathdirs="$ltrpathdirs $dir"
16917                       fi
16918                     fi
16919                     ;;
16920                   -l*)
16921                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16922                     ;;
16923                   *.la)
16924                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16925                     ;;
16926                   *)
16927                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16928                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16929                     ;;
16930                 esac
16931               done
16932             fi
16933           else
16934                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16935             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16936           fi
16937         fi
16938       fi
16939     done
16940   done
16941   if test "X$rpathdirs" != "X"; then
16942     if test -n "$hardcode_libdir_separator"; then
16943                         alldirs=
16944       for found_dir in $rpathdirs; do
16945         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16946       done
16947             acl_save_libdir="$libdir"
16948       libdir="$alldirs"
16949       eval flag=\"$hardcode_libdir_flag_spec\"
16950       libdir="$acl_save_libdir"
16951       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16952     else
16953             for found_dir in $rpathdirs; do
16954         acl_save_libdir="$libdir"
16955         libdir="$found_dir"
16956         eval flag=\"$hardcode_libdir_flag_spec\"
16957         libdir="$acl_save_libdir"
16958         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16959       done
16960     fi
16961   fi
16962   if test "X$ltrpathdirs" != "X"; then
16963             for found_dir in $ltrpathdirs; do
16964       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16965     done
16966   fi
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16986 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16987 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16988   $as_echo_n "(cached) " >&6
16989 else
16990   gt_save_CPPFLAGS="$CPPFLAGS"
16991      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16992      gt_save_LIBS="$LIBS"
16993      LIBS="$LIBS -framework CoreFoundation"
16994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h.  */
16996 #include <CFPreferences.h>
16997 int
16998 main ()
16999 {
17000 CFPreferencesCopyAppValue(NULL, NULL)
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 if ac_fn_c_try_link "$LINENO"; then :
17006   gt_cv_func_CFPreferencesCopyAppValue=yes
17007 else
17008   gt_cv_func_CFPreferencesCopyAppValue=no
17009 fi
17010 rm -f core conftest.err conftest.$ac_objext \
17011     conftest$ac_exeext conftest.$ac_ext
17012      CPPFLAGS="$gt_save_CPPFLAGS"
17013      LIBS="$gt_save_LIBS"
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17016 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17017   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17018
17019 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17020
17021   fi
17022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17023 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17024 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17025   $as_echo_n "(cached) " >&6
17026 else
17027   gt_save_CPPFLAGS="$CPPFLAGS"
17028      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17029      gt_save_LIBS="$LIBS"
17030      LIBS="$LIBS -framework CoreFoundation"
17031      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h.  */
17033 #include <CFLocale.h>
17034 int
17035 main ()
17036 {
17037 CFLocaleCopyCurrent();
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 if ac_fn_c_try_link "$LINENO"; then :
17043   gt_cv_func_CFLocaleCopyCurrent=yes
17044 else
17045   gt_cv_func_CFLocaleCopyCurrent=no
17046 fi
17047 rm -f core conftest.err conftest.$ac_objext \
17048     conftest$ac_exeext conftest.$ac_ext
17049      CPPFLAGS="$gt_save_CPPFLAGS"
17050      LIBS="$gt_save_LIBS"
17051 fi
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17053 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17054   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17055
17056 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17057
17058   fi
17059   INTL_MACOSX_LIBS=
17060   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17061     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17062   fi
17063
17064
17065
17066
17067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17068 $as_echo_n "checking whether NLS is requested... " >&6; }
17069     # Check whether --enable-nls was given.
17070 if test "${enable_nls+set}" = set; then :
17071   enableval=$enable_nls; USE_NLS=$enableval
17072 else
17073   USE_NLS=yes
17074 fi
17075
17076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17077 $as_echo "$USE_NLS" >&6; }
17078
17079
17080
17081
17082   LIBINTL=
17083   LTLIBINTL=
17084   POSUB=
17085
17086     if test "$USE_NLS" = "yes"; then
17087     gt_use_preinstalled_gnugettext=no
17088
17089
17090
17091
17092
17093
17094         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17095 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17096 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17097   $as_echo_n "(cached) " >&6
17098 else
17099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h.  */
17101 #include <libintl.h>
17102 extern int _nl_msg_cat_cntr;
17103 extern int *_nl_domain_bindings;
17104 int
17105 main ()
17106 {
17107 bindtextdomain ("", "");
17108 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 if ac_fn_c_try_link "$LINENO"; then :
17114   gt_cv_func_gnugettext1_libc=yes
17115 else
17116   gt_cv_func_gnugettext1_libc=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext \
17119     conftest$ac_exeext conftest.$ac_ext
17120 fi
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17122 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17123
17124         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17125
17126
17127
17128
17129
17130           am_save_CPPFLAGS="$CPPFLAGS"
17131
17132   for element in $INCICONV; do
17133     haveit=
17134     for x in $CPPFLAGS; do
17135
17136   acl_save_prefix="$prefix"
17137   prefix="$acl_final_prefix"
17138   acl_save_exec_prefix="$exec_prefix"
17139   exec_prefix="$acl_final_exec_prefix"
17140   eval x=\"$x\"
17141   exec_prefix="$acl_save_exec_prefix"
17142   prefix="$acl_save_prefix"
17143
17144       if test "X$x" = "X$element"; then
17145         haveit=yes
17146         break
17147       fi
17148     done
17149     if test -z "$haveit"; then
17150       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17151     fi
17152   done
17153
17154
17155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17156 $as_echo_n "checking for iconv... " >&6; }
17157 if ${am_cv_func_iconv+:} false; then :
17158   $as_echo_n "(cached) " >&6
17159 else
17160
17161     am_cv_func_iconv="no, consider installing GNU libiconv"
17162     am_cv_lib_iconv=no
17163     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h.  */
17165 #include <stdlib.h>
17166 #include <iconv.h>
17167 int
17168 main ()
17169 {
17170 iconv_t cd = iconv_open("","");
17171        iconv(cd,NULL,NULL,NULL,NULL);
17172        iconv_close(cd);
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 if ac_fn_c_try_link "$LINENO"; then :
17178   am_cv_func_iconv=yes
17179 fi
17180 rm -f core conftest.err conftest.$ac_objext \
17181     conftest$ac_exeext conftest.$ac_ext
17182     if test "$am_cv_func_iconv" != yes; then
17183       am_save_LIBS="$LIBS"
17184       LIBS="$LIBS $LIBICONV"
17185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h.  */
17187 #include <stdlib.h>
17188 #include <iconv.h>
17189 int
17190 main ()
17191 {
17192 iconv_t cd = iconv_open("","");
17193          iconv(cd,NULL,NULL,NULL,NULL);
17194          iconv_close(cd);
17195   ;
17196   return 0;
17197 }
17198 _ACEOF
17199 if ac_fn_c_try_link "$LINENO"; then :
17200   am_cv_lib_iconv=yes
17201         am_cv_func_iconv=yes
17202 fi
17203 rm -f core conftest.err conftest.$ac_objext \
17204     conftest$ac_exeext conftest.$ac_ext
17205       LIBS="$am_save_LIBS"
17206     fi
17207
17208 fi
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17210 $as_echo "$am_cv_func_iconv" >&6; }
17211   if test "$am_cv_func_iconv" = yes; then
17212
17213 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17214
17215   fi
17216   if test "$am_cv_lib_iconv" = yes; then
17217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17218 $as_echo_n "checking how to link with libiconv... " >&6; }
17219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17220 $as_echo "$LIBICONV" >&6; }
17221   else
17222             CPPFLAGS="$am_save_CPPFLAGS"
17223     LIBICONV=
17224     LTLIBICONV=
17225   fi
17226
17227
17228
17229
17230
17231
17232     use_additional=yes
17233
17234   acl_save_prefix="$prefix"
17235   prefix="$acl_final_prefix"
17236   acl_save_exec_prefix="$exec_prefix"
17237   exec_prefix="$acl_final_exec_prefix"
17238
17239     eval additional_includedir=\"$includedir\"
17240     eval additional_libdir=\"$libdir\"
17241
17242   exec_prefix="$acl_save_exec_prefix"
17243   prefix="$acl_save_prefix"
17244
17245
17246 # Check whether --with-libintl-prefix was given.
17247 if test "${with_libintl_prefix+set}" = set; then :
17248   withval=$with_libintl_prefix;
17249     if test "X$withval" = "Xno"; then
17250       use_additional=no
17251     else
17252       if test "X$withval" = "X"; then
17253
17254   acl_save_prefix="$prefix"
17255   prefix="$acl_final_prefix"
17256   acl_save_exec_prefix="$exec_prefix"
17257   exec_prefix="$acl_final_exec_prefix"
17258
17259           eval additional_includedir=\"$includedir\"
17260           eval additional_libdir=\"$libdir\"
17261
17262   exec_prefix="$acl_save_exec_prefix"
17263   prefix="$acl_save_prefix"
17264
17265       else
17266         additional_includedir="$withval/include"
17267         additional_libdir="$withval/lib"
17268       fi
17269     fi
17270
17271 fi
17272
17273       LIBINTL=
17274   LTLIBINTL=
17275   INCINTL=
17276   rpathdirs=
17277   ltrpathdirs=
17278   names_already_handled=
17279   names_next_round='intl '
17280   while test -n "$names_next_round"; do
17281     names_this_round="$names_next_round"
17282     names_next_round=
17283     for name in $names_this_round; do
17284       already_handled=
17285       for n in $names_already_handled; do
17286         if test "$n" = "$name"; then
17287           already_handled=yes
17288           break
17289         fi
17290       done
17291       if test -z "$already_handled"; then
17292         names_already_handled="$names_already_handled $name"
17293                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17294         eval value=\"\$HAVE_LIB$uppername\"
17295         if test -n "$value"; then
17296           if test "$value" = yes; then
17297             eval value=\"\$LIB$uppername\"
17298             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17299             eval value=\"\$LTLIB$uppername\"
17300             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17301           else
17302                                     :
17303           fi
17304         else
17305                               found_dir=
17306           found_la=
17307           found_so=
17308           found_a=
17309           if test $use_additional = yes; then
17310             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17311               found_dir="$additional_libdir"
17312               found_so="$additional_libdir/lib$name.$shlibext"
17313               if test -f "$additional_libdir/lib$name.la"; then
17314                 found_la="$additional_libdir/lib$name.la"
17315               fi
17316             else
17317               if test -f "$additional_libdir/lib$name.$libext"; then
17318                 found_dir="$additional_libdir"
17319                 found_a="$additional_libdir/lib$name.$libext"
17320                 if test -f "$additional_libdir/lib$name.la"; then
17321                   found_la="$additional_libdir/lib$name.la"
17322                 fi
17323               fi
17324             fi
17325           fi
17326           if test "X$found_dir" = "X"; then
17327             for x in $LDFLAGS $LTLIBINTL; do
17328
17329   acl_save_prefix="$prefix"
17330   prefix="$acl_final_prefix"
17331   acl_save_exec_prefix="$exec_prefix"
17332   exec_prefix="$acl_final_exec_prefix"
17333   eval x=\"$x\"
17334   exec_prefix="$acl_save_exec_prefix"
17335   prefix="$acl_save_prefix"
17336
17337               case "$x" in
17338                 -L*)
17339                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17340                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17341                     found_dir="$dir"
17342                     found_so="$dir/lib$name.$shlibext"
17343                     if test -f "$dir/lib$name.la"; then
17344                       found_la="$dir/lib$name.la"
17345                     fi
17346                   else
17347                     if test -f "$dir/lib$name.$libext"; then
17348                       found_dir="$dir"
17349                       found_a="$dir/lib$name.$libext"
17350                       if test -f "$dir/lib$name.la"; then
17351                         found_la="$dir/lib$name.la"
17352                       fi
17353                     fi
17354                   fi
17355                   ;;
17356               esac
17357               if test "X$found_dir" != "X"; then
17358                 break
17359               fi
17360             done
17361           fi
17362           if test "X$found_dir" != "X"; then
17363                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17364             if test "X$found_so" != "X"; then
17365                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17366                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17367               else
17368                                                                                 haveit=
17369                 for x in $ltrpathdirs; do
17370                   if test "X$x" = "X$found_dir"; then
17371                     haveit=yes
17372                     break
17373                   fi
17374                 done
17375                 if test -z "$haveit"; then
17376                   ltrpathdirs="$ltrpathdirs $found_dir"
17377                 fi
17378                                 if test "$hardcode_direct" = yes; then
17379                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17380                 else
17381                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17382                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17383                                                             haveit=
17384                     for x in $rpathdirs; do
17385                       if test "X$x" = "X$found_dir"; then
17386                         haveit=yes
17387                         break
17388                       fi
17389                     done
17390                     if test -z "$haveit"; then
17391                       rpathdirs="$rpathdirs $found_dir"
17392                     fi
17393                   else
17394                                                                                 haveit=
17395                     for x in $LDFLAGS $LIBINTL; do
17396
17397   acl_save_prefix="$prefix"
17398   prefix="$acl_final_prefix"
17399   acl_save_exec_prefix="$exec_prefix"
17400   exec_prefix="$acl_final_exec_prefix"
17401   eval x=\"$x\"
17402   exec_prefix="$acl_save_exec_prefix"
17403   prefix="$acl_save_prefix"
17404
17405                       if test "X$x" = "X-L$found_dir"; then
17406                         haveit=yes
17407                         break
17408                       fi
17409                     done
17410                     if test -z "$haveit"; then
17411                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17412                     fi
17413                     if test "$hardcode_minus_L" != no; then
17414                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17415                     else
17416                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17417                     fi
17418                   fi
17419                 fi
17420               fi
17421             else
17422               if test "X$found_a" != "X"; then
17423                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17424               else
17425                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17426               fi
17427             fi
17428                         additional_includedir=
17429             case "$found_dir" in
17430               */lib | */lib/)
17431                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17432                 additional_includedir="$basedir/include"
17433                 ;;
17434             esac
17435             if test "X$additional_includedir" != "X"; then
17436                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17437                 haveit=
17438                 if test "X$additional_includedir" = "X/usr/local/include"; then
17439                   if test -n "$GCC"; then
17440                     case $host_os in
17441                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17442                     esac
17443                   fi
17444                 fi
17445                 if test -z "$haveit"; then
17446                   for x in $CPPFLAGS $INCINTL; do
17447
17448   acl_save_prefix="$prefix"
17449   prefix="$acl_final_prefix"
17450   acl_save_exec_prefix="$exec_prefix"
17451   exec_prefix="$acl_final_exec_prefix"
17452   eval x=\"$x\"
17453   exec_prefix="$acl_save_exec_prefix"
17454   prefix="$acl_save_prefix"
17455
17456                     if test "X$x" = "X-I$additional_includedir"; then
17457                       haveit=yes
17458                       break
17459                     fi
17460                   done
17461                   if test -z "$haveit"; then
17462                     if test -d "$additional_includedir"; then
17463                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17464                     fi
17465                   fi
17466                 fi
17467               fi
17468             fi
17469                         if test -n "$found_la"; then
17470                                                         save_libdir="$libdir"
17471               case "$found_la" in
17472                 */* | *\\*) . "$found_la" ;;
17473                 *) . "./$found_la" ;;
17474               esac
17475               libdir="$save_libdir"
17476                             for dep in $dependency_libs; do
17477                 case "$dep" in
17478                   -L*)
17479                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17480                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17481                       haveit=
17482                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17483                         if test -n "$GCC"; then
17484                           case $host_os in
17485                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17486                           esac
17487                         fi
17488                       fi
17489                       if test -z "$haveit"; then
17490                         haveit=
17491                         for x in $LDFLAGS $LIBINTL; do
17492
17493   acl_save_prefix="$prefix"
17494   prefix="$acl_final_prefix"
17495   acl_save_exec_prefix="$exec_prefix"
17496   exec_prefix="$acl_final_exec_prefix"
17497   eval x=\"$x\"
17498   exec_prefix="$acl_save_exec_prefix"
17499   prefix="$acl_save_prefix"
17500
17501                           if test "X$x" = "X-L$additional_libdir"; then
17502                             haveit=yes
17503                             break
17504                           fi
17505                         done
17506                         if test -z "$haveit"; then
17507                           if test -d "$additional_libdir"; then
17508                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17509                           fi
17510                         fi
17511                         haveit=
17512                         for x in $LDFLAGS $LTLIBINTL; do
17513
17514   acl_save_prefix="$prefix"
17515   prefix="$acl_final_prefix"
17516   acl_save_exec_prefix="$exec_prefix"
17517   exec_prefix="$acl_final_exec_prefix"
17518   eval x=\"$x\"
17519   exec_prefix="$acl_save_exec_prefix"
17520   prefix="$acl_save_prefix"
17521
17522                           if test "X$x" = "X-L$additional_libdir"; then
17523                             haveit=yes
17524                             break
17525                           fi
17526                         done
17527                         if test -z "$haveit"; then
17528                           if test -d "$additional_libdir"; then
17529                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17530                           fi
17531                         fi
17532                       fi
17533                     fi
17534                     ;;
17535                   -R*)
17536                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17537                     if test "$enable_rpath" != no; then
17538                                                                   haveit=
17539                       for x in $rpathdirs; do
17540                         if test "X$x" = "X$dir"; then
17541                           haveit=yes
17542                           break
17543                         fi
17544                       done
17545                       if test -z "$haveit"; then
17546                         rpathdirs="$rpathdirs $dir"
17547                       fi
17548                                                                   haveit=
17549                       for x in $ltrpathdirs; do
17550                         if test "X$x" = "X$dir"; then
17551                           haveit=yes
17552                           break
17553                         fi
17554                       done
17555                       if test -z "$haveit"; then
17556                         ltrpathdirs="$ltrpathdirs $dir"
17557                       fi
17558                     fi
17559                     ;;
17560                   -l*)
17561                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17562                     ;;
17563                   *.la)
17564                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17565                     ;;
17566                   *)
17567                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17568                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17569                     ;;
17570                 esac
17571               done
17572             fi
17573           else
17574                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17575             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17576           fi
17577         fi
17578       fi
17579     done
17580   done
17581   if test "X$rpathdirs" != "X"; then
17582     if test -n "$hardcode_libdir_separator"; then
17583                         alldirs=
17584       for found_dir in $rpathdirs; do
17585         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17586       done
17587             acl_save_libdir="$libdir"
17588       libdir="$alldirs"
17589       eval flag=\"$hardcode_libdir_flag_spec\"
17590       libdir="$acl_save_libdir"
17591       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17592     else
17593             for found_dir in $rpathdirs; do
17594         acl_save_libdir="$libdir"
17595         libdir="$found_dir"
17596         eval flag=\"$hardcode_libdir_flag_spec\"
17597         libdir="$acl_save_libdir"
17598         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17599       done
17600     fi
17601   fi
17602   if test "X$ltrpathdirs" != "X"; then
17603             for found_dir in $ltrpathdirs; do
17604       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17605     done
17606   fi
17607
17608           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17609 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17610 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17611   $as_echo_n "(cached) " >&6
17612 else
17613   gt_save_CPPFLAGS="$CPPFLAGS"
17614             CPPFLAGS="$CPPFLAGS $INCINTL"
17615             gt_save_LIBS="$LIBS"
17616             LIBS="$LIBS $LIBINTL"
17617                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h.  */
17619 #include <libintl.h>
17620 extern int _nl_msg_cat_cntr;
17621 extern
17622 #ifdef __cplusplus
17623 "C"
17624 #endif
17625 const char *_nl_expand_alias (const char *);
17626 int
17627 main ()
17628 {
17629 bindtextdomain ("", "");
17630 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 if ac_fn_c_try_link "$LINENO"; then :
17636   gt_cv_func_gnugettext1_libintl=yes
17637 else
17638   gt_cv_func_gnugettext1_libintl=no
17639 fi
17640 rm -f core conftest.err conftest.$ac_objext \
17641     conftest$ac_exeext conftest.$ac_ext
17642                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17643               LIBS="$LIBS $LIBICONV"
17644               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h.  */
17646 #include <libintl.h>
17647 extern int _nl_msg_cat_cntr;
17648 extern
17649 #ifdef __cplusplus
17650 "C"
17651 #endif
17652 const char *_nl_expand_alias (const char *);
17653 int
17654 main ()
17655 {
17656 bindtextdomain ("", "");
17657 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 if ac_fn_c_try_link "$LINENO"; then :
17663   LIBINTL="$LIBINTL $LIBICONV"
17664                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17665                 gt_cv_func_gnugettext1_libintl=yes
17666
17667 fi
17668 rm -f core conftest.err conftest.$ac_objext \
17669     conftest$ac_exeext conftest.$ac_ext
17670             fi
17671             CPPFLAGS="$gt_save_CPPFLAGS"
17672             LIBS="$gt_save_LIBS"
17673 fi
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17675 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17676         fi
17677
17678                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17679            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17680                 && test "$PACKAGE" != gettext-runtime \
17681                 && test "$PACKAGE" != gettext-tools; }; then
17682           gt_use_preinstalled_gnugettext=yes
17683         else
17684                     LIBINTL=
17685           LTLIBINTL=
17686           INCINTL=
17687         fi
17688
17689
17690
17691     if test -n "$INTL_MACOSX_LIBS"; then
17692       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17693          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17694                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17695         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17696       fi
17697     fi
17698
17699     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17700        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17701
17702 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17703
17704     else
17705       USE_NLS=no
17706     fi
17707   fi
17708
17709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17710 $as_echo_n "checking whether to use NLS... " >&6; }
17711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17712 $as_echo "$USE_NLS" >&6; }
17713   if test "$USE_NLS" = "yes"; then
17714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17715 $as_echo_n "checking where the gettext function comes from... " >&6; }
17716     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17717       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17718         gt_source="external libintl"
17719       else
17720         gt_source="libc"
17721       fi
17722     else
17723       gt_source="included intl directory"
17724     fi
17725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17726 $as_echo "$gt_source" >&6; }
17727   fi
17728
17729   if test "$USE_NLS" = "yes"; then
17730
17731     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17732       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17733         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17734 $as_echo_n "checking how to link with libintl... " >&6; }
17735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17736 $as_echo "$LIBINTL" >&6; }
17737
17738   for element in $INCINTL; do
17739     haveit=
17740     for x in $CPPFLAGS; do
17741
17742   acl_save_prefix="$prefix"
17743   prefix="$acl_final_prefix"
17744   acl_save_exec_prefix="$exec_prefix"
17745   exec_prefix="$acl_final_exec_prefix"
17746   eval x=\"$x\"
17747   exec_prefix="$acl_save_exec_prefix"
17748   prefix="$acl_save_prefix"
17749
17750       if test "X$x" = "X$element"; then
17751         haveit=yes
17752         break
17753       fi
17754     done
17755     if test -z "$haveit"; then
17756       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17757     fi
17758   done
17759
17760       fi
17761
17762
17763 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17764
17765
17766 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17767
17768     fi
17769
17770         POSUB=po
17771   fi
17772
17773
17774
17775     INTLLIBS="$LIBINTL"
17776
17777
17778
17779
17780
17781
17782
17783 os_name=`uname -s 2>/dev/null`
17784 if test x${prefix} = xNONE ; then
17785    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17786       sysconfdir=/etc/bacula
17787    fi
17788
17789    if test `eval echo ${libdir}` = NONE/lib ; then
17790       case ${os_name} in
17791       Linux)
17792          os_processor=`uname -p 2>/dev/null`
17793          case ${os_processor} in
17794          x86_64)
17795             libdir=/usr/lib64
17796             ;;
17797          *)
17798             libdir=/usr/lib
17799             ;;
17800          esac
17801          ;;
17802       *)
17803          libdir=/usr/lib
17804          ;;
17805       esac
17806    fi
17807
17808    if test `eval echo ${includedir}` = NONE/include ; then
17809       includedir=/usr/include
17810    fi
17811
17812    if test `eval echo ${datarootdir}` = NONE/share ; then
17813       datarootdir=/usr/share
17814    fi
17815    prefix=
17816 fi
17817
17818 if test x${exec_prefix} = xNONE ; then
17819    exec_prefix=${prefix}
17820 fi
17821
17822 sysconfdir=`eval echo ${sysconfdir}`
17823 datarootdir=`eval echo ${datarootdir}`
17824 docdir=`eval echo ${docdir}`
17825 htmldir=`eval echo ${htmldir}`
17826 libdir=`eval echo ${libdir}`
17827 includedir=`eval echo ${includedir}`
17828 localedir=`eval echo ${datarootdir}/locale`
17829 cat >>confdefs.h <<_ACEOF
17830 #define SYSCONFDIR "$sysconfdir"
17831 _ACEOF
17832
17833 cat >>confdefs.h <<_ACEOF
17834 #define LOCALEDIR "$localedir"
17835 _ACEOF
17836
17837
17838 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17839    sbindir=${exec_prefix}/sbin
17840 fi
17841 sbindir=`eval echo ${sbindir}`
17842
17843 if test x$mandir = x'${prefix}/man' ; then
17844    mandir=/usr/share/man
17845 fi
17846
17847 if test x$htmldir = x${docdir} ; then
17848    htmldir=`eval echo ${docdir}bacula/html`
17849 fi
17850
17851 if test x$docdir = x'/usr/share/doc/' ; then
17852    docdir=`eval echo ${docdir}bacula`
17853 fi
17854
17855
17856 for ac_prog in msgfmt
17857 do
17858   # Extract the first word of "$ac_prog", so it can be a program name with args.
17859 set dummy $ac_prog; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17861 $as_echo_n "checking for $ac_word... " >&6; }
17862 if ${ac_cv_path_MSGFMT+:} false; then :
17863   $as_echo_n "(cached) " >&6
17864 else
17865   case $MSGFMT in
17866   [\\/]* | ?:[\\/]*)
17867   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17868   ;;
17869   *)
17870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17871 for as_dir in $PATH
17872 do
17873   IFS=$as_save_IFS
17874   test -z "$as_dir" && as_dir=.
17875     for ac_exec_ext in '' $ac_executable_extensions; do
17876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17877     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17879     break 2
17880   fi
17881 done
17882   done
17883 IFS=$as_save_IFS
17884
17885   ;;
17886 esac
17887 fi
17888 MSGFMT=$ac_cv_path_MSGFMT
17889 if test -n "$MSGFMT"; then
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17891 $as_echo "$MSGFMT" >&6; }
17892 else
17893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17894 $as_echo "no" >&6; }
17895 fi
17896
17897
17898   test -n "$MSGFMT" && break
17899 done
17900 test -n "$MSGFMT" || MSGFMT="no"
17901
17902 if test "$MSGFMT" = "no"
17903 then
17904    echo 'msgfmt program not found, disabling NLS !'
17905    USE_NLS=no
17906    USE_INCLUDED_LIBINTL=no
17907 #else
17908
17909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17910 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17911 if ${ac_cv_gnu_library_2+:} false; then :
17912   $as_echo_n "(cached) " >&6
17913 else
17914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h.  */
17916
17917 #include <features.h>
17918 #ifdef __GNU_LIBRARY__
17919  #if (__GLIBC__ >= 2)
17920   Lucky GNU user
17921  #endif
17922 #endif
17923
17924 _ACEOF
17925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17926   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17927   ac_cv_gnu_library_2=yes
17928 else
17929   ac_cv_gnu_library_2=no
17930 fi
17931 rm -f conftest*
17932
17933
17934
17935 fi
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17937 $as_echo "$ac_cv_gnu_library_2" >&6; }
17938
17939     GLIBC2="$ac_cv_gnu_library_2"
17940
17941
17942 if test -n "$ac_tool_prefix"; then
17943   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17946 $as_echo_n "checking for $ac_word... " >&6; }
17947 if ${ac_cv_prog_RANLIB+:} false; then :
17948   $as_echo_n "(cached) " >&6
17949 else
17950   if test -n "$RANLIB"; then
17951   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17952 else
17953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17954 for as_dir in $PATH
17955 do
17956   IFS=$as_save_IFS
17957   test -z "$as_dir" && as_dir=.
17958     for ac_exec_ext in '' $ac_executable_extensions; do
17959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17960     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17962     break 2
17963   fi
17964 done
17965   done
17966 IFS=$as_save_IFS
17967
17968 fi
17969 fi
17970 RANLIB=$ac_cv_prog_RANLIB
17971 if test -n "$RANLIB"; then
17972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17973 $as_echo "$RANLIB" >&6; }
17974 else
17975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976 $as_echo "no" >&6; }
17977 fi
17978
17979
17980 fi
17981 if test -z "$ac_cv_prog_RANLIB"; then
17982   ac_ct_RANLIB=$RANLIB
17983   # Extract the first word of "ranlib", so it can be a program name with args.
17984 set dummy ranlib; ac_word=$2
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17986 $as_echo_n "checking for $ac_word... " >&6; }
17987 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17988   $as_echo_n "(cached) " >&6
17989 else
17990   if test -n "$ac_ct_RANLIB"; then
17991   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17992 else
17993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17994 for as_dir in $PATH
17995 do
17996   IFS=$as_save_IFS
17997   test -z "$as_dir" && as_dir=.
17998     for ac_exec_ext in '' $ac_executable_extensions; do
17999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18000     ac_cv_prog_ac_ct_RANLIB="ranlib"
18001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18002     break 2
18003   fi
18004 done
18005   done
18006 IFS=$as_save_IFS
18007
18008 fi
18009 fi
18010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18011 if test -n "$ac_ct_RANLIB"; then
18012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18013 $as_echo "$ac_ct_RANLIB" >&6; }
18014 else
18015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18017 fi
18018
18019   if test "x$ac_ct_RANLIB" = x; then
18020     RANLIB=":"
18021   else
18022     case $cross_compiling:$ac_tool_warned in
18023 yes:)
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18026 ac_tool_warned=yes ;;
18027 esac
18028     RANLIB=$ac_ct_RANLIB
18029   fi
18030 else
18031   RANLIB="$ac_cv_prog_RANLIB"
18032 fi
18033
18034
18035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18036 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18037 if ${ac_cv_lib_cposix_strerror+:} false; then :
18038   $as_echo_n "(cached) " >&6
18039 else
18040   ac_check_lib_save_LIBS=$LIBS
18041 LIBS="-lcposix  $LIBS"
18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h.  */
18044
18045 /* Override any GCC internal prototype to avoid an error.
18046    Use char because int might match the return type of a GCC
18047    builtin and then its argument prototype would still apply.  */
18048 #ifdef __cplusplus
18049 extern "C"
18050 #endif
18051 char strerror ();
18052 int
18053 main ()
18054 {
18055 return strerror ();
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 if ac_fn_c_try_link "$LINENO"; then :
18061   ac_cv_lib_cposix_strerror=yes
18062 else
18063   ac_cv_lib_cposix_strerror=no
18064 fi
18065 rm -f core conftest.err conftest.$ac_objext \
18066     conftest$ac_exeext conftest.$ac_ext
18067 LIBS=$ac_check_lib_save_LIBS
18068 fi
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18070 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18071 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18072   LIBS="$LIBS -lcposix"
18073 fi
18074
18075
18076
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18078 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18079 if ${ac_cv_c_const+:} false; then :
18080   $as_echo_n "(cached) " >&6
18081 else
18082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h.  */
18084
18085 int
18086 main ()
18087 {
18088 /* FIXME: Include the comments suggested by Paul. */
18089 #ifndef __cplusplus
18090   /* Ultrix mips cc rejects this.  */
18091   typedef int charset[2];
18092   const charset cs;
18093   /* SunOS 4.1.1 cc rejects this.  */
18094   char const *const *pcpcc;
18095   char **ppc;
18096   /* NEC SVR4.0.2 mips cc rejects this.  */
18097   struct point {int x, y;};
18098   static struct point const zero = {0,0};
18099   /* AIX XL C 1.02.0.0 rejects this.
18100      It does not let you subtract one const X* pointer from another in
18101      an arm of an if-expression whose if-part is not a constant
18102      expression */
18103   const char *g = "string";
18104   pcpcc = &g + (g ? g-g : 0);
18105   /* HPUX 7.0 cc rejects these. */
18106   ++pcpcc;
18107   ppc = (char**) pcpcc;
18108   pcpcc = (char const *const *) ppc;
18109   { /* SCO 3.2v4 cc rejects this.  */
18110     char *t;
18111     char const *s = 0 ? (char *) 0 : (char const *) 0;
18112
18113     *t++ = 0;
18114     if (s) return 0;
18115   }
18116   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18117     int x[] = {25, 17};
18118     const int *foo = &x[0];
18119     ++foo;
18120   }
18121   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18122     typedef const int *iptr;
18123     iptr p = 0;
18124     ++p;
18125   }
18126   { /* AIX XL C 1.02.0.0 rejects this saying
18127        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18128     struct s { int j; const int *ap[3]; };
18129     struct s *b; b->j = 5;
18130   }
18131   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18132     const int foo = 10;
18133     if (!foo) return 0;
18134   }
18135   return !cs[0] && !zero.x;
18136 #endif
18137
18138   ;
18139   return 0;
18140 }
18141 _ACEOF
18142 if ac_fn_c_try_compile "$LINENO"; then :
18143   ac_cv_c_const=yes
18144 else
18145   ac_cv_c_const=no
18146 fi
18147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148 fi
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18150 $as_echo "$ac_cv_c_const" >&6; }
18151 if test $ac_cv_c_const = no; then
18152
18153 $as_echo "#define const /**/" >>confdefs.h
18154
18155 fi
18156
18157
18158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18159 $as_echo_n "checking for signed... " >&6; }
18160 if ${bh_cv_c_signed+:} false; then :
18161   $as_echo_n "(cached) " >&6
18162 else
18163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h.  */
18165
18166 int
18167 main ()
18168 {
18169 signed char x;
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 if ac_fn_c_try_compile "$LINENO"; then :
18175   bh_cv_c_signed=yes
18176 else
18177   bh_cv_c_signed=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 fi
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18182 $as_echo "$bh_cv_c_signed" >&6; }
18183   if test $bh_cv_c_signed = no; then
18184
18185 $as_echo "#define signed /**/" >>confdefs.h
18186
18187   fi
18188
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18190 $as_echo_n "checking for inline... " >&6; }
18191 if ${ac_cv_c_inline+:} false; then :
18192   $as_echo_n "(cached) " >&6
18193 else
18194   ac_cv_c_inline=no
18195 for ac_kw in inline __inline__ __inline; do
18196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h.  */
18198 #ifndef __cplusplus
18199 typedef int foo_t;
18200 static $ac_kw foo_t static_foo () {return 0; }
18201 $ac_kw foo_t foo () {return 0; }
18202 #endif
18203
18204 _ACEOF
18205 if ac_fn_c_try_compile "$LINENO"; then :
18206   ac_cv_c_inline=$ac_kw
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209   test "$ac_cv_c_inline" != no && break
18210 done
18211
18212 fi
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18214 $as_echo "$ac_cv_c_inline" >&6; }
18215
18216 case $ac_cv_c_inline in
18217   inline | yes) ;;
18218   *)
18219     case $ac_cv_c_inline in
18220       no) ac_val=;;
18221       *) ac_val=$ac_cv_c_inline;;
18222     esac
18223     cat >>confdefs.h <<_ACEOF
18224 #ifndef __cplusplus
18225 #define inline $ac_val
18226 #endif
18227 _ACEOF
18228     ;;
18229 esac
18230
18231 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18232 if test "x$ac_cv_type_off_t" = xyes; then :
18233
18234 else
18235
18236 cat >>confdefs.h <<_ACEOF
18237 #define off_t long int
18238 _ACEOF
18239
18240 fi
18241
18242 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18243 if test "x$ac_cv_type_size_t" = xyes; then :
18244
18245 else
18246
18247 cat >>confdefs.h <<_ACEOF
18248 #define size_t unsigned int
18249 _ACEOF
18250
18251 fi
18252
18253
18254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18255 $as_echo_n "checking for long long... " >&6; }
18256 if ${ac_cv_type_long_long+:} false; then :
18257   $as_echo_n "(cached) " >&6
18258 else
18259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h.  */
18261 long long ll = 1LL; int i = 63;
18262 int
18263 main ()
18264 {
18265 long long llmax = (long long) -1;
18266      return ll << i | ll >> i | llmax / ll | llmax % ll;
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 if ac_fn_c_try_link "$LINENO"; then :
18272   ac_cv_type_long_long=yes
18273 else
18274   ac_cv_type_long_long=no
18275 fi
18276 rm -f core conftest.err conftest.$ac_objext \
18277     conftest$ac_exeext conftest.$ac_ext
18278 fi
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18280 $as_echo "$ac_cv_type_long_long" >&6; }
18281   if test $ac_cv_type_long_long = yes; then
18282
18283 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18284
18285   fi
18286
18287
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18289 $as_echo_n "checking for long double... " >&6; }
18290 if ${gt_cv_c_long_double+:} false; then :
18291   $as_echo_n "(cached) " >&6
18292 else
18293   if test "$GCC" = yes; then
18294        gt_cv_c_long_double=yes
18295      else
18296        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298
18299          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18300          long double foo = 0.0;
18301          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18302          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18303
18304 int
18305 main ()
18306 {
18307
18308   ;
18309   return 0;
18310 }
18311 _ACEOF
18312 if ac_fn_c_try_compile "$LINENO"; then :
18313   gt_cv_c_long_double=yes
18314 else
18315   gt_cv_c_long_double=no
18316 fi
18317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318      fi
18319 fi
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18321 $as_echo "$gt_cv_c_long_double" >&6; }
18322   if test $gt_cv_c_long_double = yes; then
18323
18324 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18325
18326   fi
18327
18328
18329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18330 $as_echo_n "checking for wchar_t... " >&6; }
18331 if ${gt_cv_c_wchar_t+:} false; then :
18332   $as_echo_n "(cached) " >&6
18333 else
18334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h.  */
18336 #include <stddef.h>
18337        wchar_t foo = (wchar_t)'\0';
18338 int
18339 main ()
18340 {
18341
18342   ;
18343   return 0;
18344 }
18345 _ACEOF
18346 if ac_fn_c_try_compile "$LINENO"; then :
18347   gt_cv_c_wchar_t=yes
18348 else
18349   gt_cv_c_wchar_t=no
18350 fi
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18354 $as_echo "$gt_cv_c_wchar_t" >&6; }
18355   if test $gt_cv_c_wchar_t = yes; then
18356
18357 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18358
18359   fi
18360
18361
18362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18363 $as_echo_n "checking for wint_t... " >&6; }
18364 if ${gt_cv_c_wint_t+:} false; then :
18365   $as_echo_n "(cached) " >&6
18366 else
18367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h.  */
18369 #include <wchar.h>
18370        wint_t foo = (wchar_t)'\0';
18371 int
18372 main ()
18373 {
18374
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 if ac_fn_c_try_compile "$LINENO"; then :
18380   gt_cv_c_wint_t=yes
18381 else
18382   gt_cv_c_wint_t=no
18383 fi
18384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18385 fi
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18387 $as_echo "$gt_cv_c_wint_t" >&6; }
18388   if test $gt_cv_c_wint_t = yes; then
18389
18390 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18391
18392   fi
18393
18394
18395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18396 $as_echo_n "checking for inttypes.h... " >&6; }
18397 if ${gl_cv_header_inttypes_h+:} false; then :
18398   $as_echo_n "(cached) " >&6
18399 else
18400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h.  */
18402 #include <sys/types.h>
18403 #include <inttypes.h>
18404 int
18405 main ()
18406 {
18407 uintmax_t i = (uintmax_t) -1;
18408   ;
18409   return 0;
18410 }
18411 _ACEOF
18412 if ac_fn_c_try_compile "$LINENO"; then :
18413   gl_cv_header_inttypes_h=yes
18414 else
18415   gl_cv_header_inttypes_h=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: $gl_cv_header_inttypes_h" >&5
18420 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18421   if test $gl_cv_header_inttypes_h = yes; then
18422
18423 cat >>confdefs.h <<_ACEOF
18424 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18425 _ACEOF
18426
18427   fi
18428
18429
18430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18431 $as_echo_n "checking for stdint.h... " >&6; }
18432 if ${gl_cv_header_stdint_h+:} false; then :
18433   $as_echo_n "(cached) " >&6
18434 else
18435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h.  */
18437 #include <sys/types.h>
18438 #include <stdint.h>
18439 int
18440 main ()
18441 {
18442 uintmax_t i = (uintmax_t) -1;
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448   gl_cv_header_stdint_h=yes
18449 else
18450   gl_cv_header_stdint_h=no
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: $gl_cv_header_stdint_h" >&5
18455 $as_echo "$gl_cv_header_stdint_h" >&6; }
18456   if test $gl_cv_header_stdint_h = yes; then
18457
18458 cat >>confdefs.h <<_ACEOF
18459 #define HAVE_STDINT_H_WITH_UINTMAX 1
18460 _ACEOF
18461
18462   fi
18463
18464
18465
18466
18467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18468 $as_echo_n "checking for intmax_t... " >&6; }
18469 if ${gt_cv_c_intmax_t+:} false; then :
18470   $as_echo_n "(cached) " >&6
18471 else
18472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h.  */
18474
18475 #include <stddef.h>
18476 #include <stdlib.h>
18477 #if HAVE_STDINT_H_WITH_UINTMAX
18478 #include <stdint.h>
18479 #endif
18480 #if HAVE_INTTYPES_H_WITH_UINTMAX
18481 #include <inttypes.h>
18482 #endif
18483
18484 int
18485 main ()
18486 {
18487 intmax_t x = -1;
18488   ;
18489   return 0;
18490 }
18491 _ACEOF
18492 if ac_fn_c_try_compile "$LINENO"; then :
18493   gt_cv_c_intmax_t=yes
18494 else
18495   gt_cv_c_intmax_t=no
18496 fi
18497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18498 fi
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18500 $as_echo "$gt_cv_c_intmax_t" >&6; }
18501   if test $gt_cv_c_intmax_t = yes; then
18502
18503 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18504
18505   fi
18506
18507
18508
18509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18510 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18511 if ${gt_cv_func_printf_posix+:} false; then :
18512   $as_echo_n "(cached) " >&6
18513 else
18514
18515       if test "$cross_compiling" = yes; then :
18516
18517         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h.  */
18519
18520 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18521   notposix
18522 #endif
18523
18524 _ACEOF
18525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18526   $EGREP "notposix" >/dev/null 2>&1; then :
18527   gt_cv_func_printf_posix="guessing no"
18528 else
18529   gt_cv_func_printf_posix="guessing yes"
18530 fi
18531 rm -f conftest*
18532
18533
18534 else
18535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h.  */
18537
18538 #include <stdio.h>
18539 #include <string.h>
18540 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18541    dollar expansion (possibly an autoconf bug).  */
18542 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18543 static char buf[100];
18544 int main ()
18545 {
18546   sprintf (buf, format, 33, 55);
18547   return (strcmp (buf, "55 33") != 0);
18548 }
18549 _ACEOF
18550 if ac_fn_c_try_run "$LINENO"; then :
18551   gt_cv_func_printf_posix=yes
18552 else
18553   gt_cv_func_printf_posix=no
18554 fi
18555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18556   conftest.$ac_objext conftest.beam conftest.$ac_ext
18557 fi
18558
18559
18560 fi
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18562 $as_echo "$gt_cv_func_printf_posix" >&6; }
18563   case $gt_cv_func_printf_posix in
18564     *yes)
18565
18566 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18567
18568       ;;
18569   esac
18570
18571 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18572 # for constant arguments.  Useless!
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18574 $as_echo_n "checking for working alloca.h... " >&6; }
18575 if ${ac_cv_working_alloca_h+:} false; then :
18576   $as_echo_n "(cached) " >&6
18577 else
18578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h.  */
18580 #include <alloca.h>
18581 int
18582 main ()
18583 {
18584 char *p = (char *) alloca (2 * sizeof (int));
18585                           if (p) return 0;
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 if ac_fn_c_try_link "$LINENO"; then :
18591   ac_cv_working_alloca_h=yes
18592 else
18593   ac_cv_working_alloca_h=no
18594 fi
18595 rm -f core conftest.err conftest.$ac_objext \
18596     conftest$ac_exeext conftest.$ac_ext
18597 fi
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18599 $as_echo "$ac_cv_working_alloca_h" >&6; }
18600 if test $ac_cv_working_alloca_h = yes; then
18601
18602 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18603
18604 fi
18605
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18607 $as_echo_n "checking for alloca... " >&6; }
18608 if ${ac_cv_func_alloca_works+:} false; then :
18609   $as_echo_n "(cached) " >&6
18610 else
18611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h.  */
18613 #ifdef __GNUC__
18614 # define alloca __builtin_alloca
18615 #else
18616 # ifdef _MSC_VER
18617 #  include <malloc.h>
18618 #  define alloca _alloca
18619 # else
18620 #  ifdef HAVE_ALLOCA_H
18621 #   include <alloca.h>
18622 #  else
18623 #   ifdef _AIX
18624  #pragma alloca
18625 #   else
18626 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18627 void *alloca (size_t);
18628 #    endif
18629 #   endif
18630 #  endif
18631 # endif
18632 #endif
18633
18634 int
18635 main ()
18636 {
18637 char *p = (char *) alloca (1);
18638                                     if (p) return 0;
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 if ac_fn_c_try_link "$LINENO"; then :
18644   ac_cv_func_alloca_works=yes
18645 else
18646   ac_cv_func_alloca_works=no
18647 fi
18648 rm -f core conftest.err conftest.$ac_objext \
18649     conftest$ac_exeext conftest.$ac_ext
18650 fi
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18652 $as_echo "$ac_cv_func_alloca_works" >&6; }
18653
18654 if test $ac_cv_func_alloca_works = yes; then
18655
18656 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18657
18658 else
18659   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18660 # that cause trouble.  Some versions do not even contain alloca or
18661 # contain a buggy version.  If you still want to use their alloca,
18662 # use ar to extract alloca.o from them instead of compiling alloca.c.
18663
18664 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18665
18666 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18667
18668
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18670 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18671 if ${ac_cv_os_cray+:} false; then :
18672   $as_echo_n "(cached) " >&6
18673 else
18674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h.  */
18676 #if defined CRAY && ! defined CRAY2
18677 webecray
18678 #else
18679 wenotbecray
18680 #endif
18681
18682 _ACEOF
18683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18684   $EGREP "webecray" >/dev/null 2>&1; then :
18685   ac_cv_os_cray=yes
18686 else
18687   ac_cv_os_cray=no
18688 fi
18689 rm -f conftest*
18690
18691 fi
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18693 $as_echo "$ac_cv_os_cray" >&6; }
18694 if test $ac_cv_os_cray = yes; then
18695   for ac_func in _getb67 GETB67 getb67; do
18696     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18699
18700 cat >>confdefs.h <<_ACEOF
18701 #define CRAY_STACKSEG_END $ac_func
18702 _ACEOF
18703
18704     break
18705 fi
18706
18707   done
18708 fi
18709
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18711 $as_echo_n "checking stack direction for C alloca... " >&6; }
18712 if ${ac_cv_c_stack_direction+:} false; then :
18713   $as_echo_n "(cached) " >&6
18714 else
18715   if test "$cross_compiling" = yes; then :
18716   ac_cv_c_stack_direction=0
18717 else
18718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h.  */
18720 $ac_includes_default
18721 int
18722 find_stack_direction ()
18723 {
18724   static char *addr = 0;
18725   auto char dummy;
18726   if (addr == 0)
18727     {
18728       addr = &dummy;
18729       return find_stack_direction ();
18730     }
18731   else
18732     return (&dummy > addr) ? 1 : -1;
18733 }
18734
18735 int
18736 main ()
18737 {
18738   return find_stack_direction () < 0;
18739 }
18740 _ACEOF
18741 if ac_fn_c_try_run "$LINENO"; then :
18742   ac_cv_c_stack_direction=1
18743 else
18744   ac_cv_c_stack_direction=-1
18745 fi
18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18747   conftest.$ac_objext conftest.beam conftest.$ac_ext
18748 fi
18749
18750 fi
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18752 $as_echo "$ac_cv_c_stack_direction" >&6; }
18753 cat >>confdefs.h <<_ACEOF
18754 #define STACK_DIRECTION $ac_cv_c_stack_direction
18755 _ACEOF
18756
18757
18758 fi
18759
18760
18761
18762
18763   for ac_header in $ac_header_list
18764 do :
18765   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18766 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18767 "
18768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18769   cat >>confdefs.h <<_ACEOF
18770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18771 _ACEOF
18772
18773 fi
18774
18775 done
18776
18777
18778
18779
18780
18781
18782
18783
18784 for ac_func in getpagesize
18785 do :
18786   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18787 if test "x$ac_cv_func_getpagesize" = xyes; then :
18788   cat >>confdefs.h <<_ACEOF
18789 #define HAVE_GETPAGESIZE 1
18790 _ACEOF
18791
18792 fi
18793 done
18794
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18796 $as_echo_n "checking for working mmap... " >&6; }
18797 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18798   $as_echo_n "(cached) " >&6
18799 else
18800   if test "$cross_compiling" = yes; then :
18801   ac_cv_func_mmap_fixed_mapped=no
18802 else
18803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h.  */
18805 $ac_includes_default
18806 /* malloc might have been renamed as rpl_malloc. */
18807 #undef malloc
18808
18809 /* Thanks to Mike Haertel and Jim Avera for this test.
18810    Here is a matrix of mmap possibilities:
18811         mmap private not fixed
18812         mmap private fixed at somewhere currently unmapped
18813         mmap private fixed at somewhere already mapped
18814         mmap shared not fixed
18815         mmap shared fixed at somewhere currently unmapped
18816         mmap shared fixed at somewhere already mapped
18817    For private mappings, we should verify that changes cannot be read()
18818    back from the file, nor mmap's back from the file at a different
18819    address.  (There have been systems where private was not correctly
18820    implemented like the infamous i386 svr4.0, and systems where the
18821    VM page cache was not coherent with the file system buffer cache
18822    like early versions of FreeBSD and possibly contemporary NetBSD.)
18823    For shared mappings, we should conversely verify that changes get
18824    propagated back to all the places they're supposed to be.
18825
18826    Grep wants private fixed already mapped.
18827    The main things grep needs to know about mmap are:
18828    * does it exist and is it safe to write into the mmap'd area
18829    * how to use it (BSD variants)  */
18830
18831 #include <fcntl.h>
18832 #include <sys/mman.h>
18833
18834 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18835 char *malloc ();
18836 #endif
18837
18838 /* This mess was copied from the GNU getpagesize.h.  */
18839 #ifndef HAVE_GETPAGESIZE
18840 # ifdef _SC_PAGESIZE
18841 #  define getpagesize() sysconf(_SC_PAGESIZE)
18842 # else /* no _SC_PAGESIZE */
18843 #  ifdef HAVE_SYS_PARAM_H
18844 #   include <sys/param.h>
18845 #   ifdef EXEC_PAGESIZE
18846 #    define getpagesize() EXEC_PAGESIZE
18847 #   else /* no EXEC_PAGESIZE */
18848 #    ifdef NBPG
18849 #     define getpagesize() NBPG * CLSIZE
18850 #     ifndef CLSIZE
18851 #      define CLSIZE 1
18852 #     endif /* no CLSIZE */
18853 #    else /* no NBPG */
18854 #     ifdef NBPC
18855 #      define getpagesize() NBPC
18856 #     else /* no NBPC */
18857 #      ifdef PAGESIZE
18858 #       define getpagesize() PAGESIZE
18859 #      endif /* PAGESIZE */
18860 #     endif /* no NBPC */
18861 #    endif /* no NBPG */
18862 #   endif /* no EXEC_PAGESIZE */
18863 #  else /* no HAVE_SYS_PARAM_H */
18864 #   define getpagesize() 8192   /* punt totally */
18865 #  endif /* no HAVE_SYS_PARAM_H */
18866 # endif /* no _SC_PAGESIZE */
18867
18868 #endif /* no HAVE_GETPAGESIZE */
18869
18870 int
18871 main ()
18872 {
18873   char *data, *data2, *data3;
18874   const char *cdata2;
18875   int i, pagesize;
18876   int fd, fd2;
18877
18878   pagesize = getpagesize ();
18879
18880   /* First, make a file with some known garbage in it. */
18881   data = (char *) malloc (pagesize);
18882   if (!data)
18883     return 1;
18884   for (i = 0; i < pagesize; ++i)
18885     *(data + i) = rand ();
18886   umask (0);
18887   fd = creat ("conftest.mmap", 0600);
18888   if (fd < 0)
18889     return 2;
18890   if (write (fd, data, pagesize) != pagesize)
18891     return 3;
18892   close (fd);
18893
18894   /* Next, check that the tail of a page is zero-filled.  File must have
18895      non-zero length, otherwise we risk SIGBUS for entire page.  */
18896   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18897   if (fd2 < 0)
18898     return 4;
18899   cdata2 = "";
18900   if (write (fd2, cdata2, 1) != 1)
18901     return 5;
18902   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18903   if (data2 == MAP_FAILED)
18904     return 6;
18905   for (i = 0; i < pagesize; ++i)
18906     if (*(data2 + i))
18907       return 7;
18908   close (fd2);
18909   if (munmap (data2, pagesize))
18910     return 8;
18911
18912   /* Next, try to mmap the file at a fixed address which already has
18913      something else allocated at it.  If we can, also make sure that
18914      we see the same garbage.  */
18915   fd = open ("conftest.mmap", O_RDWR);
18916   if (fd < 0)
18917     return 9;
18918   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18919                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18920     return 10;
18921   for (i = 0; i < pagesize; ++i)
18922     if (*(data + i) != *(data2 + i))
18923       return 11;
18924
18925   /* Finally, make sure that changes to the mapped area do not
18926      percolate back to the file as seen by read().  (This is a bug on
18927      some variants of i386 svr4.0.)  */
18928   for (i = 0; i < pagesize; ++i)
18929     *(data2 + i) = *(data2 + i) + 1;
18930   data3 = (char *) malloc (pagesize);
18931   if (!data3)
18932     return 12;
18933   if (read (fd, data3, pagesize) != pagesize)
18934     return 13;
18935   for (i = 0; i < pagesize; ++i)
18936     if (*(data + i) != *(data3 + i))
18937       return 14;
18938   close (fd);
18939   return 0;
18940 }
18941 _ACEOF
18942 if ac_fn_c_try_run "$LINENO"; then :
18943   ac_cv_func_mmap_fixed_mapped=yes
18944 else
18945   ac_cv_func_mmap_fixed_mapped=no
18946 fi
18947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18948   conftest.$ac_objext conftest.beam conftest.$ac_ext
18949 fi
18950
18951 fi
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18953 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18954 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18955
18956 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18957
18958 fi
18959 rm -f conftest.mmap conftest.txt
18960
18961
18962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18963 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18964 if ${ac_cv_gnu_library_2_1+:} false; then :
18965   $as_echo_n "(cached) " >&6
18966 else
18967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h.  */
18969
18970 #include <features.h>
18971 #ifdef __GNU_LIBRARY__
18972  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18973   Lucky GNU user
18974  #endif
18975 #endif
18976
18977 _ACEOF
18978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18979   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18980   ac_cv_gnu_library_2_1=yes
18981 else
18982   ac_cv_gnu_library_2_1=no
18983 fi
18984 rm -f conftest*
18985
18986
18987
18988 fi
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18990 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18991
18992     GLIBC21="$ac_cv_gnu_library_2_1"
18993
18994
18995
18996
18997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18998 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18999 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19000   $as_echo_n "(cached) " >&6
19001 else
19002
19003       if test "$cross_compiling" = yes; then :
19004
19005           # Guess based on the CPU.
19006           case "$host_cpu" in
19007             alpha* | i3456786 | m68k | s390*)
19008               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19009             *)
19010               gt_cv_int_divbyzero_sigfpe="guessing no";;
19011           esac
19012
19013 else
19014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h.  */
19016
19017 #include <stdlib.h>
19018 #include <signal.h>
19019
19020 static void
19021 #ifdef __cplusplus
19022 sigfpe_handler (int sig)
19023 #else
19024 sigfpe_handler (sig) int sig;
19025 #endif
19026 {
19027   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19028   exit (sig != SIGFPE);
19029 }
19030
19031 int x = 1;
19032 int y = 0;
19033 int z;
19034 int nan;
19035
19036 int main ()
19037 {
19038   signal (SIGFPE, sigfpe_handler);
19039 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19040 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19041   signal (SIGTRAP, sigfpe_handler);
19042 #endif
19043 /* Linux/SPARC yields signal SIGILL.  */
19044 #if defined (__sparc__) && defined (__linux__)
19045   signal (SIGILL, sigfpe_handler);
19046 #endif
19047
19048   z = x / y;
19049   nan = y / y;
19050   exit (1);
19051 }
19052
19053 _ACEOF
19054 if ac_fn_c_try_run "$LINENO"; then :
19055   gt_cv_int_divbyzero_sigfpe=yes
19056 else
19057   gt_cv_int_divbyzero_sigfpe=no
19058 fi
19059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19060   conftest.$ac_objext conftest.beam conftest.$ac_ext
19061 fi
19062
19063
19064 fi
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19066 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19067   case "$gt_cv_int_divbyzero_sigfpe" in
19068     *yes) value=1;;
19069     *) value=0;;
19070   esac
19071
19072 cat >>confdefs.h <<_ACEOF
19073 #define INTDIV0_RAISES_SIGFPE $value
19074 _ACEOF
19075
19076
19077
19078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19079 $as_echo_n "checking for unsigned long long... " >&6; }
19080 if ${ac_cv_type_unsigned_long_long+:} false; then :
19081   $as_echo_n "(cached) " >&6
19082 else
19083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h.  */
19085 unsigned long long ull = 1ULL; int i = 63;
19086 int
19087 main ()
19088 {
19089 unsigned long long ullmax = (unsigned long long) -1;
19090      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 if ac_fn_c_try_link "$LINENO"; then :
19096   ac_cv_type_unsigned_long_long=yes
19097 else
19098   ac_cv_type_unsigned_long_long=no
19099 fi
19100 rm -f core conftest.err conftest.$ac_objext \
19101     conftest$ac_exeext conftest.$ac_ext
19102 fi
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19104 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19105   if test $ac_cv_type_unsigned_long_long = yes; then
19106
19107 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19108
19109   fi
19110
19111
19112
19113
19114   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19115
19116     test $ac_cv_type_unsigned_long_long = yes \
19117       && ac_type='unsigned long long' \
19118       || ac_type='unsigned long'
19119
19120 cat >>confdefs.h <<_ACEOF
19121 #define uintmax_t $ac_type
19122 _ACEOF
19123
19124   else
19125
19126 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19127
19128   fi
19129
19130
19131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19132 $as_echo_n "checking for inttypes.h... " >&6; }
19133 if ${gt_cv_header_inttypes_h+:} false; then :
19134   $as_echo_n "(cached) " >&6
19135 else
19136
19137     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h.  */
19139 #include <sys/types.h>
19140 #include <inttypes.h>
19141 int
19142 main ()
19143 {
19144
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 if ac_fn_c_try_compile "$LINENO"; then :
19150   gt_cv_header_inttypes_h=yes
19151 else
19152   gt_cv_header_inttypes_h=no
19153 fi
19154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19155
19156 fi
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19158 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19159   if test $gt_cv_header_inttypes_h = yes; then
19160
19161 cat >>confdefs.h <<_ACEOF
19162 #define HAVE_INTTYPES_H 1
19163 _ACEOF
19164
19165   fi
19166
19167
19168
19169   if test $gt_cv_header_inttypes_h = yes; then
19170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19171 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19172 if ${gt_cv_inttypes_pri_broken+:} false; then :
19173   $as_echo_n "(cached) " >&6
19174 else
19175
19176         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h.  */
19178 #include <inttypes.h>
19179 #ifdef PRId32
19180 char *p = PRId32;
19181 #endif
19182
19183 int
19184 main ()
19185 {
19186
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 if ac_fn_c_try_compile "$LINENO"; then :
19192   gt_cv_inttypes_pri_broken=no
19193 else
19194   gt_cv_inttypes_pri_broken=yes
19195 fi
19196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197
19198 fi
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19200 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19201   fi
19202   if test "$gt_cv_inttypes_pri_broken" = yes; then
19203
19204 cat >>confdefs.h <<_ACEOF
19205 #define PRI_MACROS_BROKEN 1
19206 _ACEOF
19207
19208   fi
19209
19210
19211   for ac_header in stdint.h
19212 do :
19213   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19214 if test "x$ac_cv_header_stdint_h" = xyes; then :
19215   cat >>confdefs.h <<_ACEOF
19216 #define HAVE_STDINT_H 1
19217 _ACEOF
19218
19219 fi
19220
19221 done
19222
19223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19224 $as_echo_n "checking for SIZE_MAX... " >&6; }
19225   result=
19226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h.  */
19228
19229 #include <limits.h>
19230 #if HAVE_STDINT_H
19231 #include <stdint.h>
19232 #endif
19233 #ifdef SIZE_MAX
19234 Found it
19235 #endif
19236
19237 _ACEOF
19238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19239   $EGREP "Found it" >/dev/null 2>&1; then :
19240   result=yes
19241 fi
19242 rm -f conftest*
19243
19244   if test -z "$result"; then
19245                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19246
19247 else
19248   result=?
19249 fi
19250
19251
19252     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19253
19254 else
19255   result=?
19256 fi
19257
19258
19259     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19260
19261 else
19262   result=?
19263 fi
19264
19265
19266     if test "$fits_in_uint" = 1; then
19267                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h.  */
19269 #include <stddef.h>
19270         extern size_t foo;
19271         extern unsigned long foo;
19272
19273 int
19274 main ()
19275 {
19276
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 if ac_fn_c_try_compile "$LINENO"; then :
19282   fits_in_uint=0
19283 fi
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285     fi
19286     if test -z "$result"; then
19287       if test "$fits_in_uint" = 1; then
19288         result="$res_hi$res_lo"U
19289       else
19290         result="$res_hi$res_lo"UL
19291       fi
19292     else
19293             result='~(size_t)0'
19294     fi
19295   fi
19296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19297 $as_echo "$result" >&6; }
19298   if test "$result" != yes; then
19299
19300 cat >>confdefs.h <<_ACEOF
19301 #define SIZE_MAX $result
19302 _ACEOF
19303
19304   fi
19305
19306
19307
19308
19309   for ac_header in stdint.h
19310 do :
19311   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19312 if test "x$ac_cv_header_stdint_h" = xyes; then :
19313   cat >>confdefs.h <<_ACEOF
19314 #define HAVE_STDINT_H 1
19315 _ACEOF
19316
19317 fi
19318
19319 done
19320
19321
19322
19323
19324
19325
19326
19327
19328   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19329 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19330
19331 else
19332
19333 $as_echo "#define ptrdiff_t long" >>confdefs.h
19334
19335
19336 fi
19337
19338   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19339 stdlib.h string.h unistd.h sys/param.h
19340 do :
19341   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19342 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19344   cat >>confdefs.h <<_ACEOF
19345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19346 _ACEOF
19347
19348 fi
19349
19350 done
19351
19352   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19353 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19354 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19355 __fsetlocking
19356 do :
19357   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19360   cat >>confdefs.h <<_ACEOF
19361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19362 _ACEOF
19363
19364 fi
19365 done
19366
19367
19368
19369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19370 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19371 if ${ac_cv_have_decl__snprintf+:} false; then :
19372   $as_echo_n "(cached) " >&6
19373 else
19374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375 /* end confdefs.h.  */
19376 #include <stdio.h>
19377 int
19378 main ()
19379 {
19380
19381 #ifndef _snprintf
19382   char *p = (char *) _snprintf;
19383 #endif
19384
19385   ;
19386   return 0;
19387 }
19388 _ACEOF
19389 if ac_fn_c_try_compile "$LINENO"; then :
19390   ac_cv_have_decl__snprintf=yes
19391 else
19392   ac_cv_have_decl__snprintf=no
19393 fi
19394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395 fi
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19397 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19398   if test $ac_cv_have_decl__snprintf = yes; then
19399     gt_value=1
19400   else
19401     gt_value=0
19402   fi
19403
19404 cat >>confdefs.h <<_ACEOF
19405 #define HAVE_DECL__SNPRINTF $gt_value
19406 _ACEOF
19407
19408
19409
19410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19411 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19412 if ${ac_cv_have_decl__snwprintf+:} false; then :
19413   $as_echo_n "(cached) " >&6
19414 else
19415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h.  */
19417 #include <stdio.h>
19418 int
19419 main ()
19420 {
19421
19422 #ifndef _snwprintf
19423   char *p = (char *) _snwprintf;
19424 #endif
19425
19426   ;
19427   return 0;
19428 }
19429 _ACEOF
19430 if ac_fn_c_try_compile "$LINENO"; then :
19431   ac_cv_have_decl__snwprintf=yes
19432 else
19433   ac_cv_have_decl__snwprintf=no
19434 fi
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436 fi
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19438 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19439   if test $ac_cv_have_decl__snwprintf = yes; then
19440     gt_value=1
19441   else
19442     gt_value=0
19443   fi
19444
19445 cat >>confdefs.h <<_ACEOF
19446 #define HAVE_DECL__SNWPRINTF $gt_value
19447 _ACEOF
19448
19449
19450
19451
19452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19453 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19454 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19455   $as_echo_n "(cached) " >&6
19456 else
19457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458 /* end confdefs.h.  */
19459 #include <stdio.h>
19460 int
19461 main ()
19462 {
19463
19464 #ifndef feof_unlocked
19465   char *p = (char *) feof_unlocked;
19466 #endif
19467
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 if ac_fn_c_try_compile "$LINENO"; then :
19473   ac_cv_have_decl_feof_unlocked=yes
19474 else
19475   ac_cv_have_decl_feof_unlocked=no
19476 fi
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 fi
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19480 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19481   if test $ac_cv_have_decl_feof_unlocked = yes; then
19482     gt_value=1
19483   else
19484     gt_value=0
19485   fi
19486
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19489 _ACEOF
19490
19491
19492
19493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19494 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19495 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19496   $as_echo_n "(cached) " >&6
19497 else
19498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h.  */
19500 #include <stdio.h>
19501 int
19502 main ()
19503 {
19504
19505 #ifndef fgets_unlocked
19506   char *p = (char *) fgets_unlocked;
19507 #endif
19508
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_compile "$LINENO"; then :
19514   ac_cv_have_decl_fgets_unlocked=yes
19515 else
19516   ac_cv_have_decl_fgets_unlocked=no
19517 fi
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 fi
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19521 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19522   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19523     gt_value=1
19524   else
19525     gt_value=0
19526   fi
19527
19528 cat >>confdefs.h <<_ACEOF
19529 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19530 _ACEOF
19531
19532
19533
19534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19535 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19536 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19537   $as_echo_n "(cached) " >&6
19538 else
19539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19540 /* end confdefs.h.  */
19541 #include <stdio.h>
19542 int
19543 main ()
19544 {
19545
19546 #ifndef getc_unlocked
19547   char *p = (char *) getc_unlocked;
19548 #endif
19549
19550   ;
19551   return 0;
19552 }
19553 _ACEOF
19554 if ac_fn_c_try_compile "$LINENO"; then :
19555   ac_cv_have_decl_getc_unlocked=yes
19556 else
19557   ac_cv_have_decl_getc_unlocked=no
19558 fi
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 fi
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19562 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19563   if test $ac_cv_have_decl_getc_unlocked = yes; then
19564     gt_value=1
19565   else
19566     gt_value=0
19567   fi
19568
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19571 _ACEOF
19572
19573
19574
19575   case $gt_cv_func_printf_posix in
19576     *yes) HAVE_POSIX_PRINTF=1 ;;
19577     *) HAVE_POSIX_PRINTF=0 ;;
19578   esac
19579
19580   if test "$ac_cv_func_asprintf" = yes; then
19581     HAVE_ASPRINTF=1
19582   else
19583     HAVE_ASPRINTF=0
19584   fi
19585
19586   if test "$ac_cv_func_snprintf" = yes; then
19587     HAVE_SNPRINTF=1
19588   else
19589     HAVE_SNPRINTF=0
19590   fi
19591
19592   if test "$ac_cv_func_wprintf" = yes; then
19593     HAVE_WPRINTF=1
19594   else
19595     HAVE_WPRINTF=0
19596   fi
19597
19598
19599
19600
19601
19602
19603
19604           am_save_CPPFLAGS="$CPPFLAGS"
19605
19606   for element in $INCICONV; do
19607     haveit=
19608     for x in $CPPFLAGS; do
19609
19610   acl_save_prefix="$prefix"
19611   prefix="$acl_final_prefix"
19612   acl_save_exec_prefix="$exec_prefix"
19613   exec_prefix="$acl_final_exec_prefix"
19614   eval x=\"$x\"
19615   exec_prefix="$acl_save_exec_prefix"
19616   prefix="$acl_save_prefix"
19617
19618       if test "X$x" = "X$element"; then
19619         haveit=yes
19620         break
19621       fi
19622     done
19623     if test -z "$haveit"; then
19624       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19625     fi
19626   done
19627
19628
19629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19630 $as_echo_n "checking for iconv... " >&6; }
19631 if ${am_cv_func_iconv+:} false; then :
19632   $as_echo_n "(cached) " >&6
19633 else
19634
19635     am_cv_func_iconv="no, consider installing GNU libiconv"
19636     am_cv_lib_iconv=no
19637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h.  */
19639 #include <stdlib.h>
19640 #include <iconv.h>
19641 int
19642 main ()
19643 {
19644 iconv_t cd = iconv_open("","");
19645        iconv(cd,NULL,NULL,NULL,NULL);
19646        iconv_close(cd);
19647   ;
19648   return 0;
19649 }
19650 _ACEOF
19651 if ac_fn_c_try_link "$LINENO"; then :
19652   am_cv_func_iconv=yes
19653 fi
19654 rm -f core conftest.err conftest.$ac_objext \
19655     conftest$ac_exeext conftest.$ac_ext
19656     if test "$am_cv_func_iconv" != yes; then
19657       am_save_LIBS="$LIBS"
19658       LIBS="$LIBS $LIBICONV"
19659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h.  */
19661 #include <stdlib.h>
19662 #include <iconv.h>
19663 int
19664 main ()
19665 {
19666 iconv_t cd = iconv_open("","");
19667          iconv(cd,NULL,NULL,NULL,NULL);
19668          iconv_close(cd);
19669   ;
19670   return 0;
19671 }
19672 _ACEOF
19673 if ac_fn_c_try_link "$LINENO"; then :
19674   am_cv_lib_iconv=yes
19675         am_cv_func_iconv=yes
19676 fi
19677 rm -f core conftest.err conftest.$ac_objext \
19678     conftest$ac_exeext conftest.$ac_ext
19679       LIBS="$am_save_LIBS"
19680     fi
19681
19682 fi
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19684 $as_echo "$am_cv_func_iconv" >&6; }
19685   if test "$am_cv_func_iconv" = yes; then
19686
19687 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19688
19689   fi
19690   if test "$am_cv_lib_iconv" = yes; then
19691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19692 $as_echo_n "checking how to link with libiconv... " >&6; }
19693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19694 $as_echo "$LIBICONV" >&6; }
19695   else
19696             CPPFLAGS="$am_save_CPPFLAGS"
19697     LIBICONV=
19698     LTLIBICONV=
19699   fi
19700
19701
19702
19703   if test "$am_cv_func_iconv" = yes; then
19704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19705 $as_echo_n "checking for iconv declaration... " >&6; }
19706     if ${am_cv_proto_iconv+:} false; then :
19707   $as_echo_n "(cached) " >&6
19708 else
19709
19710       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h.  */
19712
19713 #include <stdlib.h>
19714 #include <iconv.h>
19715 extern
19716 #ifdef __cplusplus
19717 "C"
19718 #endif
19719 #if defined(__STDC__) || defined(__cplusplus)
19720 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19721 #else
19722 size_t iconv();
19723 #endif
19724
19725 int
19726 main ()
19727 {
19728
19729   ;
19730   return 0;
19731 }
19732 _ACEOF
19733 if ac_fn_c_try_compile "$LINENO"; then :
19734   am_cv_proto_iconv_arg1=""
19735 else
19736   am_cv_proto_iconv_arg1="const"
19737 fi
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
19740 fi
19741
19742     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19744          }$am_cv_proto_iconv" >&5
19745 $as_echo "${ac_t:-
19746          }$am_cv_proto_iconv" >&6; }
19747
19748 cat >>confdefs.h <<_ACEOF
19749 #define ICONV_CONST $am_cv_proto_iconv_arg1
19750 _ACEOF
19751
19752   fi
19753
19754
19755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19756 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19757 if ${am_cv_langinfo_codeset+:} false; then :
19758   $as_echo_n "(cached) " >&6
19759 else
19760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761 /* end confdefs.h.  */
19762 #include <langinfo.h>
19763 int
19764 main ()
19765 {
19766 char* cs = nl_langinfo(CODESET);
19767   ;
19768   return 0;
19769 }
19770 _ACEOF
19771 if ac_fn_c_try_link "$LINENO"; then :
19772   am_cv_langinfo_codeset=yes
19773 else
19774   am_cv_langinfo_codeset=no
19775 fi
19776 rm -f core conftest.err conftest.$ac_objext \
19777     conftest$ac_exeext conftest.$ac_ext
19778
19779 fi
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19781 $as_echo "$am_cv_langinfo_codeset" >&6; }
19782   if test $am_cv_langinfo_codeset = yes; then
19783
19784 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19785
19786   fi
19787
19788   if test $ac_cv_header_locale_h = yes; then
19789
19790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19791 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19792 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19793   $as_echo_n "(cached) " >&6
19794 else
19795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796 /* end confdefs.h.  */
19797 #include <locale.h>
19798 int
19799 main ()
19800 {
19801 return LC_MESSAGES
19802   ;
19803   return 0;
19804 }
19805 _ACEOF
19806 if ac_fn_c_try_link "$LINENO"; then :
19807   gt_cv_val_LC_MESSAGES=yes
19808 else
19809   gt_cv_val_LC_MESSAGES=no
19810 fi
19811 rm -f core conftest.err conftest.$ac_objext \
19812     conftest$ac_exeext conftest.$ac_ext
19813 fi
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19815 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19816   if test $gt_cv_val_LC_MESSAGES = yes; then
19817
19818 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19819
19820   fi
19821
19822   fi
19823
19824   if test -n "$INTL_MACOSX_LIBS"; then
19825     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19826   fi
19827
19828                       for ac_prog in bison
19829 do
19830   # Extract the first word of "$ac_prog", so it can be a program name with args.
19831 set dummy $ac_prog; ac_word=$2
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19833 $as_echo_n "checking for $ac_word... " >&6; }
19834 if ${ac_cv_prog_INTLBISON+:} false; then :
19835   $as_echo_n "(cached) " >&6
19836 else
19837   if test -n "$INTLBISON"; then
19838   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19839 else
19840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19841 for as_dir in $PATH
19842 do
19843   IFS=$as_save_IFS
19844   test -z "$as_dir" && as_dir=.
19845     for ac_exec_ext in '' $ac_executable_extensions; do
19846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19847     ac_cv_prog_INTLBISON="$ac_prog"
19848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19849     break 2
19850   fi
19851 done
19852   done
19853 IFS=$as_save_IFS
19854
19855 fi
19856 fi
19857 INTLBISON=$ac_cv_prog_INTLBISON
19858 if test -n "$INTLBISON"; then
19859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19860 $as_echo "$INTLBISON" >&6; }
19861 else
19862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863 $as_echo "no" >&6; }
19864 fi
19865
19866
19867   test -n "$INTLBISON" && break
19868 done
19869
19870   if test -z "$INTLBISON"; then
19871     ac_verc_fail=yes
19872   else
19873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19874 $as_echo_n "checking version of bison... " >&6; }
19875     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19876     case $ac_prog_version in
19877       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19878       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19879          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19880       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19881     esac
19882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19883 $as_echo "$ac_prog_version" >&6; }
19884   fi
19885   if test $ac_verc_fail = yes; then
19886     INTLBISON=:
19887   fi
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19905 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19906 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19907   $as_echo_n "(cached) " >&6
19908 else
19909   gt_save_CPPFLAGS="$CPPFLAGS"
19910      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19911      gt_save_LIBS="$LIBS"
19912      LIBS="$LIBS -framework CoreFoundation"
19913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h.  */
19915 #include <CFPreferences.h>
19916 int
19917 main ()
19918 {
19919 CFPreferencesCopyAppValue(NULL, NULL)
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 if ac_fn_c_try_link "$LINENO"; then :
19925   gt_cv_func_CFPreferencesCopyAppValue=yes
19926 else
19927   gt_cv_func_CFPreferencesCopyAppValue=no
19928 fi
19929 rm -f core conftest.err conftest.$ac_objext \
19930     conftest$ac_exeext conftest.$ac_ext
19931      CPPFLAGS="$gt_save_CPPFLAGS"
19932      LIBS="$gt_save_LIBS"
19933 fi
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19935 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19936   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19937
19938 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19939
19940   fi
19941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19942 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19943 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19944   $as_echo_n "(cached) " >&6
19945 else
19946   gt_save_CPPFLAGS="$CPPFLAGS"
19947      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19948      gt_save_LIBS="$LIBS"
19949      LIBS="$LIBS -framework CoreFoundation"
19950      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h.  */
19952 #include <CFLocale.h>
19953 int
19954 main ()
19955 {
19956 CFLocaleCopyCurrent();
19957   ;
19958   return 0;
19959 }
19960 _ACEOF
19961 if ac_fn_c_try_link "$LINENO"; then :
19962   gt_cv_func_CFLocaleCopyCurrent=yes
19963 else
19964   gt_cv_func_CFLocaleCopyCurrent=no
19965 fi
19966 rm -f core conftest.err conftest.$ac_objext \
19967     conftest$ac_exeext conftest.$ac_ext
19968      CPPFLAGS="$gt_save_CPPFLAGS"
19969      LIBS="$gt_save_LIBS"
19970 fi
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19972 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19973   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19974
19975 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19976
19977   fi
19978   INTL_MACOSX_LIBS=
19979   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19980     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19981   fi
19982
19983
19984
19985
19986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19987 $as_echo_n "checking whether NLS is requested... " >&6; }
19988     # Check whether --enable-nls was given.
19989 if test "${enable_nls+set}" = set; then :
19990   enableval=$enable_nls; USE_NLS=$enableval
19991 else
19992   USE_NLS=yes
19993 fi
19994
19995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19996 $as_echo "$USE_NLS" >&6; }
19997
19998
19999
20000
20001     BUILD_INCLUDED_LIBINTL=no
20002     USE_INCLUDED_LIBINTL=no
20003
20004   LIBINTL=
20005   LTLIBINTL=
20006   POSUB=
20007
20008     if test "$USE_NLS" = "yes"; then
20009     gt_use_preinstalled_gnugettext=no
20010
20011       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20012 $as_echo_n "checking whether included gettext is requested... " >&6; }
20013
20014 # Check whether --with-included-gettext was given.
20015 if test "${with_included_gettext+set}" = set; then :
20016   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20017 else
20018   nls_cv_force_use_gnu_gettext=no
20019 fi
20020
20021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20022 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20023
20024       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20025       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20026
20027
20028
20029
20030
20031
20032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20033 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20034 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20035   $as_echo_n "(cached) " >&6
20036 else
20037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h.  */
20039 #include <libintl.h>
20040 extern int _nl_msg_cat_cntr;
20041 extern int *_nl_domain_bindings;
20042 int
20043 main ()
20044 {
20045 bindtextdomain ("", "");
20046 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 if ac_fn_c_try_link "$LINENO"; then :
20052   gt_cv_func_gnugettext1_libc=yes
20053 else
20054   gt_cv_func_gnugettext1_libc=no
20055 fi
20056 rm -f core conftest.err conftest.$ac_objext \
20057     conftest$ac_exeext conftest.$ac_ext
20058 fi
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20060 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20061
20062         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20063
20064
20065
20066     use_additional=yes
20067
20068   acl_save_prefix="$prefix"
20069   prefix="$acl_final_prefix"
20070   acl_save_exec_prefix="$exec_prefix"
20071   exec_prefix="$acl_final_exec_prefix"
20072
20073     eval additional_includedir=\"$includedir\"
20074     eval additional_libdir=\"$libdir\"
20075
20076   exec_prefix="$acl_save_exec_prefix"
20077   prefix="$acl_save_prefix"
20078
20079
20080 # Check whether --with-libintl-prefix was given.
20081 if test "${with_libintl_prefix+set}" = set; then :
20082   withval=$with_libintl_prefix;
20083     if test "X$withval" = "Xno"; then
20084       use_additional=no
20085     else
20086       if test "X$withval" = "X"; then
20087
20088   acl_save_prefix="$prefix"
20089   prefix="$acl_final_prefix"
20090   acl_save_exec_prefix="$exec_prefix"
20091   exec_prefix="$acl_final_exec_prefix"
20092
20093           eval additional_includedir=\"$includedir\"
20094           eval additional_libdir=\"$libdir\"
20095
20096   exec_prefix="$acl_save_exec_prefix"
20097   prefix="$acl_save_prefix"
20098
20099       else
20100         additional_includedir="$withval/include"
20101         additional_libdir="$withval/lib"
20102       fi
20103     fi
20104
20105 fi
20106
20107       LIBINTL=
20108   LTLIBINTL=
20109   INCINTL=
20110   rpathdirs=
20111   ltrpathdirs=
20112   names_already_handled=
20113   names_next_round='intl '
20114   while test -n "$names_next_round"; do
20115     names_this_round="$names_next_round"
20116     names_next_round=
20117     for name in $names_this_round; do
20118       already_handled=
20119       for n in $names_already_handled; do
20120         if test "$n" = "$name"; then
20121           already_handled=yes
20122           break
20123         fi
20124       done
20125       if test -z "$already_handled"; then
20126         names_already_handled="$names_already_handled $name"
20127                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20128         eval value=\"\$HAVE_LIB$uppername\"
20129         if test -n "$value"; then
20130           if test "$value" = yes; then
20131             eval value=\"\$LIB$uppername\"
20132             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20133             eval value=\"\$LTLIB$uppername\"
20134             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20135           else
20136                                     :
20137           fi
20138         else
20139                               found_dir=
20140           found_la=
20141           found_so=
20142           found_a=
20143           if test $use_additional = yes; then
20144             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20145               found_dir="$additional_libdir"
20146               found_so="$additional_libdir/lib$name.$shlibext"
20147               if test -f "$additional_libdir/lib$name.la"; then
20148                 found_la="$additional_libdir/lib$name.la"
20149               fi
20150             else
20151               if test -f "$additional_libdir/lib$name.$libext"; then
20152                 found_dir="$additional_libdir"
20153                 found_a="$additional_libdir/lib$name.$libext"
20154                 if test -f "$additional_libdir/lib$name.la"; then
20155                   found_la="$additional_libdir/lib$name.la"
20156                 fi
20157               fi
20158             fi
20159           fi
20160           if test "X$found_dir" = "X"; then
20161             for x in $LDFLAGS $LTLIBINTL; do
20162
20163   acl_save_prefix="$prefix"
20164   prefix="$acl_final_prefix"
20165   acl_save_exec_prefix="$exec_prefix"
20166   exec_prefix="$acl_final_exec_prefix"
20167   eval x=\"$x\"
20168   exec_prefix="$acl_save_exec_prefix"
20169   prefix="$acl_save_prefix"
20170
20171               case "$x" in
20172                 -L*)
20173                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20174                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20175                     found_dir="$dir"
20176                     found_so="$dir/lib$name.$shlibext"
20177                     if test -f "$dir/lib$name.la"; then
20178                       found_la="$dir/lib$name.la"
20179                     fi
20180                   else
20181                     if test -f "$dir/lib$name.$libext"; then
20182                       found_dir="$dir"
20183                       found_a="$dir/lib$name.$libext"
20184                       if test -f "$dir/lib$name.la"; then
20185                         found_la="$dir/lib$name.la"
20186                       fi
20187                     fi
20188                   fi
20189                   ;;
20190               esac
20191               if test "X$found_dir" != "X"; then
20192                 break
20193               fi
20194             done
20195           fi
20196           if test "X$found_dir" != "X"; then
20197                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20198             if test "X$found_so" != "X"; then
20199                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20200                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20201               else
20202                                                                                 haveit=
20203                 for x in $ltrpathdirs; do
20204                   if test "X$x" = "X$found_dir"; then
20205                     haveit=yes
20206                     break
20207                   fi
20208                 done
20209                 if test -z "$haveit"; then
20210                   ltrpathdirs="$ltrpathdirs $found_dir"
20211                 fi
20212                                 if test "$hardcode_direct" = yes; then
20213                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20214                 else
20215                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20216                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20217                                                             haveit=
20218                     for x in $rpathdirs; do
20219                       if test "X$x" = "X$found_dir"; then
20220                         haveit=yes
20221                         break
20222                       fi
20223                     done
20224                     if test -z "$haveit"; then
20225                       rpathdirs="$rpathdirs $found_dir"
20226                     fi
20227                   else
20228                                                                                 haveit=
20229                     for x in $LDFLAGS $LIBINTL; do
20230
20231   acl_save_prefix="$prefix"
20232   prefix="$acl_final_prefix"
20233   acl_save_exec_prefix="$exec_prefix"
20234   exec_prefix="$acl_final_exec_prefix"
20235   eval x=\"$x\"
20236   exec_prefix="$acl_save_exec_prefix"
20237   prefix="$acl_save_prefix"
20238
20239                       if test "X$x" = "X-L$found_dir"; then
20240                         haveit=yes
20241                         break
20242                       fi
20243                     done
20244                     if test -z "$haveit"; then
20245                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20246                     fi
20247                     if test "$hardcode_minus_L" != no; then
20248                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20249                     else
20250                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20251                     fi
20252                   fi
20253                 fi
20254               fi
20255             else
20256               if test "X$found_a" != "X"; then
20257                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20258               else
20259                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20260               fi
20261             fi
20262                         additional_includedir=
20263             case "$found_dir" in
20264               */lib | */lib/)
20265                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20266                 additional_includedir="$basedir/include"
20267                 ;;
20268             esac
20269             if test "X$additional_includedir" != "X"; then
20270                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20271                 haveit=
20272                 if test "X$additional_includedir" = "X/usr/local/include"; then
20273                   if test -n "$GCC"; then
20274                     case $host_os in
20275                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20276                     esac
20277                   fi
20278                 fi
20279                 if test -z "$haveit"; then
20280                   for x in $CPPFLAGS $INCINTL; do
20281
20282   acl_save_prefix="$prefix"
20283   prefix="$acl_final_prefix"
20284   acl_save_exec_prefix="$exec_prefix"
20285   exec_prefix="$acl_final_exec_prefix"
20286   eval x=\"$x\"
20287   exec_prefix="$acl_save_exec_prefix"
20288   prefix="$acl_save_prefix"
20289
20290                     if test "X$x" = "X-I$additional_includedir"; then
20291                       haveit=yes
20292                       break
20293                     fi
20294                   done
20295                   if test -z "$haveit"; then
20296                     if test -d "$additional_includedir"; then
20297                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20298                     fi
20299                   fi
20300                 fi
20301               fi
20302             fi
20303                         if test -n "$found_la"; then
20304                                                         save_libdir="$libdir"
20305               case "$found_la" in
20306                 */* | *\\*) . "$found_la" ;;
20307                 *) . "./$found_la" ;;
20308               esac
20309               libdir="$save_libdir"
20310                             for dep in $dependency_libs; do
20311                 case "$dep" in
20312                   -L*)
20313                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20314                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20315                       haveit=
20316                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20317                         if test -n "$GCC"; then
20318                           case $host_os in
20319                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20320                           esac
20321                         fi
20322                       fi
20323                       if test -z "$haveit"; then
20324                         haveit=
20325                         for x in $LDFLAGS $LIBINTL; do
20326
20327   acl_save_prefix="$prefix"
20328   prefix="$acl_final_prefix"
20329   acl_save_exec_prefix="$exec_prefix"
20330   exec_prefix="$acl_final_exec_prefix"
20331   eval x=\"$x\"
20332   exec_prefix="$acl_save_exec_prefix"
20333   prefix="$acl_save_prefix"
20334
20335                           if test "X$x" = "X-L$additional_libdir"; then
20336                             haveit=yes
20337                             break
20338                           fi
20339                         done
20340                         if test -z "$haveit"; then
20341                           if test -d "$additional_libdir"; then
20342                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20343                           fi
20344                         fi
20345                         haveit=
20346                         for x in $LDFLAGS $LTLIBINTL; do
20347
20348   acl_save_prefix="$prefix"
20349   prefix="$acl_final_prefix"
20350   acl_save_exec_prefix="$exec_prefix"
20351   exec_prefix="$acl_final_exec_prefix"
20352   eval x=\"$x\"
20353   exec_prefix="$acl_save_exec_prefix"
20354   prefix="$acl_save_prefix"
20355
20356                           if test "X$x" = "X-L$additional_libdir"; then
20357                             haveit=yes
20358                             break
20359                           fi
20360                         done
20361                         if test -z "$haveit"; then
20362                           if test -d "$additional_libdir"; then
20363                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20364                           fi
20365                         fi
20366                       fi
20367                     fi
20368                     ;;
20369                   -R*)
20370                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20371                     if test "$enable_rpath" != no; then
20372                                                                   haveit=
20373                       for x in $rpathdirs; do
20374                         if test "X$x" = "X$dir"; then
20375                           haveit=yes
20376                           break
20377                         fi
20378                       done
20379                       if test -z "$haveit"; then
20380                         rpathdirs="$rpathdirs $dir"
20381                       fi
20382                                                                   haveit=
20383                       for x in $ltrpathdirs; do
20384                         if test "X$x" = "X$dir"; then
20385                           haveit=yes
20386                           break
20387                         fi
20388                       done
20389                       if test -z "$haveit"; then
20390                         ltrpathdirs="$ltrpathdirs $dir"
20391                       fi
20392                     fi
20393                     ;;
20394                   -l*)
20395                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20396                     ;;
20397                   *.la)
20398                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20399                     ;;
20400                   *)
20401                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20402                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20403                     ;;
20404                 esac
20405               done
20406             fi
20407           else
20408                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20409             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20410           fi
20411         fi
20412       fi
20413     done
20414   done
20415   if test "X$rpathdirs" != "X"; then
20416     if test -n "$hardcode_libdir_separator"; then
20417                         alldirs=
20418       for found_dir in $rpathdirs; do
20419         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20420       done
20421             acl_save_libdir="$libdir"
20422       libdir="$alldirs"
20423       eval flag=\"$hardcode_libdir_flag_spec\"
20424       libdir="$acl_save_libdir"
20425       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20426     else
20427             for found_dir in $rpathdirs; do
20428         acl_save_libdir="$libdir"
20429         libdir="$found_dir"
20430         eval flag=\"$hardcode_libdir_flag_spec\"
20431         libdir="$acl_save_libdir"
20432         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20433       done
20434     fi
20435   fi
20436   if test "X$ltrpathdirs" != "X"; then
20437             for found_dir in $ltrpathdirs; do
20438       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20439     done
20440   fi
20441
20442           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20443 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20444 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20445   $as_echo_n "(cached) " >&6
20446 else
20447   gt_save_CPPFLAGS="$CPPFLAGS"
20448             CPPFLAGS="$CPPFLAGS $INCINTL"
20449             gt_save_LIBS="$LIBS"
20450             LIBS="$LIBS $LIBINTL"
20451                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20452 /* end confdefs.h.  */
20453 #include <libintl.h>
20454 extern int _nl_msg_cat_cntr;
20455 extern
20456 #ifdef __cplusplus
20457 "C"
20458 #endif
20459 const char *_nl_expand_alias (const char *);
20460 int
20461 main ()
20462 {
20463 bindtextdomain ("", "");
20464 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20465   ;
20466   return 0;
20467 }
20468 _ACEOF
20469 if ac_fn_c_try_link "$LINENO"; then :
20470   gt_cv_func_gnugettext1_libintl=yes
20471 else
20472   gt_cv_func_gnugettext1_libintl=no
20473 fi
20474 rm -f core conftest.err conftest.$ac_objext \
20475     conftest$ac_exeext conftest.$ac_ext
20476                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20477               LIBS="$LIBS $LIBICONV"
20478               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h.  */
20480 #include <libintl.h>
20481 extern int _nl_msg_cat_cntr;
20482 extern
20483 #ifdef __cplusplus
20484 "C"
20485 #endif
20486 const char *_nl_expand_alias (const char *);
20487 int
20488 main ()
20489 {
20490 bindtextdomain ("", "");
20491 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_link "$LINENO"; then :
20497   LIBINTL="$LIBINTL $LIBICONV"
20498                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20499                 gt_cv_func_gnugettext1_libintl=yes
20500
20501 fi
20502 rm -f core conftest.err conftest.$ac_objext \
20503     conftest$ac_exeext conftest.$ac_ext
20504             fi
20505             CPPFLAGS="$gt_save_CPPFLAGS"
20506             LIBS="$gt_save_LIBS"
20507 fi
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20509 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20510         fi
20511
20512                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20513            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20514                 && test "$PACKAGE" != gettext-runtime \
20515                 && test "$PACKAGE" != gettext-tools; }; then
20516           gt_use_preinstalled_gnugettext=yes
20517         else
20518                     LIBINTL=
20519           LTLIBINTL=
20520           INCINTL=
20521         fi
20522
20523
20524         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20525                               nls_cv_use_gnu_gettext=yes
20526         fi
20527       fi
20528
20529       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20530                 BUILD_INCLUDED_LIBINTL=yes
20531         USE_INCLUDED_LIBINTL=yes
20532         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20533         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20534         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20535       fi
20536
20537       CATOBJEXT=
20538       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20539          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20540                 CATOBJEXT=.gmo
20541       fi
20542
20543
20544     if test -n "$INTL_MACOSX_LIBS"; then
20545       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20546          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20547                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20548         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20549       fi
20550     fi
20551
20552     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20553        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20554
20555 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20556
20557     else
20558       USE_NLS=no
20559     fi
20560   fi
20561
20562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20563 $as_echo_n "checking whether to use NLS... " >&6; }
20564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20565 $as_echo "$USE_NLS" >&6; }
20566   if test "$USE_NLS" = "yes"; then
20567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20568 $as_echo_n "checking where the gettext function comes from... " >&6; }
20569     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20570       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20571         gt_source="external libintl"
20572       else
20573         gt_source="libc"
20574       fi
20575     else
20576       gt_source="included intl directory"
20577     fi
20578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20579 $as_echo "$gt_source" >&6; }
20580   fi
20581
20582   if test "$USE_NLS" = "yes"; then
20583
20584     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20585       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20587 $as_echo_n "checking how to link with libintl... " >&6; }
20588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20589 $as_echo "$LIBINTL" >&6; }
20590
20591   for element in $INCINTL; do
20592     haveit=
20593     for x in $CPPFLAGS; do
20594
20595   acl_save_prefix="$prefix"
20596   prefix="$acl_final_prefix"
20597   acl_save_exec_prefix="$exec_prefix"
20598   exec_prefix="$acl_final_exec_prefix"
20599   eval x=\"$x\"
20600   exec_prefix="$acl_save_exec_prefix"
20601   prefix="$acl_save_prefix"
20602
20603       if test "X$x" = "X$element"; then
20604         haveit=yes
20605         break
20606       fi
20607     done
20608     if test -z "$haveit"; then
20609       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20610     fi
20611   done
20612
20613       fi
20614
20615
20616 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20617
20618
20619 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20620
20621     fi
20622
20623         POSUB=po
20624   fi
20625
20626
20627             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20628       BUILD_INCLUDED_LIBINTL=yes
20629     fi
20630
20631
20632
20633
20634
20635         nls_cv_header_intl=
20636     nls_cv_header_libgt=
20637
20638         DATADIRNAME=share
20639
20640
20641         INSTOBJEXT=.mo
20642
20643
20644         GENCAT=gencat
20645
20646
20647         INTLOBJS=
20648     if test "$USE_INCLUDED_LIBINTL" = yes; then
20649       INTLOBJS="\$(GETTOBJS)"
20650     fi
20651
20652
20653         INTL_LIBTOOL_SUFFIX_PREFIX=
20654
20655
20656
20657     INTLLIBS="$LIBINTL"
20658
20659
20660
20661
20662
20663
20664 fi
20665
20666 support_smartalloc=yes
20667 support_readline=yes
20668 support_conio=yes
20669 support_gnome=no
20670 support_bat=no
20671 support_wx_console=no
20672 support_tray_monitor=no
20673 support_tls=no
20674 support_crypto=no
20675 gnome_version=
20676 wx_version=
20677 support_static_tools=no
20678 support_static_fd=no
20679 support_static_sd=no
20680 support_static_dir=no
20681 support_static_cons=no
20682 support_python=no
20683 build_client_only=no
20684 build_dird=yes
20685 build_stored=yes
20686 db_backends=""
20687 support_lockmgr=no
20688
20689
20690 # Check whether --enable-gnome was given.
20691 if test "${enable_gnome+set}" = set; then :
20692   enableval=$enable_gnome;
20693        if test x$enableval = xyes; then
20694           support_gnome=yes
20695        fi
20696
20697
20698 fi
20699
20700
20701 GNOME_DIR=
20702 if test x$support_gnome = xyes; then
20703    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20704    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20705 fi
20706 # AC_SUBST(GNOME_DIR)
20707
20708 # Check whether --enable-bat was given.
20709 if test "${enable_bat+set}" = set; then :
20710   enableval=$enable_bat;
20711        if test x$enableval = xyes; then
20712
20713 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20714
20715           support_bat=yes
20716        fi
20717
20718
20719 fi
20720
20721
20722 BAT_DIR=
20723 if test x$support_bat = xyes; then
20724    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20725    pkg=$?
20726    if test $pkg = 0; then
20727       BAT_DIR=src/qt-console
20728    else
20729       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20730    fi
20731 fi
20732
20733 got_qwt=no
20734 QWT_INC=
20735 QWT_LDFLAGS=
20736 QWT_LIB=
20737 QWT=
20738 no_qwt=no
20739
20740
20741
20742
20743
20744
20745
20746
20747 # Check whether --enable-bwx-console was given.
20748 if test "${enable_bwx_console+set}" = set; then :
20749   enableval=$enable_bwx_console;
20750        if test x$enableval = xyes; then
20751           support_wx_console=yes
20752        fi
20753
20754
20755 fi
20756
20757
20758 WX_DIR=
20759 if test x$support_wx_console = xyes; then
20760    abc=`$WXCONFIG $WXFLAGS --cppflags`
20761    pkg=$?
20762    if test $pkg = 0; then
20763       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20764       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20765       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20766
20767
20768
20769       WX_DIR="src/wx-console"
20770    else
20771       echo " "
20772       echo "wx-config program not found. bwx-console disabled."
20773       echo " "
20774       support_wx_console=no
20775    fi
20776 fi
20777
20778
20779 # Check whether --enable-tray-monitor was given.
20780 if test "${enable_tray_monitor+set}" = set; then :
20781   enableval=$enable_tray_monitor;
20782        if test x$enableval = xyes; then
20783           support_tray_monitor=yes
20784        fi
20785
20786
20787 fi
20788
20789
20790 TRAY_MONITOR_DIR=
20791 if test x$support_tray_monitor = xyes; then
20792    abc=`$PKGCONFIG --exists gtk+-2.0`
20793    pkg=$?
20794    if test $pkg = 0; then
20795       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20796       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20797
20798
20799       TRAY_MONITOR_DIR=src/tray-monitor
20800       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20801       pkg=$?
20802       if test $pkg = 0; then
20803
20804 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20805
20806       fi
20807    fi
20808 fi
20809
20810
20811 # Check whether --enable-smartalloc was given.
20812 if test "${enable_smartalloc+set}" = set; then :
20813   enableval=$enable_smartalloc;
20814        if test x$enableval = xno; then
20815           support_smartalloc=no
20816        fi
20817
20818
20819 fi
20820
20821
20822 if test x$support_smartalloc = xyes; then
20823
20824 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20825
20826 fi
20827
20828 # Check whether --enable-lockmgr was given.
20829 if test "${enable_lockmgr+set}" = set; then :
20830   enableval=$enable_lockmgr;
20831        if test x$enableval = xyes; then
20832           support_lockmgr=yes
20833        fi
20834
20835
20836 fi
20837
20838
20839 if test x$support_lockmgr = xyes; then
20840
20841 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20842
20843 fi
20844
20845
20846 # Check whether --enable-static-tools was given.
20847 if test "${enable_static_tools+set}" = set; then :
20848   enableval=$enable_static_tools;
20849        if test x$enableval = xyes; then
20850           if test x$use_libtool = xyes; then
20851              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20852   please rerun configure with --disable-libtool" "$LINENO" 5
20853           fi
20854           support_static_tools=yes
20855        fi
20856
20857
20858 fi
20859
20860
20861 TTOOL_LDFLAGS=
20862 if test x$support_static_tools = xyes; then
20863    TTOOL_LDFLAGS="-static"
20864 fi
20865
20866
20867 # Check whether --enable-static-fd was given.
20868 if test "${enable_static_fd+set}" = set; then :
20869   enableval=$enable_static_fd;
20870        if test x$enableval = xyes; then
20871           if test x$use_libtool = xyes; then
20872              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20873   please rerun configure with --disable-libtool" "$LINENO" 5
20874           fi
20875           support_static_fd=yes
20876        fi
20877
20878
20879 fi
20880
20881
20882 STATIC_FD=
20883 if test x$support_static_fd = xyes; then
20884    STATIC_FD="static-bacula-fd"
20885 fi
20886
20887
20888 # Check whether --enable-static-sd was given.
20889 if test "${enable_static_sd+set}" = set; then :
20890   enableval=$enable_static_sd;
20891        if test x$enableval = xyes; then
20892           if test x$use_libtool = xyes; then
20893              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20894   please rerun configure with --disable-libtool" "$LINENO" 5
20895           fi
20896           support_static_sd=yes
20897        fi
20898
20899
20900 fi
20901
20902
20903 STATIC_SD=
20904 if test x$support_static_sd = xyes; then
20905    STATIC_SD="static-bacula-sd"
20906 fi
20907
20908
20909 # Check whether --enable-static-dir was given.
20910 if test "${enable_static_dir+set}" = set; then :
20911   enableval=$enable_static_dir;
20912        if test x$enableval = xyes; then
20913           if test x$use_libtool = xyes; then
20914              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20915   please rerun configure with --disable-libtool" "$LINENO" 5
20916           fi
20917           support_static_dir=yes
20918        fi
20919
20920
20921 fi
20922
20923
20924 STATIC_DIR=
20925 if test x$support_static_dir = xyes; then
20926    STATIC_DIR="static-bacula-dir"
20927 fi
20928
20929
20930 # Check whether --enable-static-cons was given.
20931 if test "${enable_static_cons+set}" = set; then :
20932   enableval=$enable_static_cons;
20933        if test x$enableval = xyes; then
20934           if test x$use_libtool = xyes; then
20935              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20936   please rerun configure with --disable-libtool" "$LINENO" 5
20937           fi
20938           support_static_cons=yes
20939        fi
20940
20941
20942 fi
20943
20944
20945 STATIC_CONS=
20946 STATIC_GNOME_CONS=
20947 STATIC_WX_CONS=
20948 if test x$support_static_cons = xyes; then
20949    STATIC_CONS="static-bconsole"
20950    STATIC_GNOME_CONS="static-bgnome-console"
20951    STATIC_WX_CONS="static-bwx-console"
20952 fi
20953
20954
20955
20956
20957 # Check whether --enable-client-only was given.
20958 if test "${enable_client_only+set}" = set; then :
20959   enableval=$enable_client_only;
20960        if test x$enableval = xyes; then
20961           build_client_only=yes
20962           db_backends="None"
20963           DB_BACKENDS="none"
20964        fi
20965
20966
20967 fi
20968
20969 if test x$build_client_only = xno; then
20970    ALL_DIRS="subdirs"
20971 else
20972    ALL_DIRS=""
20973 fi
20974
20975
20976 # Check whether --enable-build-dird was given.
20977 if test "${enable_build_dird+set}" = set; then :
20978   enableval=$enable_build_dird;
20979        if test x$enableval = xno; then
20980           build_dird=no
20981        fi
20982
20983
20984 fi
20985
20986 if test x$build_dird = xyes; then
20987    DIRD_DIR="src/dird"
20988    DIR_TOOLS="DIRTOOLS"
20989 else
20990    DIRD_DIR=""
20991    DIR_TOOLS="NODIRTOOLS"
20992 fi
20993
20994
20995
20996 # Check whether --enable-build-stored was given.
20997 if test "${enable_build_stored+set}" = set; then :
20998   enableval=$enable_build_stored;
20999       if test x$enableval = xno; then
21000          build_stored=no
21001       fi
21002
21003
21004 fi
21005
21006 if test x$build_stored = xyes; then
21007    STORED_DIR="src/stored"
21008 else
21009    STORED_DIR=""
21010 fi
21011
21012
21013 # Check whether --enable-conio was given.
21014 if test "${enable_conio+set}" = set; then :
21015   enableval=$enable_conio;
21016        if test x$enableval = xno; then
21017           support_conio=no
21018        fi
21019
21020
21021 fi
21022
21023
21024
21025 support_ipv6=yes
21026 # Check whether --enable-ipv6 was given.
21027 if test "${enable_ipv6+set}" = set; then :
21028   enableval=$enable_ipv6;
21029        if test x$enableval = xno; then
21030           support_ipv6=no
21031        fi
21032
21033
21034 fi
21035
21036
21037 if test x$support_ipv6 = xyes; then
21038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h.  */
21040  #include <sys/types.h>
21041 #include <sys/socket.h>
21042 #include <netinet/in.h>
21043 int
21044 main ()
21045 {
21046 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 if ac_fn_c_try_link "$LINENO"; then :
21052   support_ipv6=yes
21053 else
21054   support_ipv6=no
21055 fi
21056 rm -f core conftest.err conftest.$ac_objext \
21057     conftest$ac_exeext conftest.$ac_ext
21058 fi
21059
21060 if test x$support_ipv6 = xyes; then
21061
21062 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21063
21064 fi
21065
21066 TERM_LIB=""
21067 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21068 if test "x$ac_cv_header_curses_h" = xyes; then :
21069
21070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21071 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21072 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21073   $as_echo_n "(cached) " >&6
21074 else
21075   ac_check_lib_save_LIBS=$LIBS
21076 LIBS="-ltinfo  $LIBS"
21077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h.  */
21079
21080 /* Override any GCC internal prototype to avoid an error.
21081    Use char because int might match the return type of a GCC
21082    builtin and then its argument prototype would still apply.  */
21083 #ifdef __cplusplus
21084 extern "C"
21085 #endif
21086 char tgetent ();
21087 int
21088 main ()
21089 {
21090 return tgetent ();
21091   ;
21092   return 0;
21093 }
21094 _ACEOF
21095 if ac_fn_c_try_link "$LINENO"; then :
21096   ac_cv_lib_tinfo_tgetent=yes
21097 else
21098   ac_cv_lib_tinfo_tgetent=no
21099 fi
21100 rm -f core conftest.err conftest.$ac_objext \
21101     conftest$ac_exeext conftest.$ac_ext
21102 LIBS=$ac_check_lib_save_LIBS
21103 fi
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21105 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21106 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21107    TERM_LIB="-ltinfo"
21108 else
21109
21110       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21111 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21112 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21113   $as_echo_n "(cached) " >&6
21114 else
21115   ac_check_lib_save_LIBS=$LIBS
21116 LIBS="-lncurses  $LIBS"
21117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118 /* end confdefs.h.  */
21119
21120 /* Override any GCC internal prototype to avoid an error.
21121    Use char because int might match the return type of a GCC
21122    builtin and then its argument prototype would still apply.  */
21123 #ifdef __cplusplus
21124 extern "C"
21125 #endif
21126 char tgetent ();
21127 int
21128 main ()
21129 {
21130 return tgetent ();
21131   ;
21132   return 0;
21133 }
21134 _ACEOF
21135 if ac_fn_c_try_link "$LINENO"; then :
21136   ac_cv_lib_ncurses_tgetent=yes
21137 else
21138   ac_cv_lib_ncurses_tgetent=no
21139 fi
21140 rm -f core conftest.err conftest.$ac_objext \
21141     conftest$ac_exeext conftest.$ac_ext
21142 LIBS=$ac_check_lib_save_LIBS
21143 fi
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21145 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21146 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21147    TERM_LIB="-lncurses"
21148 else
21149
21150         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21151 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21152 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21153   $as_echo_n "(cached) " >&6
21154 else
21155   ac_check_lib_save_LIBS=$LIBS
21156 LIBS="-ltermcap  $LIBS"
21157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h.  */
21159
21160 /* Override any GCC internal prototype to avoid an error.
21161    Use char because int might match the return type of a GCC
21162    builtin and then its argument prototype would still apply.  */
21163 #ifdef __cplusplus
21164 extern "C"
21165 #endif
21166 char tgetent ();
21167 int
21168 main ()
21169 {
21170 return tgetent ();
21171   ;
21172   return 0;
21173 }
21174 _ACEOF
21175 if ac_fn_c_try_link "$LINENO"; then :
21176   ac_cv_lib_termcap_tgetent=yes
21177 else
21178   ac_cv_lib_termcap_tgetent=no
21179 fi
21180 rm -f core conftest.err conftest.$ac_objext \
21181     conftest$ac_exeext conftest.$ac_ext
21182 LIBS=$ac_check_lib_save_LIBS
21183 fi
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21185 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21186 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21187    TERM_LIB="-ltermcap"
21188 fi
21189
21190
21191 fi
21192
21193
21194 fi
21195
21196
21197 else
21198     for ac_header in curses.h
21199 do :
21200   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21201 if test "x$ac_cv_header_curses_h" = xyes; then :
21202   cat >>confdefs.h <<_ACEOF
21203 #define HAVE_CURSES_H 1
21204 _ACEOF
21205
21206 fi
21207
21208 done
21209
21210      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21211 if test "x$ac_cv_header_term_h" = xyes; then :
21212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21213 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21214 if ${ac_cv_lib_curses_tgetent+:} false; then :
21215   $as_echo_n "(cached) " >&6
21216 else
21217   ac_check_lib_save_LIBS=$LIBS
21218 LIBS="-lcurses  $LIBS"
21219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21220 /* end confdefs.h.  */
21221
21222 /* Override any GCC internal prototype to avoid an error.
21223    Use char because int might match the return type of a GCC
21224    builtin and then its argument prototype would still apply.  */
21225 #ifdef __cplusplus
21226 extern "C"
21227 #endif
21228 char tgetent ();
21229 int
21230 main ()
21231 {
21232 return tgetent ();
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 if ac_fn_c_try_link "$LINENO"; then :
21238   ac_cv_lib_curses_tgetent=yes
21239 else
21240   ac_cv_lib_curses_tgetent=no
21241 fi
21242 rm -f core conftest.err conftest.$ac_objext \
21243     conftest$ac_exeext conftest.$ac_ext
21244 LIBS=$ac_check_lib_save_LIBS
21245 fi
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21247 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21248 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21249    TERM_LIB="-lcurses"
21250 fi
21251
21252
21253 fi
21254
21255
21256
21257 fi
21258
21259
21260
21261
21262 got_conio="no"
21263 if test x$support_conio = xyes; then
21264    if test x$TERM_LIB != x; then
21265       CONS_LIBS=$TERM_LIB
21266       CONS_OBJ="conio.o"
21267       CONS_SRC="conio.c"
21268       got_conio="yes"
21269       support_readline=no
21270
21271 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21272
21273    else
21274       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21275    fi
21276 fi
21277
21278
21279 # Check whether --enable-readline was given.
21280 if test "${enable_readline+set}" = set; then :
21281   enableval=$enable_readline;
21282        if test x$enableval = xno; then
21283           support_readline=no
21284        fi
21285
21286
21287 fi
21288
21289 if test x$TERM_LIB = x ; then
21290    support_readline=no
21291 fi
21292
21293 got_readline="no"
21294 READLINE_SRC=
21295 if test x$support_readline = xyes; then
21296
21297 # Check whether --with-readline was given.
21298 if test "${with_readline+set}" = set; then :
21299   withval=$with_readline;
21300           case "$with_readline" in
21301           no)
21302              :
21303              ;;
21304           yes|*)
21305              if test -f ${with_readline}/readline.h; then
21306                 CONS_INC="-I${with_readline}"
21307                 CONS_LDFLAGS="-L$with_readline"
21308              elif test -f ${with_readline}/include/readline/readline.h; then
21309                 CONS_INC="-I${with_readline}/include/readline"
21310                 CONS_LDFLAGS="-L${with_readline}/lib"
21311                 with_readline="${with_readline}/include/readline"
21312              else
21313                 with_readline="/usr/include/readline"
21314              fi
21315
21316              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21317 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21319
21320
21321 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21322
21323                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21324                     got_readline="yes"
21325
21326 else
21327
21328                     echo " "
21329                     echo "readline.h not found. readline turned off ..."
21330                     echo " "
21331
21332
21333 fi
21334
21335
21336              ;;
21337           esac
21338
21339 else
21340
21341                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21342 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21343
21344
21345 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21346
21347                 got_readline="yes"
21348                 CONS_INC="-I/usr/include/readline"
21349                 CONS_LIBS="-lreadline $TERM_LIB"
21350
21351 else
21352
21353                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21354 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21356
21357
21358 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21359
21360                         got_readline="yes"
21361                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21362                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21363                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21364                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21365
21366 else
21367
21368                         echo " "
21369                         echo "readline.h not found. readline turned off ..."
21370                         echo " "
21371
21372
21373 fi
21374
21375
21376
21377
21378 fi
21379
21380
21381
21382
21383 fi
21384
21385 fi
21386
21387
21388
21389
21390
21391
21392
21393
21394 MAKE_SHELL=/bin/sh
21395
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21397 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21398 if ${ac_cv_header_stat_broken+:} false; then :
21399   $as_echo_n "(cached) " >&6
21400 else
21401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21402 /* end confdefs.h.  */
21403 #include <sys/types.h>
21404 #include <sys/stat.h>
21405
21406 #if defined S_ISBLK && defined S_IFDIR
21407 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21408 #endif
21409
21410 #if defined S_ISBLK && defined S_IFCHR
21411 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21412 #endif
21413
21414 #if defined S_ISLNK && defined S_IFREG
21415 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21416 #endif
21417
21418 #if defined S_ISSOCK && defined S_IFREG
21419 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21420 #endif
21421
21422 _ACEOF
21423 if ac_fn_c_try_compile "$LINENO"; then :
21424   ac_cv_header_stat_broken=no
21425 else
21426   ac_cv_header_stat_broken=yes
21427 fi
21428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 fi
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21431 $as_echo "$ac_cv_header_stat_broken" >&6; }
21432 if test $ac_cv_header_stat_broken = yes; then
21433
21434 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21435
21436 fi
21437
21438 ac_header_dirent=no
21439 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21440   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21442 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21443 if eval \${$as_ac_Header+:} false; then :
21444   $as_echo_n "(cached) " >&6
21445 else
21446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h.  */
21448 #include <sys/types.h>
21449 #include <$ac_hdr>
21450
21451 int
21452 main ()
21453 {
21454 if ((DIR *) 0)
21455 return 0;
21456   ;
21457   return 0;
21458 }
21459 _ACEOF
21460 if ac_fn_c_try_compile "$LINENO"; then :
21461   eval "$as_ac_Header=yes"
21462 else
21463   eval "$as_ac_Header=no"
21464 fi
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466 fi
21467 eval ac_res=\$$as_ac_Header
21468                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21469 $as_echo "$ac_res" >&6; }
21470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21471   cat >>confdefs.h <<_ACEOF
21472 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21473 _ACEOF
21474
21475 ac_header_dirent=$ac_hdr; break
21476 fi
21477
21478 done
21479 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21480 if test $ac_header_dirent = dirent.h; then
21481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21482 $as_echo_n "checking for library containing opendir... " >&6; }
21483 if ${ac_cv_search_opendir+:} false; then :
21484   $as_echo_n "(cached) " >&6
21485 else
21486   ac_func_search_save_LIBS=$LIBS
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h.  */
21489
21490 /* Override any GCC internal prototype to avoid an error.
21491    Use char because int might match the return type of a GCC
21492    builtin and then its argument prototype would still apply.  */
21493 #ifdef __cplusplus
21494 extern "C"
21495 #endif
21496 char opendir ();
21497 int
21498 main ()
21499 {
21500 return opendir ();
21501   ;
21502   return 0;
21503 }
21504 _ACEOF
21505 for ac_lib in '' dir; do
21506   if test -z "$ac_lib"; then
21507     ac_res="none required"
21508   else
21509     ac_res=-l$ac_lib
21510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21511   fi
21512   if ac_fn_c_try_link "$LINENO"; then :
21513   ac_cv_search_opendir=$ac_res
21514 fi
21515 rm -f core conftest.err conftest.$ac_objext \
21516     conftest$ac_exeext
21517   if ${ac_cv_search_opendir+:} false; then :
21518   break
21519 fi
21520 done
21521 if ${ac_cv_search_opendir+:} false; then :
21522
21523 else
21524   ac_cv_search_opendir=no
21525 fi
21526 rm conftest.$ac_ext
21527 LIBS=$ac_func_search_save_LIBS
21528 fi
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21530 $as_echo "$ac_cv_search_opendir" >&6; }
21531 ac_res=$ac_cv_search_opendir
21532 if test "$ac_res" != no; then :
21533   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21534
21535 fi
21536
21537 else
21538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21539 $as_echo_n "checking for library containing opendir... " >&6; }
21540 if ${ac_cv_search_opendir+:} false; then :
21541   $as_echo_n "(cached) " >&6
21542 else
21543   ac_func_search_save_LIBS=$LIBS
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h.  */
21546
21547 /* Override any GCC internal prototype to avoid an error.
21548    Use char because int might match the return type of a GCC
21549    builtin and then its argument prototype would still apply.  */
21550 #ifdef __cplusplus
21551 extern "C"
21552 #endif
21553 char opendir ();
21554 int
21555 main ()
21556 {
21557 return opendir ();
21558   ;
21559   return 0;
21560 }
21561 _ACEOF
21562 for ac_lib in '' x; do
21563   if test -z "$ac_lib"; then
21564     ac_res="none required"
21565   else
21566     ac_res=-l$ac_lib
21567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21568   fi
21569   if ac_fn_c_try_link "$LINENO"; then :
21570   ac_cv_search_opendir=$ac_res
21571 fi
21572 rm -f core conftest.err conftest.$ac_objext \
21573     conftest$ac_exeext
21574   if ${ac_cv_search_opendir+:} false; then :
21575   break
21576 fi
21577 done
21578 if ${ac_cv_search_opendir+:} false; then :
21579
21580 else
21581   ac_cv_search_opendir=no
21582 fi
21583 rm conftest.$ac_ext
21584 LIBS=$ac_func_search_save_LIBS
21585 fi
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21587 $as_echo "$ac_cv_search_opendir" >&6; }
21588 ac_res=$ac_cv_search_opendir
21589 if test "$ac_res" != no; then :
21590   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21591
21592 fi
21593
21594 fi
21595
21596 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21597 do :
21598   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21601   cat >>confdefs.h <<_ACEOF
21602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21603 _ACEOF
21604
21605 fi
21606 done
21607
21608 for ac_func in nanosleep nl_langinfo
21609 do :
21610   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21613   cat >>confdefs.h <<_ACEOF
21614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21615 _ACEOF
21616
21617 fi
21618 done
21619
21620 for ac_header in varargs.h
21621 do :
21622   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21623 if test "x$ac_cv_header_varargs_h" = xyes; then :
21624   cat >>confdefs.h <<_ACEOF
21625 #define HAVE_VARARGS_H 1
21626 _ACEOF
21627
21628 fi
21629
21630 done
21631
21632
21633
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21635 $as_echo_n "checking for Python support... " >&6; }
21636
21637 # Check whether --with-python was given.
21638 if test "${with_python+set}" = set; then :
21639   withval=$with_python;
21640        PYTHON_INCDIR=
21641        PYTHON_LIBS=
21642        if test "$withval" != "no"; then
21643           if test "$withval" = "yes"; then
21644              if test -e /usr/bin/python-config ; then
21645                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21646                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21647              else
21648                 for python_root in /usr /usr/local /usr/sfw; do
21649                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21650                       if test -f $python_root/include/${ver}/Python.h; then
21651                          PYTHON_INCDIR=-I$python_root/include/${ver}
21652                          if test -d $python_root/lib64/${ver}/config; then
21653                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21654                          else
21655                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21656                          fi
21657                          break
21658                       fi
21659                    done
21660                 done
21661
21662                 if test x$PYTHON_INCDIR = x; then
21663                    if test -f $prefix/include/Python.h; then
21664                       PYTHON_INCDIR=-I$prefix/include
21665                       if test -d $prefix/lib64/config; then
21666                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21667                       else
21668                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21669                       fi
21670                    else
21671                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21672 $as_echo "no" >&6; }
21673                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21674                    fi
21675                 fi
21676              fi
21677           else
21678              if test -e $withval/bin/python-config ; then
21679                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21680                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21681              elif test -f $withval/Python.h; then
21682                 PYTHON_INCDIR=-I$withval
21683                 PYTHON_LIBS="-L$withval/config -lpython"
21684              elif test -f $withval/include/Python.h; then
21685                 PYTHON_INCDIR=-I$withval/include
21686                 if test -d $withval/lib64/config; then
21687                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21688                 else
21689                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21690                 fi
21691              elif test -f $withval/include/python/Python.h; then
21692                 PYTHON_INCDIR=-I$withval/include/python
21693                 if test -d $withval/lib64/python/config; then
21694                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21695                 else
21696                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21697                 fi
21698              else
21699                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21700 $as_echo "no" >&6; }
21701                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21702              fi
21703           fi
21704
21705           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21706
21707           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21708 $as_echo "yes" >&6; }
21709           support_python=yes
21710           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21711 $as_echo "$as_me: checking for more Python libs" >&6;}
21712           saved_LIBS="$LIBS"; LIBS=
21713           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21714 $as_echo_n "checking for library containing shm_open... " >&6; }
21715 if ${ac_cv_search_shm_open+:} false; then :
21716   $as_echo_n "(cached) " >&6
21717 else
21718   ac_func_search_save_LIBS=$LIBS
21719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21720 /* end confdefs.h.  */
21721
21722 /* Override any GCC internal prototype to avoid an error.
21723    Use char because int might match the return type of a GCC
21724    builtin and then its argument prototype would still apply.  */
21725 #ifdef __cplusplus
21726 extern "C"
21727 #endif
21728 char shm_open ();
21729 int
21730 main ()
21731 {
21732 return shm_open ();
21733   ;
21734   return 0;
21735 }
21736 _ACEOF
21737 for ac_lib in '' rt; do
21738   if test -z "$ac_lib"; then
21739     ac_res="none required"
21740   else
21741     ac_res=-l$ac_lib
21742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21743   fi
21744   if ac_fn_c_try_link "$LINENO"; then :
21745   ac_cv_search_shm_open=$ac_res
21746 fi
21747 rm -f core conftest.err conftest.$ac_objext \
21748     conftest$ac_exeext
21749   if ${ac_cv_search_shm_open+:} false; then :
21750   break
21751 fi
21752 done
21753 if ${ac_cv_search_shm_open+:} false; then :
21754
21755 else
21756   ac_cv_search_shm_open=no
21757 fi
21758 rm conftest.$ac_ext
21759 LIBS=$ac_func_search_save_LIBS
21760 fi
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21762 $as_echo "$ac_cv_search_shm_open" >&6; }
21763 ac_res=$ac_cv_search_shm_open
21764 if test "$ac_res" != no; then :
21765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21766
21767 fi
21768
21769           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21770 $as_echo_n "checking for openpty in -lutil... " >&6; }
21771 if ${ac_cv_lib_util_openpty+:} false; then :
21772   $as_echo_n "(cached) " >&6
21773 else
21774   ac_check_lib_save_LIBS=$LIBS
21775 LIBS="-lutil  $LIBS"
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h.  */
21778
21779 /* Override any GCC internal prototype to avoid an error.
21780    Use char because int might match the return type of a GCC
21781    builtin and then its argument prototype would still apply.  */
21782 #ifdef __cplusplus
21783 extern "C"
21784 #endif
21785 char openpty ();
21786 int
21787 main ()
21788 {
21789 return openpty ();
21790   ;
21791   return 0;
21792 }
21793 _ACEOF
21794 if ac_fn_c_try_link "$LINENO"; then :
21795   ac_cv_lib_util_openpty=yes
21796 else
21797   ac_cv_lib_util_openpty=no
21798 fi
21799 rm -f core conftest.err conftest.$ac_objext \
21800     conftest$ac_exeext conftest.$ac_ext
21801 LIBS=$ac_check_lib_save_LIBS
21802 fi
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21804 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21805 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21806   cat >>confdefs.h <<_ACEOF
21807 #define HAVE_LIBUTIL 1
21808 _ACEOF
21809
21810   LIBS="-lutil $LIBS"
21811
21812 fi
21813
21814           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21815           LIBS="$saved_LIBS"
21816        else
21817           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21818 $as_echo "no" >&6; }
21819        fi
21820
21821 else
21822
21823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824 $as_echo "no" >&6; }
21825
21826
21827 fi
21828
21829
21830
21831
21832 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21833 if test "x$ac_cv_func_socket" = xyes; then :
21834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21835 $as_echo "using libc's socket" >&6; }
21836 else
21837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21838 $as_echo_n "checking for socket in -lxnet... " >&6; }
21839 if ${ac_cv_lib_xnet_socket+:} false; then :
21840   $as_echo_n "(cached) " >&6
21841 else
21842   ac_check_lib_save_LIBS=$LIBS
21843 LIBS="-lxnet  $LIBS"
21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h.  */
21846
21847 /* Override any GCC internal prototype to avoid an error.
21848    Use char because int might match the return type of a GCC
21849    builtin and then its argument prototype would still apply.  */
21850 #ifdef __cplusplus
21851 extern "C"
21852 #endif
21853 char socket ();
21854 int
21855 main ()
21856 {
21857 return socket ();
21858   ;
21859   return 0;
21860 }
21861 _ACEOF
21862 if ac_fn_c_try_link "$LINENO"; then :
21863   ac_cv_lib_xnet_socket=yes
21864 else
21865   ac_cv_lib_xnet_socket=no
21866 fi
21867 rm -f core conftest.err conftest.$ac_objext \
21868     conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21870 fi
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21872 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21873 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21874   cat >>confdefs.h <<_ACEOF
21875 #define HAVE_LIBXNET 1
21876 _ACEOF
21877
21878   LIBS="-lxnet $LIBS"
21879
21880 fi
21881
21882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21883 $as_echo_n "checking for socket in -lsocket... " >&6; }
21884 if ${ac_cv_lib_socket_socket+:} false; then :
21885   $as_echo_n "(cached) " >&6
21886 else
21887   ac_check_lib_save_LIBS=$LIBS
21888 LIBS="-lsocket  $LIBS"
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h.  */
21891
21892 /* Override any GCC internal prototype to avoid an error.
21893    Use char because int might match the return type of a GCC
21894    builtin and then its argument prototype would still apply.  */
21895 #ifdef __cplusplus
21896 extern "C"
21897 #endif
21898 char socket ();
21899 int
21900 main ()
21901 {
21902 return socket ();
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 if ac_fn_c_try_link "$LINENO"; then :
21908   ac_cv_lib_socket_socket=yes
21909 else
21910   ac_cv_lib_socket_socket=no
21911 fi
21912 rm -f core conftest.err conftest.$ac_objext \
21913     conftest$ac_exeext conftest.$ac_ext
21914 LIBS=$ac_check_lib_save_LIBS
21915 fi
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21917 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21918 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21919   cat >>confdefs.h <<_ACEOF
21920 #define HAVE_LIBSOCKET 1
21921 _ACEOF
21922
21923   LIBS="-lsocket $LIBS"
21924
21925 fi
21926
21927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21928 $as_echo_n "checking for socket in -linet... " >&6; }
21929 if ${ac_cv_lib_inet_socket+:} false; then :
21930   $as_echo_n "(cached) " >&6
21931 else
21932   ac_check_lib_save_LIBS=$LIBS
21933 LIBS="-linet  $LIBS"
21934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21935 /* end confdefs.h.  */
21936
21937 /* Override any GCC internal prototype to avoid an error.
21938    Use char because int might match the return type of a GCC
21939    builtin and then its argument prototype would still apply.  */
21940 #ifdef __cplusplus
21941 extern "C"
21942 #endif
21943 char socket ();
21944 int
21945 main ()
21946 {
21947 return socket ();
21948   ;
21949   return 0;
21950 }
21951 _ACEOF
21952 if ac_fn_c_try_link "$LINENO"; then :
21953   ac_cv_lib_inet_socket=yes
21954 else
21955   ac_cv_lib_inet_socket=no
21956 fi
21957 rm -f core conftest.err conftest.$ac_objext \
21958     conftest$ac_exeext conftest.$ac_ext
21959 LIBS=$ac_check_lib_save_LIBS
21960 fi
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21962 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21963 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21964   cat >>confdefs.h <<_ACEOF
21965 #define HAVE_LIBINET 1
21966 _ACEOF
21967
21968   LIBS="-linet $LIBS"
21969
21970 fi
21971
21972 fi
21973
21974
21975 TCPW_MSG="no"
21976 WRAPLIBS=""
21977
21978 # Check whether --with-tcp-wrappers was given.
21979 if test "${with_tcp_wrappers+set}" = set; then :
21980   withval=$with_tcp_wrappers;
21981        if test "x$withval" != "xno" ; then
21982           saved_LIBS="$LIBS"
21983           LIBS="$saved_LIBS -lwrap"
21984           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21985 $as_echo_n "checking for library containing nanosleep... " >&6; }
21986 if ${ac_cv_search_nanosleep+:} false; then :
21987   $as_echo_n "(cached) " >&6
21988 else
21989   ac_func_search_save_LIBS=$LIBS
21990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991 /* end confdefs.h.  */
21992
21993 /* Override any GCC internal prototype to avoid an error.
21994    Use char because int might match the return type of a GCC
21995    builtin and then its argument prototype would still apply.  */
21996 #ifdef __cplusplus
21997 extern "C"
21998 #endif
21999 char nanosleep ();
22000 int
22001 main ()
22002 {
22003 return nanosleep ();
22004   ;
22005   return 0;
22006 }
22007 _ACEOF
22008 for ac_lib in '' rt; do
22009   if test -z "$ac_lib"; then
22010     ac_res="none required"
22011   else
22012     ac_res=-l$ac_lib
22013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22014   fi
22015   if ac_fn_c_try_link "$LINENO"; then :
22016   ac_cv_search_nanosleep=$ac_res
22017 fi
22018 rm -f core conftest.err conftest.$ac_objext \
22019     conftest$ac_exeext
22020   if ${ac_cv_search_nanosleep+:} false; then :
22021   break
22022 fi
22023 done
22024 if ${ac_cv_search_nanosleep+:} false; then :
22025
22026 else
22027   ac_cv_search_nanosleep=no
22028 fi
22029 rm conftest.$ac_ext
22030 LIBS=$ac_func_search_save_LIBS
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22033 $as_echo "$ac_cv_search_nanosleep" >&6; }
22034 ac_res=$ac_cv_search_nanosleep
22035 if test "$ac_res" != no; then :
22036   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22037
22038 fi
22039
22040           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22041 $as_echo_n "checking for libwrap... " >&6; }
22042           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h.  */
22044
22045                #include <sys/types.h>
22046                #include <tcpd.h>
22047                int deny_severity = 0;
22048                int allow_severity = 0;
22049                struct request_info *req;
22050
22051 int
22052 main ()
22053 {
22054
22055                 hosts_access(req);
22056
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 if ac_fn_c_try_link "$LINENO"; then :
22062
22063                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22064 $as_echo "yes" >&6; }
22065
22066 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22067
22068                  TCPW_MSG="yes"
22069                  LIBS="$saved_LIBS"
22070                  WRAPLIBS="-lwrap"
22071
22072 else
22073
22074                  LIBS="$saved_LIBS -lwrap -lnsl"
22075                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22076                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h.  */
22078
22079                        #include <sys/types.h>
22080                        #include <tcpd.h>
22081                        int deny_severity = 0;
22082                        int allow_severity = 0;
22083                        struct request_info *req;
22084
22085 int
22086 main ()
22087 {
22088
22089                        hosts_access(req);
22090
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 if ac_fn_c_try_link "$LINENO"; then :
22096
22097                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22098 $as_echo "yes" >&6; }
22099
22100 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22101
22102                       TCPW_MSG="yes"
22103                       LIBS="$saved_LIBS"
22104                       WRAPLIBS="-lwrap"
22105
22106 else
22107
22108                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22109
22110
22111 fi
22112 rm -f core conftest.err conftest.$ac_objext \
22113     conftest$ac_exeext conftest.$ac_ext
22114
22115
22116 fi
22117 rm -f core conftest.err conftest.$ac_objext \
22118     conftest$ac_exeext conftest.$ac_ext
22119        fi
22120
22121
22122 fi
22123
22124
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22126 $as_echo_n "checking for OpenSSL... " >&6; }
22127
22128 # Check whether --with-openssl was given.
22129 if test "${with_openssl+set}" = set; then :
22130   withval=$with_openssl;
22131         with_openssl_directory=${withval}
22132
22133
22134 fi
22135
22136
22137 if test "x$with_openssl_directory" != "xno"; then
22138    OPENSSL_LIBS="-lssl -lcrypto"
22139    OPENSSL_INC=""
22140
22141    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22142       #
22143       # Make sure the $with_openssl_directory also makes sense
22144       #
22145       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22146          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22147          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22148       fi
22149    fi
22150
22151    saved_LIBS="${LIBS}"
22152    saved_CFLAGS="${CFLAGS}"
22153    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22154    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22155
22156    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h.  */
22158
22159           #include <openssl/ssl.h>
22160
22161 int
22162 main ()
22163 {
22164
22165            CRYPTO_set_id_callback(NULL);
22166
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 if ac_fn_c_try_link "$LINENO"; then :
22172
22173           support_tls="yes"
22174           support_crypto="yes"
22175
22176 else
22177
22178           support_tls="no"
22179           support_crypto="no"
22180
22181
22182 fi
22183 rm -f core conftest.err conftest.$ac_objext \
22184     conftest$ac_exeext conftest.$ac_ext
22185
22186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h.  */
22188
22189           #include <openssl/evp.h>
22190
22191 int
22192 main ()
22193 {
22194
22195           EVP_sha512();
22196
22197   ;
22198   return 0;
22199 }
22200 _ACEOF
22201 if ac_fn_c_try_link "$LINENO"; then :
22202
22203           ac_cv_openssl_sha2="yes"
22204
22205 else
22206
22207           ac_cv_openssl_sha2="no"
22208
22209
22210 fi
22211 rm -f core conftest.err conftest.$ac_objext \
22212     conftest$ac_exeext conftest.$ac_ext
22213
22214                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h.  */
22216
22217           #include <openssl/evp.h>
22218
22219 int
22220 main ()
22221 {
22222
22223           EVP_aes_192_cbc();
22224
22225   ;
22226   return 0;
22227 }
22228 _ACEOF
22229 if ac_fn_c_try_link "$LINENO"; then :
22230
22231           ac_cv_openssl_export="no"
22232
22233 else
22234
22235           ac_cv_openssl_export="yes"
22236
22237
22238 fi
22239 rm -f core conftest.err conftest.$ac_objext \
22240     conftest$ac_exeext conftest.$ac_ext
22241
22242    if test "$support_tls" = "yes"; then
22243
22244 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22245
22246
22247 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22248
22249
22250 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22251
22252    fi
22253
22254    if test "$ac_cv_openssl_sha2" = "yes"; then
22255
22256 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22257
22258    fi
22259
22260    if test "$ac_cv_openssl_export" = "yes"; then
22261
22262 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22263
22264    fi
22265
22266    if test "$support_crypto" = "yes"; then
22267       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22268 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22269 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22270   $as_echo_n "(cached) " >&6
22271 else
22272   ac_check_lib_save_LIBS=$LIBS
22273 LIBS="-lcrypto  $LIBS"
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h.  */
22276
22277 /* Override any GCC internal prototype to avoid an error.
22278    Use char because int might match the return type of a GCC
22279    builtin and then its argument prototype would still apply.  */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char EVP_PKEY_encrypt_old ();
22284 int
22285 main ()
22286 {
22287 return EVP_PKEY_encrypt_old ();
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 if ac_fn_c_try_link "$LINENO"; then :
22293   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22294 else
22295   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22296 fi
22297 rm -f core conftest.err conftest.$ac_objext \
22298     conftest$ac_exeext conftest.$ac_ext
22299 LIBS=$ac_check_lib_save_LIBS
22300 fi
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22302 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22303 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22304
22305 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22306
22307 fi
22308
22309    fi
22310
22311    LIBS="${saved_LIBS}"
22312    CFLAGS="${saved_CFLAGS}"
22313 else
22314    support_tls="no"
22315    support_crypto="no"
22316    OPENSSL_LIBS=""
22317    OPENSSL_INC=""
22318 fi
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22320 $as_echo "$support_tls" >&6; }
22321
22322 if test "$support_tls" = "no"; then
22323    OPENSSL_LIBS=""
22324    OPENSSL_INC=""
22325 fi
22326 if test "$support_crypto" = "no"; then
22327    OPENSSL_LIBS=""
22328    OPENSSL_INC=""
22329 fi
22330
22331
22332
22333
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22335 $as_echo_n "checking for library containing dlopen... " >&6; }
22336 if ${ac_cv_search_dlopen+:} false; then :
22337   $as_echo_n "(cached) " >&6
22338 else
22339   ac_func_search_save_LIBS=$LIBS
22340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22341 /* end confdefs.h.  */
22342
22343 /* Override any GCC internal prototype to avoid an error.
22344    Use char because int might match the return type of a GCC
22345    builtin and then its argument prototype would still apply.  */
22346 #ifdef __cplusplus
22347 extern "C"
22348 #endif
22349 char dlopen ();
22350 int
22351 main ()
22352 {
22353 return dlopen ();
22354   ;
22355   return 0;
22356 }
22357 _ACEOF
22358 for ac_lib in '' dl; do
22359   if test -z "$ac_lib"; then
22360     ac_res="none required"
22361   else
22362     ac_res=-l$ac_lib
22363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22364   fi
22365   if ac_fn_c_try_link "$LINENO"; then :
22366   ac_cv_search_dlopen=$ac_res
22367 fi
22368 rm -f core conftest.err conftest.$ac_objext \
22369     conftest$ac_exeext
22370   if ${ac_cv_search_dlopen+:} false; then :
22371   break
22372 fi
22373 done
22374 if ${ac_cv_search_dlopen+:} false; then :
22375
22376 else
22377   ac_cv_search_dlopen=no
22378 fi
22379 rm conftest.$ac_ext
22380 LIBS=$ac_func_search_save_LIBS
22381 fi
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22383 $as_echo "$ac_cv_search_dlopen" >&6; }
22384 ac_res=$ac_cv_search_dlopen
22385 if test "$ac_res" != no; then :
22386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22387
22388 fi
22389
22390
22391 working_dir=`eval echo ${prefix}/var/bacula/working`
22392
22393 # Check whether --with-working-dir was given.
22394 if test "${with_working_dir+set}" = set; then :
22395   withval=$with_working_dir;
22396        if test "x$withval" != "xno" ; then
22397          working_dir=$withval
22398        fi
22399
22400
22401 fi
22402
22403
22404
22405
22406 archivedir=/tmp
22407
22408 # Check whether --with-archivedir was given.
22409 if test "${with_archivedir+set}" = set; then :
22410   withval=$with_archivedir;
22411        if test "x$withval" != "xno" ; then
22412           archivedir=$withval
22413        fi
22414
22415
22416 fi
22417
22418
22419
22420
22421 basename=`hostname`
22422
22423 # Check whether --with-basename was given.
22424 if test "${with_basename+set}" = set; then :
22425   withval=$with_basename;
22426        if test "x$withval" != "xno" ; then
22427           basename=$withval
22428        fi
22429
22430
22431 fi
22432
22433
22434
22435
22436 hostname=`uname -n | cut -d '.' -f 1`
22437 if test x${hostname} = x ; then
22438   hostname="localhost"
22439 fi
22440
22441 # Check whether --with-hostname was given.
22442 if test "${with_hostname+set}" = set; then :
22443   withval=$with_hostname;
22444        if test "x$withval" != "xno" ; then
22445          hostname=$withval
22446        fi
22447
22448
22449 fi
22450
22451
22452
22453
22454
22455 scriptdir=`eval echo ${sysconfdir}`
22456
22457 # Check whether --with-scriptdir was given.
22458 if test "${with_scriptdir+set}" = set; then :
22459   withval=$with_scriptdir;
22460        if test "x$withval" != "xno" ; then
22461           scriptdir=$withval
22462        fi
22463
22464
22465 fi
22466
22467
22468
22469
22470
22471 bsrdir=/tmp
22472
22473 # Check whether --with-bsrdir was given.
22474 if test "${with_bsrdir+set}" = set; then :
22475   withval=$with_bsrdir;
22476        if test "x$withval" != "xno" ; then
22477           bsrdir=$withval
22478        fi
22479
22480
22481 fi
22482
22483
22484
22485
22486 logdir=/tmp
22487
22488 # Check whether --with-logdir was given.
22489 if test "${with_logdir+set}" = set; then :
22490   withval=$with_logdir;
22491        if test "x$withval" != "xno" ; then
22492           logdir=$withval
22493        fi
22494
22495
22496 fi
22497
22498
22499
22500
22501
22502 # ------------------------------------------
22503 # Where to place plugindir (plugin files)
22504 # ------------------------------------------
22505 plugindir=`eval echo ${libdir}`
22506
22507 # Check whether --with-plugindir was given.
22508 if test "${with_plugindir+set}" = set; then :
22509   withval=$with_plugindir;
22510        if test "x$withval" != "xno" ; then
22511           plugindir=$withval
22512        fi
22513
22514
22515 fi
22516
22517
22518
22519
22520 dump_email=root@localhost
22521
22522 # Check whether --with-dump-email was given.
22523 if test "${with_dump_email+set}" = set; then :
22524   withval=$with_dump_email;
22525        if test "x$withval" != "xno" ; then
22526           dump_email=$withval
22527        fi
22528
22529
22530 fi
22531
22532
22533
22534
22535 job_email=root@localhost
22536
22537 # Check whether --with-job-email was given.
22538 if test "${with_job_email+set}" = set; then :
22539   withval=$with_job_email;
22540        if test "x$withval" != "xno" ; then
22541           job_email=$withval
22542        fi
22543
22544
22545 fi
22546
22547
22548
22549
22550 smtp_host=localhost
22551
22552 # Check whether --with-smtp_host was given.
22553 if test "${with_smtp_host+set}" = set; then :
22554   withval=$with_smtp_host;
22555        if test "x$withval" != "xno" ; then
22556           smtp_host=$withval
22557        fi
22558
22559
22560 fi
22561
22562
22563
22564
22565 piddir=/var/run
22566
22567 # Check whether --with-pid-dir was given.
22568 if test "${with_pid_dir+set}" = set; then :
22569   withval=$with_pid_dir;
22570        if test "x$withval" != "xno" ; then
22571           piddir=$withval
22572        fi
22573
22574
22575 fi
22576
22577
22578 cat >>confdefs.h <<_ACEOF
22579 #define _PATH_BACULA_PIDDIR "$piddir"
22580 _ACEOF
22581
22582
22583
22584 subsysdir=/var/run/subsys
22585 if test -d /var/run/subsys; then
22586    subsysdir=/var/run/subsys
22587 elif test -d /var/lock/subsys; then
22588    subsysdir=/var/lock/subsys
22589 else
22590    subsysdir=/var/run/subsys
22591 fi
22592
22593 # Check whether --with-subsys-dir was given.
22594 if test "${with_subsys_dir+set}" = set; then :
22595   withval=$with_subsys_dir;
22596        if test "x$withval" != "xno" ; then
22597           subsysdir=$withval
22598        fi
22599
22600
22601 fi
22602
22603
22604
22605
22606 baseport=9101
22607
22608 # Check whether --with-baseport was given.
22609 if test "${with_baseport+set}" = set; then :
22610   withval=$with_baseport;
22611        if test "x$withval" != "xno" ; then
22612           baseport=$withval
22613        fi
22614
22615
22616 fi
22617
22618
22619
22620 dir_port=`expr $baseport`
22621 fd_port=`expr $baseport + 1`
22622 sd_port=`expr $fd_port + 1`
22623
22624
22625
22626
22627
22628 dir_password=
22629
22630 # Check whether --with-dir-password was given.
22631 if test "${with_dir_password+set}" = set; then :
22632   withval=$with_dir_password;
22633        if test "x$withval" != "xno" ; then
22634           dir_password=$withval
22635        fi
22636
22637
22638 fi
22639
22640
22641 if test "x$dir_password" = "x" ; then
22642    if test "x$OPENSSL" = "xnone" ; then
22643       key=`autoconf/randpass 33`
22644    else
22645       key=`openssl rand -base64 33`
22646    fi
22647    dir_password=$key
22648 fi
22649
22650 fd_password=
22651
22652 # Check whether --with-fd-password was given.
22653 if test "${with_fd_password+set}" = set; then :
22654   withval=$with_fd_password;
22655        if test "x$withval" != "xno" ; then
22656           fd_password=$withval
22657        fi
22658
22659
22660 fi
22661
22662
22663 if test "x$fd_password" = "x" ; then
22664    if test "x$OPENSSL" = "xnone" ; then
22665       key=`autoconf/randpass 37`
22666    else
22667       key=`openssl rand -base64 33`
22668    fi
22669    fd_password=$key
22670 fi
22671
22672 sd_password=
22673
22674 # Check whether --with-sd-password was given.
22675 if test "${with_sd_password+set}" = set; then :
22676   withval=$with_sd_password;
22677        if test "x$withval" != "xno" ; then
22678           sd_password=$withval
22679        fi
22680
22681
22682 fi
22683
22684
22685 if test "x$sd_password" = "x" ; then
22686    if test "x$OPENSSL" = "xnone" ; then
22687       key=`autoconf/randpass 41`
22688    else
22689       key=`openssl rand -base64 33`
22690    fi
22691    sd_password=$key
22692 fi
22693
22694 mon_dir_password=
22695
22696 # Check whether --with-mon-dir-password was given.
22697 if test "${with_mon_dir_password+set}" = set; then :
22698   withval=$with_mon_dir_password;
22699        if test "x$withval" != "xno" ; then
22700           mon_dir_password=$withval
22701        fi
22702
22703
22704 fi
22705
22706
22707 if test "x$mon_dir_password" = "x" ; then
22708    if test "x$OPENSSL" = "xnone" ; then
22709       key=`autoconf/randpass 33`
22710    else
22711       key=`openssl rand -base64 33`
22712    fi
22713    mon_dir_password=$key
22714 fi
22715
22716 mon_fd_password=
22717
22718 # Check whether --with-mon-fd-password was given.
22719 if test "${with_mon_fd_password+set}" = set; then :
22720   withval=$with_mon_fd_password;
22721        if test "x$withval" != "xno" ; then
22722           mon_fd_password=$withval
22723        fi
22724
22725
22726 fi
22727
22728
22729 if test "x$mon_fd_password" = "x" ; then
22730    if test "x$OPENSSL" = "xnone" ; then
22731       key=`autoconf/randpass 37`
22732    else
22733       key=`openssl rand -base64 33`
22734    fi
22735    mon_fd_password=$key
22736 fi
22737
22738 mon_sd_password=
22739
22740 # Check whether --with-mon-sd-password was given.
22741 if test "${with_mon_sd_password+set}" = set; then :
22742   withval=$with_mon_sd_password;
22743        if test "x$withval" != "xno" ; then
22744           mon_sd_password=$withval
22745        fi
22746
22747
22748 fi
22749
22750
22751 if test "x$mon_sd_password" = "x" ; then
22752    if test "x$OPENSSL" = "xnone" ; then
22753       key=`autoconf/randpass 41`
22754    else
22755       key=`openssl rand -base64 33`
22756    fi
22757    mon_sd_password=$key
22758 fi
22759
22760
22761
22762
22763
22764
22765
22766
22767 db_name=bacula
22768
22769 # Check whether --with-db_name was given.
22770 if test "${with_db_name+set}" = set; then :
22771   withval=$with_db_name;
22772        if test "x$withval" != "x" ; then
22773           db_name=$withval
22774        fi
22775
22776
22777 fi
22778
22779
22780
22781 db_user=bacula
22782
22783 # Check whether --with-db_user was given.
22784 if test "${with_db_user+set}" = set; then :
22785   withval=$with_db_user;
22786        if test "x$withval" != "x" ; then
22787           db_user=$withval
22788        fi
22789
22790
22791 fi
22792
22793
22794
22795 db_password=
22796
22797 # Check whether --with-db_password was given.
22798 if test "${with_db_password+set}" = set; then :
22799   withval=$with_db_password;
22800        if test "x$withval" != "x" ; then
22801           db_password=$withval
22802        fi
22803
22804
22805 fi
22806
22807
22808
22809 db_port=" "
22810
22811 # Check whether --with-db_port was given.
22812 if test "${with_db_port+set}" = set; then :
22813   withval=$with_db_port;
22814        if test "x$withval" != "x" ; then
22815           db_port=$withval
22816        fi
22817
22818
22819 fi
22820
22821
22822
22823 #
22824 # Handle users and groups for each daemon
22825 #
22826 dir_user=
22827
22828 # Check whether --with-dir_user was given.
22829 if test "${with_dir_user+set}" = set; then :
22830   withval=$with_dir_user;
22831        if test "x$withval" != "x" ; then
22832            dir_user=$withval
22833        fi
22834
22835
22836 fi
22837
22838
22839 dir_group=
22840
22841 # Check whether --with-dir_group was given.
22842 if test "${with_dir_group+set}" = set; then :
22843   withval=$with_dir_group;
22844        if test "x$withval" != "x" ; then
22845           dir_group=$withval
22846        fi
22847
22848
22849 fi
22850
22851
22852 sd_user=
22853
22854 # Check whether --with-sd_user was given.
22855 if test "${with_sd_user+set}" = set; then :
22856   withval=$with_sd_user;
22857        if test "x$withval" != "x" ; then
22858           sd_user=$withval
22859        fi
22860
22861
22862 fi
22863
22864
22865 sd_group=
22866
22867 # Check whether --with-sd_group was given.
22868 if test "${with_sd_group+set}" = set; then :
22869   withval=$with_sd_group;
22870        if test "x$withval" != "x" ; then
22871           sd_group=$withval
22872        fi
22873
22874
22875 fi
22876
22877
22878 fd_user=
22879
22880 # Check whether --with-fd_user was given.
22881 if test "${with_fd_user+set}" = set; then :
22882   withval=$with_fd_user;
22883        if test "x$withval" != "x" ; then
22884           fd_user=$withval
22885        fi
22886
22887
22888 fi
22889
22890
22891 fd_group=
22892
22893 # Check whether --with-fd_group was given.
22894 if test "${with_fd_group+set}" = set; then :
22895   withval=$with_fd_group;
22896        if test "x$withval" != "x" ; then
22897           fd_group=$withval
22898        fi
22899
22900
22901 fi
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911 SBINPERM=0750
22912
22913 # Check whether --with-sbin-perm was given.
22914 if test "${with_sbin_perm+set}" = set; then :
22915   withval=$with_sbin_perm;
22916        if test "x$withval" != "x" ; then
22917           SBINPERM=$withval
22918        fi
22919
22920
22921 fi
22922
22923
22924
22925
22926
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22928 $as_echo_n "checking for PostgreSQL support... " >&6; }
22929
22930 # Check whether --with-postgresql was given.
22931 if test "${with_postgresql+set}" = set; then :
22932   withval=$with_postgresql;
22933   if test "$withval" != "no"; then
22934       if test "$withval" = "yes"; then
22935           PG_CONFIG=`which pg_config`
22936           if test -n "$PG_CONFIG"; then
22937               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22938               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22939               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22940           elif test -f /usr/local/include/libpq-fe.h; then
22941               POSTGRESQL_INCDIR=/usr/local/include
22942               if test -d /usr/local/lib64; then
22943                  POSTGRESQL_LIBDIR=/usr/local/lib64
22944               else
22945                  POSTGRESQL_LIBDIR=/usr/local/lib
22946               fi
22947               POSTGRESQL_BINDIR=/usr/local/bin
22948           elif test -f /usr/include/libpq-fe.h; then
22949               POSTGRESQL_INCDIR=/usr/include
22950               if test -d /usr/lib64; then
22951                  POSTGRESQL_LIBDIR=/usr/lib64
22952               else
22953                  POSTGRESQL_LIBDIR=/usr/lib
22954               fi
22955               POSTGRESQL_BINDIR=/usr/bin
22956           elif test -f /usr/include/pgsql/libpq-fe.h; then
22957               POSTGRESQL_INCDIR=/usr/include/pgsql
22958               if test -d /usr/lib64/pgsql; then
22959                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22960               else
22961                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22962               fi
22963               POSTGRESQL_BINDIR=/usr/bin
22964           elif test -f /usr/include/postgresql/libpq-fe.h; then
22965               POSTGRESQL_INCDIR=/usr/include/postgresql
22966               if test -d /usr/lib64/postgresql; then
22967                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22968               else
22969                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22970               fi
22971               POSTGRESQL_BINDIR=/usr/bin
22972           else
22973               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22974 $as_echo "no" >&6; }
22975               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22976           fi
22977       elif test -f $withval/include/libpq-fe.h; then
22978           POSTGRESQL_INCDIR=$withval/include
22979           POSTGRESQL_LIBDIR=$withval/lib
22980           POSTGRESQL_BINDIR=$withval/bin
22981       elif test -f $withval/include/postgresql/libpq-fe.h; then
22982           POSTGRESQL_INCDIR=$withval/include/postgresql
22983           if test -d $withval/lib64; then
22984               POSTGRESQL_LIBDIR=$withval/lib64
22985           else
22986               POSTGRESQL_LIBDIR=$withval/lib
22987           fi
22988           POSTGRESQL_BINDIR=$withval/bin
22989       else
22990           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22991 $as_echo "no" >&6; }
22992           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22993       fi
22994
22995 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22996
22997      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22998 $as_echo "yes" >&6; }
22999
23000      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23001      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23002      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23003 if test "x$ac_cv_func_crypt" = xyes; then :
23004
23005 else
23006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23007 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23008 if ${ac_cv_lib_crypt_crypt+:} false; then :
23009   $as_echo_n "(cached) " >&6
23010 else
23011   ac_check_lib_save_LIBS=$LIBS
23012 LIBS="-lcrypt  $LIBS"
23013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23014 /* end confdefs.h.  */
23015
23016 /* Override any GCC internal prototype to avoid an error.
23017    Use char because int might match the return type of a GCC
23018    builtin and then its argument prototype would still apply.  */
23019 #ifdef __cplusplus
23020 extern "C"
23021 #endif
23022 char crypt ();
23023 int
23024 main ()
23025 {
23026 return crypt ();
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 if ac_fn_c_try_link "$LINENO"; then :
23032   ac_cv_lib_crypt_crypt=yes
23033 else
23034   ac_cv_lib_crypt_crypt=no
23035 fi
23036 rm -f core conftest.err conftest.$ac_objext \
23037     conftest$ac_exeext conftest.$ac_ext
23038 LIBS=$ac_check_lib_save_LIBS
23039 fi
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23041 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23042 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23043   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23044 fi
23045
23046 fi
23047
23048      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23049      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23050
23051      if test -z "${db_backends}"; then
23052          db_backends="PostgreSQL"
23053      else
23054          db_backends="${db_backends} PostgreSQL"
23055      fi
23056      if test -z "${DB_BACKENDS}"; then
23057          DB_BACKENDS="postgresql"
23058      else
23059          DB_BACKENDS="${DB_BACKENDS} postgresql"
23060      fi
23061   else
23062      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23063 $as_echo "no" >&6; }
23064   fi
23065
23066 else
23067
23068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23069 $as_echo "no" >&6; }
23070
23071 fi
23072
23073
23074
23075
23076
23077
23078
23079
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23081 $as_echo_n "checking for MySQL support... " >&6; }
23082
23083 # Check whether --with-mysql was given.
23084 if test "${with_mysql+set}" = set; then :
23085   withval=$with_mysql;
23086   if test "$withval" != "no"; then
23087         if test "$withval" = "yes"; then
23088            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23089                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23090                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23091                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23092                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23093                    else
23094                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23095                    fi
23096                    MYSQL_BINDIR=/usr/local/mysql/bin
23097            elif test -f /usr/include/mysql/mysql.h; then
23098                    MYSQL_INCDIR=/usr/include/mysql
23099                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23100                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23101                            MYSQL_LIBDIR=/usr/lib64/mysql
23102                    elif test -f /usr/lib64/libmysqlclient_r.a \
23103                         -o -f /usr/lib64/libmysqlclient_r.so; then
23104                            MYSQL_LIBDIR=/usr/lib64
23105                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23106                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23107                            MYSQL_LIBDIR=/usr/lib/mysql
23108                    else
23109                            MYSQL_LIBDIR=/usr/lib
23110                    fi
23111                    MYSQL_BINDIR=/usr/bin
23112            elif test -f /usr/include/mysql.h; then
23113                    MYSQL_INCDIR=/usr/include
23114                    if test -f /usr/lib64/libmysqlclient_r.a \
23115                         -o -f /usr/lib64/libmysqlclient_r.so; then
23116                            MYSQL_LIBDIR=/usr/lib64
23117                    else
23118                            MYSQL_LIBDIR=/usr/lib
23119                    fi
23120                    MYSQL_BINDIR=/usr/bin
23121            elif test -f /usr/local/include/mysql/mysql.h; then
23122                    MYSQL_INCDIR=/usr/local/include/mysql
23123                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23124                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23125                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23126                    else
23127                            MYSQL_LIBDIR=/usr/local/lib/mysql
23128                    fi
23129                    MYSQL_BINDIR=/usr/local/bin
23130            elif test -f /usr/local/include/mysql.h; then
23131                    MYSQL_INCDIR=/usr/local/include
23132                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23133                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23134                            MYSQL_LIBDIR=/usr/local/lib64
23135                    else
23136                            MYSQL_LIBDIR=/usr/local/lib
23137                    fi
23138                    MYSQL_BINDIR=/usr/local/bin
23139            else
23140               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23141 $as_echo "no" >&6; }
23142               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23143            fi
23144         else
23145            if test -f $withval/include/mysql/mysql.h; then
23146               MYSQL_INCDIR=$withval/include/mysql
23147               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23148                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23149                  MYSQL_LIBDIR=$withval/lib64/mysql
23150               elif test -f $withval/lib64/libmysqlclient_r.a \
23151                    -o -f $withval/lib64/libmysqlclient_r.so; then
23152                  MYSQL_LIBDIR=$withval/lib64
23153               elif test -f $withval/lib/libmysqlclient_r.a \
23154                    -o -f $withval/lib/libmysqlclient_r.so; then
23155                  MYSQL_LIBDIR=$withval/lib
23156               else
23157                  MYSQL_LIBDIR=$withval/lib/mysql
23158               fi
23159               MYSQL_BINDIR=$withval/bin
23160            elif test -f $withval/include/mysql.h; then
23161               MYSQL_INCDIR=$withval/include
23162               if test -f $withval/lib64/libmysqlclient_r.a \
23163                    -o -f $withval/lib64/libmysqlclient_r.so; then
23164                  MYSQL_LIBDIR=$withval/lib64
23165               else
23166                  MYSQL_LIBDIR=$withval/lib
23167               fi
23168               MYSQL_BINDIR=$withval/bin
23169            else
23170               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23171 $as_echo "no" >&6; }
23172               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23173            fi
23174         fi
23175      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23176      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23177           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23178         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23179
23180 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23181
23182         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23183      fi
23184      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23185
23186
23187 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23188
23189      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23190 $as_echo "yes" >&6; }
23191
23192      if test -z "${db_backends}" ; then
23193          db_backends="MySQL"
23194      else
23195          db_backends="${db_backends} MySQL"
23196      fi
23197      if test -z "${DB_BACKENDS}" ; then
23198          DB_BACKENDS="mysql"
23199      else
23200          DB_BACKENDS="${DB_BACKENDS} mysql"
23201      fi
23202   else
23203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 $as_echo "no" >&6; }
23205   fi
23206
23207
23208 fi
23209
23210
23211
23212 # Check whether --with-embedded-mysql was given.
23213 if test "${with_embedded_mysql+set}" = set; then :
23214   withval=$with_embedded_mysql;
23215   if test "$withval" != "no"; then
23216         if test "$withval" = "yes"; then
23217                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23218                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23219                         if test -d /usr/local/mysql/lib64/mysql; then
23220                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23221                         else
23222                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23223                         fi
23224                         MYSQL_BINDIR=/usr/local/mysql/bin
23225                 elif test -f /usr/include/mysql/mysql.h; then
23226                         MYSQL_INCDIR=/usr/include/mysql
23227                         if test -d /usr/lib64/mysql; then
23228                                 MYSQL_LIBDIR=/usr/lib64/mysql
23229                         else
23230                                 MYSQL_LIBDIR=/usr/lib/mysql
23231                         fi
23232                         MYSQL_BINDIR=/usr/bin
23233                 elif test -f /usr/include/mysql.h; then
23234                         MYSQL_INCDIR=/usr/include
23235                         if test -d /usr/lib64; then
23236                                 MYSQL_LIBDIR=/usr/lib64
23237                         else
23238                                 MYSQL_LIBDIR=/usr/lib
23239                         fi
23240                         MYSQL_BINDIR=/usr/bin
23241                 elif test -f /usr/local/include/mysql/mysql.h; then
23242                         MYSQL_INCDIR=/usr/local/include/mysql
23243                         if test -d /usr/local/lib64/mysql; then
23244                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23245                         else
23246                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23247                         fi
23248                         MYSQL_BINDIR=/usr/local/bin
23249                 elif test -f /usr/local/include/mysql.h; then
23250                         MYSQL_INCDIR=/usr/local/include
23251                         if test -d /usr/local/lib64; then
23252                                 MYSQL_LIBDIR=/usr/local/lib64
23253                         else
23254                                 MYSQL_LIBDIR=/usr/local/lib
23255                         fi
23256                         MYSQL_BINDIR=/usr/local/bin
23257                 else
23258                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23259 $as_echo "no" >&6; }
23260                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23261                 fi
23262         else
23263                 if test -f $withval/include/mysql/mysql.h; then
23264                         MYSQL_INCDIR=$withval/include/mysql
23265                         if test -d $withval/lib64/mysql; then
23266                                 MYSQL_LIBDIR=$withval/lib64/mysql
23267                         else
23268                                 MYSQL_LIBDIR=$withval/lib/mysql
23269                         fi
23270                         MYSQL_BINDIR=$withval/bin
23271                 elif test -f $withval/include/mysql.h; then
23272                         MYSQL_INCDIR=$withval/include
23273                         if test -d $withval/lib64; then
23274                                 MYSQL_LIBDIR=$withval/lib64
23275                         else
23276                                 MYSQL_LIBDIR=$withval/lib
23277                         fi
23278                         MYSQL_BINDIR=$withval/bin
23279                 else
23280                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23281 $as_echo "no" >&6; }
23282                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23283                 fi
23284         fi
23285      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23286      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23287      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23288      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23289
23290
23291 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23292
23293
23294 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23295
23296      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23297 $as_echo "yes" >&6; }
23298
23299      if test -z "${db_backends}"; then
23300          db_backends="MySQL"
23301      else
23302          db_backends="${db_backends} MySQL"
23303      fi
23304      if test -z "${DB_BACKENDS}"; then
23305          DB_BACKENDS="mysql"
23306      else
23307          DB_BACKENDS="${DB_BACKENDS} mysql"
23308      fi
23309   else
23310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23311 $as_echo "no" >&6; }
23312   fi
23313
23314
23315 fi
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23326 $as_echo_n "checking for SQLite3 support... " >&6; }
23327
23328 # Check whether --with-sqlite3 was given.
23329 if test "${with_sqlite3+set}" = set; then :
23330   withval=$with_sqlite3;
23331   if test "$withval" != "no"; then
23332      if test "$withval" = "yes"; then
23333         if test -f /usr/local/include/sqlite3.h; then
23334            SQLITE_INCDIR=/usr/local/include
23335            if test -d /usr/local/lib64; then
23336               SQLITE_LIBDIR=/usr/local/lib64
23337            else
23338               SQLITE_LIBDIR=/usr/local/lib
23339            fi
23340            SQLITE_BINDIR=/usr/local/bin
23341         elif test -f /usr/include/sqlite3.h; then
23342            SQLITE_INCDIR=/usr/include
23343            if test -d /usr/lib64; then
23344               SQLITE_LIBDIR=/usr/lib64
23345            else
23346               SQLITE_LIBDIR=/usr/lib
23347            fi
23348            SQLITE_BINDIR=/usr/bin
23349         elif test -f $prefix/include/sqlite3.h; then
23350            SQLITE_INCDIR=$prefix/include
23351            if test -d $prefix/lib64; then
23352               SQLITE_LIBDIR=$prefix/lib64
23353            else
23354               SQLITE_LIBDIR=$prefix/lib
23355            fi
23356            SQLITE_BINDIR=$prefix/bin
23357         else
23358            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23359 $as_echo "no" >&6; }
23360            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23361         fi
23362      else
23363         if test -f $withval/sqlite3.h; then
23364            SQLITE_INCDIR=$withval
23365            SQLITE_LIBDIR=$withval
23366            SQLITE_BINDIR=$withval
23367         elif test -f $withval/include/sqlite3.h; then
23368            SQLITE_INCDIR=$withval/include
23369            if test -d $withval/lib64; then
23370               SQLITE_LIBDIR=$withval/lib64
23371            else
23372               SQLITE_LIBDIR=$withval/lib
23373            fi
23374            SQLITE_BINDIR=$withval/bin
23375         else
23376            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23377 $as_echo "no" >&6; }
23378            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23379         fi
23380      fi
23381      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23382      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23383      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23384      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23385
23386
23387 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23388
23389      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23390 $as_echo "yes" >&6; }
23391
23392      if test -z "${db_backends}"; then
23393          db_backends="SQLite3"
23394      else
23395          db_backends="${db_backends} SQLite3"
23396      fi
23397      if test -z "${DB_BACKENDS}"; then
23398          DB_BACKENDS="sqlite3"
23399      else
23400          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23401      fi
23402   else
23403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23405   fi
23406
23407 else
23408
23409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23411
23412 fi
23413
23414
23415
23416
23417
23418
23419
23420 #BA_CHECK_INGRES_DB
23421
23422 #BA_CHECK_DBI_DB
23423
23424 #BA_CHECK_DBI_DRIVER
23425
23426 if test "x${db_backends}" = "x" ; then
23427    echo " "
23428    echo " "
23429    echo "You have not specified either --enable-client-only or one of the"
23430    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23431    echo "This is not permitted. Please reconfigure."
23432    echo " "
23433    echo "Aborting the configuration ..."
23434    echo " "
23435    echo " "
23436    exit 1
23437 fi
23438
23439 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23440    1)
23441       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23442       if test x$use_libtool = xno; then
23443          SHARED_CATALOG_TARGETS=""
23444       else
23445          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23446       fi
23447       ;;
23448    *)
23449                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23450
23451                         if test x$use_libtool = xno; then
23452          echo " "
23453          echo " "
23454          echo "You have specified two or more of the"
23455          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23456          echo "This is not permitted when not using libtool Please reconfigure."
23457          echo " "
23458          echo "Aborting the configuration ..."
23459          echo " "
23460          echo " "
23461          exit 1
23462       fi
23463
23464       SHARED_CATALOG_TARGETS=""
23465       for db_type in ${DB_BACKENDS}
23466       do
23467          if test -z "${SHARED_CATALOG_TARGETS}"; then
23468             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23469          else
23470             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23471          fi
23472       done
23473       ;;
23474 esac
23475
23476 if test x$use_libtool = xyes; then
23477    DB_LIBS=""
23478 fi
23479
23480
23481
23482
23483
23484
23485 support_batch_insert=yes
23486 # Check whether --enable-batch-insert was given.
23487 if test "${enable_batch_insert+set}" = set; then :
23488   enableval=$enable_batch_insert;
23489        if test x$enableval = xno; then
23490           support_batch_insert=no
23491        fi
23492
23493
23494 fi
23495
23496
23497 if test x$support_batch_insert = xyes; then
23498
23499 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23500
23501 fi
23502
23503 if test ! -z "$MYSQL_LIB"; then
23504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23505 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23506 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23507   $as_echo_n "(cached) " >&6
23508 else
23509   ac_check_lib_save_LIBS=$LIBS
23510 LIBS="-lmysql_r  $LIBS"
23511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512 /* end confdefs.h.  */
23513
23514 /* Override any GCC internal prototype to avoid an error.
23515    Use char because int might match the return type of a GCC
23516    builtin and then its argument prototype would still apply.  */
23517 #ifdef __cplusplus
23518 extern "C"
23519 #endif
23520 char mysql_thread_safe ();
23521 int
23522 main ()
23523 {
23524 return mysql_thread_safe ();
23525   ;
23526   return 0;
23527 }
23528 _ACEOF
23529 if ac_fn_c_try_link "$LINENO"; then :
23530   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23531 else
23532   ac_cv_lib_mysql_r_mysql_thread_safe=no
23533 fi
23534 rm -f core conftest.err conftest.$ac_objext \
23535     conftest$ac_exeext conftest.$ac_ext
23536 LIBS=$ac_check_lib_save_LIBS
23537 fi
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23539 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23540 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23541
23542 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23543
23544 fi
23545
23546 fi
23547
23548 if test ! -z "SQLITE_LIB"; then
23549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23550 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23551 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23552   $as_echo_n "(cached) " >&6
23553 else
23554   ac_check_lib_save_LIBS=$LIBS
23555 LIBS="-lsqlite3  $LIBS"
23556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23557 /* end confdefs.h.  */
23558
23559 /* Override any GCC internal prototype to avoid an error.
23560    Use char because int might match the return type of a GCC
23561    builtin and then its argument prototype would still apply.  */
23562 #ifdef __cplusplus
23563 extern "C"
23564 #endif
23565 char sqlite3_threadsafe ();
23566 int
23567 main ()
23568 {
23569 return sqlite3_threadsafe ();
23570   ;
23571   return 0;
23572 }
23573 _ACEOF
23574 if ac_fn_c_try_link "$LINENO"; then :
23575   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23576 else
23577   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23578 fi
23579 rm -f core conftest.err conftest.$ac_objext \
23580     conftest$ac_exeext conftest.$ac_ext
23581 LIBS=$ac_check_lib_save_LIBS
23582 fi
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23584 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23585 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23586
23587 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23588
23589 fi
23590
23591 fi
23592
23593 if test ! -z "$POSTGRESQL_LIB"; then
23594       saved_LIBS="${LIBS}"
23595    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23596
23597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23598 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23599 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23600   $as_echo_n "(cached) " >&6
23601 else
23602   ac_check_lib_save_LIBS=$LIBS
23603 LIBS="-lpq  $LIBS"
23604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h.  */
23606
23607 /* Override any GCC internal prototype to avoid an error.
23608    Use char because int might match the return type of a GCC
23609    builtin and then its argument prototype would still apply.  */
23610 #ifdef __cplusplus
23611 extern "C"
23612 #endif
23613 char PQisthreadsafe ();
23614 int
23615 main ()
23616 {
23617 return PQisthreadsafe ();
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 if ac_fn_c_try_link "$LINENO"; then :
23623   ac_cv_lib_pq_PQisthreadsafe=yes
23624 else
23625   ac_cv_lib_pq_PQisthreadsafe=no
23626 fi
23627 rm -f core conftest.err conftest.$ac_objext \
23628     conftest$ac_exeext conftest.$ac_ext
23629 LIBS=$ac_check_lib_save_LIBS
23630 fi
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23632 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23633 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23634
23635 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23636
23637 fi
23638
23639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23640 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23641 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23642   $as_echo_n "(cached) " >&6
23643 else
23644   ac_check_lib_save_LIBS=$LIBS
23645 LIBS="-lpq  $LIBS"
23646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647 /* end confdefs.h.  */
23648
23649 /* Override any GCC internal prototype to avoid an error.
23650    Use char because int might match the return type of a GCC
23651    builtin and then its argument prototype would still apply.  */
23652 #ifdef __cplusplus
23653 extern "C"
23654 #endif
23655 char PQputCopyData ();
23656 int
23657 main ()
23658 {
23659 return PQputCopyData ();
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 if ac_fn_c_try_link "$LINENO"; then :
23665   ac_cv_lib_pq_PQputCopyData=yes
23666 else
23667   ac_cv_lib_pq_PQputCopyData=no
23668 fi
23669 rm -f core conftest.err conftest.$ac_objext \
23670     conftest$ac_exeext conftest.$ac_ext
23671 LIBS=$ac_check_lib_save_LIBS
23672 fi
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23674 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23675 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23676
23677 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23678
23679 fi
23680
23681    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23682       if test $support_batch_insert = yes ; then
23683
23684 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23685
23686       fi
23687    fi
23688
23689    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23690    then
23691       echo "WARNING: Your PostgreSQL client library is too old to detect "
23692       echo "if it was compiled with --enable-thread-safety, consider to "
23693       echo "upgrade it in order to avoid problems with Batch insert mode"
23694       echo
23695    fi
23696
23697       LIBS="${saved_LIBS}"
23698 fi
23699
23700 if test ! -z "$DBI_LIBS"; then
23701             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23702
23703             if test $DB_PROG = postgresql; then
23704       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23705 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23706 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23707   $as_echo_n "(cached) " >&6
23708 else
23709   ac_check_lib_save_LIBS=$LIBS
23710 LIBS="-lpq  $LIBS"
23711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h.  */
23713
23714 /* Override any GCC internal prototype to avoid an error.
23715    Use char because int might match the return type of a GCC
23716    builtin and then its argument prototype would still apply.  */
23717 #ifdef __cplusplus
23718 extern "C"
23719 #endif
23720 char PQisthreadsafe ();
23721 int
23722 main ()
23723 {
23724 return PQisthreadsafe ();
23725   ;
23726   return 0;
23727 }
23728 _ACEOF
23729 if ac_fn_c_try_link "$LINENO"; then :
23730   ac_cv_lib_pq_PQisthreadsafe=yes
23731 else
23732   ac_cv_lib_pq_PQisthreadsafe=no
23733 fi
23734 rm -f core conftest.err conftest.$ac_objext \
23735     conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23737 fi
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23739 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23740 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23741   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23742
23743 fi
23744
23745       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23746 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23747 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23748   $as_echo_n "(cached) " >&6
23749 else
23750   ac_check_lib_save_LIBS=$LIBS
23751 LIBS="-lpq  $LIBS"
23752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23753 /* end confdefs.h.  */
23754
23755 /* Override any GCC internal prototype to avoid an error.
23756    Use char because int might match the return type of a GCC
23757    builtin and then its argument prototype would still apply.  */
23758 #ifdef __cplusplus
23759 extern "C"
23760 #endif
23761 char PQputCopyData ();
23762 int
23763 main ()
23764 {
23765 return PQputCopyData ();
23766   ;
23767   return 0;
23768 }
23769 _ACEOF
23770 if ac_fn_c_try_link "$LINENO"; then :
23771   ac_cv_lib_pq_PQputCopyData=yes
23772 else
23773   ac_cv_lib_pq_PQputCopyData=no
23774 fi
23775 rm -f core conftest.err conftest.$ac_objext \
23776     conftest$ac_exeext conftest.$ac_ext
23777 LIBS=$ac_check_lib_save_LIBS
23778 fi
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23780 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23781 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23782   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23783
23784 fi
23785
23786       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23787       pkg=$?
23788       if test $pkg = 0; then
23789          if test $support_batch_insert = yes ; then
23790
23791 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23792
23793          fi
23794       fi
23795    fi
23796 else
23797             uncomment_dbi="#"
23798 fi
23799
23800
23801
23802 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23803
23804
23805 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23806    if test -z "$CCOPTS"; then
23807       CCOPTS='-g -O2 -Wall'
23808    fi
23809    CFLAGS="$CCOPTS"
23810 fi
23811
23812
23813
23814 largefile_support="no"
23815
23816    # Check whether --enable-largefile was given.
23817 if test "${enable_largefile+set}" = set; then :
23818   enableval=$enable_largefile;
23819 fi
23820
23821    if test "$enable_largefile" != no; then
23822      if test -n "$ac_tool_prefix"; then
23823   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23824 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23826 $as_echo_n "checking for $ac_word... " >&6; }
23827 if ${ac_cv_prog_GETCONF+:} false; then :
23828   $as_echo_n "(cached) " >&6
23829 else
23830   if test -n "$GETCONF"; then
23831   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23832 else
23833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23834 for as_dir in $PATH
23835 do
23836   IFS=$as_save_IFS
23837   test -z "$as_dir" && as_dir=.
23838     for ac_exec_ext in '' $ac_executable_extensions; do
23839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23840     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23842     break 2
23843   fi
23844 done
23845   done
23846 IFS=$as_save_IFS
23847
23848 fi
23849 fi
23850 GETCONF=$ac_cv_prog_GETCONF
23851 if test -n "$GETCONF"; then
23852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23853 $as_echo "$GETCONF" >&6; }
23854 else
23855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23856 $as_echo "no" >&6; }
23857 fi
23858
23859
23860 fi
23861 if test -z "$ac_cv_prog_GETCONF"; then
23862   ac_ct_GETCONF=$GETCONF
23863   # Extract the first word of "getconf", so it can be a program name with args.
23864 set dummy getconf; ac_word=$2
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23866 $as_echo_n "checking for $ac_word... " >&6; }
23867 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
23868   $as_echo_n "(cached) " >&6
23869 else
23870   if test -n "$ac_ct_GETCONF"; then
23871   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23872 else
23873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23874 for as_dir in $PATH
23875 do
23876   IFS=$as_save_IFS
23877   test -z "$as_dir" && as_dir=.
23878     for ac_exec_ext in '' $ac_executable_extensions; do
23879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23880     ac_cv_prog_ac_ct_GETCONF="getconf"
23881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23882     break 2
23883   fi
23884 done
23885   done
23886 IFS=$as_save_IFS
23887
23888 fi
23889 fi
23890 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23891 if test -n "$ac_ct_GETCONF"; then
23892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23893 $as_echo "$ac_ct_GETCONF" >&6; }
23894 else
23895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23896 $as_echo "no" >&6; }
23897 fi
23898
23899   if test "x$ac_ct_GETCONF" = x; then
23900     GETCONF=""
23901   else
23902     case $cross_compiling:$ac_tool_warned in
23903 yes:)
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23906 ac_tool_warned=yes ;;
23907 esac
23908     GETCONF=$ac_ct_GETCONF
23909   fi
23910 else
23911   GETCONF="$ac_cv_prog_GETCONF"
23912 fi
23913
23914      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23915 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23916 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
23917   $as_echo_n "(cached) " >&6
23918 else
23919   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23920         ac_cv_sys_largefile_CFLAGS=no
23921         case "$host_os" in
23922            # IRIX 6.2 and later require cc -n32.
23923            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23924              if test "$GCC" != yes; then
23925                ac_cv_sys_largefile_CFLAGS=-n32
23926              fi
23927              ac_save_CC="$CC"
23928              CC="$CC $ac_cv_sys_largefile_CFLAGS"
23929              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930 /* end confdefs.h.  */
23931
23932 int
23933 main ()
23934 {
23935
23936   ;
23937   return 0;
23938 }
23939 _ACEOF
23940 if ac_fn_c_try_link "$LINENO"; then :
23941
23942 else
23943   ac_cv_sys_largefile_CFLAGS=no
23944 fi
23945 rm -f core conftest.err conftest.$ac_objext \
23946     conftest$ac_exeext conftest.$ac_ext
23947              CC="$ac_save_CC"
23948            esac
23949       }
23950 fi
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23952 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23953      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23954 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23955 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
23956   $as_echo_n "(cached) " >&6
23957 else
23958   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23959         ac_cv_sys_largefile_LDFLAGS=no
23960
23961       }
23962 fi
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23964 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23965      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23966 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23967 if ${ac_cv_sys_largefile_LIBS+:} false; then :
23968   $as_echo_n "(cached) " >&6
23969 else
23970   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23971         ac_cv_sys_largefile_LIBS=no
23972
23973       }
23974 fi
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23976 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23977
23978      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23979        case "$ac_flag" in
23980        no) ;;
23981        -D_FILE_OFFSET_BITS=*) ;;
23982        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23983        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23984        -D?* | -I?*)
23985          case "$ac_flag" in
23986    no) ;;
23987    ?*)
23988      case "$CPPFLAGS" in
23989      '') CPPFLAGS="$ac_flag" ;;
23990      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23991      esac ;;
23992    esac ;;
23993        *)
23994          case "$ac_flag" in
23995    no) ;;
23996    ?*)
23997      case "$CFLAGS" in
23998      '') CFLAGS="$ac_flag" ;;
23999      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24000      esac ;;
24001    esac ;;
24002        esac
24003      done
24004      case "$ac_cv_sys_largefile_LDFLAGS" in
24005    no) ;;
24006    ?*)
24007      case "$LDFLAGS" in
24008      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24009      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24010      esac ;;
24011    esac
24012      case "$ac_cv_sys_largefile_LIBS" in
24013    no) ;;
24014    ?*)
24015      case "$LIBS" in
24016      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24017      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24018      esac ;;
24019    esac
24020      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24021 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24022 if ${ac_cv_sys_file_offset_bits+:} false; then :
24023   $as_echo_n "(cached) " >&6
24024 else
24025   ac_cv_sys_file_offset_bits=no
24026       ac_cv_sys_file_offset_bits=64
24027       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24028         case "$ac_flag" in
24029         -D_FILE_OFFSET_BITS)
24030           ac_cv_sys_file_offset_bits=1 ;;
24031         -D_FILE_OFFSET_BITS=*)
24032           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24033         esac
24034       done
24035
24036 fi
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24038 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24039    if test "$ac_cv_sys_file_offset_bits" != no; then
24040
24041 cat >>confdefs.h <<_ACEOF
24042 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24043 _ACEOF
24044
24045    fi
24046      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24047 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24048 if ${ac_cv_sys_largefile_source+:} false; then :
24049   $as_echo_n "(cached) " >&6
24050 else
24051   ac_cv_sys_largefile_source=no
24052       ac_cv_sys_largefile_source=1
24053       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24054         case "$ac_flag" in
24055         -D_LARGEFILE_SOURCE)
24056           ac_cv_sys_largefile_source=1 ;;
24057         -D_LARGEFILE_SOURCE=*)
24058           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24059         esac
24060       done
24061
24062 fi
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24064 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24065    if test "$ac_cv_sys_largefile_source" != no; then
24066
24067 cat >>confdefs.h <<_ACEOF
24068 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24069 _ACEOF
24070
24071    fi
24072      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24073 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24074 if ${ac_cv_sys_large_files+:} false; then :
24075   $as_echo_n "(cached) " >&6
24076 else
24077   ac_cv_sys_large_files=no
24078       ac_cv_sys_large_files=1
24079       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24080         case "$ac_flag" in
24081         -D_LARGE_FILES)
24082           ac_cv_sys_large_files=1 ;;
24083         -D_LARGE_FILES=*)
24084           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24085         esac
24086       done
24087
24088 fi
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24090 $as_echo "$ac_cv_sys_large_files" >&6; }
24091    if test "$ac_cv_sys_large_files" != no; then
24092
24093 cat >>confdefs.h <<_ACEOF
24094 #define _LARGE_FILES $ac_cv_sys_large_files
24095 _ACEOF
24096
24097    fi
24098    fi
24099
24100
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24102 $as_echo_n "checking for X... " >&6; }
24103
24104
24105 # Check whether --with-x was given.
24106 if test "${with_x+set}" = set; then :
24107   withval=$with_x;
24108 fi
24109
24110 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24111 if test "x$with_x" = xno; then
24112   # The user explicitly disabled X.
24113   have_x=disabled
24114 else
24115   case $x_includes,$x_libraries in #(
24116     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24117     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24118   $as_echo_n "(cached) " >&6
24119 else
24120   # One or both of the vars are not set, and there is no cached value.
24121 ac_x_includes=no ac_x_libraries=no
24122 rm -f -r conftest.dir
24123 if mkdir conftest.dir; then
24124   cd conftest.dir
24125   cat >Imakefile <<'_ACEOF'
24126 incroot:
24127         @echo incroot='${INCROOT}'
24128 usrlibdir:
24129         @echo usrlibdir='${USRLIBDIR}'
24130 libdir:
24131         @echo libdir='${LIBDIR}'
24132 _ACEOF
24133   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24134     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24135     for ac_var in incroot usrlibdir libdir; do
24136       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24137     done
24138     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24139     for ac_extension in a so sl dylib la dll; do
24140       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24141          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24142         ac_im_usrlibdir=$ac_im_libdir; break
24143       fi
24144     done
24145     # Screen out bogus values from the imake configuration.  They are
24146     # bogus both because they are the default anyway, and because
24147     # using them would break gcc on systems where it needs fixed includes.
24148     case $ac_im_incroot in
24149         /usr/include) ac_x_includes= ;;
24150         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24151     esac
24152     case $ac_im_usrlibdir in
24153         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24154         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24155     esac
24156   fi
24157   cd ..
24158   rm -f -r conftest.dir
24159 fi
24160
24161 # Standard set of common directories for X headers.
24162 # Check X11 before X11Rn because it is often a symlink to the current release.
24163 ac_x_header_dirs='
24164 /usr/X11/include
24165 /usr/X11R7/include
24166 /usr/X11R6/include
24167 /usr/X11R5/include
24168 /usr/X11R4/include
24169
24170 /usr/include/X11
24171 /usr/include/X11R7
24172 /usr/include/X11R6
24173 /usr/include/X11R5
24174 /usr/include/X11R4
24175
24176 /usr/local/X11/include
24177 /usr/local/X11R7/include
24178 /usr/local/X11R6/include
24179 /usr/local/X11R5/include
24180 /usr/local/X11R4/include
24181
24182 /usr/local/include/X11
24183 /usr/local/include/X11R7
24184 /usr/local/include/X11R6
24185 /usr/local/include/X11R5
24186 /usr/local/include/X11R4
24187
24188 /usr/X386/include
24189 /usr/x386/include
24190 /usr/XFree86/include/X11
24191
24192 /usr/include
24193 /usr/local/include
24194 /usr/unsupported/include
24195 /usr/athena/include
24196 /usr/local/x11r5/include
24197 /usr/lpp/Xamples/include
24198
24199 /usr/openwin/include
24200 /usr/openwin/share/include'
24201
24202 if test "$ac_x_includes" = no; then
24203   # Guess where to find include files, by looking for Xlib.h.
24204   # First, try using that file with no special directory specified.
24205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206 /* end confdefs.h.  */
24207 #include <X11/Xlib.h>
24208 _ACEOF
24209 if ac_fn_c_try_cpp "$LINENO"; then :
24210   # We can compile using X headers with no special include directory.
24211 ac_x_includes=
24212 else
24213   for ac_dir in $ac_x_header_dirs; do
24214   if test -r "$ac_dir/X11/Xlib.h"; then
24215     ac_x_includes=$ac_dir
24216     break
24217   fi
24218 done
24219 fi
24220 rm -f conftest.err conftest.i conftest.$ac_ext
24221 fi # $ac_x_includes = no
24222
24223 if test "$ac_x_libraries" = no; then
24224   # Check for the libraries.
24225   # See if we find them without any special options.
24226   # Don't add to $LIBS permanently.
24227   ac_save_LIBS=$LIBS
24228   LIBS="-lX11 $LIBS"
24229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h.  */
24231 #include <X11/Xlib.h>
24232 int
24233 main ()
24234 {
24235 XrmInitialize ()
24236   ;
24237   return 0;
24238 }
24239 _ACEOF
24240 if ac_fn_c_try_link "$LINENO"; then :
24241   LIBS=$ac_save_LIBS
24242 # We can link X programs with no special library path.
24243 ac_x_libraries=
24244 else
24245   LIBS=$ac_save_LIBS
24246 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24247 do
24248   # Don't even attempt the hair of trying to link an X program!
24249   for ac_extension in a so sl dylib la dll; do
24250     if test -r "$ac_dir/libX11.$ac_extension"; then
24251       ac_x_libraries=$ac_dir
24252       break 2
24253     fi
24254   done
24255 done
24256 fi
24257 rm -f core conftest.err conftest.$ac_objext \
24258     conftest$ac_exeext conftest.$ac_ext
24259 fi # $ac_x_libraries = no
24260
24261 case $ac_x_includes,$ac_x_libraries in #(
24262   no,* | *,no | *\'*)
24263     # Didn't find X, or a directory has "'" in its name.
24264     ac_cv_have_x="have_x=no";; #(
24265   *)
24266     # Record where we found X for the cache.
24267     ac_cv_have_x="have_x=yes\
24268         ac_x_includes='$ac_x_includes'\
24269         ac_x_libraries='$ac_x_libraries'"
24270 esac
24271 fi
24272 ;; #(
24273     *) have_x=yes;;
24274   esac
24275   eval "$ac_cv_have_x"
24276 fi # $with_x != no
24277
24278 if test "$have_x" != yes; then
24279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24280 $as_echo "$have_x" >&6; }
24281   no_x=yes
24282 else
24283   # If each of the values was on the command line, it overrides each guess.
24284   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24285   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24286   # Update the cache value to reflect the command line values.
24287   ac_cv_have_x="have_x=yes\
24288         ac_x_includes='$x_includes'\
24289         ac_x_libraries='$x_libraries'"
24290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24291 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24292 fi
24293
24294 if test "$no_x" = yes; then
24295   # Not all programs may use this symbol, but it does not hurt to define it.
24296
24297 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24298
24299   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24300 else
24301   if test -n "$x_includes"; then
24302     X_CFLAGS="$X_CFLAGS -I$x_includes"
24303   fi
24304
24305   # It would also be nice to do this for all -L options, not just this one.
24306   if test -n "$x_libraries"; then
24307     X_LIBS="$X_LIBS -L$x_libraries"
24308     # For Solaris; some versions of Sun CC require a space after -R and
24309     # others require no space.  Words are not sufficient . . . .
24310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24311 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24312     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24313     ac_xsave_c_werror_flag=$ac_c_werror_flag
24314     ac_c_werror_flag=yes
24315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316 /* end confdefs.h.  */
24317
24318 int
24319 main ()
24320 {
24321
24322   ;
24323   return 0;
24324 }
24325 _ACEOF
24326 if ac_fn_c_try_link "$LINENO"; then :
24327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24328 $as_echo "no" >&6; }
24329        X_LIBS="$X_LIBS -R$x_libraries"
24330 else
24331   LIBS="$ac_xsave_LIBS -R $x_libraries"
24332        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333 /* end confdefs.h.  */
24334
24335 int
24336 main ()
24337 {
24338
24339   ;
24340   return 0;
24341 }
24342 _ACEOF
24343 if ac_fn_c_try_link "$LINENO"; then :
24344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24345 $as_echo "yes" >&6; }
24346           X_LIBS="$X_LIBS -R $x_libraries"
24347 else
24348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24349 $as_echo "neither works" >&6; }
24350 fi
24351 rm -f core conftest.err conftest.$ac_objext \
24352     conftest$ac_exeext conftest.$ac_ext
24353 fi
24354 rm -f core conftest.err conftest.$ac_objext \
24355     conftest$ac_exeext conftest.$ac_ext
24356     ac_c_werror_flag=$ac_xsave_c_werror_flag
24357     LIBS=$ac_xsave_LIBS
24358   fi
24359
24360   # Check for system-dependent libraries X programs must link with.
24361   # Do this before checking for the system-independent R6 libraries
24362   # (-lICE), since we may need -lsocket or whatever for X linking.
24363
24364   if test "$ISC" = yes; then
24365     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24366   else
24367     # Martyn Johnson says this is needed for Ultrix, if the X
24368     # libraries were built with DECnet support.  And Karl Berry says
24369     # the Alpha needs dnet_stub (dnet does not exist).
24370     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24372 /* end confdefs.h.  */
24373
24374 /* Override any GCC internal prototype to avoid an error.
24375    Use char because int might match the return type of a GCC
24376    builtin and then its argument prototype would still apply.  */
24377 #ifdef __cplusplus
24378 extern "C"
24379 #endif
24380 char XOpenDisplay ();
24381 int
24382 main ()
24383 {
24384 return XOpenDisplay ();
24385   ;
24386   return 0;
24387 }
24388 _ACEOF
24389 if ac_fn_c_try_link "$LINENO"; then :
24390
24391 else
24392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24393 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24394 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24395   $as_echo_n "(cached) " >&6
24396 else
24397   ac_check_lib_save_LIBS=$LIBS
24398 LIBS="-ldnet  $LIBS"
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h.  */
24401
24402 /* Override any GCC internal prototype to avoid an error.
24403    Use char because int might match the return type of a GCC
24404    builtin and then its argument prototype would still apply.  */
24405 #ifdef __cplusplus
24406 extern "C"
24407 #endif
24408 char dnet_ntoa ();
24409 int
24410 main ()
24411 {
24412 return dnet_ntoa ();
24413   ;
24414   return 0;
24415 }
24416 _ACEOF
24417 if ac_fn_c_try_link "$LINENO"; then :
24418   ac_cv_lib_dnet_dnet_ntoa=yes
24419 else
24420   ac_cv_lib_dnet_dnet_ntoa=no
24421 fi
24422 rm -f core conftest.err conftest.$ac_objext \
24423     conftest$ac_exeext conftest.$ac_ext
24424 LIBS=$ac_check_lib_save_LIBS
24425 fi
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24427 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24428 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24429   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24430 fi
24431
24432     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24433       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24434 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24435 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24436   $as_echo_n "(cached) " >&6
24437 else
24438   ac_check_lib_save_LIBS=$LIBS
24439 LIBS="-ldnet_stub  $LIBS"
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h.  */
24442
24443 /* Override any GCC internal prototype to avoid an error.
24444    Use char because int might match the return type of a GCC
24445    builtin and then its argument prototype would still apply.  */
24446 #ifdef __cplusplus
24447 extern "C"
24448 #endif
24449 char dnet_ntoa ();
24450 int
24451 main ()
24452 {
24453 return dnet_ntoa ();
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 if ac_fn_c_try_link "$LINENO"; then :
24459   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24460 else
24461   ac_cv_lib_dnet_stub_dnet_ntoa=no
24462 fi
24463 rm -f core conftest.err conftest.$ac_objext \
24464     conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24466 fi
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24468 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24469 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24470   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24471 fi
24472
24473     fi
24474 fi
24475 rm -f core conftest.err conftest.$ac_objext \
24476     conftest$ac_exeext conftest.$ac_ext
24477     LIBS="$ac_xsave_LIBS"
24478
24479     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24480     # to get the SysV transport functions.
24481     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24482     # needs -lnsl.
24483     # The nsl library prevents programs from opening the X display
24484     # on Irix 5.2, according to T.E. Dickey.
24485     # The functions gethostbyname, getservbyname, and inet_addr are
24486     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24487     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24488 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24489
24490 fi
24491
24492     if test $ac_cv_func_gethostbyname = no; then
24493       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24494 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24495 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24496   $as_echo_n "(cached) " >&6
24497 else
24498   ac_check_lib_save_LIBS=$LIBS
24499 LIBS="-lnsl  $LIBS"
24500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24501 /* end confdefs.h.  */
24502
24503 /* Override any GCC internal prototype to avoid an error.
24504    Use char because int might match the return type of a GCC
24505    builtin and then its argument prototype would still apply.  */
24506 #ifdef __cplusplus
24507 extern "C"
24508 #endif
24509 char gethostbyname ();
24510 int
24511 main ()
24512 {
24513 return gethostbyname ();
24514   ;
24515   return 0;
24516 }
24517 _ACEOF
24518 if ac_fn_c_try_link "$LINENO"; then :
24519   ac_cv_lib_nsl_gethostbyname=yes
24520 else
24521   ac_cv_lib_nsl_gethostbyname=no
24522 fi
24523 rm -f core conftest.err conftest.$ac_objext \
24524     conftest$ac_exeext conftest.$ac_ext
24525 LIBS=$ac_check_lib_save_LIBS
24526 fi
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24528 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24529 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24530   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24531 fi
24532
24533       if test $ac_cv_lib_nsl_gethostbyname = no; then
24534         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24535 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24536 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24537   $as_echo_n "(cached) " >&6
24538 else
24539   ac_check_lib_save_LIBS=$LIBS
24540 LIBS="-lbsd  $LIBS"
24541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h.  */
24543
24544 /* Override any GCC internal prototype to avoid an error.
24545    Use char because int might match the return type of a GCC
24546    builtin and then its argument prototype would still apply.  */
24547 #ifdef __cplusplus
24548 extern "C"
24549 #endif
24550 char gethostbyname ();
24551 int
24552 main ()
24553 {
24554 return gethostbyname ();
24555   ;
24556   return 0;
24557 }
24558 _ACEOF
24559 if ac_fn_c_try_link "$LINENO"; then :
24560   ac_cv_lib_bsd_gethostbyname=yes
24561 else
24562   ac_cv_lib_bsd_gethostbyname=no
24563 fi
24564 rm -f core conftest.err conftest.$ac_objext \
24565     conftest$ac_exeext conftest.$ac_ext
24566 LIBS=$ac_check_lib_save_LIBS
24567 fi
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24569 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24570 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24571   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24572 fi
24573
24574       fi
24575     fi
24576
24577     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24578     # socket/setsockopt and other routines are undefined under SCO ODT
24579     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24580     # on later versions), says Simon Leinen: it contains gethostby*
24581     # variants that don't use the name server (or something).  -lsocket
24582     # must be given before -lnsl if both are needed.  We assume that
24583     # if connect needs -lnsl, so does gethostbyname.
24584     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24585 if test "x$ac_cv_func_connect" = xyes; then :
24586
24587 fi
24588
24589     if test $ac_cv_func_connect = no; then
24590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24591 $as_echo_n "checking for connect in -lsocket... " >&6; }
24592 if ${ac_cv_lib_socket_connect+:} false; then :
24593   $as_echo_n "(cached) " >&6
24594 else
24595   ac_check_lib_save_LIBS=$LIBS
24596 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h.  */
24599
24600 /* Override any GCC internal prototype to avoid an error.
24601    Use char because int might match the return type of a GCC
24602    builtin and then its argument prototype would still apply.  */
24603 #ifdef __cplusplus
24604 extern "C"
24605 #endif
24606 char connect ();
24607 int
24608 main ()
24609 {
24610 return connect ();
24611   ;
24612   return 0;
24613 }
24614 _ACEOF
24615 if ac_fn_c_try_link "$LINENO"; then :
24616   ac_cv_lib_socket_connect=yes
24617 else
24618   ac_cv_lib_socket_connect=no
24619 fi
24620 rm -f core conftest.err conftest.$ac_objext \
24621     conftest$ac_exeext conftest.$ac_ext
24622 LIBS=$ac_check_lib_save_LIBS
24623 fi
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24625 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24626 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24627   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24628 fi
24629
24630     fi
24631
24632     # Guillermo Gomez says -lposix is necessary on A/UX.
24633     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24634 if test "x$ac_cv_func_remove" = xyes; then :
24635
24636 fi
24637
24638     if test $ac_cv_func_remove = no; then
24639       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24640 $as_echo_n "checking for remove in -lposix... " >&6; }
24641 if ${ac_cv_lib_posix_remove+:} false; then :
24642   $as_echo_n "(cached) " >&6
24643 else
24644   ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lposix  $LIBS"
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h.  */
24648
24649 /* Override any GCC internal prototype to avoid an error.
24650    Use char because int might match the return type of a GCC
24651    builtin and then its argument prototype would still apply.  */
24652 #ifdef __cplusplus
24653 extern "C"
24654 #endif
24655 char remove ();
24656 int
24657 main ()
24658 {
24659 return remove ();
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 if ac_fn_c_try_link "$LINENO"; then :
24665   ac_cv_lib_posix_remove=yes
24666 else
24667   ac_cv_lib_posix_remove=no
24668 fi
24669 rm -f core conftest.err conftest.$ac_objext \
24670     conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24672 fi
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24674 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24675 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24676   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24677 fi
24678
24679     fi
24680
24681     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24682     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24683 if test "x$ac_cv_func_shmat" = xyes; then :
24684
24685 fi
24686
24687     if test $ac_cv_func_shmat = no; then
24688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24689 $as_echo_n "checking for shmat in -lipc... " >&6; }
24690 if ${ac_cv_lib_ipc_shmat+:} false; then :
24691   $as_echo_n "(cached) " >&6
24692 else
24693   ac_check_lib_save_LIBS=$LIBS
24694 LIBS="-lipc  $LIBS"
24695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24696 /* end confdefs.h.  */
24697
24698 /* Override any GCC internal prototype to avoid an error.
24699    Use char because int might match the return type of a GCC
24700    builtin and then its argument prototype would still apply.  */
24701 #ifdef __cplusplus
24702 extern "C"
24703 #endif
24704 char shmat ();
24705 int
24706 main ()
24707 {
24708 return shmat ();
24709   ;
24710   return 0;
24711 }
24712 _ACEOF
24713 if ac_fn_c_try_link "$LINENO"; then :
24714   ac_cv_lib_ipc_shmat=yes
24715 else
24716   ac_cv_lib_ipc_shmat=no
24717 fi
24718 rm -f core conftest.err conftest.$ac_objext \
24719     conftest$ac_exeext conftest.$ac_ext
24720 LIBS=$ac_check_lib_save_LIBS
24721 fi
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24723 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24724 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
24725   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24726 fi
24727
24728     fi
24729   fi
24730
24731   # Check for libraries that X11R6 Xt/Xaw programs need.
24732   ac_save_LDFLAGS=$LDFLAGS
24733   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24734   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24735   # check for ICE first), but we must link in the order -lSM -lICE or
24736   # we get undefined symbols.  So assume we have SM if we have ICE.
24737   # These have to be linked with before -lX11, unlike the other
24738   # libraries we check for below, so use a different variable.
24739   # John Interrante, Karl Berry
24740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24741 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24742 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
24743   $as_echo_n "(cached) " >&6
24744 else
24745   ac_check_lib_save_LIBS=$LIBS
24746 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24748 /* end confdefs.h.  */
24749
24750 /* Override any GCC internal prototype to avoid an error.
24751    Use char because int might match the return type of a GCC
24752    builtin and then its argument prototype would still apply.  */
24753 #ifdef __cplusplus
24754 extern "C"
24755 #endif
24756 char IceConnectionNumber ();
24757 int
24758 main ()
24759 {
24760 return IceConnectionNumber ();
24761   ;
24762   return 0;
24763 }
24764 _ACEOF
24765 if ac_fn_c_try_link "$LINENO"; then :
24766   ac_cv_lib_ICE_IceConnectionNumber=yes
24767 else
24768   ac_cv_lib_ICE_IceConnectionNumber=no
24769 fi
24770 rm -f core conftest.err conftest.$ac_objext \
24771     conftest$ac_exeext conftest.$ac_ext
24772 LIBS=$ac_check_lib_save_LIBS
24773 fi
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24775 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24776 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
24777   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24778 fi
24779
24780   LDFLAGS=$ac_save_LDFLAGS
24781
24782 fi
24783
24784
24785 for ac_header in \
24786    assert.h \
24787    fcntl.h \
24788    grp.h \
24789    pwd.h \
24790    libc.h \
24791    limits.h \
24792    stdarg.h \
24793    stdlib.h \
24794    stdint.h \
24795    string.h \
24796    strings.h \
24797    termios.h \
24798    termcap.h \
24799    term.h \
24800    unistd.h \
24801    sys/bitypes.h \
24802    sys/byteorder.h \
24803    sys/ioctl.h \
24804    sys/select.h \
24805    sys/socket.h \
24806    sys/sockio.h \
24807    sys/stat.h \
24808    sys/time.h \
24809    sys/types.h \
24810    arpa/nameser.h \
24811    mtio.h \
24812    sys/mtio.h \
24813    sys/tape.h \
24814    regex.h \
24815
24816 do :
24817   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24820   cat >>confdefs.h <<_ACEOF
24821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24822 _ACEOF
24823
24824 fi
24825
24826 done
24827
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24829 $as_echo_n "checking for ANSI C header files... " >&6; }
24830 if ${ac_cv_header_stdc+:} false; then :
24831   $as_echo_n "(cached) " >&6
24832 else
24833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24834 /* end confdefs.h.  */
24835 #include <stdlib.h>
24836 #include <stdarg.h>
24837 #include <string.h>
24838 #include <float.h>
24839
24840 int
24841 main ()
24842 {
24843
24844   ;
24845   return 0;
24846 }
24847 _ACEOF
24848 if ac_fn_c_try_compile "$LINENO"; then :
24849   ac_cv_header_stdc=yes
24850 else
24851   ac_cv_header_stdc=no
24852 fi
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854
24855 if test $ac_cv_header_stdc = yes; then
24856   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h.  */
24859 #include <string.h>
24860
24861 _ACEOF
24862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24863   $EGREP "memchr" >/dev/null 2>&1; then :
24864
24865 else
24866   ac_cv_header_stdc=no
24867 fi
24868 rm -f conftest*
24869
24870 fi
24871
24872 if test $ac_cv_header_stdc = yes; then
24873   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h.  */
24876 #include <stdlib.h>
24877
24878 _ACEOF
24879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24880   $EGREP "free" >/dev/null 2>&1; then :
24881
24882 else
24883   ac_cv_header_stdc=no
24884 fi
24885 rm -f conftest*
24886
24887 fi
24888
24889 if test $ac_cv_header_stdc = yes; then
24890   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24891   if test "$cross_compiling" = yes; then :
24892   :
24893 else
24894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24895 /* end confdefs.h.  */
24896 #include <ctype.h>
24897 #include <stdlib.h>
24898 #if ((' ' & 0x0FF) == 0x020)
24899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24901 #else
24902 # define ISLOWER(c) \
24903                    (('a' <= (c) && (c) <= 'i') \
24904                      || ('j' <= (c) && (c) <= 'r') \
24905                      || ('s' <= (c) && (c) <= 'z'))
24906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24907 #endif
24908
24909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24910 int
24911 main ()
24912 {
24913   int i;
24914   for (i = 0; i < 256; i++)
24915     if (XOR (islower (i), ISLOWER (i))
24916         || toupper (i) != TOUPPER (i))
24917       return 2;
24918   return 0;
24919 }
24920 _ACEOF
24921 if ac_fn_c_try_run "$LINENO"; then :
24922
24923 else
24924   ac_cv_header_stdc=no
24925 fi
24926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24927   conftest.$ac_objext conftest.beam conftest.$ac_ext
24928 fi
24929
24930 fi
24931 fi
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24933 $as_echo "$ac_cv_header_stdc" >&6; }
24934 if test $ac_cv_header_stdc = yes; then
24935
24936 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24937
24938 fi
24939
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24941 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24942 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
24943   $as_echo_n "(cached) " >&6
24944 else
24945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24946 /* end confdefs.h.  */
24947 #include <sys/types.h>
24948 int
24949 main ()
24950 {
24951 return makedev(0, 0);
24952   ;
24953   return 0;
24954 }
24955 _ACEOF
24956 if ac_fn_c_try_link "$LINENO"; then :
24957   ac_cv_header_sys_types_h_makedev=yes
24958 else
24959   ac_cv_header_sys_types_h_makedev=no
24960 fi
24961 rm -f core conftest.err conftest.$ac_objext \
24962     conftest$ac_exeext conftest.$ac_ext
24963
24964 fi
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24966 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24967
24968 if test $ac_cv_header_sys_types_h_makedev = no; then
24969 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24970 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
24971
24972 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24973
24974 fi
24975
24976
24977
24978   if test $ac_cv_header_sys_mkdev_h = no; then
24979     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24980 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
24981
24982 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24983
24984 fi
24985
24986
24987   fi
24988 fi
24989
24990 ac_header_dirent=no
24991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24992   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24994 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24995 if eval \${$as_ac_Header+:} false; then :
24996   $as_echo_n "(cached) " >&6
24997 else
24998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h.  */
25000 #include <sys/types.h>
25001 #include <$ac_hdr>
25002
25003 int
25004 main ()
25005 {
25006 if ((DIR *) 0)
25007 return 0;
25008   ;
25009   return 0;
25010 }
25011 _ACEOF
25012 if ac_fn_c_try_compile "$LINENO"; then :
25013   eval "$as_ac_Header=yes"
25014 else
25015   eval "$as_ac_Header=no"
25016 fi
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 fi
25019 eval ac_res=\$$as_ac_Header
25020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25021 $as_echo "$ac_res" >&6; }
25022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25023   cat >>confdefs.h <<_ACEOF
25024 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25025 _ACEOF
25026
25027 ac_header_dirent=$ac_hdr; break
25028 fi
25029
25030 done
25031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25032 if test $ac_header_dirent = dirent.h; then
25033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25034 $as_echo_n "checking for library containing opendir... " >&6; }
25035 if ${ac_cv_search_opendir+:} false; then :
25036   $as_echo_n "(cached) " >&6
25037 else
25038   ac_func_search_save_LIBS=$LIBS
25039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25040 /* end confdefs.h.  */
25041
25042 /* Override any GCC internal prototype to avoid an error.
25043    Use char because int might match the return type of a GCC
25044    builtin and then its argument prototype would still apply.  */
25045 #ifdef __cplusplus
25046 extern "C"
25047 #endif
25048 char opendir ();
25049 int
25050 main ()
25051 {
25052 return opendir ();
25053   ;
25054   return 0;
25055 }
25056 _ACEOF
25057 for ac_lib in '' dir; do
25058   if test -z "$ac_lib"; then
25059     ac_res="none required"
25060   else
25061     ac_res=-l$ac_lib
25062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25063   fi
25064   if ac_fn_c_try_link "$LINENO"; then :
25065   ac_cv_search_opendir=$ac_res
25066 fi
25067 rm -f core conftest.err conftest.$ac_objext \
25068     conftest$ac_exeext
25069   if ${ac_cv_search_opendir+:} false; then :
25070   break
25071 fi
25072 done
25073 if ${ac_cv_search_opendir+:} false; then :
25074
25075 else
25076   ac_cv_search_opendir=no
25077 fi
25078 rm conftest.$ac_ext
25079 LIBS=$ac_func_search_save_LIBS
25080 fi
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25082 $as_echo "$ac_cv_search_opendir" >&6; }
25083 ac_res=$ac_cv_search_opendir
25084 if test "$ac_res" != no; then :
25085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25086
25087 fi
25088
25089 else
25090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25091 $as_echo_n "checking for library containing opendir... " >&6; }
25092 if ${ac_cv_search_opendir+:} false; then :
25093   $as_echo_n "(cached) " >&6
25094 else
25095   ac_func_search_save_LIBS=$LIBS
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h.  */
25098
25099 /* Override any GCC internal prototype to avoid an error.
25100    Use char because int might match the return type of a GCC
25101    builtin and then its argument prototype would still apply.  */
25102 #ifdef __cplusplus
25103 extern "C"
25104 #endif
25105 char opendir ();
25106 int
25107 main ()
25108 {
25109 return opendir ();
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 for ac_lib in '' x; do
25115   if test -z "$ac_lib"; then
25116     ac_res="none required"
25117   else
25118     ac_res=-l$ac_lib
25119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25120   fi
25121   if ac_fn_c_try_link "$LINENO"; then :
25122   ac_cv_search_opendir=$ac_res
25123 fi
25124 rm -f core conftest.err conftest.$ac_objext \
25125     conftest$ac_exeext
25126   if ${ac_cv_search_opendir+:} false; then :
25127   break
25128 fi
25129 done
25130 if ${ac_cv_search_opendir+:} false; then :
25131
25132 else
25133   ac_cv_search_opendir=no
25134 fi
25135 rm conftest.$ac_ext
25136 LIBS=$ac_func_search_save_LIBS
25137 fi
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25139 $as_echo "$ac_cv_search_opendir" >&6; }
25140 ac_res=$ac_cv_search_opendir
25141 if test "$ac_res" != no; then :
25142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25143
25144 fi
25145
25146 fi
25147
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25149 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25150 if ${ac_cv_header_stat_broken+:} false; then :
25151   $as_echo_n "(cached) " >&6
25152 else
25153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h.  */
25155 #include <sys/types.h>
25156 #include <sys/stat.h>
25157
25158 #if defined S_ISBLK && defined S_IFDIR
25159 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25160 #endif
25161
25162 #if defined S_ISBLK && defined S_IFCHR
25163 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25164 #endif
25165
25166 #if defined S_ISLNK && defined S_IFREG
25167 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25168 #endif
25169
25170 #if defined S_ISSOCK && defined S_IFREG
25171 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25172 #endif
25173
25174 _ACEOF
25175 if ac_fn_c_try_compile "$LINENO"; then :
25176   ac_cv_header_stat_broken=no
25177 else
25178   ac_cv_header_stat_broken=yes
25179 fi
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 fi
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25183 $as_echo "$ac_cv_header_stat_broken" >&6; }
25184 if test $ac_cv_header_stat_broken = yes; then
25185
25186 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25187
25188 fi
25189
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25191 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25192 if ${ac_cv_header_sys_wait_h+:} false; then :
25193   $as_echo_n "(cached) " >&6
25194 else
25195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25196 /* end confdefs.h.  */
25197 #include <sys/types.h>
25198 #include <sys/wait.h>
25199 #ifndef WEXITSTATUS
25200 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25201 #endif
25202 #ifndef WIFEXITED
25203 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25204 #endif
25205
25206 int
25207 main ()
25208 {
25209   int s;
25210   wait (&s);
25211   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25212   ;
25213   return 0;
25214 }
25215 _ACEOF
25216 if ac_fn_c_try_compile "$LINENO"; then :
25217   ac_cv_header_sys_wait_h=yes
25218 else
25219   ac_cv_header_sys_wait_h=no
25220 fi
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 fi
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25224 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25225 if test $ac_cv_header_sys_wait_h = yes; then
25226
25227 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25228
25229 fi
25230
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25232 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25233 if ${ac_cv_header_time+:} false; then :
25234   $as_echo_n "(cached) " >&6
25235 else
25236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h.  */
25238 #include <sys/types.h>
25239 #include <sys/time.h>
25240 #include <time.h>
25241
25242 int
25243 main ()
25244 {
25245 if ((struct tm *) 0)
25246 return 0;
25247   ;
25248   return 0;
25249 }
25250 _ACEOF
25251 if ac_fn_c_try_compile "$LINENO"; then :
25252   ac_cv_header_time=yes
25253 else
25254   ac_cv_header_time=no
25255 fi
25256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25257 fi
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25259 $as_echo "$ac_cv_header_time" >&6; }
25260 if test $ac_cv_header_time = yes; then
25261
25262 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25263
25264 fi
25265
25266 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25267 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25268
25269 cat >>confdefs.h <<_ACEOF
25270 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25271 _ACEOF
25272
25273
25274 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25275
25276 fi
25277
25278
25279 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25280 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25281
25282 cat >>confdefs.h <<_ACEOF
25283 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25284 _ACEOF
25285
25286
25287 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25288
25289 else
25290   case " $LIBOBJS " in
25291   *" fileblocks.$ac_objext "* ) ;;
25292   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25293  ;;
25294 esac
25295
25296 fi
25297
25298
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25300 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25301 if ${ac_cv_struct_tm+:} false; then :
25302   $as_echo_n "(cached) " >&6
25303 else
25304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h.  */
25306 #include <sys/types.h>
25307 #include <time.h>
25308
25309 int
25310 main ()
25311 {
25312 struct tm tm;
25313                                      int *p = &tm.tm_sec;
25314                                      return !p;
25315   ;
25316   return 0;
25317 }
25318 _ACEOF
25319 if ac_fn_c_try_compile "$LINENO"; then :
25320   ac_cv_struct_tm=time.h
25321 else
25322   ac_cv_struct_tm=sys/time.h
25323 fi
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 fi
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25327 $as_echo "$ac_cv_struct_tm" >&6; }
25328 if test $ac_cv_struct_tm = sys/time.h; then
25329
25330 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25331
25332 fi
25333
25334 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25335 #include <$ac_cv_struct_tm>
25336
25337 "
25338 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25339
25340 cat >>confdefs.h <<_ACEOF
25341 #define HAVE_STRUCT_TM_TM_ZONE 1
25342 _ACEOF
25343
25344
25345 fi
25346
25347 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25348
25349 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25350
25351 else
25352   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25353 "
25354 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25355   ac_have_decl=1
25356 else
25357   ac_have_decl=0
25358 fi
25359
25360 cat >>confdefs.h <<_ACEOF
25361 #define HAVE_DECL_TZNAME $ac_have_decl
25362 _ACEOF
25363
25364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25365 $as_echo_n "checking for tzname... " >&6; }
25366 if ${ac_cv_var_tzname+:} false; then :
25367   $as_echo_n "(cached) " >&6
25368 else
25369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25370 /* end confdefs.h.  */
25371 #include <time.h>
25372 #if !HAVE_DECL_TZNAME
25373 extern char *tzname[];
25374 #endif
25375
25376 int
25377 main ()
25378 {
25379 return tzname[0][0];
25380   ;
25381   return 0;
25382 }
25383 _ACEOF
25384 if ac_fn_c_try_link "$LINENO"; then :
25385   ac_cv_var_tzname=yes
25386 else
25387   ac_cv_var_tzname=no
25388 fi
25389 rm -f core conftest.err conftest.$ac_objext \
25390     conftest$ac_exeext conftest.$ac_ext
25391 fi
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25393 $as_echo "$ac_cv_var_tzname" >&6; }
25394   if test $ac_cv_var_tzname = yes; then
25395
25396 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25397
25398   fi
25399 fi
25400
25401
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25403 $as_echo_n "checking for utime.h... " >&6; }
25404 if ${ba_cv_header_utime_h+:} false; then :
25405   $as_echo_n "(cached) " >&6
25406 else
25407
25408        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h.  */
25410
25411               #include <sys/types.h>
25412               #include <utime.h>
25413
25414 int
25415 main ()
25416 {
25417
25418               struct utimbuf foo
25419
25420   ;
25421   return 0;
25422 }
25423 _ACEOF
25424 if ac_fn_c_try_compile "$LINENO"; then :
25425
25426               ba_cv_header_utime_h=yes
25427
25428 else
25429
25430               ba_cv_header_utime_h=no
25431
25432
25433 fi
25434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25435
25436
25437 fi
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25439 $as_echo "$ba_cv_header_utime_h" >&6; }
25440 test $ba_cv_header_utime_h = yes &&
25441 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25442
25443
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25445 $as_echo_n "checking for socklen_t... " >&6; }
25446 if ${ba_cv_header_socklen_t+:} false; then :
25447   $as_echo_n "(cached) " >&6
25448 else
25449
25450        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h.  */
25452
25453               #include <sys/types.h>
25454               #include <sys/socket.h>
25455
25456 int
25457 main ()
25458 {
25459
25460               socklen_t x
25461
25462   ;
25463   return 0;
25464 }
25465 _ACEOF
25466 if ac_fn_c_try_compile "$LINENO"; then :
25467
25468              ba_cv_header_socklen_t=yes
25469
25470 else
25471
25472              ba_cv_header_socklen_t=no
25473
25474
25475 fi
25476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25477
25478
25479 fi
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25481 $as_echo "$ba_cv_header_socklen_t" >&6; }
25482 test $ba_cv_header_socklen_t = yes &&
25483 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25484
25485
25486 ac_ext=cpp
25487 ac_cpp='$CXXCPP $CPPFLAGS'
25488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25491
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25493 $as_echo_n "checking for ioctl_req_t... " >&6; }
25494 if ${ba_cv_header_ioctl_req_t+:} false; then :
25495   $as_echo_n "(cached) " >&6
25496 else
25497
25498        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25499 /* end confdefs.h.  */
25500
25501               #include <unistd.h>
25502               #include <sys/types.h>
25503               #include <sys/ioctl.h>
25504
25505 int
25506 main ()
25507 {
25508
25509               int (*d_ioctl)(int fd, unsigned long int request, ...);
25510               d_ioctl = ::ioctl;
25511
25512   ;
25513   return 0;
25514 }
25515 _ACEOF
25516 if ac_fn_cxx_try_compile "$LINENO"; then :
25517
25518              ba_cv_header_ioctl_req_t=yes
25519
25520 else
25521
25522              ba_cv_header_ioctl_req_t=no
25523
25524
25525 fi
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527
25528
25529 fi
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25531 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25532 test $ba_cv_header_ioctl_req_t = yes &&
25533 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25534
25535
25536 ac_ext=c
25537 ac_cpp='$CPP $CPPFLAGS'
25538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25541
25542
25543 ac_ext=cpp
25544 ac_cpp='$CXXCPP $CPPFLAGS'
25545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25548
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25550 $as_echo_n "checking for typeof... " >&6; }
25551 if ${ba_cv_have_typeof+:} false; then :
25552   $as_echo_n "(cached) " >&6
25553 else
25554
25555        if test "$cross_compiling" = yes; then :
25556
25557               ba_cv_have_typeof=no
25558
25559
25560 else
25561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25562 /* end confdefs.h.  */
25563
25564               main(){char *a = 0; a = (typeof a)a;}
25565
25566 _ACEOF
25567 if ac_fn_cxx_try_run "$LINENO"; then :
25568
25569               ba_cv_have_typeof=yes
25570
25571 else
25572
25573               ba_cv_have_typeof=no
25574
25575 fi
25576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25577   conftest.$ac_objext conftest.beam conftest.$ac_ext
25578 fi
25579
25580
25581
25582 fi
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25584 $as_echo "$ba_cv_have_typeof" >&6; }
25585 test $ba_cv_have_typeof = yes &&
25586 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25587
25588 ac_ext=c
25589 ac_cpp='$CPP $CPPFLAGS'
25590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25593
25594
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25596 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25597 if ${ac_cv_c_const+:} false; then :
25598   $as_echo_n "(cached) " >&6
25599 else
25600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601 /* end confdefs.h.  */
25602
25603 int
25604 main ()
25605 {
25606 /* FIXME: Include the comments suggested by Paul. */
25607 #ifndef __cplusplus
25608   /* Ultrix mips cc rejects this.  */
25609   typedef int charset[2];
25610   const charset cs;
25611   /* SunOS 4.1.1 cc rejects this.  */
25612   char const *const *pcpcc;
25613   char **ppc;
25614   /* NEC SVR4.0.2 mips cc rejects this.  */
25615   struct point {int x, y;};
25616   static struct point const zero = {0,0};
25617   /* AIX XL C 1.02.0.0 rejects this.
25618      It does not let you subtract one const X* pointer from another in
25619      an arm of an if-expression whose if-part is not a constant
25620      expression */
25621   const char *g = "string";
25622   pcpcc = &g + (g ? g-g : 0);
25623   /* HPUX 7.0 cc rejects these. */
25624   ++pcpcc;
25625   ppc = (char**) pcpcc;
25626   pcpcc = (char const *const *) ppc;
25627   { /* SCO 3.2v4 cc rejects this.  */
25628     char *t;
25629     char const *s = 0 ? (char *) 0 : (char const *) 0;
25630
25631     *t++ = 0;
25632     if (s) return 0;
25633   }
25634   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25635     int x[] = {25, 17};
25636     const int *foo = &x[0];
25637     ++foo;
25638   }
25639   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25640     typedef const int *iptr;
25641     iptr p = 0;
25642     ++p;
25643   }
25644   { /* AIX XL C 1.02.0.0 rejects this saying
25645        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25646     struct s { int j; const int *ap[3]; };
25647     struct s *b; b->j = 5;
25648   }
25649   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25650     const int foo = 10;
25651     if (!foo) return 0;
25652   }
25653   return !cs[0] && !zero.x;
25654 #endif
25655
25656   ;
25657   return 0;
25658 }
25659 _ACEOF
25660 if ac_fn_c_try_compile "$LINENO"; then :
25661   ac_cv_c_const=yes
25662 else
25663   ac_cv_c_const=no
25664 fi
25665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25666 fi
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25668 $as_echo "$ac_cv_c_const" >&6; }
25669 if test $ac_cv_c_const = no; then
25670
25671 $as_echo "#define const /**/" >>confdefs.h
25672
25673 fi
25674
25675
25676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25677 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25678 if ${ac_cv_c_bigendian+:} false; then :
25679   $as_echo_n "(cached) " >&6
25680 else
25681   ac_cv_c_bigendian=unknown
25682     # See if we're dealing with a universal compiler.
25683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25684 /* end confdefs.h.  */
25685 #ifndef __APPLE_CC__
25686                not a universal capable compiler
25687              #endif
25688              typedef int dummy;
25689
25690 _ACEOF
25691 if ac_fn_c_try_compile "$LINENO"; then :
25692
25693         # Check for potential -arch flags.  It is not universal unless
25694         # there are at least two -arch flags with different values.
25695         ac_arch=
25696         ac_prev=
25697         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25698          if test -n "$ac_prev"; then
25699            case $ac_word in
25700              i?86 | x86_64 | ppc | ppc64)
25701                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25702                  ac_arch=$ac_word
25703                else
25704                  ac_cv_c_bigendian=universal
25705                  break
25706                fi
25707                ;;
25708            esac
25709            ac_prev=
25710          elif test "x$ac_word" = "x-arch"; then
25711            ac_prev=arch
25712          fi
25713        done
25714 fi
25715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25716     if test $ac_cv_c_bigendian = unknown; then
25717       # See if sys/param.h defines the BYTE_ORDER macro.
25718       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25719 /* end confdefs.h.  */
25720 #include <sys/types.h>
25721              #include <sys/param.h>
25722
25723 int
25724 main ()
25725 {
25726 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25727                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25728                      && LITTLE_ENDIAN)
25729               bogus endian macros
25730              #endif
25731
25732   ;
25733   return 0;
25734 }
25735 _ACEOF
25736 if ac_fn_c_try_compile "$LINENO"; then :
25737   # It does; now see whether it defined to BIG_ENDIAN or not.
25738          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h.  */
25740 #include <sys/types.h>
25741                 #include <sys/param.h>
25742
25743 int
25744 main ()
25745 {
25746 #if BYTE_ORDER != BIG_ENDIAN
25747                  not big endian
25748                 #endif
25749
25750   ;
25751   return 0;
25752 }
25753 _ACEOF
25754 if ac_fn_c_try_compile "$LINENO"; then :
25755   ac_cv_c_bigendian=yes
25756 else
25757   ac_cv_c_bigendian=no
25758 fi
25759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25760 fi
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762     fi
25763     if test $ac_cv_c_bigendian = unknown; then
25764       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25765       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h.  */
25767 #include <limits.h>
25768
25769 int
25770 main ()
25771 {
25772 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25773               bogus endian macros
25774              #endif
25775
25776   ;
25777   return 0;
25778 }
25779 _ACEOF
25780 if ac_fn_c_try_compile "$LINENO"; then :
25781   # It does; now see whether it defined to _BIG_ENDIAN or not.
25782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h.  */
25784 #include <limits.h>
25785
25786 int
25787 main ()
25788 {
25789 #ifndef _BIG_ENDIAN
25790                  not big endian
25791                 #endif
25792
25793   ;
25794   return 0;
25795 }
25796 _ACEOF
25797 if ac_fn_c_try_compile "$LINENO"; then :
25798   ac_cv_c_bigendian=yes
25799 else
25800   ac_cv_c_bigendian=no
25801 fi
25802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25803 fi
25804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805     fi
25806     if test $ac_cv_c_bigendian = unknown; then
25807       # Compile a test program.
25808       if test "$cross_compiling" = yes; then :
25809   # Try to guess by grepping values from an object file.
25810          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812 short int ascii_mm[] =
25813                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25814                 short int ascii_ii[] =
25815                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25816                 int use_ascii (int i) {
25817                   return ascii_mm[i] + ascii_ii[i];
25818                 }
25819                 short int ebcdic_ii[] =
25820                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25821                 short int ebcdic_mm[] =
25822                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25823                 int use_ebcdic (int i) {
25824                   return ebcdic_mm[i] + ebcdic_ii[i];
25825                 }
25826                 extern int foo;
25827
25828 int
25829 main ()
25830 {
25831 return use_ascii (foo) == use_ebcdic (foo);
25832   ;
25833   return 0;
25834 }
25835 _ACEOF
25836 if ac_fn_c_try_compile "$LINENO"; then :
25837   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25838               ac_cv_c_bigendian=yes
25839             fi
25840             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25841               if test "$ac_cv_c_bigendian" = unknown; then
25842                 ac_cv_c_bigendian=no
25843               else
25844                 # finding both strings is unlikely to happen, but who knows?
25845                 ac_cv_c_bigendian=unknown
25846               fi
25847             fi
25848 fi
25849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25850 else
25851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h.  */
25853 $ac_includes_default
25854 int
25855 main ()
25856 {
25857
25858              /* Are we little or big endian?  From Harbison&Steele.  */
25859              union
25860              {
25861                long int l;
25862                char c[sizeof (long int)];
25863              } u;
25864              u.l = 1;
25865              return u.c[sizeof (long int) - 1] == 1;
25866
25867   ;
25868   return 0;
25869 }
25870 _ACEOF
25871 if ac_fn_c_try_run "$LINENO"; then :
25872   ac_cv_c_bigendian=no
25873 else
25874   ac_cv_c_bigendian=yes
25875 fi
25876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25877   conftest.$ac_objext conftest.beam conftest.$ac_ext
25878 fi
25879
25880     fi
25881 fi
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25883 $as_echo "$ac_cv_c_bigendian" >&6; }
25884  case $ac_cv_c_bigendian in #(
25885    yes)
25886
25887 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25888 ;; #(
25889    no)
25890
25891 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25892  ;; #(
25893    universal)
25894
25895 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25896
25897      ;; #(
25898    *)
25899      as_fn_error $? "unknown endianness
25900  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25901  esac
25902
25903
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25905 $as_echo_n "checking how to get filesystem type... " >&6; }
25906 fstype=no
25907 # The order of these tests is important.
25908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25909 /* end confdefs.h.  */
25910
25911        #include <sys/statvfs.h>
25912        #include <sys/fstyp.h>
25913
25914 _ACEOF
25915 if ac_fn_c_try_cpp "$LINENO"; then :
25916   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25917  fstype=SVR4
25918
25919 fi
25920 rm -f conftest.err conftest.i conftest.$ac_ext
25921 if test $fstype = no; then
25922    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25923 /* end confdefs.h.  */
25924
25925           #include <sys/statfs.h>
25926           #include <sys/fstyp.h>
25927
25928 _ACEOF
25929 if ac_fn_c_try_cpp "$LINENO"; then :
25930   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25931  fstype=SVR3
25932
25933 fi
25934 rm -f conftest.err conftest.i conftest.$ac_ext
25935 fi
25936 if test $fstype = no; then
25937    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h.  */
25939
25940           #include <sys/statfs.h>
25941           #include <sys/vmount.h>
25942
25943 _ACEOF
25944 if ac_fn_c_try_cpp "$LINENO"; then :
25945   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25946  fstype=AIX
25947
25948 fi
25949 rm -f conftest.err conftest.i conftest.$ac_ext
25950 fi
25951 if test $fstype = no; then
25952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25953 /* end confdefs.h.  */
25954
25955           #include <mntent.h>
25956
25957 _ACEOF
25958 if ac_fn_c_try_cpp "$LINENO"; then :
25959   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25960  fstype=4.3BSD
25961
25962 fi
25963 rm -f conftest.err conftest.i conftest.$ac_ext
25964 fi
25965 if test $fstype = no; then
25966    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25967 /* end confdefs.h.  */
25968 #include <sys/mount.h>
25969
25970 _ACEOF
25971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25972   $EGREP "f_type;" >/dev/null 2>&1; then :
25973   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25974  fstype=4.4BSD/OSF1
25975 fi
25976 rm -f conftest*
25977
25978 fi
25979 if test $fstype = no; then
25980    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h.  */
25982
25983           #include <sys/mount.h>
25984           #include <sys/fs_types.h>
25985
25986 _ACEOF
25987 if ac_fn_c_try_cpp "$LINENO"; then :
25988   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25989  fstype=Ultrix
25990
25991 fi
25992 rm -f conftest.err conftest.i conftest.$ac_ext
25993 fi
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25995 $as_echo "$fstype" >&6; }
25996
25997 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25998 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
25999
26000 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26001
26002 fi
26003
26004
26005
26006 ac_ext=cpp
26007 ac_cpp='$CXXCPP $CPPFLAGS'
26008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26011
26012
26013 for ac_header in cxxabi.h execinfo.h
26014 do :
26015   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26016 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26018   cat >>confdefs.h <<_ACEOF
26019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26020 _ACEOF
26021
26022 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26023
26024 fi
26025
26026 done
26027
26028 ac_ext=c
26029 ac_cpp='$CPP $CPPFLAGS'
26030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26033
26034
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26036 $as_echo_n "checking return type of signal handlers... " >&6; }
26037 if ${ac_cv_type_signal+:} false; then :
26038   $as_echo_n "(cached) " >&6
26039 else
26040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h.  */
26042 #include <sys/types.h>
26043 #include <signal.h>
26044
26045 int
26046 main ()
26047 {
26048 return *(signal (0, 0)) (0) == 1;
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 if ac_fn_c_try_compile "$LINENO"; then :
26054   ac_cv_type_signal=int
26055 else
26056   ac_cv_type_signal=void
26057 fi
26058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26059 fi
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26061 $as_echo "$ac_cv_type_signal" >&6; }
26062
26063 cat >>confdefs.h <<_ACEOF
26064 #define RETSIGTYPE $ac_cv_type_signal
26065 _ACEOF
26066
26067
26068
26069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26070 $as_echo_n "checking for type of signal functions... " >&6; }
26071   if ${bash_cv_signal_vintage+:} false; then :
26072   $as_echo_n "(cached) " >&6
26073 else
26074
26075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h.  */
26077 #include <signal.h>
26078 int
26079 main ()
26080 {
26081
26082       sigset_t ss;
26083       struct sigaction sa;
26084       sigemptyset(&ss); sigsuspend(&ss);
26085       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26086       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26087
26088   ;
26089   return 0;
26090 }
26091 _ACEOF
26092 if ac_fn_c_try_link "$LINENO"; then :
26093   bash_cv_signal_vintage="posix"
26094 else
26095
26096       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097 /* end confdefs.h.  */
26098 #include <signal.h>
26099 int
26100 main ()
26101 {
26102
26103           int mask = sigmask(SIGINT);
26104           sigsetmask(mask); sigblock(mask); sigpause(mask);
26105
26106   ;
26107   return 0;
26108 }
26109 _ACEOF
26110 if ac_fn_c_try_link "$LINENO"; then :
26111   bash_cv_signal_vintage="4.2bsd"
26112 else
26113
26114         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26115 /* end confdefs.h.  */
26116
26117           #include <signal.h>
26118           RETSIGTYPE foo() { }
26119 int
26120 main ()
26121 {
26122
26123                   int mask = sigmask(SIGINT);
26124                   sigset(SIGINT, foo); sigrelse(SIGINT);
26125                   sighold(SIGINT); sigpause(SIGINT);
26126
26127   ;
26128   return 0;
26129 }
26130 _ACEOF
26131 if ac_fn_c_try_link "$LINENO"; then :
26132   bash_cv_signal_vintage="svr3"
26133 else
26134   bash_cv_signal_vintage="v7"
26135
26136 fi
26137 rm -f core conftest.err conftest.$ac_objext \
26138     conftest$ac_exeext conftest.$ac_ext
26139
26140 fi
26141 rm -f core conftest.err conftest.$ac_objext \
26142     conftest$ac_exeext conftest.$ac_ext
26143
26144 fi
26145 rm -f core conftest.err conftest.$ac_objext \
26146     conftest$ac_exeext conftest.$ac_ext
26147
26148 fi
26149
26150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26151 $as_echo "$bash_cv_signal_vintage" >&6; }
26152   if test "$bash_cv_signal_vintage" = "posix"; then
26153     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26154
26155   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26156     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26157
26158   elif test "$bash_cv_signal_vintage" = "svr3"; then
26159     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26160
26161   fi
26162
26163 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26164 if test "x$ac_cv_type_mode_t" = xyes; then :
26165
26166 else
26167
26168 cat >>confdefs.h <<_ACEOF
26169 #define mode_t int
26170 _ACEOF
26171
26172 fi
26173
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26175 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26176 if ${ac_cv_type_uid_t+:} false; then :
26177   $as_echo_n "(cached) " >&6
26178 else
26179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180 /* end confdefs.h.  */
26181 #include <sys/types.h>
26182
26183 _ACEOF
26184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26185   $EGREP "uid_t" >/dev/null 2>&1; then :
26186   ac_cv_type_uid_t=yes
26187 else
26188   ac_cv_type_uid_t=no
26189 fi
26190 rm -f conftest*
26191
26192 fi
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26194 $as_echo "$ac_cv_type_uid_t" >&6; }
26195 if test $ac_cv_type_uid_t = no; then
26196
26197 $as_echo "#define uid_t int" >>confdefs.h
26198
26199
26200 $as_echo "#define gid_t int" >>confdefs.h
26201
26202 fi
26203
26204 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26205 if test "x$ac_cv_type_size_t" = xyes; then :
26206
26207 else
26208
26209 cat >>confdefs.h <<_ACEOF
26210 #define size_t unsigned int
26211 _ACEOF
26212
26213 fi
26214
26215 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26216 if test "x$ac_cv_type_pid_t" = xyes; then :
26217
26218 else
26219
26220 cat >>confdefs.h <<_ACEOF
26221 #define pid_t int
26222 _ACEOF
26223
26224 fi
26225
26226 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26227 if test "x$ac_cv_type_off_t" = xyes; then :
26228
26229 else
26230
26231 cat >>confdefs.h <<_ACEOF
26232 #define off_t long int
26233 _ACEOF
26234
26235 fi
26236
26237
26238   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26239 if test "x$ac_cv_type_intptr_t" = xyes; then :
26240
26241 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26242
26243 else
26244   for ac_type in 'int' 'long int' 'long long int'; do
26245        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26246 /* end confdefs.h.  */
26247 $ac_includes_default
26248 int
26249 main ()
26250 {
26251 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26252 test_array [0] = 0
26253
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 if ac_fn_c_try_compile "$LINENO"; then :
26259
26260 cat >>confdefs.h <<_ACEOF
26261 #define intptr_t $ac_type
26262 _ACEOF
26263
26264           ac_type=
26265 fi
26266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26267        test -z "$ac_type" && break
26268      done
26269 fi
26270
26271
26272
26273   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26274 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26275
26276 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26277
26278 else
26279   for ac_type in 'unsigned int' 'unsigned long int' \
26280         'unsigned long long int'; do
26281        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h.  */
26283 $ac_includes_default
26284 int
26285 main ()
26286 {
26287 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26288 test_array [0] = 0
26289
26290   ;
26291   return 0;
26292 }
26293 _ACEOF
26294 if ac_fn_c_try_compile "$LINENO"; then :
26295
26296 cat >>confdefs.h <<_ACEOF
26297 #define uintptr_t $ac_type
26298 _ACEOF
26299
26300           ac_type=
26301 fi
26302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303        test -z "$ac_type" && break
26304      done
26305 fi
26306
26307
26308 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26309 if test "x$ac_cv_type_ino_t" = xyes; then :
26310
26311 else
26312
26313 cat >>confdefs.h <<_ACEOF
26314 #define ino_t unsigned long
26315 _ACEOF
26316
26317 fi
26318
26319 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26320 if test "x$ac_cv_type_dev_t" = xyes; then :
26321
26322 else
26323
26324 cat >>confdefs.h <<_ACEOF
26325 #define dev_t unsigned long
26326 _ACEOF
26327
26328 fi
26329
26330 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26331 if test "x$ac_cv_type_daddr_t" = xyes; then :
26332
26333 else
26334
26335 cat >>confdefs.h <<_ACEOF
26336 #define daddr_t long
26337 _ACEOF
26338
26339 fi
26340
26341 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26342 if test "x$ac_cv_type_major_t" = xyes; then :
26343
26344 else
26345
26346 cat >>confdefs.h <<_ACEOF
26347 #define major_t int
26348 _ACEOF
26349
26350 fi
26351
26352 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26353 if test "x$ac_cv_type_minor_t" = xyes; then :
26354
26355 else
26356
26357 cat >>confdefs.h <<_ACEOF
26358 #define minor_t int
26359 _ACEOF
26360
26361 fi
26362
26363 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26364 if test "x$ac_cv_type_ssize_t" = xyes; then :
26365
26366 else
26367
26368 cat >>confdefs.h <<_ACEOF
26369 #define ssize_t int
26370 _ACEOF
26371
26372 fi
26373
26374 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26375 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26376
26377 cat >>confdefs.h <<_ACEOF
26378 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26379 _ACEOF
26380
26381
26382 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26383
26384 else
26385   case " $LIBOBJS " in
26386   *" fileblocks.$ac_objext "* ) ;;
26387   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26388  ;;
26389 esac
26390
26391 fi
26392
26393
26394 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26395 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26396
26397 cat >>confdefs.h <<_ACEOF
26398 #define HAVE_STRUCT_STAT_ST_RDEV 1
26399 _ACEOF
26400
26401
26402 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26403
26404 fi
26405
26406
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26408 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26409 if ${ac_cv_struct_tm+:} false; then :
26410   $as_echo_n "(cached) " >&6
26411 else
26412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h.  */
26414 #include <sys/types.h>
26415 #include <time.h>
26416
26417 int
26418 main ()
26419 {
26420 struct tm tm;
26421                                      int *p = &tm.tm_sec;
26422                                      return !p;
26423   ;
26424   return 0;
26425 }
26426 _ACEOF
26427 if ac_fn_c_try_compile "$LINENO"; then :
26428   ac_cv_struct_tm=time.h
26429 else
26430   ac_cv_struct_tm=sys/time.h
26431 fi
26432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26433 fi
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26435 $as_echo "$ac_cv_struct_tm" >&6; }
26436 if test $ac_cv_struct_tm = sys/time.h; then
26437
26438 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26439
26440 fi
26441
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26443 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26444 if ${ac_cv_c_const+:} false; then :
26445   $as_echo_n "(cached) " >&6
26446 else
26447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26448 /* end confdefs.h.  */
26449
26450 int
26451 main ()
26452 {
26453 /* FIXME: Include the comments suggested by Paul. */
26454 #ifndef __cplusplus
26455   /* Ultrix mips cc rejects this.  */
26456   typedef int charset[2];
26457   const charset cs;
26458   /* SunOS 4.1.1 cc rejects this.  */
26459   char const *const *pcpcc;
26460   char **ppc;
26461   /* NEC SVR4.0.2 mips cc rejects this.  */
26462   struct point {int x, y;};
26463   static struct point const zero = {0,0};
26464   /* AIX XL C 1.02.0.0 rejects this.
26465      It does not let you subtract one const X* pointer from another in
26466      an arm of an if-expression whose if-part is not a constant
26467      expression */
26468   const char *g = "string";
26469   pcpcc = &g + (g ? g-g : 0);
26470   /* HPUX 7.0 cc rejects these. */
26471   ++pcpcc;
26472   ppc = (char**) pcpcc;
26473   pcpcc = (char const *const *) ppc;
26474   { /* SCO 3.2v4 cc rejects this.  */
26475     char *t;
26476     char const *s = 0 ? (char *) 0 : (char const *) 0;
26477
26478     *t++ = 0;
26479     if (s) return 0;
26480   }
26481   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26482     int x[] = {25, 17};
26483     const int *foo = &x[0];
26484     ++foo;
26485   }
26486   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26487     typedef const int *iptr;
26488     iptr p = 0;
26489     ++p;
26490   }
26491   { /* AIX XL C 1.02.0.0 rejects this saying
26492        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26493     struct s { int j; const int *ap[3]; };
26494     struct s *b; b->j = 5;
26495   }
26496   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26497     const int foo = 10;
26498     if (!foo) return 0;
26499   }
26500   return !cs[0] && !zero.x;
26501 #endif
26502
26503   ;
26504   return 0;
26505 }
26506 _ACEOF
26507 if ac_fn_c_try_compile "$LINENO"; then :
26508   ac_cv_c_const=yes
26509 else
26510   ac_cv_c_const=no
26511 fi
26512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26513 fi
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26515 $as_echo "$ac_cv_c_const" >&6; }
26516 if test $ac_cv_c_const = no; then
26517
26518 $as_echo "#define const /**/" >>confdefs.h
26519
26520 fi
26521
26522
26523 # The cast to long int works around a bug in the HP C Compiler
26524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26526 # This bug is HP SR number 8606223364.
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26528 $as_echo_n "checking size of char... " >&6; }
26529 if ${ac_cv_sizeof_char+:} false; then :
26530   $as_echo_n "(cached) " >&6
26531 else
26532   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26533
26534 else
26535   if test "$ac_cv_type_char" = yes; then
26536      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26538 as_fn_error 77 "cannot compute sizeof (char)
26539 See \`config.log' for more details" "$LINENO" 5; }
26540    else
26541      ac_cv_sizeof_char=0
26542    fi
26543 fi
26544
26545 fi
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26547 $as_echo "$ac_cv_sizeof_char" >&6; }
26548
26549
26550
26551 cat >>confdefs.h <<_ACEOF
26552 #define SIZEOF_CHAR $ac_cv_sizeof_char
26553 _ACEOF
26554
26555
26556 # The cast to long int works around a bug in the HP C Compiler
26557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26559 # This bug is HP SR number 8606223364.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26561 $as_echo_n "checking size of short int... " >&6; }
26562 if ${ac_cv_sizeof_short_int+:} false; then :
26563   $as_echo_n "(cached) " >&6
26564 else
26565   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26566
26567 else
26568   if test "$ac_cv_type_short_int" = yes; then
26569      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26571 as_fn_error 77 "cannot compute sizeof (short int)
26572 See \`config.log' for more details" "$LINENO" 5; }
26573    else
26574      ac_cv_sizeof_short_int=0
26575    fi
26576 fi
26577
26578 fi
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26580 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26581
26582
26583
26584 cat >>confdefs.h <<_ACEOF
26585 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26586 _ACEOF
26587
26588
26589 # The cast to long int works around a bug in the HP C Compiler
26590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26592 # This bug is HP SR number 8606223364.
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26594 $as_echo_n "checking size of int... " >&6; }
26595 if ${ac_cv_sizeof_int+:} false; then :
26596   $as_echo_n "(cached) " >&6
26597 else
26598   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26599
26600 else
26601   if test "$ac_cv_type_int" = yes; then
26602      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26604 as_fn_error 77 "cannot compute sizeof (int)
26605 See \`config.log' for more details" "$LINENO" 5; }
26606    else
26607      ac_cv_sizeof_int=0
26608    fi
26609 fi
26610
26611 fi
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26613 $as_echo "$ac_cv_sizeof_int" >&6; }
26614
26615
26616
26617 cat >>confdefs.h <<_ACEOF
26618 #define SIZEOF_INT $ac_cv_sizeof_int
26619 _ACEOF
26620
26621
26622 # The cast to long int works around a bug in the HP C Compiler
26623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26625 # This bug is HP SR number 8606223364.
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26627 $as_echo_n "checking size of long int... " >&6; }
26628 if ${ac_cv_sizeof_long_int+:} false; then :
26629   $as_echo_n "(cached) " >&6
26630 else
26631   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26632
26633 else
26634   if test "$ac_cv_type_long_int" = yes; then
26635      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26637 as_fn_error 77 "cannot compute sizeof (long int)
26638 See \`config.log' for more details" "$LINENO" 5; }
26639    else
26640      ac_cv_sizeof_long_int=0
26641    fi
26642 fi
26643
26644 fi
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26646 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26647
26648
26649
26650 cat >>confdefs.h <<_ACEOF
26651 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26652 _ACEOF
26653
26654
26655 # The cast to long int works around a bug in the HP C Compiler
26656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26658 # This bug is HP SR number 8606223364.
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26660 $as_echo_n "checking size of long long int... " >&6; }
26661 if ${ac_cv_sizeof_long_long_int+:} false; then :
26662   $as_echo_n "(cached) " >&6
26663 else
26664   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26665
26666 else
26667   if test "$ac_cv_type_long_long_int" = yes; then
26668      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26670 as_fn_error 77 "cannot compute sizeof (long long int)
26671 See \`config.log' for more details" "$LINENO" 5; }
26672    else
26673      ac_cv_sizeof_long_long_int=0
26674    fi
26675 fi
26676
26677 fi
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26679 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26680
26681
26682
26683 cat >>confdefs.h <<_ACEOF
26684 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26685 _ACEOF
26686
26687
26688 # The cast to long int works around a bug in the HP C Compiler
26689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26691 # This bug is HP SR number 8606223364.
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26693 $as_echo_n "checking size of int *... " >&6; }
26694 if ${ac_cv_sizeof_int_p+:} false; then :
26695   $as_echo_n "(cached) " >&6
26696 else
26697   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26698
26699 else
26700   if test "$ac_cv_type_int_p" = yes; then
26701      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26703 as_fn_error 77 "cannot compute sizeof (int *)
26704 See \`config.log' for more details" "$LINENO" 5; }
26705    else
26706      ac_cv_sizeof_int_p=0
26707    fi
26708 fi
26709
26710 fi
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26712 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26713
26714
26715
26716 cat >>confdefs.h <<_ACEOF
26717 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26718 _ACEOF
26719
26720
26721
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26723 $as_echo_n "checking for u_int type... " >&6; }
26724 if ${ac_cv_have_u_int+:} false; then :
26725   $as_echo_n "(cached) " >&6
26726 else
26727
26728        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26729 /* end confdefs.h.  */
26730
26731               #include <sys/types.h>
26732
26733 int
26734 main ()
26735 {
26736
26737               u_int a; a = 1;
26738
26739   ;
26740   return 0;
26741 }
26742 _ACEOF
26743 if ac_fn_c_try_compile "$LINENO"; then :
26744
26745               ac_cv_have_u_int="yes"
26746
26747 else
26748
26749               ac_cv_have_u_int="no"
26750
26751
26752 fi
26753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26754
26755
26756 fi
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26758 $as_echo "$ac_cv_have_u_int" >&6; }
26759 if test "x$ac_cv_have_u_int" = "xyes" ; then
26760    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26761
26762    have_u_int=1
26763 fi
26764
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26766 $as_echo_n "checking for intmax_t type... " >&6; }
26767 if ${ac_cv_have_intmax_t+:} false; then :
26768   $as_echo_n "(cached) " >&6
26769 else
26770
26771        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26772 /* end confdefs.h.  */
26773
26774               #include <sys/types.h>
26775
26776 int
26777 main ()
26778 {
26779
26780               intmax_t a; a = 1;
26781
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 if ac_fn_c_try_compile "$LINENO"; then :
26787
26788               ac_cv_have_intmax_t="yes"
26789
26790 else
26791
26792               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26793 /* end confdefs.h.  */
26794
26795                      #include <stdint.h>
26796
26797 int
26798 main ()
26799 {
26800
26801                      intmax_t a; a = 1;
26802
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 if ac_fn_c_try_compile "$LINENO"; then :
26808
26809                      ac_cv_have_intmax_t="yes"
26810
26811 else
26812
26813                      ac_cv_have_intmax_t="no"
26814
26815
26816 fi
26817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26818
26819
26820 fi
26821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26822
26823
26824 fi
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26826 $as_echo "$ac_cv_have_intmax_t" >&6; }
26827 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26828    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26829
26830    have_intmax_t=1
26831 fi
26832
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26834 $as_echo_n "checking for u_intmax_t type... " >&6; }
26835 if ${ac_cv_have_u_intmax_t+:} false; then :
26836   $as_echo_n "(cached) " >&6
26837 else
26838
26839        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26840 /* end confdefs.h.  */
26841
26842               #include <sys/types.h>
26843
26844 int
26845 main ()
26846 {
26847
26848               u_intmax_t a; a = 1;
26849
26850   ;
26851   return 0;
26852 }
26853 _ACEOF
26854 if ac_fn_c_try_compile "$LINENO"; then :
26855
26856               ac_cv_have_u_intmax_t="yes"
26857
26858 else
26859
26860               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h.  */
26862
26863                      #include <stdint.h>
26864
26865 int
26866 main ()
26867 {
26868
26869                     u_intmax_t a; a = 1;
26870
26871   ;
26872   return 0;
26873 }
26874 _ACEOF
26875 if ac_fn_c_try_compile "$LINENO"; then :
26876
26877                     ac_cv_have_u_intmax_t="yes"
26878
26879 else
26880
26881                     ac_cv_have_u_intmax_t="no"
26882
26883
26884 fi
26885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26886
26887
26888 fi
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890
26891
26892 fi
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26894 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26896    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26897
26898    have_u_intmax_t=1
26899 fi
26900
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26902 $as_echo_n "checking for intXX_t types... " >&6; }
26903 if ${ac_cv_have_intxx_t+:} false; then :
26904   $as_echo_n "(cached) " >&6
26905 else
26906
26907        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h.  */
26909
26910               #include <sys/types.h>
26911
26912 int
26913 main ()
26914 {
26915
26916               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26917
26918   ;
26919   return 0;
26920 }
26921 _ACEOF
26922 if ac_fn_c_try_compile "$LINENO"; then :
26923
26924               ac_cv_have_intxx_t="yes"
26925
26926 else
26927
26928               ac_cv_have_intxx_t="no"
26929
26930
26931 fi
26932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26933
26934
26935 fi
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26937 $as_echo "$ac_cv_have_intxx_t" >&6; }
26938 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26939    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26940
26941    have_intxx_t=1
26942 fi
26943
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26945 $as_echo_n "checking for int64_t type... " >&6; }
26946 if ${ac_cv_have_int64_t+:} false; then :
26947   $as_echo_n "(cached) " >&6
26948 else
26949
26950        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26951 /* end confdefs.h.  */
26952
26953               #include <sys/types.h>
26954
26955 int
26956 main ()
26957 {
26958
26959               int64_t a; a = 1;
26960
26961   ;
26962   return 0;
26963 }
26964 _ACEOF
26965 if ac_fn_c_try_compile "$LINENO"; then :
26966
26967               ac_cv_have_int64_t="yes"
26968
26969 else
26970
26971               ac_cv_have_int64_t="no"
26972
26973
26974 fi
26975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26976
26977
26978 fi
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26980 $as_echo "$ac_cv_have_int64_t" >&6; }
26981 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26982    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26983
26984    have_int64_t=1
26985 fi
26986
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26988 $as_echo_n "checking for u_intXX_t types... " >&6; }
26989 if ${ac_cv_have_u_intxx_t+:} false; then :
26990   $as_echo_n "(cached) " >&6
26991 else
26992
26993        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26994 /* end confdefs.h.  */
26995
26996               #include <sys/types.h>
26997
26998 int
26999 main ()
27000 {
27001
27002               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27003
27004   ;
27005   return 0;
27006 }
27007 _ACEOF
27008 if ac_fn_c_try_compile "$LINENO"; then :
27009
27010              ac_cv_have_u_intxx_t="yes"
27011
27012 else
27013
27014              ac_cv_have_u_intxx_t="no"
27015
27016
27017 fi
27018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27019
27020
27021 fi
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27023 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27024 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27025    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27026
27027    have_u_intxx_t=1
27028 fi
27029
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27031 $as_echo_n "checking for u_int64_t types... " >&6; }
27032 if ${ac_cv_have_u_int64_t+:} false; then :
27033   $as_echo_n "(cached) " >&6
27034 else
27035
27036        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27037 /* end confdefs.h.  */
27038
27039               #include <sys/types.h>
27040
27041 int
27042 main ()
27043 {
27044
27045               u_int64_t a; a = 1;
27046
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 if ac_fn_c_try_compile "$LINENO"; then :
27052
27053              ac_cv_have_u_int64_t="yes"
27054
27055 else
27056
27057              ac_cv_have_u_int64_t="no"
27058
27059
27060 fi
27061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27062
27063
27064 fi
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27066 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27067 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27068    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27069
27070    have_u_int64_t=1
27071 fi
27072
27073 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27074     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27075 then
27076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27077 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27079 /* end confdefs.h.  */
27080
27081           #include <sys/bitypes.h>
27082
27083 int
27084 main ()
27085 {
27086
27087           int8_t a; int16_t b; int32_t c;
27088           u_int8_t e; u_int16_t f; u_int32_t g;
27089           a = b = c = e = f = g = 1;
27090
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 if ac_fn_c_try_compile "$LINENO"; then :
27096
27097           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27098
27099           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27100
27101           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27102
27103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27104 $as_echo "yes" >&6; }
27105
27106 else
27107
27108           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27109 $as_echo "no" >&6; }
27110
27111
27112 fi
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114 fi
27115
27116 if test -z "$have_u_intxx_t" ; then
27117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27118 $as_echo_n "checking for uintXX_t types... " >&6; }
27119 if ${ac_cv_have_uintxx_t+:} false; then :
27120   $as_echo_n "(cached) " >&6
27121 else
27122
27123           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27124 /* end confdefs.h.  */
27125
27126                  #include <sys/types.h>
27127
27128 int
27129 main ()
27130 {
27131
27132                  uint8_t a; uint16_t b;
27133                  uint32_t c; a = b = c = 1;
27134
27135   ;
27136   return 0;
27137 }
27138 _ACEOF
27139 if ac_fn_c_try_compile "$LINENO"; then :
27140
27141                 ac_cv_have_uintxx_t="yes"
27142
27143 else
27144
27145                 ac_cv_have_uintxx_t="no"
27146
27147
27148 fi
27149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27150
27151
27152 fi
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27154 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27155    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27156       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27157
27158    fi
27159 fi
27160
27161 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27162     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27163 then
27164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27165 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h.  */
27168
27169           #include <sys/bitypes.h>
27170
27171 int
27172 main ()
27173 {
27174
27175           int64_t a; u_int64_t b;
27176           a = b = 1;
27177
27178   ;
27179   return 0;
27180 }
27181 _ACEOF
27182 if ac_fn_c_try_compile "$LINENO"; then :
27183
27184           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27185
27186           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27187
27188           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27189 $as_echo "yes" >&6; }
27190
27191 else
27192
27193           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27194 $as_echo "no" >&6; }
27195
27196
27197 fi
27198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27199 fi
27200
27201 if (test -z "$have_uintxx_t" && \
27202     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27203 then
27204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27205 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27206    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h.  */
27208
27209           #include <sys/bitypes.h>
27210
27211 int
27212 main ()
27213 {
27214
27215           uint8_t a; uint16_t b;
27216           uint32_t c; a = b = c = 1;
27217
27218   ;
27219   return 0;
27220 }
27221 _ACEOF
27222 if ac_fn_c_try_compile "$LINENO"; then :
27223
27224           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27225
27226           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27227 $as_echo "yes" >&6; }
27228
27229 else
27230
27231           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27232 $as_echo "no" >&6; }
27233
27234
27235 fi
27236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27237 fi
27238
27239 for ac_func in \
27240    fork \
27241    getcwd \
27242    gethostname \
27243    getpid \
27244    gettimeofday \
27245    setpgid \
27246    setpgrp \
27247    setsid \
27248    signal \
27249    strerror \
27250    strncmp \
27251    strncpy \
27252    vfprintf \
27253
27254 do :
27255   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27258   cat >>confdefs.h <<_ACEOF
27259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27260 _ACEOF
27261
27262 else
27263   echo 'configure: cannot find needed function.'; exit 1
27264
27265 fi
27266 done
27267
27268
27269 for ac_func in getpagesize
27270 do :
27271   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27272 if test "x$ac_cv_func_getpagesize" = xyes; then :
27273   cat >>confdefs.h <<_ACEOF
27274 #define HAVE_GETPAGESIZE 1
27275 _ACEOF
27276
27277 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27278
27279 fi
27280 done
27281
27282 for ac_func in malloc_trim
27283 do :
27284   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27285 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27286   cat >>confdefs.h <<_ACEOF
27287 #define HAVE_MALLOC_TRIM 1
27288 _ACEOF
27289
27290 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27291
27292 fi
27293 done
27294
27295
27296 for ac_func in fchdir
27297 do :
27298   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27299 if test "x$ac_cv_func_fchdir" = xyes; then :
27300   cat >>confdefs.h <<_ACEOF
27301 #define HAVE_FCHDIR 1
27302 _ACEOF
27303  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27304
27305 fi
27306 done
27307
27308 for ac_func in strtoll
27309 do :
27310   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27311 if test "x$ac_cv_func_strtoll" = xyes; then :
27312   cat >>confdefs.h <<_ACEOF
27313 #define HAVE_STRTOLL 1
27314 _ACEOF
27315  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27316
27317 fi
27318 done
27319
27320 for ac_func in posix_fadvise
27321 do :
27322   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27323 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27324   cat >>confdefs.h <<_ACEOF
27325 #define HAVE_POSIX_FADVISE 1
27326 _ACEOF
27327
27328 fi
27329 done
27330
27331 for ac_func in fdatasync
27332 do :
27333   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27334 if test "x$ac_cv_func_fdatasync" = xyes; then :
27335   cat >>confdefs.h <<_ACEOF
27336 #define HAVE_FDATASYNC 1
27337 _ACEOF
27338
27339 fi
27340 done
27341
27342
27343 for ac_func in chflags
27344 do :
27345   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27346 if test "x$ac_cv_func_chflags" = xyes; then :
27347   cat >>confdefs.h <<_ACEOF
27348 #define HAVE_CHFLAGS 1
27349 _ACEOF
27350
27351 fi
27352 done
27353
27354
27355 for ac_func in snprintf vsnprintf gethostid fseeko
27356 do :
27357   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27360   cat >>confdefs.h <<_ACEOF
27361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27362 _ACEOF
27363
27364 fi
27365 done
27366
27367
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27369 $as_echo_n "checking for va_copy... " >&6; }
27370 if ${ba_cv_va_copy+:} false; then :
27371   $as_echo_n "(cached) " >&6
27372 else
27373
27374        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27375 /* end confdefs.h.  */
27376
27377               #include <stdarg.h>
27378               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27379               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27380
27381 int
27382 main ()
27383 {
27384
27385               call_use_va_copy(1,2,3)
27386
27387   ;
27388   return 0;
27389 }
27390 _ACEOF
27391 if ac_fn_c_try_link "$LINENO"; then :
27392
27393               ba_cv_va_copy=yes,
27394
27395 else
27396
27397               ba_cv_va_copy=no
27398
27399
27400 fi
27401 rm -f core conftest.err conftest.$ac_objext \
27402     conftest$ac_exeext conftest.$ac_ext
27403
27404
27405 fi
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27407 $as_echo "$ba_cv_va_copy" >&6; }
27408 test $ba_cv_va_copy = yes &&
27409 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27410
27411
27412 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27413 do :
27414   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27417   cat >>confdefs.h <<_ACEOF
27418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27419 _ACEOF
27420
27421 fi
27422 done
27423
27424
27425 # If resolver functions are not in libc check for -lnsl or -lresolv.
27426 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27427 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27429 $as_echo "using libc's resolver" >&6; }
27430 else
27431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27432 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27433 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27434   $as_echo_n "(cached) " >&6
27435 else
27436   ac_check_lib_save_LIBS=$LIBS
27437 LIBS="-lnsl  $LIBS"
27438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27439 /* end confdefs.h.  */
27440
27441 /* Override any GCC internal prototype to avoid an error.
27442    Use char because int might match the return type of a GCC
27443    builtin and then its argument prototype would still apply.  */
27444 #ifdef __cplusplus
27445 extern "C"
27446 #endif
27447 char gethostbyname_r ();
27448 int
27449 main ()
27450 {
27451 return gethostbyname_r ();
27452   ;
27453   return 0;
27454 }
27455 _ACEOF
27456 if ac_fn_c_try_link "$LINENO"; then :
27457   ac_cv_lib_nsl_gethostbyname_r=yes
27458 else
27459   ac_cv_lib_nsl_gethostbyname_r=no
27460 fi
27461 rm -f core conftest.err conftest.$ac_objext \
27462     conftest$ac_exeext conftest.$ac_ext
27463 LIBS=$ac_check_lib_save_LIBS
27464 fi
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27466 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27467 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27468   cat >>confdefs.h <<_ACEOF
27469 #define HAVE_LIBNSL 1
27470 _ACEOF
27471
27472   LIBS="-lnsl $LIBS"
27473
27474 fi
27475
27476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27477 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27478 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27479   $as_echo_n "(cached) " >&6
27480 else
27481   ac_check_lib_save_LIBS=$LIBS
27482 LIBS="-lresolv  $LIBS"
27483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27484 /* end confdefs.h.  */
27485
27486 /* Override any GCC internal prototype to avoid an error.
27487    Use char because int might match the return type of a GCC
27488    builtin and then its argument prototype would still apply.  */
27489 #ifdef __cplusplus
27490 extern "C"
27491 #endif
27492 char gethostbyname_r ();
27493 int
27494 main ()
27495 {
27496 return gethostbyname_r ();
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 if ac_fn_c_try_link "$LINENO"; then :
27502   ac_cv_lib_resolv_gethostbyname_r=yes
27503 else
27504   ac_cv_lib_resolv_gethostbyname_r=no
27505 fi
27506 rm -f core conftest.err conftest.$ac_objext \
27507     conftest$ac_exeext conftest.$ac_ext
27508 LIBS=$ac_check_lib_save_LIBS
27509 fi
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27511 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27512 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27513   cat >>confdefs.h <<_ACEOF
27514 #define HAVE_LIBRESOLV 1
27515 _ACEOF
27516
27517   LIBS="-lresolv $LIBS"
27518
27519 fi
27520
27521 fi
27522
27523
27524 for ac_func in inet_pton
27525 do :
27526   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27527 if test "x$ac_cv_func_inet_pton" = xyes; then :
27528   cat >>confdefs.h <<_ACEOF
27529 #define HAVE_INET_PTON 1
27530 _ACEOF
27531  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27532
27533 fi
27534 done
27535
27536 for ac_func in inet_ntop
27537 do :
27538   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27539 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27540   cat >>confdefs.h <<_ACEOF
27541 #define HAVE_INET_NTOP 1
27542 _ACEOF
27543  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27544
27545 fi
27546 done
27547
27548 for ac_func in gethostbyname2
27549 do :
27550   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27551 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27552   cat >>confdefs.h <<_ACEOF
27553 #define HAVE_GETHOSTBYNAME2 1
27554 _ACEOF
27555  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27556
27557 fi
27558 done
27559
27560
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27562 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27563 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27564   $as_echo_n "(cached) " >&6
27565 else
27566
27567        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27568 /* end confdefs.h.  */
27569
27570               #include <sys/socket.h>
27571
27572 int
27573 main ()
27574 {
27575
27576               struct sockaddr s; s.sa_len;
27577
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 if ac_fn_c_try_compile "$LINENO"; then :
27583
27584              ac_cv_struct_sockaddr_sa_len=yes
27585
27586 else
27587   ac_cv_struct_sockaddr_sa_len=no
27588
27589
27590 fi
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27592
27593
27594 fi
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27596 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27597
27598 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27599
27600 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27601
27602 fi
27603
27604 for ac_func in strftime
27605 do :
27606   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27607 if test "x$ac_cv_func_strftime" = xyes; then :
27608   cat >>confdefs.h <<_ACEOF
27609 #define HAVE_STRFTIME 1
27610 _ACEOF
27611
27612 else
27613   # strftime is in -lintl on SCO UNIX.
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27615 $as_echo_n "checking for strftime in -lintl... " >&6; }
27616 if ${ac_cv_lib_intl_strftime+:} false; then :
27617   $as_echo_n "(cached) " >&6
27618 else
27619   ac_check_lib_save_LIBS=$LIBS
27620 LIBS="-lintl  $LIBS"
27621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622 /* end confdefs.h.  */
27623
27624 /* Override any GCC internal prototype to avoid an error.
27625    Use char because int might match the return type of a GCC
27626    builtin and then its argument prototype would still apply.  */
27627 #ifdef __cplusplus
27628 extern "C"
27629 #endif
27630 char strftime ();
27631 int
27632 main ()
27633 {
27634 return strftime ();
27635   ;
27636   return 0;
27637 }
27638 _ACEOF
27639 if ac_fn_c_try_link "$LINENO"; then :
27640   ac_cv_lib_intl_strftime=yes
27641 else
27642   ac_cv_lib_intl_strftime=no
27643 fi
27644 rm -f core conftest.err conftest.$ac_objext \
27645     conftest$ac_exeext conftest.$ac_ext
27646 LIBS=$ac_check_lib_save_LIBS
27647 fi
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27649 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27650 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27651   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27652
27653 LIBS="-lintl $LIBS"
27654 fi
27655
27656 fi
27657 done
27658
27659 for ac_func in vprintf
27660 do :
27661   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27662 if test "x$ac_cv_func_vprintf" = xyes; then :
27663   cat >>confdefs.h <<_ACEOF
27664 #define HAVE_VPRINTF 1
27665 _ACEOF
27666
27667 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27668 if test "x$ac_cv_func__doprnt" = xyes; then :
27669
27670 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27671
27672 fi
27673
27674 fi
27675 done
27676
27677
27678 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27679 # for constant arguments.  Useless!
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27681 $as_echo_n "checking for working alloca.h... " >&6; }
27682 if ${ac_cv_working_alloca_h+:} false; then :
27683   $as_echo_n "(cached) " >&6
27684 else
27685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27686 /* end confdefs.h.  */
27687 #include <alloca.h>
27688 int
27689 main ()
27690 {
27691 char *p = (char *) alloca (2 * sizeof (int));
27692                           if (p) return 0;
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 if ac_fn_c_try_link "$LINENO"; then :
27698   ac_cv_working_alloca_h=yes
27699 else
27700   ac_cv_working_alloca_h=no
27701 fi
27702 rm -f core conftest.err conftest.$ac_objext \
27703     conftest$ac_exeext conftest.$ac_ext
27704 fi
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27706 $as_echo "$ac_cv_working_alloca_h" >&6; }
27707 if test $ac_cv_working_alloca_h = yes; then
27708
27709 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27710
27711 fi
27712
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27714 $as_echo_n "checking for alloca... " >&6; }
27715 if ${ac_cv_func_alloca_works+:} false; then :
27716   $as_echo_n "(cached) " >&6
27717 else
27718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27719 /* end confdefs.h.  */
27720 #ifdef __GNUC__
27721 # define alloca __builtin_alloca
27722 #else
27723 # ifdef _MSC_VER
27724 #  include <malloc.h>
27725 #  define alloca _alloca
27726 # else
27727 #  ifdef HAVE_ALLOCA_H
27728 #   include <alloca.h>
27729 #  else
27730 #   ifdef _AIX
27731  #pragma alloca
27732 #   else
27733 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27734 void *alloca (size_t);
27735 #    endif
27736 #   endif
27737 #  endif
27738 # endif
27739 #endif
27740
27741 int
27742 main ()
27743 {
27744 char *p = (char *) alloca (1);
27745                                     if (p) return 0;
27746   ;
27747   return 0;
27748 }
27749 _ACEOF
27750 if ac_fn_c_try_link "$LINENO"; then :
27751   ac_cv_func_alloca_works=yes
27752 else
27753   ac_cv_func_alloca_works=no
27754 fi
27755 rm -f core conftest.err conftest.$ac_objext \
27756     conftest$ac_exeext conftest.$ac_ext
27757 fi
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27759 $as_echo "$ac_cv_func_alloca_works" >&6; }
27760
27761 if test $ac_cv_func_alloca_works = yes; then
27762
27763 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27764
27765 else
27766   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27767 # that cause trouble.  Some versions do not even contain alloca or
27768 # contain a buggy version.  If you still want to use their alloca,
27769 # use ar to extract alloca.o from them instead of compiling alloca.c.
27770
27771 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27772
27773 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27774
27775
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27777 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27778 if ${ac_cv_os_cray+:} false; then :
27779   $as_echo_n "(cached) " >&6
27780 else
27781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27782 /* end confdefs.h.  */
27783 #if defined CRAY && ! defined CRAY2
27784 webecray
27785 #else
27786 wenotbecray
27787 #endif
27788
27789 _ACEOF
27790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27791   $EGREP "webecray" >/dev/null 2>&1; then :
27792   ac_cv_os_cray=yes
27793 else
27794   ac_cv_os_cray=no
27795 fi
27796 rm -f conftest*
27797
27798 fi
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27800 $as_echo "$ac_cv_os_cray" >&6; }
27801 if test $ac_cv_os_cray = yes; then
27802   for ac_func in _getb67 GETB67 getb67; do
27803     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27806
27807 cat >>confdefs.h <<_ACEOF
27808 #define CRAY_STACKSEG_END $ac_func
27809 _ACEOF
27810
27811     break
27812 fi
27813
27814   done
27815 fi
27816
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27818 $as_echo_n "checking stack direction for C alloca... " >&6; }
27819 if ${ac_cv_c_stack_direction+:} false; then :
27820   $as_echo_n "(cached) " >&6
27821 else
27822   if test "$cross_compiling" = yes; then :
27823   ac_cv_c_stack_direction=0
27824 else
27825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27826 /* end confdefs.h.  */
27827 $ac_includes_default
27828 int
27829 find_stack_direction ()
27830 {
27831   static char *addr = 0;
27832   auto char dummy;
27833   if (addr == 0)
27834     {
27835       addr = &dummy;
27836       return find_stack_direction ();
27837     }
27838   else
27839     return (&dummy > addr) ? 1 : -1;
27840 }
27841
27842 int
27843 main ()
27844 {
27845   return find_stack_direction () < 0;
27846 }
27847 _ACEOF
27848 if ac_fn_c_try_run "$LINENO"; then :
27849   ac_cv_c_stack_direction=1
27850 else
27851   ac_cv_c_stack_direction=-1
27852 fi
27853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27854   conftest.$ac_objext conftest.beam conftest.$ac_ext
27855 fi
27856
27857 fi
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27859 $as_echo "$ac_cv_c_stack_direction" >&6; }
27860 cat >>confdefs.h <<_ACEOF
27861 #define STACK_DIRECTION $ac_cv_c_stack_direction
27862 _ACEOF
27863
27864
27865 fi
27866
27867 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27868 # -lseq on Dynix/PTX, -lgen on Unixware.
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27870 $as_echo_n "checking for library containing getmntent... " >&6; }
27871 if ${ac_cv_search_getmntent+:} false; then :
27872   $as_echo_n "(cached) " >&6
27873 else
27874   ac_func_search_save_LIBS=$LIBS
27875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27876 /* end confdefs.h.  */
27877
27878 /* Override any GCC internal prototype to avoid an error.
27879    Use char because int might match the return type of a GCC
27880    builtin and then its argument prototype would still apply.  */
27881 #ifdef __cplusplus
27882 extern "C"
27883 #endif
27884 char getmntent ();
27885 int
27886 main ()
27887 {
27888 return getmntent ();
27889   ;
27890   return 0;
27891 }
27892 _ACEOF
27893 for ac_lib in '' sun seq gen; do
27894   if test -z "$ac_lib"; then
27895     ac_res="none required"
27896   else
27897     ac_res=-l$ac_lib
27898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27899   fi
27900   if ac_fn_c_try_link "$LINENO"; then :
27901   ac_cv_search_getmntent=$ac_res
27902 fi
27903 rm -f core conftest.err conftest.$ac_objext \
27904     conftest$ac_exeext
27905   if ${ac_cv_search_getmntent+:} false; then :
27906   break
27907 fi
27908 done
27909 if ${ac_cv_search_getmntent+:} false; then :
27910
27911 else
27912   ac_cv_search_getmntent=no
27913 fi
27914 rm conftest.$ac_ext
27915 LIBS=$ac_func_search_save_LIBS
27916 fi
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27918 $as_echo "$ac_cv_search_getmntent" >&6; }
27919 ac_res=$ac_cv_search_getmntent
27920 if test "$ac_res" != no; then :
27921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27922   ac_cv_func_getmntent=yes
27923
27924 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27925
27926 else
27927   ac_cv_func_getmntent=no
27928 fi
27929
27930
27931 for ac_func in getmntinfo
27932 do :
27933   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27934 if test "x$ac_cv_func_getmntinfo" = xyes; then :
27935   cat >>confdefs.h <<_ACEOF
27936 #define HAVE_GETMNTINFO 1
27937 _ACEOF
27938  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27939
27940 fi
27941 done
27942
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27944 $as_echo_n "checking whether closedir returns void... " >&6; }
27945 if ${ac_cv_func_closedir_void+:} false; then :
27946   $as_echo_n "(cached) " >&6
27947 else
27948   if test "$cross_compiling" = yes; then :
27949   ac_cv_func_closedir_void=yes
27950 else
27951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952 /* end confdefs.h.  */
27953 $ac_includes_default
27954 #include <$ac_header_dirent>
27955 #ifndef __cplusplus
27956 int closedir ();
27957 #endif
27958
27959 int
27960 main ()
27961 {
27962 return closedir (opendir (".")) != 0;
27963   ;
27964   return 0;
27965 }
27966 _ACEOF
27967 if ac_fn_c_try_run "$LINENO"; then :
27968   ac_cv_func_closedir_void=no
27969 else
27970   ac_cv_func_closedir_void=yes
27971 fi
27972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27973   conftest.$ac_objext conftest.beam conftest.$ac_ext
27974 fi
27975
27976 fi
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27978 $as_echo "$ac_cv_func_closedir_void" >&6; }
27979 if test $ac_cv_func_closedir_void = yes; then
27980
27981 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27982
27983 fi
27984
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27986 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27987 if ${ac_cv_func_setpgrp_void+:} false; then :
27988   $as_echo_n "(cached) " >&6
27989 else
27990   if test "$cross_compiling" = yes; then :
27991   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27992 else
27993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994 /* end confdefs.h.  */
27995 $ac_includes_default
27996 int
27997 main ()
27998 {
27999 /* If this system has a BSD-style setpgrp which takes arguments,
28000   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28001   exit successfully. */
28002   return setpgrp (1,1) != -1;
28003   ;
28004   return 0;
28005 }
28006 _ACEOF
28007 if ac_fn_c_try_run "$LINENO"; then :
28008   ac_cv_func_setpgrp_void=no
28009 else
28010   ac_cv_func_setpgrp_void=yes
28011 fi
28012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28013   conftest.$ac_objext conftest.beam conftest.$ac_ext
28014 fi
28015
28016 fi
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28018 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28019 if test $ac_cv_func_setpgrp_void = yes; then
28020
28021 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28022
28023 fi
28024             # AC_FUNC_FNMATCH    dnl use local version
28025
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28027 $as_echo_n "checking for gettext in -lintl... " >&6; }
28028 if ${ac_cv_lib_intl_gettext+:} false; then :
28029   $as_echo_n "(cached) " >&6
28030 else
28031   ac_check_lib_save_LIBS=$LIBS
28032 LIBS="-lintl  $LIBS"
28033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h.  */
28035
28036 /* Override any GCC internal prototype to avoid an error.
28037    Use char because int might match the return type of a GCC
28038    builtin and then its argument prototype would still apply.  */
28039 #ifdef __cplusplus
28040 extern "C"
28041 #endif
28042 char gettext ();
28043 int
28044 main ()
28045 {
28046 return gettext ();
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 if ac_fn_c_try_link "$LINENO"; then :
28052   ac_cv_lib_intl_gettext=yes
28053 else
28054   ac_cv_lib_intl_gettext=no
28055 fi
28056 rm -f core conftest.err conftest.$ac_objext \
28057     conftest$ac_exeext conftest.$ac_ext
28058 LIBS=$ac_check_lib_save_LIBS
28059 fi
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28061 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28062 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28063   LIBS="$LIBS -lintl"
28064 fi
28065
28066
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28068 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28069 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28070   $as_echo_n "(cached) " >&6
28071 else
28072   ac_check_lib_save_LIBS=$LIBS
28073 LIBS="-lsun  $LIBS"
28074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28075 /* end confdefs.h.  */
28076
28077 /* Override any GCC internal prototype to avoid an error.
28078    Use char because int might match the return type of a GCC
28079    builtin and then its argument prototype would still apply.  */
28080 #ifdef __cplusplus
28081 extern "C"
28082 #endif
28083 char getpwnam ();
28084 int
28085 main ()
28086 {
28087 return getpwnam ();
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 if ac_fn_c_try_link "$LINENO"; then :
28093   ac_cv_lib_sun_getpwnam=yes
28094 else
28095   ac_cv_lib_sun_getpwnam=no
28096 fi
28097 rm -f core conftest.err conftest.$ac_objext \
28098     conftest$ac_exeext conftest.$ac_ext
28099 LIBS=$ac_check_lib_save_LIBS
28100 fi
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28102 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28103 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28104   cat >>confdefs.h <<_ACEOF
28105 #define HAVE_LIBSUN 1
28106 _ACEOF
28107
28108   LIBS="-lsun $LIBS"
28109
28110 fi
28111
28112
28113 for ac_header in zlib.h
28114 do :
28115   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28116 if test "x$ac_cv_header_zlib_h" = xyes; then :
28117   cat >>confdefs.h <<_ACEOF
28118 #define HAVE_ZLIB_H 1
28119 _ACEOF
28120
28121 fi
28122
28123 done
28124
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28126 $as_echo_n "checking for deflate in -lz... " >&6; }
28127 if ${ac_cv_lib_z_deflate+:} false; then :
28128   $as_echo_n "(cached) " >&6
28129 else
28130   ac_check_lib_save_LIBS=$LIBS
28131 LIBS="-lz  $LIBS"
28132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28133 /* end confdefs.h.  */
28134
28135 /* Override any GCC internal prototype to avoid an error.
28136    Use char because int might match the return type of a GCC
28137    builtin and then its argument prototype would still apply.  */
28138 #ifdef __cplusplus
28139 extern "C"
28140 #endif
28141 char deflate ();
28142 int
28143 main ()
28144 {
28145 return deflate ();
28146   ;
28147   return 0;
28148 }
28149 _ACEOF
28150 if ac_fn_c_try_link "$LINENO"; then :
28151   ac_cv_lib_z_deflate=yes
28152 else
28153   ac_cv_lib_z_deflate=no
28154 fi
28155 rm -f core conftest.err conftest.$ac_objext \
28156     conftest$ac_exeext conftest.$ac_ext
28157 LIBS=$ac_check_lib_save_LIBS
28158 fi
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28160 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28161 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28162   ZLIBS="-lz"
28163 fi
28164
28165 have_zlib=no
28166 if test x$ZLIBS = x-lz; then
28167    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28168
28169    have_zlib=yes
28170 fi
28171
28172
28173 support_acl=auto
28174 # Check whether --enable-acl was given.
28175 if test "${enable_acl+set}" = set; then :
28176   enableval=$enable_acl;
28177        if test x$enableval = xyes; then
28178           support_acl=yes
28179        elif test x$enableval = xno; then
28180           support_acl=no
28181        fi
28182
28183
28184 fi
28185
28186
28187 have_acl=no
28188 have_extended_acl=no
28189 if test x$support_acl = xyes -o x$support_acl = xauto; then
28190    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28191 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28192
28193 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28194
28195 fi
28196
28197
28198
28199             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28200 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28201
28202           have_acl=yes
28203
28204
28205 fi
28206
28207
28208             if test $have_acl = no; then
28209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28210 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28211 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28212   $as_echo_n "(cached) " >&6
28213 else
28214   ac_check_lib_save_LIBS=$LIBS
28215 LIBS="-lacl  $LIBS"
28216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28217 /* end confdefs.h.  */
28218
28219 /* Override any GCC internal prototype to avoid an error.
28220    Use char because int might match the return type of a GCC
28221    builtin and then its argument prototype would still apply.  */
28222 #ifdef __cplusplus
28223 extern "C"
28224 #endif
28225 char acl_get_file ();
28226 int
28227 main ()
28228 {
28229 return acl_get_file ();
28230   ;
28231   return 0;
28232 }
28233 _ACEOF
28234 if ac_fn_c_try_link "$LINENO"; then :
28235   ac_cv_lib_acl_acl_get_file=yes
28236 else
28237   ac_cv_lib_acl_acl_get_file=no
28238 fi
28239 rm -f core conftest.err conftest.$ac_objext \
28240     conftest$ac_exeext conftest.$ac_ext
28241 LIBS=$ac_check_lib_save_LIBS
28242 fi
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28244 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28245 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28246
28247              have_acl=yes
28248              if test $have_afs = yes; then
28249                                                                 if test -d /usr/lib64/; then
28250                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28251                 else
28252                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28253                 fi
28254              else
28255                 FDLIBS="-lacl $FDLIBS"
28256              fi
28257
28258
28259 fi
28260
28261    fi
28262
28263                if test $have_acl = no -a \
28264            x${HAVE_OSF1_OS_TRUE} = x; then
28265       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28266 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28267 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28268   $as_echo_n "(cached) " >&6
28269 else
28270   ac_check_lib_save_LIBS=$LIBS
28271 LIBS="-lpacl  $LIBS"
28272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28273 /* end confdefs.h.  */
28274
28275 /* Override any GCC internal prototype to avoid an error.
28276    Use char because int might match the return type of a GCC
28277    builtin and then its argument prototype would still apply.  */
28278 #ifdef __cplusplus
28279 extern "C"
28280 #endif
28281 char acl_get_file ();
28282 int
28283 main ()
28284 {
28285 return acl_get_file ();
28286   ;
28287   return 0;
28288 }
28289 _ACEOF
28290 if ac_fn_c_try_link "$LINENO"; then :
28291   ac_cv_lib_pacl_acl_get_file=yes
28292 else
28293   ac_cv_lib_pacl_acl_get_file=no
28294 fi
28295 rm -f core conftest.err conftest.$ac_objext \
28296     conftest$ac_exeext conftest.$ac_ext
28297 LIBS=$ac_check_lib_save_LIBS
28298 fi
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28300 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28301 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28302
28303              have_acl=yes
28304              FDLIBS="-lpacl $FDLIBS"
28305
28306
28307 fi
28308
28309
28310       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28311 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28312       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28313       if test $? = 0; then
28314
28315 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28316
28317          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28318 $as_echo "yes" >&6; }
28319       else
28320          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28321 $as_echo "no" >&6; }
28322       fi
28323    fi
28324
28325             if test $have_acl = yes -a \
28326            x${HAVE_DARWIN_OS_TRUE} = x; then
28327       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28328 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28329       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28330       if test $? = 0; then
28331
28332 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28333
28334          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28335 $as_echo "yes" >&6; }
28336       else
28337          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28338 $as_echo "no" >&6; }
28339       fi
28340    fi
28341
28342             if test $have_acl = yes -a \
28343            x${HAVE_FREEBSD_OS_TRUE} = x; then
28344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28345 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28346       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28347       if test $? = 0; then
28348
28349 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28350
28351          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28352 $as_echo "yes" >&6; }
28353       else
28354          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28355 $as_echo "no" >&6; }
28356       fi
28357    fi
28358
28359             if test $have_acl = no -a \
28360            x${HAVE_SUN_OS_TRUE} = x; then
28361       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28362 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28363 if ${ac_cv_lib_sec_acltotext+:} false; then :
28364   $as_echo_n "(cached) " >&6
28365 else
28366   ac_check_lib_save_LIBS=$LIBS
28367 LIBS="-lsec  $LIBS"
28368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28369 /* end confdefs.h.  */
28370
28371 /* Override any GCC internal prototype to avoid an error.
28372    Use char because int might match the return type of a GCC
28373    builtin and then its argument prototype would still apply.  */
28374 #ifdef __cplusplus
28375 extern "C"
28376 #endif
28377 char acltotext ();
28378 int
28379 main ()
28380 {
28381 return acltotext ();
28382   ;
28383   return 0;
28384 }
28385 _ACEOF
28386 if ac_fn_c_try_link "$LINENO"; then :
28387   ac_cv_lib_sec_acltotext=yes
28388 else
28389   ac_cv_lib_sec_acltotext=no
28390 fi
28391 rm -f core conftest.err conftest.$ac_objext \
28392     conftest$ac_exeext conftest.$ac_ext
28393 LIBS=$ac_check_lib_save_LIBS
28394 fi
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28396 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28397 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28398
28399              have_acl=yes
28400              FDLIBS="-lsec $FDLIBS"
28401
28402              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28403 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28404 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28405   $as_echo_n "(cached) " >&6
28406 else
28407   ac_check_lib_save_LIBS=$LIBS
28408 LIBS="-lsec  $LIBS"
28409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410 /* end confdefs.h.  */
28411
28412 /* Override any GCC internal prototype to avoid an error.
28413    Use char because int might match the return type of a GCC
28414    builtin and then its argument prototype would still apply.  */
28415 #ifdef __cplusplus
28416 extern "C"
28417 #endif
28418 char acl_totext ();
28419 int
28420 main ()
28421 {
28422 return acl_totext ();
28423   ;
28424   return 0;
28425 }
28426 _ACEOF
28427 if ac_fn_c_try_link "$LINENO"; then :
28428   ac_cv_lib_sec_acl_totext=yes
28429 else
28430   ac_cv_lib_sec_acl_totext=no
28431 fi
28432 rm -f core conftest.err conftest.$ac_objext \
28433     conftest$ac_exeext conftest.$ac_ext
28434 LIBS=$ac_check_lib_save_LIBS
28435 fi
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28437 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28438 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28439
28440                     have_extended_acl=yes
28441
28442
28443 fi
28444
28445
28446
28447 fi
28448
28449    fi
28450
28451             if test $have_acl = no -a \
28452            x${HAVE_AIX_OS_TRUE} = x; then
28453       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28454 if test "x$ac_cv_func_acl_get" = xyes; then :
28455
28456              have_acl=yes
28457
28458              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28459 if test "x$ac_cv_func_aclx_get" = xyes; then :
28460
28461                     have_extended_acl=yes
28462
28463
28464 fi
28465
28466
28467
28468 fi
28469
28470    fi
28471
28472    if test x$support_acl = xyes -a $have_acl != yes; then
28473       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28474   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28475    else
28476       if test $have_acl = yes; then
28477
28478 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28479
28480       fi
28481
28482       if test $have_extended_acl = yes; then
28483
28484 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28485
28486       fi
28487    fi
28488 fi
28489
28490 support_xattr=auto
28491 # Check whether --enable-xattr was given.
28492 if test "${enable_xattr+set}" = set; then :
28493   enableval=$enable_xattr;
28494        if test x$enableval = xyes; then
28495           support_xattr=yes
28496        elif test x$enableval = xno; then
28497           support_xattr=no
28498        fi
28499
28500
28501 fi
28502
28503
28504 have_xattr=no
28505 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28506                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28507            x${HAVE_NETBSD_OS_TRUE} = x -o \
28508            x${HAVE_OPENBSD_OS_TRUE} = x; then
28509       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28510 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28511
28512 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28513
28514 fi
28515
28516
28517       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28518 if test "x$ac_cv_header_libutil_h" = xyes; then :
28519
28520 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28521
28522 fi
28523
28524
28525       for ac_func in extattr_get_link extattr_set_link extattr_list_link
28526 do :
28527   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28530   cat >>confdefs.h <<_ACEOF
28531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28532 _ACEOF
28533
28534              have_xattr=yes
28535
28536 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28537
28538
28539 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28540
28541
28542 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28543
28544
28545
28546 fi
28547 done
28548
28549
28550       if test $have_xattr = no; then
28551          for ac_func in extattr_get_file extattr_set_file extattr_list_file
28552 do :
28553   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28555 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28556   cat >>confdefs.h <<_ACEOF
28557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28558 _ACEOF
28559
28560                 have_xattr=yes
28561
28562 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28563
28564
28565 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28566
28567
28568 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28569
28570
28571
28572 fi
28573 done
28574
28575       fi
28576
28577       if test $have_xattr = yes; then
28578          have_extattr_string_in_libc=no
28579          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28580 do :
28581   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28584   cat >>confdefs.h <<_ACEOF
28585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28586 _ACEOF
28587
28588                 have_extattr_string_in_libc=yes
28589
28590 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28591
28592
28593 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28594
28595
28596
28597 fi
28598 done
28599
28600
28601                                  if test $have_extattr_string_in_libc = no; then
28602             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28603 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28604 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28605   $as_echo_n "(cached) " >&6
28606 else
28607   ac_check_lib_save_LIBS=$LIBS
28608 LIBS="-lutil  $LIBS"
28609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28610 /* end confdefs.h.  */
28611
28612 /* Override any GCC internal prototype to avoid an error.
28613    Use char because int might match the return type of a GCC
28614    builtin and then its argument prototype would still apply.  */
28615 #ifdef __cplusplus
28616 extern "C"
28617 #endif
28618 char extattr_namespace_to_string extattr_string_to_namespace ();
28619 int
28620 main ()
28621 {
28622 return extattr_namespace_to_string extattr_string_to_namespace ();
28623   ;
28624   return 0;
28625 }
28626 _ACEOF
28627 if ac_fn_c_try_link "$LINENO"; then :
28628   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28629 else
28630   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28631 fi
28632 rm -f core conftest.err conftest.$ac_objext \
28633     conftest$ac_exeext conftest.$ac_ext
28634 LIBS=$ac_check_lib_save_LIBS
28635 fi
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28637 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28638 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28639
28640
28641 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28642
28643
28644 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28645
28646                    FDLIBS="-lutil $FDLIBS"
28647
28648
28649 fi
28650
28651          fi
28652       fi
28653    fi
28654
28655                if test $have_xattr = no -a \
28656            x${HAVE_AIX_OS_TRUE} = x; then
28657       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28658 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28659
28660 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28661
28662 fi
28663
28664
28665       for ac_func in llistea lgetea lsetea
28666 do :
28667   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28670   cat >>confdefs.h <<_ACEOF
28671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28672 _ACEOF
28673
28674              have_xattr=yes
28675
28676 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28677
28678
28679 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28680
28681
28682 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28683
28684
28685
28686 fi
28687 done
28688
28689
28690       if test $have_xattr = no; then
28691          for ac_func in listea getea setea
28692 do :
28693   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28696   cat >>confdefs.h <<_ACEOF
28697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28698 _ACEOF
28699
28700                 have_xattr=yes
28701
28702 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28703
28704
28705 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28706
28707
28708 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28709
28710
28711
28712 fi
28713 done
28714
28715       fi
28716    fi
28717
28718                if test $have_xattr = no -a \
28719            x${HAVE_OSF1_OS_TRUE} = x; then
28720       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28721 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28722
28723 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28724
28725 fi
28726
28727
28728       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28729 do :
28730   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28731 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28732 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28733   cat >>confdefs.h <<_ACEOF
28734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28735 _ACEOF
28736
28737              have_xattr=yes
28738
28739 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28740
28741
28742 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28743
28744
28745 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28746
28747
28748 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28749
28750
28751 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28752
28753
28754
28755 fi
28756 done
28757
28758    fi
28759
28760                if test $have_xattr = no -a \
28761            x${HAVE_SUN_OS_TRUE} = x; then
28762       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28763 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
28764
28765 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28766
28767 fi
28768
28769
28770       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28771 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
28772
28773 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28774
28775 fi
28776
28777
28778       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28779 if test "x$ac_cv_header_attr_h" = xyes; then :
28780
28781 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28782
28783 fi
28784
28785
28786
28787       for ac_func in openat fstatat unlinkat fchownat futimesat
28788 do :
28789   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28792   cat >>confdefs.h <<_ACEOF
28793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28794 _ACEOF
28795
28796              have_xattr=yes
28797
28798 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28799
28800
28801 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28802
28803
28804 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28805
28806
28807 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28808
28809
28810 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28811
28812
28813
28814 fi
28815 done
28816
28817
28818       if test $have_xattr = yes; then
28819          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28820 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28821 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
28822   $as_echo_n "(cached) " >&6
28823 else
28824   ac_check_lib_save_LIBS=$LIBS
28825 LIBS="-lnvpair  $LIBS"
28826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827 /* end confdefs.h.  */
28828
28829 /* Override any GCC internal prototype to avoid an error.
28830    Use char because int might match the return type of a GCC
28831    builtin and then its argument prototype would still apply.  */
28832 #ifdef __cplusplus
28833 extern "C"
28834 #endif
28835 char nvlist_next_nvpair ();
28836 int
28837 main ()
28838 {
28839 return nvlist_next_nvpair ();
28840   ;
28841   return 0;
28842 }
28843 _ACEOF
28844 if ac_fn_c_try_link "$LINENO"; then :
28845   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28846 else
28847   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28848 fi
28849 rm -f core conftest.err conftest.$ac_objext \
28850     conftest$ac_exeext conftest.$ac_ext
28851 LIBS=$ac_check_lib_save_LIBS
28852 fi
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28854 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28855 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
28856
28857
28858 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28859
28860                 FDLIBS="-lnvpair $FDLIBS"
28861
28862
28863 fi
28864
28865       fi
28866    fi
28867
28868             if test $have_xattr = no; then
28869       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28870 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
28871
28872 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28873
28874 fi
28875
28876
28877       for ac_func in llistxattr lgetxattr lsetxattr
28878 do :
28879   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28882   cat >>confdefs.h <<_ACEOF
28883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28884 _ACEOF
28885
28886              have_xattr=yes
28887
28888 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28889
28890
28891 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28892
28893
28894 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28895
28896
28897
28898 fi
28899 done
28900
28901
28902       if test $have_xattr = no; then
28903          for ac_func in listxattr getxattr setxattr
28904 do :
28905   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28907 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28908   cat >>confdefs.h <<_ACEOF
28909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28910 _ACEOF
28911
28912                 have_xattr=yes
28913
28914 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28915
28916
28917 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28918
28919
28920 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28921
28922
28923
28924 fi
28925 done
28926
28927       fi
28928    fi
28929
28930    if test x$support_xattr = xyes -a $have_xattr != yes; then
28931       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
28932   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28933    else
28934       if test $have_xattr = yes; then
28935
28936 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28937
28938       fi
28939    fi
28940 fi
28941
28942 PTHREAD_LIB=""
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28944 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28945 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
28946   $as_echo_n "(cached) " >&6
28947 else
28948   ac_check_lib_save_LIBS=$LIBS
28949 LIBS="-lpthread  $LIBS"
28950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951 /* end confdefs.h.  */
28952
28953 /* Override any GCC internal prototype to avoid an error.
28954    Use char because int might match the return type of a GCC
28955    builtin and then its argument prototype would still apply.  */
28956 #ifdef __cplusplus
28957 extern "C"
28958 #endif
28959 char pthread_create ();
28960 int
28961 main ()
28962 {
28963 return pthread_create ();
28964   ;
28965   return 0;
28966 }
28967 _ACEOF
28968 if ac_fn_c_try_link "$LINENO"; then :
28969   ac_cv_lib_pthread_pthread_create=yes
28970 else
28971   ac_cv_lib_pthread_pthread_create=no
28972 fi
28973 rm -f core conftest.err conftest.$ac_objext \
28974     conftest$ac_exeext conftest.$ac_ext
28975 LIBS=$ac_check_lib_save_LIBS
28976 fi
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28978 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28979 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
28980   PTHREAD_LIB="-lpthread"
28981 else
28982
28983        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28984 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28985 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
28986   $as_echo_n "(cached) " >&6
28987 else
28988   ac_check_lib_save_LIBS=$LIBS
28989 LIBS="-lpthreads  $LIBS"
28990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28991 /* end confdefs.h.  */
28992
28993 /* Override any GCC internal prototype to avoid an error.
28994    Use char because int might match the return type of a GCC
28995    builtin and then its argument prototype would still apply.  */
28996 #ifdef __cplusplus
28997 extern "C"
28998 #endif
28999 char pthread_create ();
29000 int
29001 main ()
29002 {
29003 return pthread_create ();
29004   ;
29005   return 0;
29006 }
29007 _ACEOF
29008 if ac_fn_c_try_link "$LINENO"; then :
29009   ac_cv_lib_pthreads_pthread_create=yes
29010 else
29011   ac_cv_lib_pthreads_pthread_create=no
29012 fi
29013 rm -f core conftest.err conftest.$ac_objext \
29014     conftest$ac_exeext conftest.$ac_ext
29015 LIBS=$ac_check_lib_save_LIBS
29016 fi
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29018 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29019 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29020   PTHREAD_LIB="-lpthreads"
29021 else
29022
29023               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29024 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29025 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29026   $as_echo_n "(cached) " >&6
29027 else
29028   ac_check_lib_save_LIBS=$LIBS
29029 LIBS="-lc_r  $LIBS"
29030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29031 /* end confdefs.h.  */
29032
29033 /* Override any GCC internal prototype to avoid an error.
29034    Use char because int might match the return type of a GCC
29035    builtin and then its argument prototype would still apply.  */
29036 #ifdef __cplusplus
29037 extern "C"
29038 #endif
29039 char pthread_create ();
29040 int
29041 main ()
29042 {
29043 return pthread_create ();
29044   ;
29045   return 0;
29046 }
29047 _ACEOF
29048 if ac_fn_c_try_link "$LINENO"; then :
29049   ac_cv_lib_c_r_pthread_create=yes
29050 else
29051   ac_cv_lib_c_r_pthread_create=no
29052 fi
29053 rm -f core conftest.err conftest.$ac_objext \
29054     conftest$ac_exeext conftest.$ac_ext
29055 LIBS=$ac_check_lib_save_LIBS
29056 fi
29057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29058 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29059 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29060   PTHREAD_LIB="-lc_r"
29061 else
29062
29063                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29064 if test "x$ac_cv_func_pthread_create" = xyes; then :
29065
29066 fi
29067
29068
29069
29070 fi
29071
29072
29073
29074 fi
29075
29076
29077
29078 fi
29079
29080
29081 for ac_header in sys/prctl.h sys/capability.h
29082 do :
29083   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29086   cat >>confdefs.h <<_ACEOF
29087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29088 _ACEOF
29089
29090 fi
29091
29092 done
29093
29094 for ac_func in prctl setreuid
29095 do :
29096   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29098 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29099   cat >>confdefs.h <<_ACEOF
29100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29101 _ACEOF
29102
29103 fi
29104 done
29105
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29107 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29108 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29109   $as_echo_n "(cached) " >&6
29110 else
29111   ac_check_lib_save_LIBS=$LIBS
29112 LIBS="-lcap  $LIBS"
29113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29114 /* end confdefs.h.  */
29115
29116 /* Override any GCC internal prototype to avoid an error.
29117    Use char because int might match the return type of a GCC
29118    builtin and then its argument prototype would still apply.  */
29119 #ifdef __cplusplus
29120 extern "C"
29121 #endif
29122 char cap_set_proc ();
29123 int
29124 main ()
29125 {
29126 return cap_set_proc ();
29127   ;
29128   return 0;
29129 }
29130 _ACEOF
29131 if ac_fn_c_try_link "$LINENO"; then :
29132   ac_cv_lib_cap_cap_set_proc=yes
29133 else
29134   ac_cv_lib_cap_cap_set_proc=no
29135 fi
29136 rm -f core conftest.err conftest.$ac_objext \
29137     conftest$ac_exeext conftest.$ac_ext
29138 LIBS=$ac_check_lib_save_LIBS
29139 fi
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29141 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29142 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29143   CAP_LIBS="-lcap"
29144 else
29145   CAP_LIBS=
29146 fi
29147
29148 if test x$CAP_LIBS = x-lcap; then
29149
29150 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29151
29152 fi
29153
29154
29155
29156 $as_echo "#define FDLIBS 1" >>confdefs.h
29157
29158
29159 CFLAGS=${CFLAGS--O}
29160
29161 if test x$have_gcc = xyes ; then
29162    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29163    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29164 fi
29165 LDFLAGS=${LDFLAGS--O}
29166 CPPFLAGS="$CPPFLAGS"
29167 CFLAGS="$CFLAGS"
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183 OBJLIST=
29184
29185
29186 lld="lld"
29187 llu="llu"
29188
29189 WCFLAGS=
29190 WLDFLAGS=
29191
29192 PFILES="platforms/Makefile"
29193 PSCMD="ps -e"
29194 WIN32=
29195 MACOSX=
29196 COMPRESS_MANPAGES=yes
29197
29198 hostname=`uname -n | cut -d '.' -f 1`
29199 if test x${hostname} = x ; then
29200    hostname="localhost"
29201 fi
29202 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29203 if test ! $? = 0; then
29204   hostname="localhost"
29205 fi
29206
29207 case "$DISTNAME" in
29208 aix)
29209    DISTVER=`uname -r`
29210    PSCMD="ps -e -o pid,comm"
29211    PFILES="${PFILES} \
29212       platforms/aix/Makefile"
29213    TAPEDRIVE="/dev/rmt0.1"
29214   ;;
29215 alpha)
29216    DISTVER=`uname -r`
29217    PTHREAD_LIB="-lpthread -lexc"
29218    if test "${CC}" = "gcc" ; then
29219       lld="lld"
29220       llu="llu"
29221    else
29222       lld="ld"
29223       llu="lu"
29224    fi
29225    TAPEDRIVE="/dev/nrmt0"
29226   ;;
29227 bsdi)
29228    DISTVER=`uname -a |awk '{print $3}'`
29229    TAPEDRIVE="/dev/nrmt0"
29230    PTHREAD_LIB="-pthread"
29231    CFLAGS="${CFLAGS} -pthread"
29232    PSCMD="ps -ax -o pid,command"
29233    lld="qd"
29234    llu="qu"
29235    PFILES="${PFILES} \
29236        platforms/bsdi/Makefile \
29237        platforms/bsdi/bacula-fd \
29238        platforms/bsdi/bacula-sd \
29239        platforms/bsdi/bacula-dir"
29240    largefile_support="yes"
29241   ;;
29242 cygwin)
29243    DISTVER=`uname -a |awk '{print $3}'`
29244    TAPEDRIVE="/dev/nrst0"
29245    WIN32=win32
29246    WCFLAGS="-mwindows"
29247    WLDFLAGS="-mwindows"
29248   ;;
29249 darwin)
29250    DISTVER=`uname -r`
29251    TAPEDRIVE="/dev/nst0"
29252    PSCMD="ps -e -o pid,command"
29253    MACOSX=macosx
29254    PFILES="${PFILES} \
29255       platforms/darwin/Makefile"
29256   ;;
29257 osx)
29258    DISTVER=`uname -r`
29259    TAPEDRIVE="/dev/nst0"
29260    PSCMD="ps -e -o pid,command"
29261    MACOSX=macosx
29262    PFILES="${PFILES} \
29263       platforms/osx/Makefile"
29264   ;;
29265 debian)
29266    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29267       DISTNAME="ubuntu"
29268    fi
29269    DISTVER=`cat /etc/debian_version`
29270    if test -f /etc/lsb-release ; then
29271       . /etc/lsb-release
29272       if test "x$DISTRIB_ID" != "x" ; then
29273          DISTNAME=$DISTRIB_ID
29274       fi
29275       if test "x$DISTRIB_RELEASE" != "x" ; then
29276          DISTVER=$DISTRIB_RELEASE
29277       fi
29278    fi
29279    if test "$DISTNAME" = "Ubuntu" ; then
29280       DISTNAME="ubuntu"
29281    fi
29282    TAPEDRIVE="/dev/nst0"
29283    PSCMD="ps -e -o pid,command"
29284    if test "$DISTNAME" = "ubuntu" ; then
29285       PFILES="${PFILES} \
29286          platforms/ubuntu/Makefile \
29287          platforms/ubuntu/bacula-fd \
29288          platforms/ubuntu/bacula-sd \
29289          platforms/ubuntu/bacula-dir"
29290    else
29291       PFILES="${PFILES} \
29292          platforms/debian/Makefile \
29293          platforms/debian/bacula-fd \
29294          platforms/debian/bacula-sd \
29295          platforms/debian/bacula-dir"
29296    fi
29297   ;;
29298 freebsd)
29299    DISTVER=`uname -a |awk '{print $3}'`
29300    VER=`echo $DISTVER | cut -c 1`
29301    if test x$VER = x4 ; then
29302       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29303       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29304    fi
29305    lld="qd"
29306    llu="qu"
29307    TAPEDRIVE="/dev/nrsa0"
29308    PSCMD="ps -ax -o pid,command"
29309    PFILES="${PFILES} \
29310        platforms/freebsd/Makefile \
29311        platforms/freebsd/bacula-fd \
29312        platforms/freebsd/bacula-sd \
29313        platforms/freebsd/bacula-dir"
29314    largefile_support="yes"
29315   ;;
29316 hpux)
29317    PSCMD="UNIX95=1; ps -e -o pid,comm"
29318    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29319    DISTVER=`uname -r`
29320    TAPEDRIVE="/dev/rmt/0hnb"
29321    PTHREAD_LIB="-lpthread"
29322    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29323
29324   ;;
29325 irix)
29326    DISTVER=`uname -r`
29327    TAPEDRIVE="/dev/rmt/0cbn"
29328    PSCMD="ps -e -o pid,comm"
29329    PFILES="${PFILES} \
29330        platforms/irix/Makefile \
29331        platforms/irix/bacula-fd \
29332        platforms/irix/bacula-sd \
29333        platforms/irix/bacula-dir"
29334   ;;
29335 netbsd)
29336    DISTVER=`uname -a |awk '{print $3}'`
29337    lld="qd"
29338    llu="qu"
29339    TAPEDRIVE="/dev/nrst0"
29340    PSCMD="ps -ax -o pid,command"
29341    PTHREAD_LIB="-pthread"
29342    CFLAGS="${CFLAGS} -pthread"
29343   ;;
29344 openbsd)
29345    DISTVER=`uname -a |awk '{print $3}'`
29346    lld="qd"
29347    llu="qu"
29348    TAPEDRIVE="/dev/nrst0"
29349    PSCMD="ps -ax -o pid,command"
29350    PTHREAD_LIB="-pthread"
29351    CFLAGS="${CFLAGS} -pthread"
29352    PFILES="${PFILES} \
29353        platforms/openbsd/Makefile \
29354        platforms/openbsd/bacula-fd \
29355        platforms/openbsd/bacula-sd \
29356        platforms/openbsd/bacula-dir"
29357   ;;
29358 redhat)
29359    if test -f /etc/whitebox-release ; then
29360       f=/etc/whitebox-release
29361    else
29362       f=/etc/redhat-release
29363    fi
29364    if test `cat $f | grep release |\
29365          cut -f 3 -d ' '`x = "Enterprise"x ; then
29366       DISTVER="Enterprise "`cat $f | grep release |\
29367           cut -f 6 -d ' '`
29368    else
29369        DISTVER=`cat /etc/redhat-release | grep release |\
29370            cut -f 5 -d ' '`
29371    fi
29372    TAPEDRIVE="/dev/nst0"
29373    PSCMD="ps -e -o pid,command"
29374    PFILES="${PFILES} \
29375        platforms/redhat/Makefile \
29376        platforms/redhat/bacula-fd \
29377        platforms/redhat/bacula-sd \
29378        platforms/redhat/bacula-dir
29379        "
29380   ;;
29381 mandrake)
29382    DISTVER=`cat /etc/mandrake-release | grep release |\
29383       cut -f 5 -d ' '`
29384    TAPEDRIVE="/dev/nst0"
29385    PSCMD="ps -e -o pid,command"
29386    PFILES="${PFILES} \
29387        platforms/mandrake/Makefile \
29388        platforms/mandrake/bacula-fd \
29389        platforms/mandrake/bacula-sd \
29390        platforms/mandrake/bacula-dir \
29391        "
29392   ;;
29393 gentoo)
29394    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29395    TAPEDRIVE="/dev/nst0"
29396    PSCMD="ps -e -o pid,command"
29397    PFILES="${PFILES} \
29398        platforms/gentoo/Makefile \
29399     platforms/gentoo/bacula-init \
29400        platforms/gentoo/bacula-fd \
29401        platforms/gentoo/bacula-sd \
29402        platforms/gentoo/bacula-dir"
29403   ;;
29404 slackware)
29405    DISTVER=`cat /etc/slackware-version`
29406    TAPEDRIVE="/dev/nst0"
29407    PSCMD="ps -e -o pid,command"
29408    PFILES="${PFILES} \
29409        platforms/slackware/Makefile \
29410        platforms/slackware/rc.bacula-fd \
29411        platforms/slackware/rc.bacula-sd \
29412        platforms/slackware/rc.bacula-dir\
29413        platforms/slackware/functions.bacula"
29414   ;;
29415 solaris)
29416    DISTVER=`uname -r`
29417    TAPEDRIVE="/dev/rmt/0cbn"
29418    PSCMD="ps -e -o pid,comm"
29419    PFILES="${PFILES} \
29420        platforms/solaris/Makefile \
29421        platforms/solaris/bacula-fd \
29422        platforms/solaris/bacula-sd \
29423        platforms/solaris/bacula-dir"
29424    COMPRESS_MANPAGES=
29425    case ${DISTVER} in
29426    5.5|5.6)
29427       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29428
29429       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29430
29431       ;;
29432    5.7|5.8)
29433       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29434
29435       ;;
29436    *)
29437       ;;
29438    esac
29439    LIBS="$LIBS -lresolv -lrt"
29440   ;;
29441 suse)
29442    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29443        cut -f 3 -d ' '`
29444    TAPEDRIVE="/dev/nst0"
29445    PSCMD="ps -e -o pid,command"
29446    PFILES="${PFILES} \
29447        platforms/suse/Makefile \
29448        platforms/suse/bacula-fd \
29449        platforms/suse/bacula-sd \
29450        platforms/suse/bacula-dir \
29451        platforms/suse/bacula"
29452   ;;
29453 suse5)
29454    DISTNAME=suse
29455    DISTVER=5.x
29456    TAPEDRIVE="/dev/nst0"
29457    PSCMD="ps -e -o pid,command"
29458    PFILES="${PFILES} \
29459        platforms/suse/Makefile \
29460        platforms/suse/bacula-fd \
29461        platforms/suse/bacula-sd \
29462        platforms/suse/bacula-dir"
29463   ;;
29464 unknown)
29465    DISTVER=unknown
29466    TAPEDRIVE="/dev/nst0"
29467   ;;
29468 *)
29469   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29470   ;;
29471 esac
29472
29473
29474
29475 LIBS="$PTHREAD_LIB $LIBS"
29476
29477 cat >>confdefs.h <<_ACEOF
29478 #define lld "$lld"
29479 _ACEOF
29480
29481 cat >>confdefs.h <<_ACEOF
29482 #define llu "$llu"
29483 _ACEOF
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493 MCOMMON=./autoconf/Make.common
29494
29495
29496 if test "x${subsysdir}" = "x${sbindir}" ; then
29497    echo " "
29498    echo " "
29499    echo "You have set both --sbindir and --with-subsys-dir"
29500    echo "  equal to: ${subsysdir} "
29501    echo "This is not permitted. Please reconfigure."
29502    echo " "
29503    echo "Aborting configuration ..."
29504    echo " "
29505    echo " "
29506    exit 1
29507 fi
29508
29509 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29510
29511 ac_config_commands="$ac_config_commands default"
29512
29513 cat >confcache <<\_ACEOF
29514 # This file is a shell script that caches the results of configure
29515 # tests run on this system so they can be shared between configure
29516 # scripts and configure runs, see configure's option --config-cache.
29517 # It is not useful on other systems.  If it contains results you don't
29518 # want to keep, you may remove or edit it.
29519 #
29520 # config.status only pays attention to the cache file if you give it
29521 # the --recheck option to rerun configure.
29522 #
29523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29525 # following values.
29526
29527 _ACEOF
29528
29529 # The following way of writing the cache mishandles newlines in values,
29530 # but we know of no workaround that is simple, portable, and efficient.
29531 # So, we kill variables containing newlines.
29532 # Ultrix sh set writes to stderr and can't be redirected directly,
29533 # and sets the high bit in the cache file unless we assign to the vars.
29534 (
29535   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29536     eval ac_val=\$$ac_var
29537     case $ac_val in #(
29538     *${as_nl}*)
29539       case $ac_var in #(
29540       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29542       esac
29543       case $ac_var in #(
29544       _ | IFS | as_nl) ;; #(
29545       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29546       *) { eval $ac_var=; unset $ac_var;} ;;
29547       esac ;;
29548     esac
29549   done
29550
29551   (set) 2>&1 |
29552     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29553     *${as_nl}ac_space=\ *)
29554       # `set' does not quote correctly, so add quotes: double-quote
29555       # substitution turns \\\\ into \\, and sed turns \\ into \.
29556       sed -n \
29557         "s/'/'\\\\''/g;
29558           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29559       ;; #(
29560     *)
29561       # `set' quotes correctly as required by POSIX, so do not add quotes.
29562       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29563       ;;
29564     esac |
29565     sort
29566 ) |
29567   sed '
29568      /^ac_cv_env_/b end
29569      t clear
29570      :clear
29571      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29572      t end
29573      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29574      :end' >>confcache
29575 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29576   if test -w "$cache_file"; then
29577     if test "x$cache_file" != "x/dev/null"; then
29578       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29579 $as_echo "$as_me: updating cache $cache_file" >&6;}
29580       if test ! -f "$cache_file" || test -h "$cache_file"; then
29581         cat confcache >"$cache_file"
29582       else
29583         case $cache_file in #(
29584         */* | ?:*)
29585           mv -f confcache "$cache_file"$$ &&
29586           mv -f "$cache_file"$$ "$cache_file" ;; #(
29587         *)
29588           mv -f confcache "$cache_file" ;;
29589         esac
29590       fi
29591     fi
29592   else
29593     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29595   fi
29596 fi
29597 rm -f confcache
29598
29599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29600 # Let make expand exec_prefix.
29601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29602
29603 DEFS=-DHAVE_CONFIG_H
29604
29605 ac_libobjs=
29606 ac_ltlibobjs=
29607 U=
29608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29609   # 1. Remove the extension, and $U if already installed.
29610   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29611   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29612   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29613   #    will be set to the directory where LIBOBJS objects are built.
29614   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29615   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29616 done
29617 LIBOBJS=$ac_libobjs
29618
29619 LTLIBOBJS=$ac_ltlibobjs
29620
29621
29622
29623
29624 : "${CONFIG_STATUS=./config.status}"
29625 ac_write_fail=0
29626 ac_clean_files_save=$ac_clean_files
29627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29630 as_write_fail=0
29631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29632 #! $SHELL
29633 # Generated by $as_me.
29634 # Run this file to recreate the current configuration.
29635 # Compiler output produced by configure, useful for debugging
29636 # configure, is in config.log if it exists.
29637
29638 debug=false
29639 ac_cs_recheck=false
29640 ac_cs_silent=false
29641
29642 SHELL=\${CONFIG_SHELL-$SHELL}
29643 export SHELL
29644 _ASEOF
29645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29646 ## -------------------- ##
29647 ## M4sh Initialization. ##
29648 ## -------------------- ##
29649
29650 # Be more Bourne compatible
29651 DUALCASE=1; export DUALCASE # for MKS sh
29652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29653   emulate sh
29654   NULLCMD=:
29655   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29656   # is contrary to our usage.  Disable this feature.
29657   alias -g '${1+"$@"}'='"$@"'
29658   setopt NO_GLOB_SUBST
29659 else
29660   case `(set -o) 2>/dev/null` in #(
29661   *posix*) :
29662     set -o posix ;; #(
29663   *) :
29664      ;;
29665 esac
29666 fi
29667
29668
29669 as_nl='
29670 '
29671 export as_nl
29672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29676 # Prefer a ksh shell builtin over an external printf program on Solaris,
29677 # but without wasting forks for bash or zsh.
29678 if test -z "$BASH_VERSION$ZSH_VERSION" \
29679     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29680   as_echo='print -r --'
29681   as_echo_n='print -rn --'
29682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29683   as_echo='printf %s\n'
29684   as_echo_n='printf %s'
29685 else
29686   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29687     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29688     as_echo_n='/usr/ucb/echo -n'
29689   else
29690     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29691     as_echo_n_body='eval
29692       arg=$1;
29693       case $arg in #(
29694       *"$as_nl"*)
29695         expr "X$arg" : "X\\(.*\\)$as_nl";
29696         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29697       esac;
29698       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29699     '
29700     export as_echo_n_body
29701     as_echo_n='sh -c $as_echo_n_body as_echo'
29702   fi
29703   export as_echo_body
29704   as_echo='sh -c $as_echo_body as_echo'
29705 fi
29706
29707 # The user is always right.
29708 if test "${PATH_SEPARATOR+set}" != set; then
29709   PATH_SEPARATOR=:
29710   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29711     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29712       PATH_SEPARATOR=';'
29713   }
29714 fi
29715
29716
29717 # IFS
29718 # We need space, tab and new line, in precisely that order.  Quoting is
29719 # there to prevent editors from complaining about space-tab.
29720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29721 # splitting by setting IFS to empty value.)
29722 IFS=" ""        $as_nl"
29723
29724 # Find who we are.  Look in the path if we contain no directory separator.
29725 as_myself=
29726 case $0 in #((
29727   *[\\/]* ) as_myself=$0 ;;
29728   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29729 for as_dir in $PATH
29730 do
29731   IFS=$as_save_IFS
29732   test -z "$as_dir" && as_dir=.
29733     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29734   done
29735 IFS=$as_save_IFS
29736
29737      ;;
29738 esac
29739 # We did not find ourselves, most probably we were run as `sh COMMAND'
29740 # in which case we are not to be found in the path.
29741 if test "x$as_myself" = x; then
29742   as_myself=$0
29743 fi
29744 if test ! -f "$as_myself"; then
29745   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29746   exit 1
29747 fi
29748
29749 # Unset variables that we do not need and which cause bugs (e.g. in
29750 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29751 # suppresses any "Segmentation fault" message there.  '((' could
29752 # trigger a bug in pdksh 5.2.14.
29753 for as_var in BASH_ENV ENV MAIL MAILPATH
29754 do eval test x\${$as_var+set} = xset \
29755   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29756 done
29757 PS1='$ '
29758 PS2='> '
29759 PS4='+ '
29760
29761 # NLS nuisances.
29762 LC_ALL=C
29763 export LC_ALL
29764 LANGUAGE=C
29765 export LANGUAGE
29766
29767 # CDPATH.
29768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29769
29770
29771 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29772 # ----------------------------------------
29773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29775 # script with STATUS, using 1 if that was 0.
29776 as_fn_error ()
29777 {
29778   as_status=$1; test $as_status -eq 0 && as_status=1
29779   if test "$4"; then
29780     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29781     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29782   fi
29783   $as_echo "$as_me: error: $2" >&2
29784   as_fn_exit $as_status
29785 } # as_fn_error
29786
29787
29788 # as_fn_set_status STATUS
29789 # -----------------------
29790 # Set $? to STATUS, without forking.
29791 as_fn_set_status ()
29792 {
29793   return $1
29794 } # as_fn_set_status
29795
29796 # as_fn_exit STATUS
29797 # -----------------
29798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29799 as_fn_exit ()
29800 {
29801   set +e
29802   as_fn_set_status $1
29803   exit $1
29804 } # as_fn_exit
29805
29806 # as_fn_unset VAR
29807 # ---------------
29808 # Portably unset VAR.
29809 as_fn_unset ()
29810 {
29811   { eval $1=; unset $1;}
29812 }
29813 as_unset=as_fn_unset
29814 # as_fn_append VAR VALUE
29815 # ----------------------
29816 # Append the text in VALUE to the end of the definition contained in VAR. Take
29817 # advantage of any shell optimizations that allow amortized linear growth over
29818 # repeated appends, instead of the typical quadratic growth present in naive
29819 # implementations.
29820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29821   eval 'as_fn_append ()
29822   {
29823     eval $1+=\$2
29824   }'
29825 else
29826   as_fn_append ()
29827   {
29828     eval $1=\$$1\$2
29829   }
29830 fi # as_fn_append
29831
29832 # as_fn_arith ARG...
29833 # ------------------
29834 # Perform arithmetic evaluation on the ARGs, and store the result in the
29835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29836 # must be portable across $(()) and expr.
29837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29838   eval 'as_fn_arith ()
29839   {
29840     as_val=$(( $* ))
29841   }'
29842 else
29843   as_fn_arith ()
29844   {
29845     as_val=`expr "$@" || test $? -eq 1`
29846   }
29847 fi # as_fn_arith
29848
29849
29850 if expr a : '\(a\)' >/dev/null 2>&1 &&
29851    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29852   as_expr=expr
29853 else
29854   as_expr=false
29855 fi
29856
29857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29858   as_basename=basename
29859 else
29860   as_basename=false
29861 fi
29862
29863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29864   as_dirname=dirname
29865 else
29866   as_dirname=false
29867 fi
29868
29869 as_me=`$as_basename -- "$0" ||
29870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29871          X"$0" : 'X\(//\)$' \| \
29872          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29873 $as_echo X/"$0" |
29874     sed '/^.*\/\([^/][^/]*\)\/*$/{
29875             s//\1/
29876             q
29877           }
29878           /^X\/\(\/\/\)$/{
29879             s//\1/
29880             q
29881           }
29882           /^X\/\(\/\).*/{
29883             s//\1/
29884             q
29885           }
29886           s/.*/./; q'`
29887
29888 # Avoid depending upon Character Ranges.
29889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29892 as_cr_digits='0123456789'
29893 as_cr_alnum=$as_cr_Letters$as_cr_digits
29894
29895 ECHO_C= ECHO_N= ECHO_T=
29896 case `echo -n x` in #(((((
29897 -n*)
29898   case `echo 'xy\c'` in
29899   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29900   xy)  ECHO_C='\c';;
29901   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29902        ECHO_T=' ';;
29903   esac;;
29904 *)
29905   ECHO_N='-n';;
29906 esac
29907
29908 rm -f conf$$ conf$$.exe conf$$.file
29909 if test -d conf$$.dir; then
29910   rm -f conf$$.dir/conf$$.file
29911 else
29912   rm -f conf$$.dir
29913   mkdir conf$$.dir 2>/dev/null
29914 fi
29915 if (echo >conf$$.file) 2>/dev/null; then
29916   if ln -s conf$$.file conf$$ 2>/dev/null; then
29917     as_ln_s='ln -s'
29918     # ... but there are two gotchas:
29919     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29920     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29921     # In both cases, we have to default to `cp -p'.
29922     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29923       as_ln_s='cp -p'
29924   elif ln conf$$.file conf$$ 2>/dev/null; then
29925     as_ln_s=ln
29926   else
29927     as_ln_s='cp -p'
29928   fi
29929 else
29930   as_ln_s='cp -p'
29931 fi
29932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29933 rmdir conf$$.dir 2>/dev/null
29934
29935
29936 # as_fn_mkdir_p
29937 # -------------
29938 # Create "$as_dir" as a directory, including parents if necessary.
29939 as_fn_mkdir_p ()
29940 {
29941
29942   case $as_dir in #(
29943   -*) as_dir=./$as_dir;;
29944   esac
29945   test -d "$as_dir" || eval $as_mkdir_p || {
29946     as_dirs=
29947     while :; do
29948       case $as_dir in #(
29949       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29950       *) as_qdir=$as_dir;;
29951       esac
29952       as_dirs="'$as_qdir' $as_dirs"
29953       as_dir=`$as_dirname -- "$as_dir" ||
29954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29955          X"$as_dir" : 'X\(//\)[^/]' \| \
29956          X"$as_dir" : 'X\(//\)$' \| \
29957          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29958 $as_echo X"$as_dir" |
29959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29960             s//\1/
29961             q
29962           }
29963           /^X\(\/\/\)[^/].*/{
29964             s//\1/
29965             q
29966           }
29967           /^X\(\/\/\)$/{
29968             s//\1/
29969             q
29970           }
29971           /^X\(\/\).*/{
29972             s//\1/
29973             q
29974           }
29975           s/.*/./; q'`
29976       test -d "$as_dir" && break
29977     done
29978     test -z "$as_dirs" || eval "mkdir $as_dirs"
29979   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29980
29981
29982 } # as_fn_mkdir_p
29983 if mkdir -p . 2>/dev/null; then
29984   as_mkdir_p='mkdir -p "$as_dir"'
29985 else
29986   test -d ./-p && rmdir ./-p
29987   as_mkdir_p=false
29988 fi
29989
29990 if test -x / >/dev/null 2>&1; then
29991   as_test_x='test -x'
29992 else
29993   if ls -dL / >/dev/null 2>&1; then
29994     as_ls_L_option=L
29995   else
29996     as_ls_L_option=
29997   fi
29998   as_test_x='
29999     eval sh -c '\''
30000       if test -d "$1"; then
30001         test -d "$1/.";
30002       else
30003         case $1 in #(
30004         -*)set "./$1";;
30005         esac;
30006         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30007         ???[sx]*):;;*)false;;esac;fi
30008     '\'' sh
30009   '
30010 fi
30011 as_executable_p=$as_test_x
30012
30013 # Sed expression to map a string onto a valid CPP name.
30014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30015
30016 # Sed expression to map a string onto a valid variable name.
30017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30018
30019
30020 exec 6>&1
30021 ## ----------------------------------- ##
30022 ## Main body of $CONFIG_STATUS script. ##
30023 ## ----------------------------------- ##
30024 _ASEOF
30025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30026
30027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30028 # Save the log message, to keep $0 and so on meaningful, and to
30029 # report actual input values of CONFIG_FILES etc. instead of their
30030 # values after options handling.
30031 ac_log="
30032 This file was extended by bacula $as_me 5.1.14, which was
30033 generated by GNU Autoconf 2.68.  Invocation command line was
30034
30035   CONFIG_FILES    = $CONFIG_FILES
30036   CONFIG_HEADERS  = $CONFIG_HEADERS
30037   CONFIG_LINKS    = $CONFIG_LINKS
30038   CONFIG_COMMANDS = $CONFIG_COMMANDS
30039   $ $0 $@
30040
30041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30042 "
30043
30044 _ACEOF
30045
30046 case $ac_config_files in *"
30047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30048 esac
30049
30050 case $ac_config_headers in *"
30051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30052 esac
30053
30054
30055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30056 # Files that config.status was made for.
30057 config_files="$ac_config_files"
30058 config_headers="$ac_config_headers"
30059 config_commands="$ac_config_commands"
30060
30061 _ACEOF
30062
30063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30064 ac_cs_usage="\
30065 \`$as_me' instantiates files and other configuration actions
30066 from templates according to the current configuration.  Unless the files
30067 and actions are specified as TAGs, all are instantiated by default.
30068
30069 Usage: $0 [OPTION]... [TAG]...
30070
30071   -h, --help       print this help, then exit
30072   -V, --version    print version number and configuration settings, then exit
30073       --config     print configuration, then exit
30074   -q, --quiet, --silent
30075                    do not print progress messages
30076   -d, --debug      don't remove temporary files
30077       --recheck    update $as_me by reconfiguring in the same conditions
30078       --file=FILE[:TEMPLATE]
30079                    instantiate the configuration file FILE
30080       --header=FILE[:TEMPLATE]
30081                    instantiate the configuration header FILE
30082
30083 Configuration files:
30084 $config_files
30085
30086 Configuration headers:
30087 $config_headers
30088
30089 Configuration commands:
30090 $config_commands
30091
30092 Report bugs to the package provider."
30093
30094 _ACEOF
30095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30097 ac_cs_version="\\
30098 bacula config.status 5.1.14
30099 configured by $0, generated by GNU Autoconf 2.68,
30100   with options \\"\$ac_cs_config\\"
30101
30102 Copyright (C) 2010 Free Software Foundation, Inc.
30103 This config.status script is free software; the Free Software Foundation
30104 gives unlimited permission to copy, distribute and modify it."
30105
30106 ac_pwd='$ac_pwd'
30107 srcdir='$srcdir'
30108 INSTALL='$INSTALL'
30109 AWK='$AWK'
30110 test -n "\$AWK" || AWK=awk
30111 _ACEOF
30112
30113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30114 # The default lists apply if the user does not specify any file.
30115 ac_need_defaults=:
30116 while test $# != 0
30117 do
30118   case $1 in
30119   --*=?*)
30120     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30121     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30122     ac_shift=:
30123     ;;
30124   --*=)
30125     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30126     ac_optarg=
30127     ac_shift=:
30128     ;;
30129   *)
30130     ac_option=$1
30131     ac_optarg=$2
30132     ac_shift=shift
30133     ;;
30134   esac
30135
30136   case $ac_option in
30137   # Handling of the options.
30138   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30139     ac_cs_recheck=: ;;
30140   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30141     $as_echo "$ac_cs_version"; exit ;;
30142   --config | --confi | --conf | --con | --co | --c )
30143     $as_echo "$ac_cs_config"; exit ;;
30144   --debug | --debu | --deb | --de | --d | -d )
30145     debug=: ;;
30146   --file | --fil | --fi | --f )
30147     $ac_shift
30148     case $ac_optarg in
30149     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30150     '') as_fn_error $? "missing file argument" ;;
30151     esac
30152     as_fn_append CONFIG_FILES " '$ac_optarg'"
30153     ac_need_defaults=false;;
30154   --header | --heade | --head | --hea )
30155     $ac_shift
30156     case $ac_optarg in
30157     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30158     esac
30159     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30160     ac_need_defaults=false;;
30161   --he | --h)
30162     # Conflict between --help and --header
30163     as_fn_error $? "ambiguous option: \`$1'
30164 Try \`$0 --help' for more information.";;
30165   --help | --hel | -h )
30166     $as_echo "$ac_cs_usage"; exit ;;
30167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30168   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30169     ac_cs_silent=: ;;
30170
30171   # This is an error.
30172   -*) as_fn_error $? "unrecognized option: \`$1'
30173 Try \`$0 --help' for more information." ;;
30174
30175   *) as_fn_append ac_config_targets " $1"
30176      ac_need_defaults=false ;;
30177
30178   esac
30179   shift
30180 done
30181
30182 ac_configure_extra_args=
30183
30184 if $ac_cs_silent; then
30185   exec 6>/dev/null
30186   ac_configure_extra_args="$ac_configure_extra_args --silent"
30187 fi
30188
30189 _ACEOF
30190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30191 if \$ac_cs_recheck; then
30192   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30193   shift
30194   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30195   CONFIG_SHELL='$SHELL'
30196   export CONFIG_SHELL
30197   exec "\$@"
30198 fi
30199
30200 _ACEOF
30201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30202 exec 5>>config.log
30203 {
30204   echo
30205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30206 ## Running $as_me. ##
30207 _ASBOX
30208   $as_echo "$ac_log"
30209 } >&5
30210
30211 _ACEOF
30212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30213 #
30214 # INIT-COMMANDS
30215 #
30216
30217
30218 # The HP-UX ksh and POSIX shell print the target directory to stdout
30219 # if CDPATH is set.
30220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30221
30222 sed_quote_subst='$sed_quote_subst'
30223 double_quote_subst='$double_quote_subst'
30224 delay_variable_subst='$delay_variable_subst'
30225 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30226 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30227 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30228 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30229 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30230 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30231 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30232 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30233 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30234 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30235 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30236 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30237 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30238 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30239 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30240 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30241 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30242 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30243 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30244 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30245 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30246 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30247 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30248 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30249 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30250 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30251 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30252 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30253 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30254 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30255 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30256 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30257 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30258 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30259 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30260 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30261 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30262 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30263 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30264 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30265 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30266 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30267 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30268 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30269 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"`'
30270 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"`'
30271 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30272 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30273 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30274 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30275 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30276 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30277 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30278 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30279 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30280 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30281 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30282 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30283 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30284 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30285 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30286 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30287 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30288 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30289 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30290 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30291 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30292 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30293 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30294 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30295 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30296 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30297 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30298 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30299 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30300 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30301 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30302 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30303 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30304 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30305 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30306 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30307 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30308 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30309 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30310 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30311 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30312 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30313 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30314 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30315 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30316 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30317 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30318 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30319 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30320 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30321 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30322 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30323 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30324 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30325 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30326 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30327 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30328 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30329 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30330 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30331 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30332 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30333 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30334 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30335 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30336 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30337 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30338 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30339 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30340 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30341 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30342 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30343 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30344 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30345 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30346 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30347 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30348 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30349 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30350 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30351 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30352 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30353 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30354 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30355 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30356 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30357 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30358 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30359 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30360 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30361 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30362 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30363 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30364 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30365 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30366 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30367 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30368 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30369 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30370 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30371 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30372 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30373 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30374 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30375 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30376 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30377 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30378 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30379 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30380 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30381 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30382 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30383 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30384 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30385 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30386 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30387 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30388 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30389 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30390 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30391 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30392 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30393 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30394 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30395 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30396
30397 LTCC='$LTCC'
30398 LTCFLAGS='$LTCFLAGS'
30399 compiler='$compiler_DEFAULT'
30400
30401 # Quote evaled strings.
30402 for var in SED \
30403 GREP \
30404 EGREP \
30405 FGREP \
30406 LD \
30407 NM \
30408 LN_S \
30409 lt_SP2NL \
30410 lt_NL2SP \
30411 reload_flag \
30412 OBJDUMP \
30413 deplibs_check_method \
30414 file_magic_cmd \
30415 AR \
30416 AR_FLAGS \
30417 STRIP \
30418 RANLIB \
30419 CC \
30420 CFLAGS \
30421 compiler \
30422 lt_cv_sys_global_symbol_pipe \
30423 lt_cv_sys_global_symbol_to_cdecl \
30424 lt_cv_sys_global_symbol_to_c_name_address \
30425 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30426 SHELL \
30427 ECHO \
30428 lt_prog_compiler_no_builtin_flag \
30429 lt_prog_compiler_wl \
30430 lt_prog_compiler_pic \
30431 lt_prog_compiler_static \
30432 lt_cv_prog_compiler_c_o \
30433 need_locks \
30434 DSYMUTIL \
30435 NMEDIT \
30436 LIPO \
30437 OTOOL \
30438 OTOOL64 \
30439 shrext_cmds \
30440 export_dynamic_flag_spec \
30441 whole_archive_flag_spec \
30442 compiler_needs_object \
30443 with_gnu_ld \
30444 allow_undefined_flag \
30445 no_undefined_flag \
30446 hardcode_libdir_flag_spec \
30447 hardcode_libdir_flag_spec_ld \
30448 hardcode_libdir_separator \
30449 fix_srcfile_path \
30450 exclude_expsyms \
30451 include_expsyms \
30452 file_list_spec \
30453 variables_saved_for_relink \
30454 libname_spec \
30455 library_names_spec \
30456 soname_spec \
30457 finish_eval \
30458 old_striplib \
30459 striplib \
30460 compiler_lib_search_dirs \
30461 predep_objects \
30462 postdep_objects \
30463 predeps \
30464 postdeps \
30465 compiler_lib_search_path \
30466 LD_CXX \
30467 compiler_CXX \
30468 lt_prog_compiler_no_builtin_flag_CXX \
30469 lt_prog_compiler_wl_CXX \
30470 lt_prog_compiler_pic_CXX \
30471 lt_prog_compiler_static_CXX \
30472 lt_cv_prog_compiler_c_o_CXX \
30473 export_dynamic_flag_spec_CXX \
30474 whole_archive_flag_spec_CXX \
30475 compiler_needs_object_CXX \
30476 with_gnu_ld_CXX \
30477 allow_undefined_flag_CXX \
30478 no_undefined_flag_CXX \
30479 hardcode_libdir_flag_spec_CXX \
30480 hardcode_libdir_flag_spec_ld_CXX \
30481 hardcode_libdir_separator_CXX \
30482 fix_srcfile_path_CXX \
30483 exclude_expsyms_CXX \
30484 include_expsyms_CXX \
30485 file_list_spec_CXX \
30486 compiler_lib_search_dirs_CXX \
30487 predep_objects_CXX \
30488 postdep_objects_CXX \
30489 predeps_CXX \
30490 postdeps_CXX \
30491 compiler_lib_search_path_CXX; do
30492     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30493     *[\\\\\\\`\\"\\\$]*)
30494       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30495       ;;
30496     *)
30497       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30498       ;;
30499     esac
30500 done
30501
30502 # Double-quote double-evaled strings.
30503 for var in reload_cmds \
30504 old_postinstall_cmds \
30505 old_postuninstall_cmds \
30506 old_archive_cmds \
30507 extract_expsyms_cmds \
30508 old_archive_from_new_cmds \
30509 old_archive_from_expsyms_cmds \
30510 archive_cmds \
30511 archive_expsym_cmds \
30512 module_cmds \
30513 module_expsym_cmds \
30514 export_symbols_cmds \
30515 prelink_cmds \
30516 postinstall_cmds \
30517 postuninstall_cmds \
30518 finish_cmds \
30519 sys_lib_search_path_spec \
30520 sys_lib_dlsearch_path_spec \
30521 old_archive_cmds_CXX \
30522 old_archive_from_new_cmds_CXX \
30523 old_archive_from_expsyms_cmds_CXX \
30524 archive_cmds_CXX \
30525 archive_expsym_cmds_CXX \
30526 module_cmds_CXX \
30527 module_expsym_cmds_CXX \
30528 export_symbols_cmds_CXX \
30529 prelink_cmds_CXX; do
30530     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30531     *[\\\\\\\`\\"\\\$]*)
30532       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30533       ;;
30534     *)
30535       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30536       ;;
30537     esac
30538 done
30539
30540 # Fix-up fallback echo if it was mangled by the above quoting rules.
30541 case \$lt_ECHO in
30542 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30543   ;;
30544 esac
30545
30546 ac_aux_dir='$ac_aux_dir'
30547 xsi_shell='$xsi_shell'
30548 lt_shell_append='$lt_shell_append'
30549
30550 # See if we are running on zsh, and set the options which allow our
30551 # commands through without removal of \ escapes INIT.
30552 if test -n "\${ZSH_VERSION+set}" ; then
30553    setopt NO_GLOB_SUBST
30554 fi
30555
30556
30557     PACKAGE='$PACKAGE'
30558     VERSION='$VERSION'
30559     TIMESTAMP='$TIMESTAMP'
30560     RM='$RM'
30561     ofile='$ofile'
30562
30563
30564
30565
30566
30567 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30568     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30569     # from automake.
30570     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30571     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30572     LINGUAS="${LINGUAS-%UNSET%}"
30573
30574
30575 _ACEOF
30576
30577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30578
30579 # Handling of arguments.
30580 for ac_config_target in $ac_config_targets
30581 do
30582   case $ac_config_target in
30583     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30584     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30585     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30586     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30587     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30588     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30589     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30590     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30591     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30592     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30593     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30594     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30595     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30596     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30597     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30598     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30599     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30600     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30601     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30602     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30603     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30604     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30605     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30606     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30607     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30608     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30609     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30610     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30611     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30612     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30613     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30614     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30615     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30616     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30617     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30618     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30619     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30620     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30621     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30622     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30623     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30624     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30625     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30626     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30627     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30628     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30629     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30630     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30631     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30632     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30633     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30634     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30635     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30636     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30637     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30638     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30639     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30640     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30641     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30642     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30643     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30644     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30645     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30646     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30647     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30648     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30649     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30650     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30651     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30652     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30653     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30654     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30655     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30656     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30657     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30658     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30659     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30660     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30661     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30662     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30663     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30664     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30665     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30666     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30667     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30668     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30669     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30670     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30671     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30672     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30673     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30674     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30675     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30676     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30677     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30678     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30679     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30680     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30681     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30682     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30683     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30684     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30685     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30686     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30687     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30688     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30689
30690   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30691   esac
30692 done
30693
30694
30695 # If the user did not use the arguments to specify the items to instantiate,
30696 # then the envvar interface is used.  Set only those that are not.
30697 # We use the long form for the default assignment because of an extremely
30698 # bizarre bug on SunOS 4.1.3.
30699 if $ac_need_defaults; then
30700   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30701   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30702   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30703 fi
30704
30705 # Have a temporary directory for convenience.  Make it in the build tree
30706 # simply because there is no reason against having it here, and in addition,
30707 # creating and moving files from /tmp can sometimes cause problems.
30708 # Hook for its removal unless debugging.
30709 # Note that there is a small window in which the directory will not be cleaned:
30710 # after its creation but before its name has been assigned to `$tmp'.
30711 $debug ||
30712 {
30713   tmp= ac_tmp=
30714   trap 'exit_status=$?
30715   : "${ac_tmp:=$tmp}"
30716   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30717 ' 0
30718   trap 'as_fn_exit 1' 1 2 13 15
30719 }
30720 # Create a (secure) tmp directory for tmp files.
30721
30722 {
30723   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30724   test -d "$tmp"
30725 }  ||
30726 {
30727   tmp=./conf$$-$RANDOM
30728   (umask 077 && mkdir "$tmp")
30729 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30730 ac_tmp=$tmp
30731
30732 # Set up the scripts for CONFIG_FILES section.
30733 # No need to generate them if there are no CONFIG_FILES.
30734 # This happens for instance with `./config.status config.h'.
30735 if test -n "$CONFIG_FILES"; then
30736
30737 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30738   ac_cs_awk_getline=:
30739   ac_cs_awk_pipe_init=
30740   ac_cs_awk_read_file='
30741       while ((getline aline < (F[key])) > 0)
30742         print(aline)
30743       close(F[key])'
30744   ac_cs_awk_pipe_fini=
30745 else
30746   ac_cs_awk_getline=false
30747   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30748   ac_cs_awk_read_file='
30749       print "|#_!!_#|"
30750       print "cat " F[key] " &&"
30751       '$ac_cs_awk_pipe_init
30752   # The final `:' finishes the AND list.
30753   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30754 fi
30755 ac_cr=`echo X | tr X '\015'`
30756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30757 # But we know of no other shell where ac_cr would be empty at this
30758 # point, so we can use a bashism as a fallback.
30759 if test "x$ac_cr" = x; then
30760   eval ac_cr=\$\'\\r\'
30761 fi
30762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30764   ac_cs_awk_cr='\\r'
30765 else
30766   ac_cs_awk_cr=$ac_cr
30767 fi
30768
30769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30770 _ACEOF
30771
30772 # Create commands to substitute file output variables.
30773 {
30774   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30775   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30776   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30777   echo "_ACAWK" &&
30778   echo "_ACEOF"
30779 } >conf$$files.sh &&
30780 . ./conf$$files.sh ||
30781   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30782 rm -f conf$$files.sh
30783
30784 {
30785   echo "cat >conf$$subs.awk <<_ACEOF" &&
30786   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30787   echo "_ACEOF"
30788 } >conf$$subs.sh ||
30789   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30791 ac_delim='%!_!# '
30792 for ac_last_try in false false false false false :; do
30793   . ./conf$$subs.sh ||
30794     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30795
30796   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30797   if test $ac_delim_n = $ac_delim_num; then
30798     break
30799   elif $ac_last_try; then
30800     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30801   else
30802     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30803   fi
30804 done
30805 rm -f conf$$subs.sh
30806
30807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30809 _ACEOF
30810 sed -n '
30811 h
30812 s/^/S["/; s/!.*/"]=/
30813 p
30814 g
30815 s/^[^!]*!//
30816 :repl
30817 t repl
30818 s/'"$ac_delim"'$//
30819 t delim
30820 :nl
30821 h
30822 s/\(.\{148\}\)..*/\1/
30823 t more1
30824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30825 p
30826 n
30827 b repl
30828 :more1
30829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30830 p
30831 g
30832 s/.\{148\}//
30833 t nl
30834 :delim
30835 h
30836 s/\(.\{148\}\)..*/\1/
30837 t more2
30838 s/["\\]/\\&/g; s/^/"/; s/$/"/
30839 p
30840 b
30841 :more2
30842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30843 p
30844 g
30845 s/.\{148\}//
30846 t delim
30847 ' <conf$$subs.awk | sed '
30848 /^[^""]/{
30849   N
30850   s/\n//
30851 }
30852 ' >>$CONFIG_STATUS || ac_write_fail=1
30853 rm -f conf$$subs.awk
30854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30855 _ACAWK
30856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30857   for (key in S) S_is_set[key] = 1
30858   FS = "\a"
30859   \$ac_cs_awk_pipe_init
30860 }
30861 {
30862   line = $ 0
30863   nfields = split(line, field, "@")
30864   substed = 0
30865   len = length(field[1])
30866   for (i = 2; i < nfields; i++) {
30867     key = field[i]
30868     keylen = length(key)
30869     if (S_is_set[key]) {
30870       value = S[key]
30871       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30872       len += length(value) + length(field[++i])
30873       substed = 1
30874     } else
30875       len += 1 + keylen
30876   }
30877   if (nfields == 3 && !substed) {
30878     key = field[2]
30879     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30880       \$ac_cs_awk_read_file
30881       next
30882     }
30883   }
30884   print line
30885 }
30886 \$ac_cs_awk_pipe_fini
30887 _ACAWK
30888 _ACEOF
30889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30890 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30891   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30892 else
30893   cat
30894 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30895   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30896 _ACEOF
30897
30898 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30899 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30900 # trailing colons and then remove the whole line if VPATH becomes empty
30901 # (actually we leave an empty line to preserve line numbers).
30902 if test "x$srcdir" = x.; then
30903   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30904 h
30905 s///
30906 s/^/:/
30907 s/[      ]*$/:/
30908 s/:\$(srcdir):/:/g
30909 s/:\${srcdir}:/:/g
30910 s/:@srcdir@:/:/g
30911 s/^:*//
30912 s/:*$//
30913 x
30914 s/\(=[   ]*\).*/\1/
30915 G
30916 s/\n//
30917 s/^[^=]*=[       ]*$//
30918 }'
30919 fi
30920
30921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30922 fi # test -n "$CONFIG_FILES"
30923
30924 # Set up the scripts for CONFIG_HEADERS section.
30925 # No need to generate them if there are no CONFIG_HEADERS.
30926 # This happens for instance with `./config.status Makefile'.
30927 if test -n "$CONFIG_HEADERS"; then
30928 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30929 BEGIN {
30930 _ACEOF
30931
30932 # Transform confdefs.h into an awk script `defines.awk', embedded as
30933 # here-document in config.status, that substitutes the proper values into
30934 # config.h.in to produce config.h.
30935
30936 # Create a delimiter string that does not exist in confdefs.h, to ease
30937 # handling of long lines.
30938 ac_delim='%!_!# '
30939 for ac_last_try in false false :; do
30940   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30941   if test -z "$ac_tt"; then
30942     break
30943   elif $ac_last_try; then
30944     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30945   else
30946     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30947   fi
30948 done
30949
30950 # For the awk script, D is an array of macro values keyed by name,
30951 # likewise P contains macro parameters if any.  Preserve backslash
30952 # newline sequences.
30953
30954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30955 sed -n '
30956 s/.\{148\}/&'"$ac_delim"'/g
30957 t rset
30958 :rset
30959 s/^[     ]*#[    ]*define[       ][      ]*/ /
30960 t def
30961 d
30962 :def
30963 s/\\$//
30964 t bsnl
30965 s/["\\]/\\&/g
30966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30967 D["\1"]=" \3"/p
30968 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30969 d
30970 :bsnl
30971 s/["\\]/\\&/g
30972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30973 D["\1"]=" \3\\\\\\n"\\/p
30974 t cont
30975 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30976 t cont
30977 d
30978 :cont
30979 n
30980 s/.\{148\}/&'"$ac_delim"'/g
30981 t clear
30982 :clear
30983 s/\\$//
30984 t bsnlc
30985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30986 d
30987 :bsnlc
30988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30989 b cont
30990 ' <confdefs.h | sed '
30991 s/'"$ac_delim"'/"\\\
30992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30993
30994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30995   for (key in D) D_is_set[key] = 1
30996   FS = "\a"
30997 }
30998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30999   line = \$ 0
31000   split(line, arg, " ")
31001   if (arg[1] == "#") {
31002     defundef = arg[2]
31003     mac1 = arg[3]
31004   } else {
31005     defundef = substr(arg[1], 2)
31006     mac1 = arg[2]
31007   }
31008   split(mac1, mac2, "(") #)
31009   macro = mac2[1]
31010   prefix = substr(line, 1, index(line, defundef) - 1)
31011   if (D_is_set[macro]) {
31012     # Preserve the white space surrounding the "#".
31013     print prefix "define", macro P[macro] D[macro]
31014     next
31015   } else {
31016     # Replace #undef with comments.  This is necessary, for example,
31017     # in the case of _POSIX_SOURCE, which is predefined and required
31018     # on some systems where configure will not decide to define it.
31019     if (defundef == "undef") {
31020       print "/*", prefix defundef, macro, "*/"
31021       next
31022     }
31023   }
31024 }
31025 { print }
31026 _ACAWK
31027 _ACEOF
31028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31029   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31030 fi # test -n "$CONFIG_HEADERS"
31031
31032
31033 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31034 shift
31035 for ac_tag
31036 do
31037   case $ac_tag in
31038   :[FHLC]) ac_mode=$ac_tag; continue;;
31039   esac
31040   case $ac_mode$ac_tag in
31041   :[FHL]*:*);;
31042   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31043   :[FH]-) ac_tag=-:-;;
31044   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31045   esac
31046   ac_save_IFS=$IFS
31047   IFS=:
31048   set x $ac_tag
31049   IFS=$ac_save_IFS
31050   shift
31051   ac_file=$1
31052   shift
31053
31054   case $ac_mode in
31055   :L) ac_source=$1;;
31056   :[FH])
31057     ac_file_inputs=
31058     for ac_f
31059     do
31060       case $ac_f in
31061       -) ac_f="$ac_tmp/stdin";;
31062       *) # Look for the file first in the build tree, then in the source tree
31063          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31064          # because $ac_f cannot contain `:'.
31065          test -f "$ac_f" ||
31066            case $ac_f in
31067            [\\/$]*) false;;
31068            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31069            esac ||
31070            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31071       esac
31072       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31073       as_fn_append ac_file_inputs " '$ac_f'"
31074     done
31075
31076     # Let's still pretend it is `configure' which instantiates (i.e., don't
31077     # use $as_me), people would be surprised to read:
31078     #    /* config.h.  Generated by config.status.  */
31079     configure_input='Generated from '`
31080           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31081         `' by configure.'
31082     if test x"$ac_file" != x-; then
31083       configure_input="$ac_file.  $configure_input"
31084       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31085 $as_echo "$as_me: creating $ac_file" >&6;}
31086     fi
31087     # Neutralize special characters interpreted by sed in replacement strings.
31088     case $configure_input in #(
31089     *\&* | *\|* | *\\* )
31090        ac_sed_conf_input=`$as_echo "$configure_input" |
31091        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31092     *) ac_sed_conf_input=$configure_input;;
31093     esac
31094
31095     case $ac_tag in
31096     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31097       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31098     esac
31099     ;;
31100   esac
31101
31102   ac_dir=`$as_dirname -- "$ac_file" ||
31103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31104          X"$ac_file" : 'X\(//\)[^/]' \| \
31105          X"$ac_file" : 'X\(//\)$' \| \
31106          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31107 $as_echo X"$ac_file" |
31108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31109             s//\1/
31110             q
31111           }
31112           /^X\(\/\/\)[^/].*/{
31113             s//\1/
31114             q
31115           }
31116           /^X\(\/\/\)$/{
31117             s//\1/
31118             q
31119           }
31120           /^X\(\/\).*/{
31121             s//\1/
31122             q
31123           }
31124           s/.*/./; q'`
31125   as_dir="$ac_dir"; as_fn_mkdir_p
31126   ac_builddir=.
31127
31128 case "$ac_dir" in
31129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31130 *)
31131   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31132   # A ".." for each directory in $ac_dir_suffix.
31133   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31134   case $ac_top_builddir_sub in
31135   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31136   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31137   esac ;;
31138 esac
31139 ac_abs_top_builddir=$ac_pwd
31140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31141 # for backward compatibility:
31142 ac_top_builddir=$ac_top_build_prefix
31143
31144 case $srcdir in
31145   .)  # We are building in place.
31146     ac_srcdir=.
31147     ac_top_srcdir=$ac_top_builddir_sub
31148     ac_abs_top_srcdir=$ac_pwd ;;
31149   [\\/]* | ?:[\\/]* )  # Absolute name.
31150     ac_srcdir=$srcdir$ac_dir_suffix;
31151     ac_top_srcdir=$srcdir
31152     ac_abs_top_srcdir=$srcdir ;;
31153   *) # Relative name.
31154     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31155     ac_top_srcdir=$ac_top_build_prefix$srcdir
31156     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31157 esac
31158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31159
31160
31161   case $ac_mode in
31162   :F)
31163   #
31164   # CONFIG_FILE
31165   #
31166
31167   case $INSTALL in
31168   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31169   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31170   esac
31171 _ACEOF
31172
31173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31174 # If the template does not know about datarootdir, expand it.
31175 # FIXME: This hack should be removed a few years after 2.60.
31176 ac_datarootdir_hack=; ac_datarootdir_seen=
31177 ac_sed_dataroot='
31178 /datarootdir/ {
31179   p
31180   q
31181 }
31182 /@datadir@/p
31183 /@docdir@/p
31184 /@infodir@/p
31185 /@localedir@/p
31186 /@mandir@/p'
31187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31188 *datarootdir*) ac_datarootdir_seen=yes;;
31189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31190   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31192 _ACEOF
31193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31194   ac_datarootdir_hack='
31195   s&@datadir@&$datadir&g
31196   s&@docdir@&$docdir&g
31197   s&@infodir@&$infodir&g
31198   s&@localedir@&$localedir&g
31199   s&@mandir@&$mandir&g
31200   s&\\\${datarootdir}&$datarootdir&g' ;;
31201 esac
31202 _ACEOF
31203
31204 # Neutralize VPATH when `$srcdir' = `.'.
31205 # Shell code in configure.ac might set extrasub.
31206 # FIXME: do we really want to maintain this feature?
31207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31208 ac_sed_extra="$ac_vpsub
31209 $extrasub
31210 _ACEOF
31211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31212 :t
31213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31214 s|@configure_input@|$ac_sed_conf_input|;t t
31215 s&@top_builddir@&$ac_top_builddir_sub&;t t
31216 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31217 s&@srcdir@&$ac_srcdir&;t t
31218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31219 s&@top_srcdir@&$ac_top_srcdir&;t t
31220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31221 s&@builddir@&$ac_builddir&;t t
31222 s&@abs_builddir@&$ac_abs_builddir&;t t
31223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31224 s&@INSTALL@&$ac_INSTALL&;t t
31225 $ac_datarootdir_hack
31226 "
31227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31228 if $ac_cs_awk_getline; then
31229   $AWK -f "$ac_tmp/subs.awk"
31230 else
31231   $AWK -f "$ac_tmp/subs.awk" | $SHELL
31232 fi \
31233   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31234
31235 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31236   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31237   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31238       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31239   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31240 which seems to be undefined.  Please make sure it is defined" >&5
31241 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31242 which seems to be undefined.  Please make sure it is defined" >&2;}
31243
31244   rm -f "$ac_tmp/stdin"
31245   case $ac_file in
31246   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31247   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31248   esac \
31249   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31250  ;;
31251   :H)
31252   #
31253   # CONFIG_HEADER
31254   #
31255   if test x"$ac_file" != x-; then
31256     {
31257       $as_echo "/* $configure_input  */" \
31258       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31259     } >"$ac_tmp/config.h" \
31260       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31261     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31262       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31263 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31264     else
31265       rm -f "$ac_file"
31266       mv "$ac_tmp/config.h" "$ac_file" \
31267         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31268     fi
31269   else
31270     $as_echo "/* $configure_input  */" \
31271       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31272       || as_fn_error $? "could not create -" "$LINENO" 5
31273   fi
31274  ;;
31275
31276   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31277 $as_echo "$as_me: executing $ac_file commands" >&6;}
31278  ;;
31279   esac
31280
31281
31282   case $ac_file$ac_mode in
31283     "libtool":C)
31284
31285     # See if we are running on zsh, and set the options which allow our
31286     # commands through without removal of \ escapes.
31287     if test -n "${ZSH_VERSION+set}" ; then
31288       setopt NO_GLOB_SUBST
31289     fi
31290
31291     cfgfile="${ofile}T"
31292     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31293     $RM "$cfgfile"
31294
31295     cat <<_LT_EOF >> "$cfgfile"
31296 #! $SHELL
31297
31298 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31299 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31301 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31302 #
31303 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31304 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31305 #   Written by Gordon Matzigkeit, 1996
31306 #
31307 #   This file is part of GNU Libtool.
31308 #
31309 # GNU Libtool is free software; you can redistribute it and/or
31310 # modify it under the terms of the GNU General Public License as
31311 # published by the Free Software Foundation; either version 2 of
31312 # the License, or (at your option) any later version.
31313 #
31314 # As a special exception to the GNU General Public License,
31315 # if you distribute this file as part of a program or library that
31316 # is built using GNU Libtool, you may include this file under the
31317 # same distribution terms that you use for the rest of that program.
31318 #
31319 # GNU Libtool is distributed in the hope that it will be useful,
31320 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31321 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31322 # GNU General Public License for more details.
31323 #
31324 # You should have received a copy of the GNU General Public License
31325 # along with GNU Libtool; see the file COPYING.  If not, a copy
31326 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31327 # obtained by writing to the Free Software Foundation, Inc.,
31328 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31329
31330
31331 # The names of the tagged configurations supported by this script.
31332 available_tags="CXX "
31333
31334 # ### BEGIN LIBTOOL CONFIG
31335
31336 # Which release of libtool.m4 was used?
31337 macro_version=$macro_version
31338 macro_revision=$macro_revision
31339
31340 # Whether or not to build shared libraries.
31341 build_libtool_libs=$enable_shared
31342
31343 # Whether or not to build static libraries.
31344 build_old_libs=$enable_static
31345
31346 # What type of objects to build.
31347 pic_mode=$pic_mode
31348
31349 # Whether or not to optimize for fast installation.
31350 fast_install=$enable_fast_install
31351
31352 # The host system.
31353 host_alias=$host_alias
31354 host=$host
31355 host_os=$host_os
31356
31357 # The build system.
31358 build_alias=$build_alias
31359 build=$build
31360 build_os=$build_os
31361
31362 # A sed program that does not truncate output.
31363 SED=$lt_SED
31364
31365 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31366 Xsed="\$SED -e 1s/^X//"
31367
31368 # A grep program that handles long lines.
31369 GREP=$lt_GREP
31370
31371 # An ERE matcher.
31372 EGREP=$lt_EGREP
31373
31374 # A literal string matcher.
31375 FGREP=$lt_FGREP
31376
31377 # A BSD- or MS-compatible name lister.
31378 NM=$lt_NM
31379
31380 # Whether we need soft or hard links.
31381 LN_S=$lt_LN_S
31382
31383 # What is the maximum length of a command?
31384 max_cmd_len=$max_cmd_len
31385
31386 # Object file suffix (normally "o").
31387 objext=$ac_objext
31388
31389 # Executable file suffix (normally "").
31390 exeext=$exeext
31391
31392 # whether the shell understands "unset".
31393 lt_unset=$lt_unset
31394
31395 # turn spaces into newlines.
31396 SP2NL=$lt_lt_SP2NL
31397
31398 # turn newlines into spaces.
31399 NL2SP=$lt_lt_NL2SP
31400
31401 # How to create reloadable object files.
31402 reload_flag=$lt_reload_flag
31403 reload_cmds=$lt_reload_cmds
31404
31405 # An object symbol dumper.
31406 OBJDUMP=$lt_OBJDUMP
31407
31408 # Method to check whether dependent libraries are shared objects.
31409 deplibs_check_method=$lt_deplibs_check_method
31410
31411 # Command to use when deplibs_check_method == "file_magic".
31412 file_magic_cmd=$lt_file_magic_cmd
31413
31414 # The archiver.
31415 AR=$lt_AR
31416 AR_FLAGS=$lt_AR_FLAGS
31417
31418 # A symbol stripping program.
31419 STRIP=$lt_STRIP
31420
31421 # Commands used to install an old-style archive.
31422 RANLIB=$lt_RANLIB
31423 old_postinstall_cmds=$lt_old_postinstall_cmds
31424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31425
31426 # A C compiler.
31427 LTCC=$lt_CC
31428
31429 # LTCC compiler flags.
31430 LTCFLAGS=$lt_CFLAGS
31431
31432 # Take the output of nm and produce a listing of raw symbols and C names.
31433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31434
31435 # Transform the output of nm in a proper C declaration.
31436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31437
31438 # Transform the output of nm in a C name address pair.
31439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31440
31441 # Transform the output of nm in a C name address pair when lib prefix is needed.
31442 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31443
31444 # The name of the directory that contains temporary libtool files.
31445 objdir=$objdir
31446
31447 # Shell to use when invoking shell scripts.
31448 SHELL=$lt_SHELL
31449
31450 # An echo program that does not interpret backslashes.
31451 ECHO=$lt_ECHO
31452
31453 # Used to examine libraries when file_magic_cmd begins with "file".
31454 MAGIC_CMD=$MAGIC_CMD
31455
31456 # Must we lock files when doing compilation?
31457 need_locks=$lt_need_locks
31458
31459 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31460 DSYMUTIL=$lt_DSYMUTIL
31461
31462 # Tool to change global to local symbols on Mac OS X.
31463 NMEDIT=$lt_NMEDIT
31464
31465 # Tool to manipulate fat objects and archives on Mac OS X.
31466 LIPO=$lt_LIPO
31467
31468 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31469 OTOOL=$lt_OTOOL
31470
31471 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31472 OTOOL64=$lt_OTOOL64
31473
31474 # Old archive suffix (normally "a").
31475 libext=$libext
31476
31477 # Shared library suffix (normally ".so").
31478 shrext_cmds=$lt_shrext_cmds
31479
31480 # The commands to extract the exported symbol list from a shared archive.
31481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31482
31483 # Variables whose values should be saved in libtool wrapper scripts and
31484 # restored at link time.
31485 variables_saved_for_relink=$lt_variables_saved_for_relink
31486
31487 # Do we need the "lib" prefix for modules?
31488 need_lib_prefix=$need_lib_prefix
31489
31490 # Do we need a version for libraries?
31491 need_version=$need_version
31492
31493 # Library versioning type.
31494 version_type=$version_type
31495
31496 # Shared library runtime path variable.
31497 runpath_var=$runpath_var
31498
31499 # Shared library path variable.
31500 shlibpath_var=$shlibpath_var
31501
31502 # Is shlibpath searched before the hard-coded library search path?
31503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31504
31505 # Format of library name prefix.
31506 libname_spec=$lt_libname_spec
31507
31508 # List of archive names.  First name is the real one, the rest are links.
31509 # The last name is the one that the linker finds with -lNAME
31510 library_names_spec=$lt_library_names_spec
31511
31512 # The coded name of the library, if different from the real name.
31513 soname_spec=$lt_soname_spec
31514
31515 # Command to use after installation of a shared archive.
31516 postinstall_cmds=$lt_postinstall_cmds
31517
31518 # Command to use after uninstallation of a shared archive.
31519 postuninstall_cmds=$lt_postuninstall_cmds
31520
31521 # Commands used to finish a libtool library installation in a directory.
31522 finish_cmds=$lt_finish_cmds
31523
31524 # As "finish_cmds", except a single script fragment to be evaled but
31525 # not shown.
31526 finish_eval=$lt_finish_eval
31527
31528 # Whether we should hardcode library paths into libraries.
31529 hardcode_into_libs=$hardcode_into_libs
31530
31531 # Compile-time system search path for libraries.
31532 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31533
31534 # Run-time system search path for libraries.
31535 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31536
31537 # Whether dlopen is supported.
31538 dlopen_support=$enable_dlopen
31539
31540 # Whether dlopen of programs is supported.
31541 dlopen_self=$enable_dlopen_self
31542
31543 # Whether dlopen of statically linked programs is supported.
31544 dlopen_self_static=$enable_dlopen_self_static
31545
31546 # Commands to strip libraries.
31547 old_striplib=$lt_old_striplib
31548 striplib=$lt_striplib
31549
31550
31551 # The linker used to build libraries.
31552 LD=$lt_LD
31553
31554 # Commands used to build an old-style archive.
31555 old_archive_cmds=$lt_old_archive_cmds
31556
31557 # A language specific compiler.
31558 CC=$lt_compiler
31559
31560 # Is the compiler the GNU compiler?
31561 with_gcc=$GCC
31562
31563 # Compiler flag to turn off builtin functions.
31564 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31565
31566 # How to pass a linker flag through the compiler.
31567 wl=$lt_lt_prog_compiler_wl
31568
31569 # Additional compiler flags for building library objects.
31570 pic_flag=$lt_lt_prog_compiler_pic
31571
31572 # Compiler flag to prevent dynamic linking.
31573 link_static_flag=$lt_lt_prog_compiler_static
31574
31575 # Does compiler simultaneously support -c and -o options?
31576 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31577
31578 # Whether or not to add -lc for building shared libraries.
31579 build_libtool_need_lc=$archive_cmds_need_lc
31580
31581 # Whether or not to disallow shared libs when runtime libs are static.
31582 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31583
31584 # Compiler flag to allow reflexive dlopens.
31585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31586
31587 # Compiler flag to generate shared objects directly from archives.
31588 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31589
31590 # Whether the compiler copes with passing no objects directly.
31591 compiler_needs_object=$lt_compiler_needs_object
31592
31593 # Create an old-style archive from a shared archive.
31594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31595
31596 # Create a temporary old-style archive to link instead of a shared archive.
31597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31598
31599 # Commands used to build a shared archive.
31600 archive_cmds=$lt_archive_cmds
31601 archive_expsym_cmds=$lt_archive_expsym_cmds
31602
31603 # Commands used to build a loadable module if different from building
31604 # a shared archive.
31605 module_cmds=$lt_module_cmds
31606 module_expsym_cmds=$lt_module_expsym_cmds
31607
31608 # Whether we are building with GNU ld or not.
31609 with_gnu_ld=$lt_with_gnu_ld
31610
31611 # Flag that allows shared libraries with undefined symbols to be built.
31612 allow_undefined_flag=$lt_allow_undefined_flag
31613
31614 # Flag that enforces no undefined symbols.
31615 no_undefined_flag=$lt_no_undefined_flag
31616
31617 # Flag to hardcode \$libdir into a binary during linking.
31618 # This must work even if \$libdir does not exist
31619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31620
31621 # If ld is used when linking, flag to hardcode \$libdir into a binary
31622 # during linking.  This must work even if \$libdir does not exist.
31623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31624
31625 # Whether we need a single "-rpath" flag with a separated argument.
31626 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31627
31628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31629 # DIR into the resulting binary.
31630 hardcode_direct=$hardcode_direct
31631
31632 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31633 # DIR into the resulting binary and the resulting library dependency is
31634 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31635 # library is relocated.
31636 hardcode_direct_absolute=$hardcode_direct_absolute
31637
31638 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31639 # into the resulting binary.
31640 hardcode_minus_L=$hardcode_minus_L
31641
31642 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31643 # into the resulting binary.
31644 hardcode_shlibpath_var=$hardcode_shlibpath_var
31645
31646 # Set to "yes" if building a shared library automatically hardcodes DIR
31647 # into the library and all subsequent libraries and executables linked
31648 # against it.
31649 hardcode_automatic=$hardcode_automatic
31650
31651 # Set to yes if linker adds runtime paths of dependent libraries
31652 # to runtime path list.
31653 inherit_rpath=$inherit_rpath
31654
31655 # Whether libtool must link a program against all its dependency libraries.
31656 link_all_deplibs=$link_all_deplibs
31657
31658 # Fix the shell variable \$srcfile for the compiler.
31659 fix_srcfile_path=$lt_fix_srcfile_path
31660
31661 # Set to "yes" if exported symbols are required.
31662 always_export_symbols=$always_export_symbols
31663
31664 # The commands to list exported symbols.
31665 export_symbols_cmds=$lt_export_symbols_cmds
31666
31667 # Symbols that should not be listed in the preloaded symbols.
31668 exclude_expsyms=$lt_exclude_expsyms
31669
31670 # Symbols that must always be exported.
31671 include_expsyms=$lt_include_expsyms
31672
31673 # Commands necessary for linking programs (against libraries) with templates.
31674 prelink_cmds=$lt_prelink_cmds
31675
31676 # Specify filename containing input files.
31677 file_list_spec=$lt_file_list_spec
31678
31679 # How to hardcode a shared library path into an executable.
31680 hardcode_action=$hardcode_action
31681
31682 # The directories searched by this compiler when creating a shared library.
31683 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31684
31685 # Dependencies to place before and after the objects being linked to
31686 # create a shared library.
31687 predep_objects=$lt_predep_objects
31688 postdep_objects=$lt_postdep_objects
31689 predeps=$lt_predeps
31690 postdeps=$lt_postdeps
31691
31692 # The library search path used internally by the compiler when linking
31693 # a shared library.
31694 compiler_lib_search_path=$lt_compiler_lib_search_path
31695
31696 # ### END LIBTOOL CONFIG
31697
31698 _LT_EOF
31699
31700   case $host_os in
31701   aix3*)
31702     cat <<\_LT_EOF >> "$cfgfile"
31703 # AIX sometimes has problems with the GCC collect2 program.  For some
31704 # reason, if we set the COLLECT_NAMES environment variable, the problems
31705 # vanish in a puff of smoke.
31706 if test "X${COLLECT_NAMES+set}" != Xset; then
31707   COLLECT_NAMES=
31708   export COLLECT_NAMES
31709 fi
31710 _LT_EOF
31711     ;;
31712   esac
31713
31714
31715 ltmain="$ac_aux_dir/ltmain.sh"
31716
31717
31718   # We use sed instead of cat because bash on DJGPP gets confused if
31719   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31720   # text mode, it properly converts lines to CR/LF.  This bash problem
31721   # is reportedly fixed, but why not run on old versions too?
31722   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31723     || (rm -f "$cfgfile"; exit 1)
31724
31725   case $xsi_shell in
31726   yes)
31727     cat << \_LT_EOF >> "$cfgfile"
31728
31729 # func_dirname file append nondir_replacement
31730 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31731 # otherwise set result to NONDIR_REPLACEMENT.
31732 func_dirname ()
31733 {
31734   case ${1} in
31735     */*) func_dirname_result="${1%/*}${2}" ;;
31736     *  ) func_dirname_result="${3}" ;;
31737   esac
31738 }
31739
31740 # func_basename file
31741 func_basename ()
31742 {
31743   func_basename_result="${1##*/}"
31744 }
31745
31746 # func_dirname_and_basename file append nondir_replacement
31747 # perform func_basename and func_dirname in a single function
31748 # call:
31749 #   dirname:  Compute the dirname of FILE.  If nonempty,
31750 #             add APPEND to the result, otherwise set result
31751 #             to NONDIR_REPLACEMENT.
31752 #             value returned in "$func_dirname_result"
31753 #   basename: Compute filename of FILE.
31754 #             value retuned in "$func_basename_result"
31755 # Implementation must be kept synchronized with func_dirname
31756 # and func_basename. For efficiency, we do not delegate to
31757 # those functions but instead duplicate the functionality here.
31758 func_dirname_and_basename ()
31759 {
31760   case ${1} in
31761     */*) func_dirname_result="${1%/*}${2}" ;;
31762     *  ) func_dirname_result="${3}" ;;
31763   esac
31764   func_basename_result="${1##*/}"
31765 }
31766
31767 # func_stripname prefix suffix name
31768 # strip PREFIX and SUFFIX off of NAME.
31769 # PREFIX and SUFFIX must not contain globbing or regex special
31770 # characters, hashes, percent signs, but SUFFIX may contain a leading
31771 # dot (in which case that matches only a dot).
31772 func_stripname ()
31773 {
31774   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31775   # positional parameters, so assign one to ordinary parameter first.
31776   func_stripname_result=${3}
31777   func_stripname_result=${func_stripname_result#"${1}"}
31778   func_stripname_result=${func_stripname_result%"${2}"}
31779 }
31780
31781 # func_opt_split
31782 func_opt_split ()
31783 {
31784   func_opt_split_opt=${1%%=*}
31785   func_opt_split_arg=${1#*=}
31786 }
31787
31788 # func_lo2o object
31789 func_lo2o ()
31790 {
31791   case ${1} in
31792     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31793     *)    func_lo2o_result=${1} ;;
31794   esac
31795 }
31796
31797 # func_xform libobj-or-source
31798 func_xform ()
31799 {
31800   func_xform_result=${1%.*}.lo
31801 }
31802
31803 # func_arith arithmetic-term...
31804 func_arith ()
31805 {
31806   func_arith_result=$(( $* ))
31807 }
31808
31809 # func_len string
31810 # STRING may not start with a hyphen.
31811 func_len ()
31812 {
31813   func_len_result=${#1}
31814 }
31815
31816 _LT_EOF
31817     ;;
31818   *) # Bourne compatible functions.
31819     cat << \_LT_EOF >> "$cfgfile"
31820
31821 # func_dirname file append nondir_replacement
31822 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31823 # otherwise set result to NONDIR_REPLACEMENT.
31824 func_dirname ()
31825 {
31826   # Extract subdirectory from the argument.
31827   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31828   if test "X$func_dirname_result" = "X${1}"; then
31829     func_dirname_result="${3}"
31830   else
31831     func_dirname_result="$func_dirname_result${2}"
31832   fi
31833 }
31834
31835 # func_basename file
31836 func_basename ()
31837 {
31838   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31839 }
31840
31841
31842 # func_stripname prefix suffix name
31843 # strip PREFIX and SUFFIX off of NAME.
31844 # PREFIX and SUFFIX must not contain globbing or regex special
31845 # characters, hashes, percent signs, but SUFFIX may contain a leading
31846 # dot (in which case that matches only a dot).
31847 # func_strip_suffix prefix name
31848 func_stripname ()
31849 {
31850   case ${2} in
31851     .*) func_stripname_result=`$ECHO "X${3}" \
31852            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31853     *)  func_stripname_result=`$ECHO "X${3}" \
31854            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31855   esac
31856 }
31857
31858 # sed scripts:
31859 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31860 my_sed_long_arg='1s/^-[^=]*=//'
31861
31862 # func_opt_split
31863 func_opt_split ()
31864 {
31865   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31866   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31867 }
31868
31869 # func_lo2o object
31870 func_lo2o ()
31871 {
31872   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31873 }
31874
31875 # func_xform libobj-or-source
31876 func_xform ()
31877 {
31878   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31879 }
31880
31881 # func_arith arithmetic-term...
31882 func_arith ()
31883 {
31884   func_arith_result=`expr "$@"`
31885 }
31886
31887 # func_len string
31888 # STRING may not start with a hyphen.
31889 func_len ()
31890 {
31891   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31892 }
31893
31894 _LT_EOF
31895 esac
31896
31897 case $lt_shell_append in
31898   yes)
31899     cat << \_LT_EOF >> "$cfgfile"
31900
31901 # func_append var value
31902 # Append VALUE to the end of shell variable VAR.
31903 func_append ()
31904 {
31905   eval "$1+=\$2"
31906 }
31907 _LT_EOF
31908     ;;
31909   *)
31910     cat << \_LT_EOF >> "$cfgfile"
31911
31912 # func_append var value
31913 # Append VALUE to the end of shell variable VAR.
31914 func_append ()
31915 {
31916   eval "$1=\$$1\$2"
31917 }
31918
31919 _LT_EOF
31920     ;;
31921   esac
31922
31923
31924   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31925     || (rm -f "$cfgfile"; exit 1)
31926
31927   mv -f "$cfgfile" "$ofile" ||
31928     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31929   chmod +x "$ofile"
31930
31931
31932     cat <<_LT_EOF >> "$ofile"
31933
31934 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31935
31936 # The linker used to build libraries.
31937 LD=$lt_LD_CXX
31938
31939 # Commands used to build an old-style archive.
31940 old_archive_cmds=$lt_old_archive_cmds_CXX
31941
31942 # A language specific compiler.
31943 CC=$lt_compiler_CXX
31944
31945 # Is the compiler the GNU compiler?
31946 with_gcc=$GCC_CXX
31947
31948 # Compiler flag to turn off builtin functions.
31949 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31950
31951 # How to pass a linker flag through the compiler.
31952 wl=$lt_lt_prog_compiler_wl_CXX
31953
31954 # Additional compiler flags for building library objects.
31955 pic_flag=$lt_lt_prog_compiler_pic_CXX
31956
31957 # Compiler flag to prevent dynamic linking.
31958 link_static_flag=$lt_lt_prog_compiler_static_CXX
31959
31960 # Does compiler simultaneously support -c and -o options?
31961 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31962
31963 # Whether or not to add -lc for building shared libraries.
31964 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31965
31966 # Whether or not to disallow shared libs when runtime libs are static.
31967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31968
31969 # Compiler flag to allow reflexive dlopens.
31970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31971
31972 # Compiler flag to generate shared objects directly from archives.
31973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31974
31975 # Whether the compiler copes with passing no objects directly.
31976 compiler_needs_object=$lt_compiler_needs_object_CXX
31977
31978 # Create an old-style archive from a shared archive.
31979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31980
31981 # Create a temporary old-style archive to link instead of a shared archive.
31982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31983
31984 # Commands used to build a shared archive.
31985 archive_cmds=$lt_archive_cmds_CXX
31986 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31987
31988 # Commands used to build a loadable module if different from building
31989 # a shared archive.
31990 module_cmds=$lt_module_cmds_CXX
31991 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31992
31993 # Whether we are building with GNU ld or not.
31994 with_gnu_ld=$lt_with_gnu_ld_CXX
31995
31996 # Flag that allows shared libraries with undefined symbols to be built.
31997 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31998
31999 # Flag that enforces no undefined symbols.
32000 no_undefined_flag=$lt_no_undefined_flag_CXX
32001
32002 # Flag to hardcode \$libdir into a binary during linking.
32003 # This must work even if \$libdir does not exist
32004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32005
32006 # If ld is used when linking, flag to hardcode \$libdir into a binary
32007 # during linking.  This must work even if \$libdir does not exist.
32008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32009
32010 # Whether we need a single "-rpath" flag with a separated argument.
32011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32012
32013 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32014 # DIR into the resulting binary.
32015 hardcode_direct=$hardcode_direct_CXX
32016
32017 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32018 # DIR into the resulting binary and the resulting library dependency is
32019 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32020 # library is relocated.
32021 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32022
32023 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32024 # into the resulting binary.
32025 hardcode_minus_L=$hardcode_minus_L_CXX
32026
32027 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32028 # into the resulting binary.
32029 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32030
32031 # Set to "yes" if building a shared library automatically hardcodes DIR
32032 # into the library and all subsequent libraries and executables linked
32033 # against it.
32034 hardcode_automatic=$hardcode_automatic_CXX
32035
32036 # Set to yes if linker adds runtime paths of dependent libraries
32037 # to runtime path list.
32038 inherit_rpath=$inherit_rpath_CXX
32039
32040 # Whether libtool must link a program against all its dependency libraries.
32041 link_all_deplibs=$link_all_deplibs_CXX
32042
32043 # Fix the shell variable \$srcfile for the compiler.
32044 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32045
32046 # Set to "yes" if exported symbols are required.
32047 always_export_symbols=$always_export_symbols_CXX
32048
32049 # The commands to list exported symbols.
32050 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32051
32052 # Symbols that should not be listed in the preloaded symbols.
32053 exclude_expsyms=$lt_exclude_expsyms_CXX
32054
32055 # Symbols that must always be exported.
32056 include_expsyms=$lt_include_expsyms_CXX
32057
32058 # Commands necessary for linking programs (against libraries) with templates.
32059 prelink_cmds=$lt_prelink_cmds_CXX
32060
32061 # Specify filename containing input files.
32062 file_list_spec=$lt_file_list_spec_CXX
32063
32064 # How to hardcode a shared library path into an executable.
32065 hardcode_action=$hardcode_action_CXX
32066
32067 # The directories searched by this compiler when creating a shared library.
32068 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32069
32070 # Dependencies to place before and after the objects being linked to
32071 # create a shared library.
32072 predep_objects=$lt_predep_objects_CXX
32073 postdep_objects=$lt_postdep_objects_CXX
32074 predeps=$lt_predeps_CXX
32075 postdeps=$lt_postdeps_CXX
32076
32077 # The library search path used internally by the compiler when linking
32078 # a shared library.
32079 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32080
32081 # ### END LIBTOOL TAG CONFIG: CXX
32082 _LT_EOF
32083
32084  ;;
32085     "default-1":C)
32086     for ac_file in $CONFIG_FILES; do
32087       # Support "outfile[:infile[:infile...]]"
32088       case "$ac_file" in
32089         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32090       esac
32091       # PO directories have a Makefile.in generated from Makefile.in.in.
32092       case "$ac_file" in */Makefile.in)
32093         # Adjust a relative srcdir.
32094         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32095         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32096         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32097         # In autoconf-2.13 it is called $ac_given_srcdir.
32098         # In autoconf-2.50 it is called $srcdir.
32099         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32100         case "$ac_given_srcdir" in
32101           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32102           /*) top_srcdir="$ac_given_srcdir" ;;
32103           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32104         esac
32105         # Treat a directory as a PO directory if and only if it has a
32106         # POTFILES.in file. This allows packages to have multiple PO
32107         # directories under different names or in different locations.
32108         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32109           rm -f "$ac_dir/POTFILES"
32110           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32111           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32112           POMAKEFILEDEPS="POTFILES.in"
32113           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32114           # on $ac_dir but don't depend on user-specified configuration
32115           # parameters.
32116           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32117             # The LINGUAS file contains the set of available languages.
32118             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32119               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32120             fi
32121             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32122             # Hide the ALL_LINGUAS assigment from automake.
32123             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32124             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32125           else
32126             # The set of available languages was given in configure.in.
32127             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32128           fi
32129           # Compute POFILES
32130           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32131           # Compute UPDATEPOFILES
32132           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32133           # Compute DUMMYPOFILES
32134           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32135           # Compute GMOFILES
32136           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32137           case "$ac_given_srcdir" in
32138             .) srcdirpre= ;;
32139             *) srcdirpre='$(srcdir)/' ;;
32140           esac
32141           POFILES=
32142           UPDATEPOFILES=
32143           DUMMYPOFILES=
32144           GMOFILES=
32145           for lang in $ALL_LINGUAS; do
32146             POFILES="$POFILES $srcdirpre$lang.po"
32147             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32148             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32149             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32150           done
32151           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32152           # environment variable.
32153           INST_LINGUAS=
32154           if test -n "$ALL_LINGUAS"; then
32155             for presentlang in $ALL_LINGUAS; do
32156               useit=no
32157               if test "%UNSET%" != "$LINGUAS"; then
32158                 desiredlanguages="$LINGUAS"
32159               else
32160                 desiredlanguages="$ALL_LINGUAS"
32161               fi
32162               for desiredlang in $desiredlanguages; do
32163                 # Use the presentlang catalog if desiredlang is
32164                 #   a. equal to presentlang, or
32165                 #   b. a variant of presentlang (because in this case,
32166                 #      presentlang can be used as a fallback for messages
32167                 #      which are not translated in the desiredlang catalog).
32168                 case "$desiredlang" in
32169                   "$presentlang"*) useit=yes;;
32170                 esac
32171               done
32172               if test $useit = yes; then
32173                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32174               fi
32175             done
32176           fi
32177           CATALOGS=
32178           if test -n "$INST_LINGUAS"; then
32179             for lang in $INST_LINGUAS; do
32180               CATALOGS="$CATALOGS $lang.gmo"
32181             done
32182           fi
32183           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32184           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32185           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32186             if test -f "$f"; then
32187               case "$f" in
32188                 *.orig | *.bak | *~) ;;
32189                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32190               esac
32191             fi
32192           done
32193         fi
32194         ;;
32195       esac
32196     done ;;
32197     "default":C)
32198  ;;
32199
32200   esac
32201 done # for ac_tag
32202
32203
32204 as_fn_exit 0
32205 _ACEOF
32206 ac_clean_files=$ac_clean_files_save
32207
32208 test $ac_write_fail = 0 ||
32209   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32210
32211
32212 # configure is writing to config.log, and then calls config.status.
32213 # config.status does its own redirection, appending to config.log.
32214 # Unfortunately, on DOS this fails, as config.log is still kept open
32215 # by configure, so config.status won't be able to write to it; its
32216 # output is simply discarded.  So we exec the FD to /dev/null,
32217 # effectively closing config.log, so it can be properly (re)opened and
32218 # appended to by config.status.  When coming back to configure, we
32219 # need to make the FD available again.
32220 if test "$no_create" != yes; then
32221   ac_cs_success=:
32222   ac_config_status_args=
32223   test "$silent" = yes &&
32224     ac_config_status_args="$ac_config_status_args --quiet"
32225   exec 5>/dev/null
32226   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32227   exec 5>>config.log
32228   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32229   # would make configure fail if this is the last instruction.
32230   $ac_cs_success || as_fn_exit 1
32231 fi
32232 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32233   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32234 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32235 fi
32236
32237
32238 if test "${support_bat}" = "yes" ; then
32239    if test "x$QMAKE" = "xnone"; then
32240       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32241    fi
32242
32243    cd src/qt-console
32244    echo "Creating bat Makefile"
32245    touch bat
32246    chmod 755 bat
32247    rm -f Makefile
32248    $QMAKE
32249    ${MAKE:-make} clean
32250    cd ${BUILD_DIR}
32251 fi
32252
32253 if test X"$GCC" = "Xyes" ; then
32254   echo "Doing make of dependencies"
32255   ${MAKE:-make} depend
32256 fi
32257
32258 cd src/qt-console
32259 chmod 755 install_conf_file build-depkgs-qt-console
32260 cd ${BUILD_DIR}
32261
32262 cd scripts
32263 chmod 755 bacula btraceback mtx-changer
32264 chmod 755 dvd-handler dvd-simulator
32265 chmod 755 bconsole mtx-changer devel_bacula logrotate
32266 cd ..
32267
32268 c=updatedb
32269 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32270 chmod 755 $c/update_postgresql_tables_10_to_11
32271 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32272 chmod 755 $c/update_postgresql_tables_11_to_12
32273
32274
32275 c=src/cats
32276
32277 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32278 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32279
32280 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32281 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32282
32283 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32284 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32285
32286 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32287 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32288
32289 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32290 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32291
32292
32293 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32294 chmod 755 $c/sqlite
32295 chmod 755 $c/mysql
32296
32297 chmod 755 src/win32/build-depkgs-mingw32
32298
32299 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32300    largefile_support="yes"
32301 fi
32302
32303 if test X"$GCC" = "Xyes" ; then
32304                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32305    if test "x${CCVERSION}" = "x" ; then
32306       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32307    fi
32308    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32309    if test x"${CXXVERSION}" = x ; then
32310       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32311    fi
32312 fi
32313
32314 # clean up any old junk
32315 echo " "
32316 echo "Cleaning up"
32317 echo " "
32318 ${MAKE:-make} clean
32319
32320 echo "
32321 Configuration on `date`:
32322
32323    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32324    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32325    Source code location:     ${srcdir}
32326    Install binaries:         ${sbindir}
32327    Install libraries:        ${libdir}
32328    Install config files:     ${sysconfdir}
32329    Scripts directory:        ${scriptdir}
32330    Archive directory:        ${archivedir}
32331    Working directory:        ${working_dir}
32332    PID directory:            ${piddir}
32333    Subsys directory:         ${subsysdir}
32334    Man directory:            ${mandir}
32335    Data directory:           ${datarootdir}
32336    Plugin directory:         ${plugindir}
32337    C Compiler:               ${CC} ${CCVERSION}
32338    C++ Compiler:             ${CXX} ${CXXVERSION}
32339    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32340    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32341    Libraries:                ${LIBS}
32342    Statically Linked Tools:  ${support_static_tools}
32343    Statically Linked FD:     ${support_static_fd}
32344    Statically Linked SD:     ${support_static_sd}
32345    Statically Linked DIR:    ${support_static_dir}
32346    Statically Linked CONS:   ${support_static_cons}
32347    Database backends:        ${db_backends}
32348    Database port:            ${db_port}
32349    Database name:            ${db_name}
32350    Database user:            ${db_user}
32351
32352    Job Output Email:         ${job_email}
32353    Traceback Email:          ${dump_email}
32354    SMTP Host Address:        ${smtp_host}
32355
32356    Director Port:            ${dir_port}
32357    File daemon Port:         ${fd_port}
32358    Storage daemon Port:      ${sd_port}
32359
32360    Director User:            ${dir_user}
32361    Director Group:           ${dir_group}
32362    Storage Daemon User:      ${sd_user}
32363    Storage DaemonGroup:      ${sd_group}
32364    File Daemon User:         ${fd_user}
32365    File Daemon Group:        ${fd_group}
32366
32367    Large file support:      $largefile_support
32368    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32369    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32370    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32371    TLS support:             ${support_tls}
32372    Encryption support:      ${support_crypto}
32373    ZLIB support:            ${have_zlib}
32374    enable-smartalloc:       ${support_smartalloc}
32375    enable-lockmgr:          ${support_lockmgr}
32376    bat support:             ${support_bat}
32377    enable-gnome:            ${support_gnome} ${gnome_version}
32378    enable-bwx-console:      ${support_wx_console} ${wx_version}
32379    enable-tray-monitor:     ${support_tray_monitor}
32380    client-only:             ${build_client_only}
32381    build-dird:              ${build_dird}
32382    build-stored:            ${build_stored}
32383    Plugin support:          ${have_plugins}
32384    AFS support:             ${have_afs}
32385    ACL support:             ${have_acl}
32386    XATTR support:           ${have_xattr}
32387    Python support:          ${support_python} ${PYTHON_LIBS}
32388    Batch insert enabled:    ${support_batch_insert}
32389
32390   " > config.out
32391
32392 # create a small shell script useful for support with
32393 # configure options and config.out info
32394 cat > scripts/bacula_config << EOF
32395 #!/bin/sh
32396 cat << __EOC__
32397 $ $0 $ac_configure_args
32398 EOF
32399 cat config.out >> scripts/bacula_config
32400 echo __EOC__ >> scripts/bacula_config
32401 chmod 755 scripts/bacula_config
32402
32403 cat config.out