]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.7.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='9.0.7'
591 PACKAGE_STRING='bacula 9.0.7'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='LTLIBOBJS
634 COMPRESS_MANPAGES
635 DISTVER
636 DISTNAME
637 MACOSX
638 WIN32
639 PSCMD
640 TAPEDRIVE
641 SYSTEMD_UNITDIR
642 OBJLIST
643 WRAPLIBS
644 WLDFLAGS
645 WCFLAGS
646 DLIB
647 DINCLUDE
648 DEBUG
649 FDLIBS
650 CAP_LIBS
651 LZO_LIBS
652 LZO_INC
653 AFS_LIBS
654 AFS_CFLAGS
655 ZLIBS
656 S3_LIBS
657 S3_INC
658 LIBOBJS
659 X_EXTRA_LIBS
660 X_LIBS
661 X_PRE_LIBS
662 X_CFLAGS
663 XMKMF
664 GETCONF
665 SHARED_CATALOG_TARGETS
666 DEFAULT_DB_TYPE
667 DB_LIBS
668 DB_BACKENDS
669 uncomment_dbi
670 SQLITE_BINDIR
671 SQLITE_INCLUDE
672 SQLITE_LIBS
673 MYSQL_BINDIR
674 MYSQL_INCLUDE
675 MYSQL_LIBS
676 POSTGRESQL_BINDIR
677 POSTGRESQL_INCLUDE
678 POSTGRESQL_LIBS
679 SBINPERM
680 fd_group
681 fd_user
682 sd_group
683 sd_user
684 dir_group
685 dir_user
686 db_ssl_options
687 db_port
688 db_password
689 db_user
690 db_name
691 mon_sd_password
692 mon_fd_password
693 mon_dir_password
694 sd_password
695 fd_password
696 dir_password
697 sd_port
698 fd_port
699 dir_port
700 baseport
701 subsysdir
702 piddir
703 smtp_host
704 job_email
705 dump_email
706 plugindir
707 logdir
708 bsrdir
709 scriptdir
710 hostname
711 basename
712 archivedir
713 working_dir
714 OPENSSL_INC
715 OPENSSL_LIBS
716 READLINE_SRC
717 CONS_LDFLAGS
718 CONS_LIBS
719 CONS_SRC
720 CONS_OBJ
721 CONS_INC
722 STORED_DIR
723 DIR_TOOLS
724 DIRD_DIR
725 ALL_DIRS
726 STATIC_CONS
727 STATIC_DIR
728 STATIC_SD
729 STATIC_FD
730 TTOOL_LDFLAGS
731 QWT
732 QWT_LIB
733 QWT_LDFLAGS
734 QWT_INC
735 BAT_DIR
736 INTL_LIBTOOL_SUFFIX_PREFIX
737 INTLOBJS
738 GENCAT
739 INSTOBJEXT
740 DATADIRNAME
741 CATOBJEXT
742 USE_INCLUDED_LIBINTL
743 BUILD_INCLUDED_LIBINTL
744 INTLBISON
745 HAVE_WPRINTF
746 HAVE_SNPRINTF
747 HAVE_ASPRINTF
748 HAVE_POSIX_PRINTF
749 GLIBC21
750 ALLOCA
751 GLIBC2
752 POSUB
753 LTLIBINTL
754 LIBINTL
755 INTLLIBS
756 LTLIBICONV
757 LIBICONV
758 INTL_MACOSX_LIBS
759 MSGMERGE
760 XGETTEXT
761 GMSGFMT
762 MSGFMT
763 USE_NLS
764 MKINSTALLDIRS
765 SET_MAKE
766 HAVE_KFREEBSD_OS_FALSE
767 HAVE_KFREEBSD_OS_TRUE
768 HAVE_DARWIN_OS_FALSE
769 HAVE_DARWIN_OS_TRUE
770 HAVE_IRIX_OS_FALSE
771 HAVE_IRIX_OS_TRUE
772 HAVE_SGI_OS_FALSE
773 HAVE_SGI_OS_TRUE
774 HAVE_BSDI_OS_FALSE
775 HAVE_BSDI_OS_TRUE
776 HAVE_OPENBSD_OS_FALSE
777 HAVE_OPENBSD_OS_TRUE
778 HAVE_NETBSD_OS_FALSE
779 HAVE_NETBSD_OS_TRUE
780 HAVE_FREEBSD_OS_FALSE
781 HAVE_FREEBSD_OS_TRUE
782 HAVE_LINUX_OS_FALSE
783 HAVE_LINUX_OS_TRUE
784 HAVE_HPUX_OS_FALSE
785 HAVE_HPUX_OS_TRUE
786 HAVE_AIX_OS_FALSE
787 HAVE_AIX_OS_TRUE
788 HAVE_OSF1_OS_FALSE
789 HAVE_OSF1_OS_TRUE
790 HAVE_HURD_OS_FALSE
791 HAVE_HURD_OS_TRUE
792 HAVE_SUN_OS_FALSE
793 HAVE_SUN_OS_TRUE
794 INCLUDE_UNINSTALL_TARGET
795 INCLUDE_INSTALL_TARGET
796 FD_PLUGIN_DIR
797 QMAKE_LIBTOOL
798 LIBTOOL_CLEAN_TARGET
799 LIBTOOL_UNINSTALL_TARGET
800 LIBTOOL_INSTALL_TARGET
801 DEFAULT_SHARED_OBJECT_TYPE
802 DEFAULT_ARCHIVE_TYPE
803 DEFAULT_OBJECT_TYPE
804 LIBADD_DL
805 LT_DLPREOPEN
806 LIBADD_DLD_LINK
807 LIBADD_SHL_LOAD
808 LIBADD_DLOPEN
809 LT_DLLOADERS
810 CXXCPP
811 OTOOL64
812 OTOOL
813 LIPO
814 NMEDIT
815 DSYMUTIL
816 MANIFEST_TOOL
817 RANLIB
818 STRIP
819 ac_ct_AR
820 DLLTOOL
821 OBJDUMP
822 LN_S
823 NM
824 ac_ct_DUMPBIN
825 DUMPBIN
826 LD
827 FGREP
828 host_os
829 host_vendor
830 host_cpu
831 host
832 build_os
833 build_vendor
834 build_cpu
835 build
836 LIBTOOL
837 LOCAL_DEFS
838 LOCAL_LDFLAGS
839 LOCAL_CFLAGS
840 LOCAL_LIBS
841 MAKE_SHELL
842 ARFLAGS
843 AWK
844 PIDOF
845 GMAKE
846 QMAKE
847 PKGCONFIG
848 DVDRWFORMAT
849 DVDRWMEDIAINFO
850 GROWISOFS
851 PYTHON
852 MKISOFS
853 DD
854 MTX
855 OPENSSL
856 AR
857 TBL
858 CMP
859 ECHO
860 SED
861 CP
862 REMOVE
863 MV
864 INSTALL_DATA
865 INSTALL_SCRIPT
866 INSTALL_PROGRAM
867 EGREP
868 GREP
869 CPP
870 ac_ct_CXX
871 CXXFLAGS
872 CXX
873 OBJEXT
874 EXEEXT
875 ac_ct_CC
876 CPPFLAGS
877 LDFLAGS
878 CFLAGS
879 CC
880 LIBBACFIND_LT_RELEASE
881 LIBBACCATS_LT_RELEASE
882 LIBBACSQL_LT_RELEASE
883 LIBBACCFG_LT_RELEASE
884 LIBBAC_LT_RELEASE
885 LIBRSYNC_VERSION
886 NDMP_VERSION
887 JAVA_VERSION
888 VIX_VERSION
889 DEPKGS_VERSION
890 DEPKGS_QT_VERSION
891 BDB_VERSION
892 post_host
893 BACULA
894 LSMDATE
895 DATE
896 VERSION
897 FALSEPRG
898 TRUEPRG
899 WIN32TOPDIR
900 WIN32MAINDIR
901 WIN32BUILDDIR
902 TOP_DIR
903 BUILD_DIR
904 target_alias
905 host_alias
906 build_alias
907 LIBS
908 ECHO_T
909 ECHO_N
910 ECHO_C
911 DEFS
912 mandir
913 localedir
914 libdir
915 psdir
916 pdfdir
917 dvidir
918 htmldir
919 infodir
920 docdir
921 oldincludedir
922 includedir
923 runstatedir
924 localstatedir
925 sharedstatedir
926 sysconfdir
927 datadir
928 datarootdir
929 libexecdir
930 sbindir
931 bindir
932 program_transform_name
933 prefix
934 exec_prefix
935 PACKAGE_URL
936 PACKAGE_BUGREPORT
937 PACKAGE_STRING
938 PACKAGE_VERSION
939 PACKAGE_TARNAME
940 PACKAGE_NAME
941 PATH_SEPARATOR
942 SHELL'
943 ac_subst_files='MCOMMON'
944 ac_user_opts='
945 enable_option_checking
946 enable_libtool
947 enable_shared
948 enable_static
949 with_pic
950 enable_fast_install
951 with_gnu_ld
952 with_sysroot
953 enable_libtool_lock
954 enable_includes
955 enable_nls
956 enable_rpath
957 with_libiconv_prefix
958 with_libintl_prefix
959 with_included_gettext
960 enable_bat
961 enable_smartalloc
962 enable_lockmgr
963 enable_static_tools
964 enable_static_fd
965 enable_static_sd
966 enable_static_dir
967 enable_static_cons
968 enable_client_only
969 enable_build_dird
970 enable_build_stored
971 enable_conio
972 enable_ipv6
973 enable_readline
974 with_readline
975 with_tcp_wrappers
976 with_openssl
977 with_working_dir
978 with_archivedir
979 with_basename
980 with_hostname
981 with_scriptdir
982 with_bsrdir
983 with_logdir
984 with_plugindir
985 with_dump_email
986 with_job_email
987 with_smtp_host
988 with_pid_dir
989 with_subsys_dir
990 with_baseport
991 with_dir_password
992 with_fd_password
993 with_sd_password
994 with_mon_dir_password
995 with_mon_fd_password
996 with_mon_sd_password
997 with_db_name
998 with_db_user
999 with_db_password
1000 with_db_port
1001 with_db_ssl_options
1002 with_dir_user
1003 with_dir_group
1004 with_sd_user
1005 with_sd_group
1006 with_fd_user
1007 with_fd_group
1008 with_sbin_perm
1009 enable_batch_insert
1010 with_postgresql
1011 with_mysql
1012 with_embedded_mysql
1013 with_sqlite3
1014 enable_largefile
1015 with_x
1016 with_s3
1017 enable_afs
1018 with_afsdir
1019 enable_lzo
1020 with_lzo
1021 enable_acl
1022 enable_xattr
1023 with_systemd
1024 '
1025       ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1028 CC
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1033 CXX
1034 CXXFLAGS
1035 CCC
1036 CPP
1037 CXXCPP
1038 XMKMF'
1039
1040
1041 # Initialize some variables set by options.
1042 ac_init_help=
1043 ac_init_version=false
1044 ac_unrecognized_opts=
1045 ac_unrecognized_sep=
1046 # The variables have the same names as the options, with
1047 # dashes changed to underlines.
1048 cache_file=/dev/null
1049 exec_prefix=NONE
1050 no_create=
1051 no_recursion=
1052 prefix=NONE
1053 program_prefix=NONE
1054 program_suffix=NONE
1055 program_transform_name=s,x,x,
1056 silent=
1057 site=
1058 srcdir=
1059 verbose=
1060 x_includes=NONE
1061 x_libraries=NONE
1062
1063 # Installation directory options.
1064 # These are left unexpanded so users can "make install exec_prefix=/foo"
1065 # and all the variables that are supposed to be based on exec_prefix
1066 # by default will actually change.
1067 # Use braces instead of parens because sh, perl, etc. also accept them.
1068 # (The list follows the same order as the GNU Coding Standards.)
1069 bindir='${exec_prefix}/bin'
1070 sbindir='${exec_prefix}/sbin'
1071 libexecdir='${exec_prefix}/libexec'
1072 datarootdir='${prefix}/share'
1073 datadir='${datarootdir}'
1074 sysconfdir='${prefix}/etc'
1075 sharedstatedir='${prefix}/com'
1076 localstatedir='${prefix}/var'
1077 runstatedir='${localstatedir}/run'
1078 includedir='${prefix}/include'
1079 oldincludedir='/usr/include'
1080 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1081 infodir='${datarootdir}/info'
1082 htmldir='${docdir}'
1083 dvidir='${docdir}'
1084 pdfdir='${docdir}'
1085 psdir='${docdir}'
1086 libdir='${exec_prefix}/lib'
1087 localedir='${datarootdir}/locale'
1088 mandir='${datarootdir}/man'
1089
1090 ac_prev=
1091 ac_dashdash=
1092 for ac_option
1093 do
1094   # If the previous option needs an argument, assign it.
1095   if test -n "$ac_prev"; then
1096     eval $ac_prev=\$ac_option
1097     ac_prev=
1098     continue
1099   fi
1100
1101   case $ac_option in
1102   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1103   *=)   ac_optarg= ;;
1104   *)    ac_optarg=yes ;;
1105   esac
1106
1107   # Accept the important Cygnus configure options, so we can diagnose typos.
1108
1109   case $ac_dashdash$ac_option in
1110   --)
1111     ac_dashdash=yes ;;
1112
1113   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114     ac_prev=bindir ;;
1115   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1116     bindir=$ac_optarg ;;
1117
1118   -build | --build | --buil | --bui | --bu)
1119     ac_prev=build_alias ;;
1120   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1121     build_alias=$ac_optarg ;;
1122
1123   -cache-file | --cache-file | --cache-fil | --cache-fi \
1124   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1125     ac_prev=cache_file ;;
1126   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1127   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1128     cache_file=$ac_optarg ;;
1129
1130   --config-cache | -C)
1131     cache_file=config.cache ;;
1132
1133   -datadir | --datadir | --datadi | --datad)
1134     ac_prev=datadir ;;
1135   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1136     datadir=$ac_optarg ;;
1137
1138   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1139   | --dataroo | --dataro | --datar)
1140     ac_prev=datarootdir ;;
1141   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1142   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1143     datarootdir=$ac_optarg ;;
1144
1145   -disable-* | --disable-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error $? "invalid feature name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "enable_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval enable_$ac_useropt=no ;;
1160
1161   -docdir | --docdir | --docdi | --doc | --do)
1162     ac_prev=docdir ;;
1163   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1164     docdir=$ac_optarg ;;
1165
1166   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1167     ac_prev=dvidir ;;
1168   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1169     dvidir=$ac_optarg ;;
1170
1171   -enable-* | --enable-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid feature name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "enable_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval enable_$ac_useropt=\$ac_optarg ;;
1186
1187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189   | --exec | --exe | --ex)
1190     ac_prev=exec_prefix ;;
1191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193   | --exec=* | --exe=* | --ex=*)
1194     exec_prefix=$ac_optarg ;;
1195
1196   -gas | --gas | --ga | --g)
1197     # Obsolete; use --with-gas.
1198     with_gas=yes ;;
1199
1200   -help | --help | --hel | --he | -h)
1201     ac_init_help=long ;;
1202   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203     ac_init_help=recursive ;;
1204   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205     ac_init_help=short ;;
1206
1207   -host | --host | --hos | --ho)
1208     ac_prev=host_alias ;;
1209   -host=* | --host=* | --hos=* | --ho=*)
1210     host_alias=$ac_optarg ;;
1211
1212   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213     ac_prev=htmldir ;;
1214   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215   | --ht=*)
1216     htmldir=$ac_optarg ;;
1217
1218   -includedir | --includedir | --includedi | --included | --include \
1219   | --includ | --inclu | --incl | --inc)
1220     ac_prev=includedir ;;
1221   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222   | --includ=* | --inclu=* | --incl=* | --inc=*)
1223     includedir=$ac_optarg ;;
1224
1225   -infodir | --infodir | --infodi | --infod | --info | --inf)
1226     ac_prev=infodir ;;
1227   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228     infodir=$ac_optarg ;;
1229
1230   -libdir | --libdir | --libdi | --libd)
1231     ac_prev=libdir ;;
1232   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233     libdir=$ac_optarg ;;
1234
1235   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236   | --libexe | --libex | --libe)
1237     ac_prev=libexecdir ;;
1238   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239   | --libexe=* | --libex=* | --libe=*)
1240     libexecdir=$ac_optarg ;;
1241
1242   -localedir | --localedir | --localedi | --localed | --locale)
1243     ac_prev=localedir ;;
1244   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245     localedir=$ac_optarg ;;
1246
1247   -localstatedir | --localstatedir | --localstatedi | --localstated \
1248   | --localstate | --localstat | --localsta | --localst | --locals)
1249     ac_prev=localstatedir ;;
1250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252     localstatedir=$ac_optarg ;;
1253
1254   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255     ac_prev=mandir ;;
1256   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257     mandir=$ac_optarg ;;
1258
1259   -nfp | --nfp | --nf)
1260     # Obsolete; use --without-fp.
1261     with_fp=no ;;
1262
1263   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264   | --no-cr | --no-c | -n)
1265     no_create=yes ;;
1266
1267   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269     no_recursion=yes ;;
1270
1271   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273   | --oldin | --oldi | --old | --ol | --o)
1274     ac_prev=oldincludedir ;;
1275   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278     oldincludedir=$ac_optarg ;;
1279
1280   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281     ac_prev=prefix ;;
1282   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283     prefix=$ac_optarg ;;
1284
1285   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286   | --program-pre | --program-pr | --program-p)
1287     ac_prev=program_prefix ;;
1288   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290     program_prefix=$ac_optarg ;;
1291
1292   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293   | --program-suf | --program-su | --program-s)
1294     ac_prev=program_suffix ;;
1295   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297     program_suffix=$ac_optarg ;;
1298
1299   -program-transform-name | --program-transform-name \
1300   | --program-transform-nam | --program-transform-na \
1301   | --program-transform-n | --program-transform- \
1302   | --program-transform | --program-transfor \
1303   | --program-transfo | --program-transf \
1304   | --program-trans | --program-tran \
1305   | --progr-tra | --program-tr | --program-t)
1306     ac_prev=program_transform_name ;;
1307   -program-transform-name=* | --program-transform-name=* \
1308   | --program-transform-nam=* | --program-transform-na=* \
1309   | --program-transform-n=* | --program-transform-=* \
1310   | --program-transform=* | --program-transfor=* \
1311   | --program-transfo=* | --program-transf=* \
1312   | --program-trans=* | --program-tran=* \
1313   | --progr-tra=* | --program-tr=* | --program-t=*)
1314     program_transform_name=$ac_optarg ;;
1315
1316   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317     ac_prev=pdfdir ;;
1318   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319     pdfdir=$ac_optarg ;;
1320
1321   -psdir | --psdir | --psdi | --psd | --ps)
1322     ac_prev=psdir ;;
1323   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324     psdir=$ac_optarg ;;
1325
1326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327   | -silent | --silent | --silen | --sile | --sil)
1328     silent=yes ;;
1329
1330   -runstatedir | --runstatedir | --runstatedi | --runstated \
1331   | --runstate | --runstat | --runsta | --runst | --runs \
1332   | --run | --ru | --r)
1333     ac_prev=runstatedir ;;
1334   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1335   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1336   | --run=* | --ru=* | --r=*)
1337     runstatedir=$ac_optarg ;;
1338
1339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340     ac_prev=sbindir ;;
1341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342   | --sbi=* | --sb=*)
1343     sbindir=$ac_optarg ;;
1344
1345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347   | --sharedst | --shareds | --shared | --share | --shar \
1348   | --sha | --sh)
1349     ac_prev=sharedstatedir ;;
1350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353   | --sha=* | --sh=*)
1354     sharedstatedir=$ac_optarg ;;
1355
1356   -site | --site | --sit)
1357     ac_prev=site ;;
1358   -site=* | --site=* | --sit=*)
1359     site=$ac_optarg ;;
1360
1361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362     ac_prev=srcdir ;;
1363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364     srcdir=$ac_optarg ;;
1365
1366   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367   | --syscon | --sysco | --sysc | --sys | --sy)
1368     ac_prev=sysconfdir ;;
1369   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371     sysconfdir=$ac_optarg ;;
1372
1373   -target | --target | --targe | --targ | --tar | --ta | --t)
1374     ac_prev=target_alias ;;
1375   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376     target_alias=$ac_optarg ;;
1377
1378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379     verbose=yes ;;
1380
1381   -version | --version | --versio | --versi | --vers | -V)
1382     ac_init_version=: ;;
1383
1384   -with-* | --with-*)
1385     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388       as_fn_error $? "invalid package name: $ac_useropt"
1389     ac_useropt_orig=$ac_useropt
1390     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391     case $ac_user_opts in
1392       *"
1393 "with_$ac_useropt"
1394 "*) ;;
1395       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1396          ac_unrecognized_sep=', ';;
1397     esac
1398     eval with_$ac_useropt=\$ac_optarg ;;
1399
1400   -without-* | --without-*)
1401     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1402     # Reject names that are not valid shell variable names.
1403     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1404       as_fn_error $? "invalid package name: $ac_useropt"
1405     ac_useropt_orig=$ac_useropt
1406     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407     case $ac_user_opts in
1408       *"
1409 "with_$ac_useropt"
1410 "*) ;;
1411       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1412          ac_unrecognized_sep=', ';;
1413     esac
1414     eval with_$ac_useropt=no ;;
1415
1416   --x)
1417     # Obsolete; use --with-x.
1418     with_x=yes ;;
1419
1420   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421   | --x-incl | --x-inc | --x-in | --x-i)
1422     ac_prev=x_includes ;;
1423   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425     x_includes=$ac_optarg ;;
1426
1427   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429     ac_prev=x_libraries ;;
1430   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432     x_libraries=$ac_optarg ;;
1433
1434   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1435 Try \`$0 --help' for more information"
1436     ;;
1437
1438   *=*)
1439     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440     # Reject names that are not valid shell variable names.
1441     case $ac_envvar in #(
1442       '' | [0-9]* | *[!_$as_cr_alnum]* )
1443       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1444     esac
1445     eval $ac_envvar=\$ac_optarg
1446     export $ac_envvar ;;
1447
1448   *)
1449     # FIXME: should be removed in autoconf 3.0.
1450     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1454     ;;
1455
1456   esac
1457 done
1458
1459 if test -n "$ac_prev"; then
1460   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461   as_fn_error $? "missing argument to $ac_option"
1462 fi
1463
1464 if test -n "$ac_unrecognized_opts"; then
1465   case $enable_option_checking in
1466     no) ;;
1467     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1468     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1469   esac
1470 fi
1471
1472 # Check all directory arguments for consistency.
1473 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1474                 datadir sysconfdir sharedstatedir localstatedir includedir \
1475                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1476                 libdir localedir mandir runstatedir
1477 do
1478   eval ac_val=\$$ac_var
1479   # Remove trailing slashes.
1480   case $ac_val in
1481     */ )
1482       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1483       eval $ac_var=\$ac_val;;
1484   esac
1485   # Be sure to have absolute directory names.
1486   case $ac_val in
1487     [\\/$]* | ?:[\\/]* )  continue;;
1488     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1489   esac
1490   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1491 done
1492
1493 # There might be people who depend on the old broken behavior: `$host'
1494 # used to hold the argument of --host etc.
1495 # FIXME: To remove some day.
1496 build=$build_alias
1497 host=$host_alias
1498 target=$target_alias
1499
1500 # FIXME: To remove some day.
1501 if test "x$host_alias" != x; then
1502   if test "x$build_alias" = x; then
1503     cross_compiling=maybe
1504   elif test "x$build_alias" != "x$host_alias"; then
1505     cross_compiling=yes
1506   fi
1507 fi
1508
1509 ac_tool_prefix=
1510 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1511
1512 test "$silent" = yes && exec 6>/dev/null
1513
1514
1515 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1516 ac_ls_di=`ls -di .` &&
1517 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1518   as_fn_error $? "working directory cannot be determined"
1519 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1520   as_fn_error $? "pwd does not report name of working directory"
1521
1522
1523 # Find the source files, if location was not specified.
1524 if test -z "$srcdir"; then
1525   ac_srcdir_defaulted=yes
1526   # Try the directory containing this script, then the parent directory.
1527   ac_confdir=`$as_dirname -- "$as_myself" ||
1528 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1529          X"$as_myself" : 'X\(//\)[^/]' \| \
1530          X"$as_myself" : 'X\(//\)$' \| \
1531          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1532 $as_echo X"$as_myself" |
1533     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1534             s//\1/
1535             q
1536           }
1537           /^X\(\/\/\)[^/].*/{
1538             s//\1/
1539             q
1540           }
1541           /^X\(\/\/\)$/{
1542             s//\1/
1543             q
1544           }
1545           /^X\(\/\).*/{
1546             s//\1/
1547             q
1548           }
1549           s/.*/./; q'`
1550   srcdir=$ac_confdir
1551   if test ! -r "$srcdir/$ac_unique_file"; then
1552     srcdir=..
1553   fi
1554 else
1555   ac_srcdir_defaulted=no
1556 fi
1557 if test ! -r "$srcdir/$ac_unique_file"; then
1558   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1559   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1560 fi
1561 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1562 ac_abs_confdir=`(
1563         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1564         pwd)`
1565 # When building in place, set srcdir=.
1566 if test "$ac_abs_confdir" = "$ac_pwd"; then
1567   srcdir=.
1568 fi
1569 # Remove unnecessary trailing slashes from srcdir.
1570 # Double slashes in file names in object file debugging info
1571 # mess up M-x gdb in Emacs.
1572 case $srcdir in
1573 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1574 esac
1575 for ac_var in $ac_precious_vars; do
1576   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1577   eval ac_env_${ac_var}_value=\$${ac_var}
1578   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1579   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1580 done
1581
1582 #
1583 # Report the --help message.
1584 #
1585 if test "$ac_init_help" = "long"; then
1586   # Omit some internal or obsolete options to make the list less imposing.
1587   # This message is too long to be a string in the A/UX 3.1 sh.
1588   cat <<_ACEOF
1589 \`configure' configures bacula 9.0.7 to adapt to many kinds of systems.
1590
1591 Usage: $0 [OPTION]... [VAR=VALUE]...
1592
1593 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1594 VAR=VALUE.  See below for descriptions of some of the useful variables.
1595
1596 Defaults for the options are specified in brackets.
1597
1598 Configuration:
1599   -h, --help              display this help and exit
1600       --help=short        display options specific to this package
1601       --help=recursive    display the short help of all the included packages
1602   -V, --version           display version information and exit
1603   -q, --quiet, --silent   do not print \`checking ...' messages
1604       --cache-file=FILE   cache test results in FILE [disabled]
1605   -C, --config-cache      alias for \`--cache-file=config.cache'
1606   -n, --no-create         do not create output files
1607       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1608
1609 Installation directories:
1610   --prefix=PREFIX         install architecture-independent files in PREFIX
1611                           [$ac_default_prefix]
1612   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1613                           [PREFIX]
1614
1615 By default, \`make install' will install all the files in
1616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1618 for instance \`--prefix=\$HOME'.
1619
1620 For better control, use the options below.
1621
1622 Fine tuning of the installation directories:
1623   --bindir=DIR            user executables [EPREFIX/bin]
1624   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1625   --libexecdir=DIR        program executables [EPREFIX/libexec]
1626   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1627   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1628   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1629   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1630   --libdir=DIR            object code libraries [EPREFIX/lib]
1631   --includedir=DIR        C header files [PREFIX/include]
1632   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1633   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1634   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1635   --infodir=DIR           info documentation [DATAROOTDIR/info]
1636   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1637   --mandir=DIR            man documentation [DATAROOTDIR/man]
1638   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1639   --htmldir=DIR           html documentation [DOCDIR]
1640   --dvidir=DIR            dvi documentation [DOCDIR]
1641   --pdfdir=DIR            pdf documentation [DOCDIR]
1642   --psdir=DIR             ps documentation [DOCDIR]
1643 _ACEOF
1644
1645   cat <<\_ACEOF
1646
1647 X features:
1648   --x-includes=DIR    X include files are in DIR
1649   --x-libraries=DIR   X library files are in DIR
1650
1651 System types:
1652   --build=BUILD     configure for building on BUILD [guessed]
1653   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1654 _ACEOF
1655 fi
1656
1657 if test -n "$ac_init_help"; then
1658   case $ac_init_help in
1659      short | recursive ) echo "Configuration of bacula 9.0.7:";;
1660    esac
1661   cat <<\_ACEOF
1662
1663 Optional Features:
1664   --disable-option-checking  ignore unrecognized --enable/--with options
1665   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1666   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1667   --enable-libtool        enable building using GNU libtool [default=yes]
1668   --enable-shared[=PKGS]  build shared libraries [default=yes]
1669   --enable-static[=PKGS]  build static libraries [default=no]
1670   --enable-fast-install[=PKGS]
1671                           optimize for fast installation [default=yes]
1672   --disable-libtool-lock  avoid locking (might break parallel builds)
1673   --enable-includes       enable installing of include files [default=no]
1674   --disable-nls           do not use Native Language Support
1675   --disable-rpath         do not hardcode runtime library paths
1676   --enable-bat            enable build of bat Qt GUI [default=no]
1677   --enable-smartalloc     enable smartalloc debugging support [default=no]
1678   --enable-lockmgr        enable lock manager support [default=no]
1679   --enable-static-tools   enable static tape tools [default=no]
1680   --enable-static-fd      enable static File daemon [default=no]
1681   --enable-static-sd      enable static Storage daemon [default=no]
1682   --enable-static-dir     enable static Director [default=no]
1683   --enable-static-cons    enable static Console [default=no]
1684   --enable-client-only    build client (File daemon) only [default=no]
1685   --enable-build-dird     enable building of dird (Director) [default=yes]
1686   --enable-build-stored   enable building of stored (Storage daemon)
1687                           [default=yes]
1688   --disable-conio         disable conio support [default=no]
1689   --enable-ipv6           enable ipv6 support [default=yes]
1690   --disable-readline      disable readline support [default=yes]
1691   --enable-batch-insert   enable the DB batch insert code [default=yes]
1692   --disable-largefile     omit support for large files
1693   --disable-afs           disable afs support [default=auto]
1694   --disable-lzo           disable lzo support [default=yes]
1695   --disable-acl           disable acl support [default=auto]
1696   --disable-xattr         disable xattr support [default=auto]
1697
1698 Optional Packages:
1699   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1700   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1701   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1702                           both]
1703   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1704   --with-sysroot=DIR Search for dependent libraries within DIR
1705                         (or the compiler's sysroot if not specified).
1706   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1707   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1708   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1709   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1710   --without-libintl-prefix     don't search for libintl in includedir and libdir
1711   --with-included-gettext use the GNU gettext library included here
1712   --with-readline[=DIR]   specify readline library directory
1713   --with-tcp-wrappers[=DIR]
1714                           enable tcpwrappers support
1715   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1716   --with-working-dir=PATH specify path of Bacula working directory
1717   --with-archivedir=PATH  specify path of SD archive directory
1718   --with-basename=RESNAME specify base resource name for daemons
1719   --with-hostname=RESNAME specify host name for daemons
1720   --with-scriptdir=PATH   specify path of Bacula scripts directory
1721   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1722   --with-logdir=PATH      specify path of Bacula logs directory
1723   --with-plugindir=PATH   specify path of Bacula plugins directory
1724   --with-dump-email=EMAIL dump email address
1725   --with-job-email=EMAIL  job output email address
1726   --with-smtp-host=HOST   SMTP mail host address
1727   --with-pid-dir=PATH     specify location of Bacula pid files
1728   --with-subsys-dir=PATH  specify location of Bacula subsys file
1729   --with-baseport=PORT    specify base port address for daemons
1730   --with-dir-password=PASSWORD
1731                           specify Director's password
1732   --with-fd-password=PASSWORD
1733                           specify Client's password
1734   --with-sd-password=PASSWORD
1735                           specify Storage daemon's password
1736   --with-mon-dir-password=PASSWORD
1737                           specify Director's password used by the monitor
1738   --with-mon-fd-password=PASSWORD
1739                           specify Client's password used by the monitor
1740   --with-mon-sd-password=PASSWORD
1741                           specify Storage daemon's password used by the
1742                           monitor
1743   --with-db-name=DBNAME   specify database name [default=bacula]
1744   --with-db-user=UNAME    specify database user [default=bacula]
1745   --with-db-password=PWD  specify database password [default=*none*]
1746   --with-db-port=DBPORT   specify a database port [default=null]
1747   --with-db-ssl-options=DBSSLOPTIONS
1748                           specify SSL options for database user connection
1749                           [default=null]
1750   --with-dir-user=USER    specify user for Director daemon
1751   --with-dir-group=GROUP  specify group for Director daemon
1752   --with-sd-user=USER     specify user for Storage daemon
1753   --with-sd-group=GROUP   specify group for Storage daemon
1754   --with-fd-user=USER     specify user for File daemon
1755   --with-fd-group=GROUP   specify group for File daemon
1756   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1757   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1758                           base install directory, [default=/usr/local/pgsql]
1759   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1760                           directory, default is to search through a number of
1761                           common places for the MySQL files.
1762   --with-embedded-mysql[=DIR]
1763                           Include MySQL support. DIR is the MySQL base install
1764                           directory, default is to search through a number of
1765                           common places for the MySQL files.
1766   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1767                           install directory, default is to search through a
1768                           number of common places for the SQLite3 files.
1769   --with-x                use the X Window System
1770   --with-s3[=DIR]         specify s3 library directory
1771   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1772   --with-lzo[=DIR]        specify lzo library directory
1773   --with-systemd[=UNITDIR]
1774                           Include systemd support. UNITDIR is where systemd
1775                           system .service files are located, default is to ask
1776                           systemctl.
1777
1778 Some influential environment variables:
1779   CC          C compiler command
1780   CFLAGS      C compiler flags
1781   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1782               nonstandard directory <lib dir>
1783   LIBS        libraries to pass to the linker, e.g. -l<library>
1784   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1785               you have headers in a nonstandard directory <include dir>
1786   CXX         C++ compiler command
1787   CXXFLAGS    C++ compiler flags
1788   CPP         C preprocessor
1789   CXXCPP      C++ preprocessor
1790   XMKMF       Path to xmkmf, Makefile generator for X Window System
1791
1792 Use these variables to override the choices made by `configure' or to help
1793 it to find libraries and programs with nonstandard names/locations.
1794
1795 Report bugs to the package provider.
1796 _ACEOF
1797 ac_status=$?
1798 fi
1799
1800 if test "$ac_init_help" = "recursive"; then
1801   # If there are subdirs, report their specific --help.
1802   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1803     test -d "$ac_dir" ||
1804       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1805       continue
1806     ac_builddir=.
1807
1808 case "$ac_dir" in
1809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1810 *)
1811   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1812   # A ".." for each directory in $ac_dir_suffix.
1813   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1814   case $ac_top_builddir_sub in
1815   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1816   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1817   esac ;;
1818 esac
1819 ac_abs_top_builddir=$ac_pwd
1820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1821 # for backward compatibility:
1822 ac_top_builddir=$ac_top_build_prefix
1823
1824 case $srcdir in
1825   .)  # We are building in place.
1826     ac_srcdir=.
1827     ac_top_srcdir=$ac_top_builddir_sub
1828     ac_abs_top_srcdir=$ac_pwd ;;
1829   [\\/]* | ?:[\\/]* )  # Absolute name.
1830     ac_srcdir=$srcdir$ac_dir_suffix;
1831     ac_top_srcdir=$srcdir
1832     ac_abs_top_srcdir=$srcdir ;;
1833   *) # Relative name.
1834     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1835     ac_top_srcdir=$ac_top_build_prefix$srcdir
1836     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1837 esac
1838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1839
1840     cd "$ac_dir" || { ac_status=$?; continue; }
1841     # Check for guested configure.
1842     if test -f "$ac_srcdir/configure.gnu"; then
1843       echo &&
1844       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1845     elif test -f "$ac_srcdir/configure"; then
1846       echo &&
1847       $SHELL "$ac_srcdir/configure" --help=recursive
1848     else
1849       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1850     fi || ac_status=$?
1851     cd "$ac_pwd" || { ac_status=$?; break; }
1852   done
1853 fi
1854
1855 test -n "$ac_init_help" && exit $ac_status
1856 if $ac_init_version; then
1857   cat <<\_ACEOF
1858 bacula configure 9.0.7
1859 generated by GNU Autoconf 2.69
1860
1861 Copyright (C) 2012 Free Software Foundation, Inc.
1862 This configure script is free software; the Free Software Foundation
1863 gives unlimited permission to copy, distribute and modify it.
1864 _ACEOF
1865   exit
1866 fi
1867
1868 ## ------------------------ ##
1869 ## Autoconf initialization. ##
1870 ## ------------------------ ##
1871
1872 # ac_fn_c_try_compile LINENO
1873 # --------------------------
1874 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_compile ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   rm -f conftest.$ac_objext
1879   if { { ac_try="$ac_compile"
1880 case "(($ac_try" in
1881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882   *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886   (eval "$ac_compile") 2>conftest.err
1887   ac_status=$?
1888   if test -s conftest.err; then
1889     grep -v '^ *+' conftest.err >conftest.er1
1890     cat conftest.er1 >&5
1891     mv -f conftest.er1 conftest.err
1892   fi
1893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894   test $ac_status = 0; } && {
1895          test -z "$ac_c_werror_flag" ||
1896          test ! -s conftest.err
1897        } && test -s conftest.$ac_objext; then :
1898   ac_retval=0
1899 else
1900   $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903         ac_retval=1
1904 fi
1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906   as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_compile
1909
1910 # ac_fn_cxx_try_compile LINENO
1911 # ----------------------------
1912 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_cxx_try_compile ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   rm -f conftest.$ac_objext
1917   if { { ac_try="$ac_compile"
1918 case "(($ac_try" in
1919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920   *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924   (eval "$ac_compile") 2>conftest.err
1925   ac_status=$?
1926   if test -s conftest.err; then
1927     grep -v '^ *+' conftest.err >conftest.er1
1928     cat conftest.er1 >&5
1929     mv -f conftest.er1 conftest.err
1930   fi
1931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932   test $ac_status = 0; } && {
1933          test -z "$ac_cxx_werror_flag" ||
1934          test ! -s conftest.err
1935        } && test -s conftest.$ac_objext; then :
1936   ac_retval=0
1937 else
1938   $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941         ac_retval=1
1942 fi
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944   as_fn_set_status $ac_retval
1945
1946 } # ac_fn_cxx_try_compile
1947
1948 # ac_fn_c_try_cpp LINENO
1949 # ----------------------
1950 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_c_try_cpp ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   if { { ac_try="$ac_cpp conftest.$ac_ext"
1955 case "(($ac_try" in
1956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957   *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1962   ac_status=$?
1963   if test -s conftest.err; then
1964     grep -v '^ *+' conftest.err >conftest.er1
1965     cat conftest.er1 >&5
1966     mv -f conftest.er1 conftest.err
1967   fi
1968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969   test $ac_status = 0; } > conftest.i && {
1970          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1971          test ! -s conftest.err
1972        }; then :
1973   ac_retval=0
1974 else
1975   $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978     ac_retval=1
1979 fi
1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981   as_fn_set_status $ac_retval
1982
1983 } # ac_fn_c_try_cpp
1984
1985 # ac_fn_c_try_link LINENO
1986 # -----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_c_try_link ()
1989 {
1990   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991   rm -f conftest.$ac_objext conftest$ac_exeext
1992   if { { ac_try="$ac_link"
1993 case "(($ac_try" in
1994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995   *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999   (eval "$ac_link") 2>conftest.err
2000   ac_status=$?
2001   if test -s conftest.err; then
2002     grep -v '^ *+' conftest.err >conftest.er1
2003     cat conftest.er1 >&5
2004     mv -f conftest.er1 conftest.err
2005   fi
2006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007   test $ac_status = 0; } && {
2008          test -z "$ac_c_werror_flag" ||
2009          test ! -s conftest.err
2010        } && test -s conftest$ac_exeext && {
2011          test "$cross_compiling" = yes ||
2012          test -x conftest$ac_exeext
2013        }; then :
2014   ac_retval=0
2015 else
2016   $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019         ac_retval=1
2020 fi
2021   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023   # interfere with the next link command; also delete a directory that is
2024   # left behind by Apple's compiler.  We do this before executing the actions.
2025   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027   as_fn_set_status $ac_retval
2028
2029 } # ac_fn_c_try_link
2030
2031 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2032 # -------------------------------------------------------
2033 # Tests whether HEADER exists and can be compiled using the include files in
2034 # INCLUDES, setting the cache variable VAR accordingly.
2035 ac_fn_c_check_header_compile ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041   $as_echo_n "(cached) " >&6
2042 else
2043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 $4
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   eval "$3=yes"
2050 else
2051   eval "$3=no"
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_header_compile
2061
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2066 ac_fn_c_try_run ()
2067 {
2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069   if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072   *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076   (eval "$ac_link") 2>&5
2077   ac_status=$?
2078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080   { { case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086   (eval "$ac_try") 2>&5
2087   ac_status=$?
2088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089   test $ac_status = 0; }; }; then :
2090   ac_retval=0
2091 else
2092   $as_echo "$as_me: program exited with status $ac_status" >&5
2093        $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096        ac_retval=$ac_status
2097 fi
2098   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100   as_fn_set_status $ac_retval
2101
2102 } # ac_fn_c_try_run
2103
2104 # ac_fn_c_check_func LINENO FUNC VAR
2105 # ----------------------------------
2106 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2107 ac_fn_c_check_func ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113   $as_echo_n "(cached) " >&6
2114 else
2115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2119 #define $2 innocuous_$2
2120
2121 /* System header to define __stub macros and hopefully few prototypes,
2122     which can conflict with char $2 (); below.
2123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2124     <limits.h> exists even on freestanding compilers.  */
2125
2126 #ifdef __STDC__
2127 # include <limits.h>
2128 #else
2129 # include <assert.h>
2130 #endif
2131
2132 #undef $2
2133
2134 /* Override any GCC internal prototype to avoid an error.
2135    Use char because int might match the return type of a GCC
2136    builtin and then its argument prototype would still apply.  */
2137 #ifdef __cplusplus
2138 extern "C"
2139 #endif
2140 char $2 ();
2141 /* The GNU C library defines this for functions which it implements
2142     to always fail with ENOSYS.  Some functions are actually named
2143     something starting with __ and the normal name is an alias.  */
2144 #if defined __stub_$2 || defined __stub___$2
2145 choke me
2146 #endif
2147
2148 int
2149 main ()
2150 {
2151 return $2 ();
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_link "$LINENO"; then :
2157   eval "$3=yes"
2158 else
2159   eval "$3=no"
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext \
2162     conftest$ac_exeext conftest.$ac_ext
2163 fi
2164 eval ac_res=\$$3
2165                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169 } # ac_fn_c_check_func
2170
2171 # ac_fn_cxx_try_cpp LINENO
2172 # ------------------------
2173 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_cxx_try_cpp ()
2175 {
2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177   if { { ac_try="$ac_cpp conftest.$ac_ext"
2178 case "(($ac_try" in
2179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180   *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2185   ac_status=$?
2186   if test -s conftest.err; then
2187     grep -v '^ *+' conftest.err >conftest.er1
2188     cat conftest.er1 >&5
2189     mv -f conftest.er1 conftest.err
2190   fi
2191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192   test $ac_status = 0; } > conftest.i && {
2193          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2194          test ! -s conftest.err
2195        }; then :
2196   ac_retval=0
2197 else
2198   $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201     ac_retval=1
2202 fi
2203   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204   as_fn_set_status $ac_retval
2205
2206 } # ac_fn_cxx_try_cpp
2207
2208 # ac_fn_cxx_try_link LINENO
2209 # -------------------------
2210 # Try to link conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_cxx_try_link ()
2212 {
2213   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214   rm -f conftest.$ac_objext conftest$ac_exeext
2215   if { { ac_try="$ac_link"
2216 case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222   (eval "$ac_link") 2>conftest.err
2223   ac_status=$?
2224   if test -s conftest.err; then
2225     grep -v '^ *+' conftest.err >conftest.er1
2226     cat conftest.er1 >&5
2227     mv -f conftest.er1 conftest.err
2228   fi
2229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230   test $ac_status = 0; } && {
2231          test -z "$ac_cxx_werror_flag" ||
2232          test ! -s conftest.err
2233        } && test -s conftest$ac_exeext && {
2234          test "$cross_compiling" = yes ||
2235          test -x conftest$ac_exeext
2236        }; then :
2237   ac_retval=0
2238 else
2239   $as_echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2241
2242         ac_retval=1
2243 fi
2244   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2245   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2246   # interfere with the next link command; also delete a directory that is
2247   # left behind by Apple's compiler.  We do this before executing the actions.
2248   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2249   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250   as_fn_set_status $ac_retval
2251
2252 } # ac_fn_cxx_try_link
2253
2254 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2255 # ---------------------------------------------
2256 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2257 # accordingly.
2258 ac_fn_c_check_decl ()
2259 {
2260   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261   as_decl_name=`echo $2|sed 's/ *(.*//'`
2262   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2264 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2265 if eval \${$3+:} false; then :
2266   $as_echo_n "(cached) " >&6
2267 else
2268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 $4
2271 int
2272 main ()
2273 {
2274 #ifndef $as_decl_name
2275 #ifdef __cplusplus
2276   (void) $as_decl_use;
2277 #else
2278   (void) $as_decl_name;
2279 #endif
2280 #endif
2281
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287   eval "$3=yes"
2288 else
2289   eval "$3=no"
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 fi
2293 eval ac_res=\$$3
2294                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297
2298 } # ac_fn_c_check_decl
2299
2300 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2301 # -------------------------------------------
2302 # Tests whether TYPE exists after having included INCLUDES, setting cache
2303 # variable VAR accordingly.
2304 ac_fn_c_check_type ()
2305 {
2306   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310   $as_echo_n "(cached) " >&6
2311 else
2312   eval "$3=no"
2313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h.  */
2315 $4
2316 int
2317 main ()
2318 {
2319 if (sizeof ($2))
2320          return 0;
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h.  */
2328 $4
2329 int
2330 main ()
2331 {
2332 if (sizeof (($2)))
2333             return 0;
2334   ;
2335   return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2339
2340 else
2341   eval "$3=yes"
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351
2352 } # ac_fn_c_check_type
2353
2354 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2355 # -------------------------------------------------------
2356 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2357 # the include files in INCLUDES and setting the cache variable VAR
2358 # accordingly.
2359 ac_fn_c_check_header_mongrel ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   if eval \${$3+:} false; then :
2363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364 $as_echo_n "checking for $2... " >&6; }
2365 if eval \${$3+:} false; then :
2366   $as_echo_n "(cached) " >&6
2367 fi
2368 eval ac_res=\$$3
2369                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 else
2372   # Is the header compilable?
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2374 $as_echo_n "checking $2 usability... " >&6; }
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 $4
2378 #include <$2>
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381   ac_header_compiler=yes
2382 else
2383   ac_header_compiler=no
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2387 $as_echo "$ac_header_compiler" >&6; }
2388
2389 # Is the header present?
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2391 $as_echo_n "checking $2 presence... " >&6; }
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h.  */
2394 #include <$2>
2395 _ACEOF
2396 if ac_fn_c_try_cpp "$LINENO"; then :
2397   ac_header_preproc=yes
2398 else
2399   ac_header_preproc=no
2400 fi
2401 rm -f conftest.err conftest.i conftest.$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2403 $as_echo "$ac_header_preproc" >&6; }
2404
2405 # So?  What about this header?
2406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2407   yes:no: )
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2409 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2410     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2411 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2412     ;;
2413   no:yes:* )
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2415 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2416     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2417 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2419 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2421 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2423 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2424     ;;
2425 esac
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2427 $as_echo_n "checking for $2... " >&6; }
2428 if eval \${$3+:} false; then :
2429   $as_echo_n "(cached) " >&6
2430 else
2431   eval "$3=\$ac_header_compiler"
2432 fi
2433 eval ac_res=\$$3
2434                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 fi
2437   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438
2439 } # ac_fn_c_check_header_mongrel
2440
2441 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2442 # --------------------------------------------
2443 # Tries to find the compile-time value of EXPR in a program that includes
2444 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2445 # computed
2446 ac_fn_c_compute_int ()
2447 {
2448   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449   if test "$cross_compiling" = yes; then
2450     # Depending upon the size, compute the lo and hi bounds.
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 $4
2454 int
2455 main ()
2456 {
2457 static int test_array [1 - 2 * !(($2) >= 0)];
2458 test_array [0] = 0;
2459 return test_array [0];
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466   ac_lo=0 ac_mid=0
2467   while :; do
2468     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h.  */
2470 $4
2471 int
2472 main ()
2473 {
2474 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2475 test_array [0] = 0;
2476 return test_array [0];
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483   ac_hi=$ac_mid; break
2484 else
2485   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2486                         if test $ac_lo -le $ac_mid; then
2487                           ac_lo= ac_hi=
2488                           break
2489                         fi
2490                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493   done
2494 else
2495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h.  */
2497 $4
2498 int
2499 main ()
2500 {
2501 static int test_array [1 - 2 * !(($2) < 0)];
2502 test_array [0] = 0;
2503 return test_array [0];
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   ac_hi=-1 ac_mid=-1
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 return test_array [0];
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527   ac_lo=$ac_mid; break
2528 else
2529   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2530                         if test $ac_mid -le $ac_hi; then
2531                           ac_lo= ac_hi=
2532                           break
2533                         fi
2534                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2535 fi
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537   done
2538 else
2539   ac_lo= ac_hi=
2540 fi
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 fi
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 # Binary search between lo and hi bounds.
2545 while test "x$ac_lo" != "x$ac_hi"; do
2546   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h.  */
2549 $4
2550 int
2551 main ()
2552 {
2553 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2554 test_array [0] = 0;
2555 return test_array [0];
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562   ac_hi=$ac_mid
2563 else
2564   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2565 fi
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 done
2568 case $ac_lo in #((
2569 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2570 '') ac_retval=1 ;;
2571 esac
2572   else
2573     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h.  */
2575 $4
2576 static long int longval () { return $2; }
2577 static unsigned long int ulongval () { return $2; }
2578 #include <stdio.h>
2579 #include <stdlib.h>
2580 int
2581 main ()
2582 {
2583
2584   FILE *f = fopen ("conftest.val", "w");
2585   if (! f)
2586     return 1;
2587   if (($2) < 0)
2588     {
2589       long int i = longval ();
2590       if (i != ($2))
2591         return 1;
2592       fprintf (f, "%ld", i);
2593     }
2594   else
2595     {
2596       unsigned long int i = ulongval ();
2597       if (i != ($2))
2598         return 1;
2599       fprintf (f, "%lu", i);
2600     }
2601   /* Do not output a trailing newline, as this causes \r\n confusion
2602      on some platforms.  */
2603   return ferror (f) || fclose (f) != 0;
2604
2605   ;
2606   return 0;
2607 }
2608 _ACEOF
2609 if ac_fn_c_try_run "$LINENO"; then :
2610   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2611 else
2612   ac_retval=1
2613 fi
2614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2615   conftest.$ac_objext conftest.beam conftest.$ac_ext
2616 rm -f conftest.val
2617
2618   fi
2619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2620   as_fn_set_status $ac_retval
2621
2622 } # ac_fn_c_compute_int
2623
2624 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625 # ----------------------------------------------------
2626 # Tries to find if the field MEMBER exists in type AGGR, after including
2627 # INCLUDES, setting cache variable VAR accordingly.
2628 ac_fn_c_check_member ()
2629 {
2630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632 $as_echo_n "checking for $2.$3... " >&6; }
2633 if eval \${$4+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h.  */
2638 $5
2639 int
2640 main ()
2641 {
2642 static $2 ac_aggr;
2643 if (ac_aggr.$3)
2644 return 0;
2645   ;
2646   return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650   eval "$4=yes"
2651 else
2652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h.  */
2654 $5
2655 int
2656 main ()
2657 {
2658 static $2 ac_aggr;
2659 if (sizeof ac_aggr.$3)
2660 return 0;
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_c_try_compile "$LINENO"; then :
2666   eval "$4=yes"
2667 else
2668   eval "$4=no"
2669 fi
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 fi
2674 eval ac_res=\$$4
2675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678
2679 } # ac_fn_c_check_member
2680
2681 # ac_fn_cxx_try_run LINENO
2682 # ------------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2684 # that executables *can* be run.
2685 ac_fn_cxx_try_run ()
2686 {
2687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688   if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695   (eval "$ac_link") 2>&5
2696   ac_status=$?
2697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2699   { { case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705   (eval "$ac_try") 2>&5
2706   ac_status=$?
2707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2708   test $ac_status = 0; }; }; then :
2709   ac_retval=0
2710 else
2711   $as_echo "$as_me: program exited with status $ac_status" >&5
2712        $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715        ac_retval=$ac_status
2716 fi
2717   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719   as_fn_set_status $ac_retval
2720
2721 } # ac_fn_cxx_try_run
2722
2723 # ac_fn_cxx_check_func LINENO FUNC VAR
2724 # ------------------------------------
2725 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2726 ac_fn_cxx_check_func ()
2727 {
2728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2730 $as_echo_n "checking for $2... " >&6; }
2731 if eval \${$3+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h.  */
2736 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2738 #define $2 innocuous_$2
2739
2740 /* System header to define __stub macros and hopefully few prototypes,
2741     which can conflict with char $2 (); below.
2742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2743     <limits.h> exists even on freestanding compilers.  */
2744
2745 #ifdef __STDC__
2746 # include <limits.h>
2747 #else
2748 # include <assert.h>
2749 #endif
2750
2751 #undef $2
2752
2753 /* Override any GCC internal prototype to avoid an error.
2754    Use char because int might match the return type of a GCC
2755    builtin and then its argument prototype would still apply.  */
2756 #ifdef __cplusplus
2757 extern "C"
2758 #endif
2759 char $2 ();
2760 /* The GNU C library defines this for functions which it implements
2761     to always fail with ENOSYS.  Some functions are actually named
2762     something starting with __ and the normal name is an alias.  */
2763 #if defined __stub_$2 || defined __stub___$2
2764 choke me
2765 #endif
2766
2767 int
2768 main ()
2769 {
2770 return $2 ();
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 if ac_fn_cxx_try_link "$LINENO"; then :
2776   eval "$3=yes"
2777 else
2778   eval "$3=no"
2779 fi
2780 rm -f core conftest.err conftest.$ac_objext \
2781     conftest$ac_exeext conftest.$ac_ext
2782 fi
2783 eval ac_res=\$$3
2784                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2787
2788 } # ac_fn_cxx_check_func
2789 cat >config.log <<_ACEOF
2790 This file contains any messages produced by compilers while
2791 running configure, to aid debugging if configure makes a mistake.
2792
2793 It was created by bacula $as_me 9.0.7, which was
2794 generated by GNU Autoconf 2.69.  Invocation command line was
2795
2796   $ $0 $@
2797
2798 _ACEOF
2799 exec 5>>config.log
2800 {
2801 cat <<_ASUNAME
2802 ## --------- ##
2803 ## Platform. ##
2804 ## --------- ##
2805
2806 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2807 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2808 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2809 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2810 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2811
2812 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2813 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2814
2815 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2816 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2817 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2818 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2819 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2820 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2821 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2822
2823 _ASUNAME
2824
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830     $as_echo "PATH: $as_dir"
2831   done
2832 IFS=$as_save_IFS
2833
2834 } >&5
2835
2836 cat >&5 <<_ACEOF
2837
2838
2839 ## ----------- ##
2840 ## Core tests. ##
2841 ## ----------- ##
2842
2843 _ACEOF
2844
2845
2846 # Keep a trace of the command line.
2847 # Strip out --no-create and --no-recursion so they do not pile up.
2848 # Strip out --silent because we don't want to record it for future runs.
2849 # Also quote any args containing shell meta-characters.
2850 # Make two passes to allow for proper duplicate-argument suppression.
2851 ac_configure_args=
2852 ac_configure_args0=
2853 ac_configure_args1=
2854 ac_must_keep_next=false
2855 for ac_pass in 1 2
2856 do
2857   for ac_arg
2858   do
2859     case $ac_arg in
2860     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2861     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2862     | -silent | --silent | --silen | --sile | --sil)
2863       continue ;;
2864     *\'*)
2865       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2866     esac
2867     case $ac_pass in
2868     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2869     2)
2870       as_fn_append ac_configure_args1 " '$ac_arg'"
2871       if test $ac_must_keep_next = true; then
2872         ac_must_keep_next=false # Got value, back to normal.
2873       else
2874         case $ac_arg in
2875           *=* | --config-cache | -C | -disable-* | --disable-* \
2876           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2877           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2878           | -with-* | --with-* | -without-* | --without-* | --x)
2879             case "$ac_configure_args0 " in
2880               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2881             esac
2882             ;;
2883           -* ) ac_must_keep_next=true ;;
2884         esac
2885       fi
2886       as_fn_append ac_configure_args " '$ac_arg'"
2887       ;;
2888     esac
2889   done
2890 done
2891 { ac_configure_args0=; unset ac_configure_args0;}
2892 { ac_configure_args1=; unset ac_configure_args1;}
2893
2894 # When interrupted or exit'd, cleanup temporary files, and complete
2895 # config.log.  We remove comments because anyway the quotes in there
2896 # would cause problems or look ugly.
2897 # WARNING: Use '\'' to represent an apostrophe within the trap.
2898 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2899 trap 'exit_status=$?
2900   # Save into config.log some information that might help in debugging.
2901   {
2902     echo
2903
2904     $as_echo "## ---------------- ##
2905 ## Cache variables. ##
2906 ## ---------------- ##"
2907     echo
2908     # The following way of writing the cache mishandles newlines in values,
2909 (
2910   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2911     eval ac_val=\$$ac_var
2912     case $ac_val in #(
2913     *${as_nl}*)
2914       case $ac_var in #(
2915       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2917       esac
2918       case $ac_var in #(
2919       _ | IFS | as_nl) ;; #(
2920       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2921       *) { eval $ac_var=; unset $ac_var;} ;;
2922       esac ;;
2923     esac
2924   done
2925   (set) 2>&1 |
2926     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2927     *${as_nl}ac_space=\ *)
2928       sed -n \
2929         "s/'\''/'\''\\\\'\'''\''/g;
2930           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2931       ;; #(
2932     *)
2933       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2934       ;;
2935     esac |
2936     sort
2937 )
2938     echo
2939
2940     $as_echo "## ----------------- ##
2941 ## Output variables. ##
2942 ## ----------------- ##"
2943     echo
2944     for ac_var in $ac_subst_vars
2945     do
2946       eval ac_val=\$$ac_var
2947       case $ac_val in
2948       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2949       esac
2950       $as_echo "$ac_var='\''$ac_val'\''"
2951     done | sort
2952     echo
2953
2954     if test -n "$ac_subst_files"; then
2955       $as_echo "## ------------------- ##
2956 ## File substitutions. ##
2957 ## ------------------- ##"
2958       echo
2959       for ac_var in $ac_subst_files
2960       do
2961         eval ac_val=\$$ac_var
2962         case $ac_val in
2963         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2964         esac
2965         $as_echo "$ac_var='\''$ac_val'\''"
2966       done | sort
2967       echo
2968     fi
2969
2970     if test -s confdefs.h; then
2971       $as_echo "## ----------- ##
2972 ## confdefs.h. ##
2973 ## ----------- ##"
2974       echo
2975       cat confdefs.h
2976       echo
2977     fi
2978     test "$ac_signal" != 0 &&
2979       $as_echo "$as_me: caught signal $ac_signal"
2980     $as_echo "$as_me: exit $exit_status"
2981   } >&5
2982   rm -f core *.core core.conftest.* &&
2983     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2984     exit $exit_status
2985 ' 0
2986 for ac_signal in 1 2 13 15; do
2987   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2988 done
2989 ac_signal=0
2990
2991 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2992 rm -f -r conftest* confdefs.h
2993
2994 $as_echo "/* confdefs.h */" > confdefs.h
2995
2996 # Predefined preprocessor variables.
2997
2998 cat >>confdefs.h <<_ACEOF
2999 #define PACKAGE_NAME "$PACKAGE_NAME"
3000 _ACEOF
3001
3002 cat >>confdefs.h <<_ACEOF
3003 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3004 _ACEOF
3005
3006 cat >>confdefs.h <<_ACEOF
3007 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3008 _ACEOF
3009
3010 cat >>confdefs.h <<_ACEOF
3011 #define PACKAGE_STRING "$PACKAGE_STRING"
3012 _ACEOF
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3016 _ACEOF
3017
3018 cat >>confdefs.h <<_ACEOF
3019 #define PACKAGE_URL "$PACKAGE_URL"
3020 _ACEOF
3021
3022
3023 # Let the site file select an alternate cache file if it wants to.
3024 # Prefer an explicitly selected file to automatically selected ones.
3025 ac_site_file1=NONE
3026 ac_site_file2=NONE
3027 if test -n "$CONFIG_SITE"; then
3028   # We do not want a PATH search for config.site.
3029   case $CONFIG_SITE in #((
3030     -*)  ac_site_file1=./$CONFIG_SITE;;
3031     */*) ac_site_file1=$CONFIG_SITE;;
3032     *)   ac_site_file1=./$CONFIG_SITE;;
3033   esac
3034 elif test "x$prefix" != xNONE; then
3035   ac_site_file1=$prefix/share/config.site
3036   ac_site_file2=$prefix/etc/config.site
3037 else
3038   ac_site_file1=$ac_default_prefix/share/config.site
3039   ac_site_file2=$ac_default_prefix/etc/config.site
3040 fi
3041 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3042 do
3043   test "x$ac_site_file" = xNONE && continue
3044   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3045     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3046 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3047     sed 's/^/| /' "$ac_site_file" >&5
3048     . "$ac_site_file" \
3049       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "failed to load site script $ac_site_file
3052 See \`config.log' for more details" "$LINENO" 5; }
3053   fi
3054 done
3055
3056 if test -r "$cache_file"; then
3057   # Some versions of bash will fail to source /dev/null (special files
3058   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3059   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3060     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3061 $as_echo "$as_me: loading cache $cache_file" >&6;}
3062     case $cache_file in
3063       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3064       *)                      . "./$cache_file";;
3065     esac
3066   fi
3067 else
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3069 $as_echo "$as_me: creating cache $cache_file" >&6;}
3070   >$cache_file
3071 fi
3072
3073 as_fn_append ac_header_list " stdlib.h"
3074 as_fn_append ac_header_list " unistd.h"
3075 as_fn_append ac_header_list " sys/param.h"
3076 # Check that the precious variables saved in the cache have kept the same
3077 # value.
3078 ac_cache_corrupted=false
3079 for ac_var in $ac_precious_vars; do
3080   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3081   eval ac_new_set=\$ac_env_${ac_var}_set
3082   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3083   eval ac_new_val=\$ac_env_${ac_var}_value
3084   case $ac_old_set,$ac_new_set in
3085     set,)
3086       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3087 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3088       ac_cache_corrupted=: ;;
3089     ,set)
3090       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3091 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3092       ac_cache_corrupted=: ;;
3093     ,);;
3094     *)
3095       if test "x$ac_old_val" != "x$ac_new_val"; then
3096         # differences in whitespace do not lead to failure.
3097         ac_old_val_w=`echo x $ac_old_val`
3098         ac_new_val_w=`echo x $ac_new_val`
3099         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3100           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3101 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3102           ac_cache_corrupted=:
3103         else
3104           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3105 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3106           eval $ac_var=\$ac_old_val
3107         fi
3108         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3109 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3110         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3111 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3112       fi;;
3113   esac
3114   # Pass precious variables to config.status.
3115   if test "$ac_new_set" = set; then
3116     case $ac_new_val in
3117     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3118     *) ac_arg=$ac_var=$ac_new_val ;;
3119     esac
3120     case " $ac_configure_args " in
3121       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3122       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3123     esac
3124   fi
3125 done
3126 if $ac_cache_corrupted; then
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3130 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3131   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3132 fi
3133 ## -------------------- ##
3134 ## Main body of script. ##
3135 ## -------------------- ##
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144
3145
3146 BUILD_DIR=`pwd`
3147 cd ..
3148 TOP_DIR=`pwd`
3149 cd ${BUILD_DIR}
3150
3151
3152 ac_aux_dir=
3153 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3154   if test -f "$ac_dir/install-sh"; then
3155     ac_aux_dir=$ac_dir
3156     ac_install_sh="$ac_aux_dir/install-sh -c"
3157     break
3158   elif test -f "$ac_dir/install.sh"; then
3159     ac_aux_dir=$ac_dir
3160     ac_install_sh="$ac_aux_dir/install.sh -c"
3161     break
3162   elif test -f "$ac_dir/shtool"; then
3163     ac_aux_dir=$ac_dir
3164     ac_install_sh="$ac_aux_dir/shtool install -c"
3165     break
3166   fi
3167 done
3168 if test -z "$ac_aux_dir"; then
3169   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3170 fi
3171
3172 # These three variables are undocumented and unsupported,
3173 # and are intended to be withdrawn in a future Autoconf release.
3174 # They can cause serious problems if a builder's source tree is in a directory
3175 # whose full name contains unusual characters.
3176 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3177 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3178 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3179
3180
3181 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3182
3183
3184 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3185 WIN32MAINDIR=${BUILD_DIR}
3186 WIN32TOPDIR=${TOP_DIR}
3187
3188
3189
3190
3191 for ac_prog in true
3192 do
3193   # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_path_TRUEPRG+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   case $TRUEPRG in
3201   [\\/]* | ?:[\\/]*)
3202   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3203   ;;
3204   *)
3205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210     for ac_exec_ext in '' $ac_executable_extensions; do
3211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217   done
3218 IFS=$as_save_IFS
3219
3220   ;;
3221 esac
3222 fi
3223 TRUEPRG=$ac_cv_path_TRUEPRG
3224 if test -n "$TRUEPRG"; then
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3226 $as_echo "$TRUEPRG" >&6; }
3227 else
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233   test -n "$TRUEPRG" && break
3234 done
3235 test -n "$TRUEPRG" || TRUEPRG=":"
3236
3237 for ac_prog in false
3238 do
3239   # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy $ac_prog; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_path_FALSEPRG+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   case $FALSEPRG in
3247   [\\/]* | ?:[\\/]*)
3248   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3249   ;;
3250   *)
3251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265
3266   ;;
3267 esac
3268 fi
3269 FALSEPRG=$ac_cv_path_FALSEPRG
3270 if test -n "$FALSEPRG"; then
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3272 $as_echo "$FALSEPRG" >&6; }
3273 else
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279   test -n "$FALSEPRG" && break
3280 done
3281 test -n "$FALSEPRG" || FALSEPRG=":"
3282
3283
3284
3285 post_host=
3286 if test "x$BACULA" != x; then
3287    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3288 fi
3289 BACULA=${BACULA:-Bacula}
3290 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3293 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3294 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3295 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3296 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3299 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3300 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3301 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3302
3303
3304 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3305 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3306 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3307
3308 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3309 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3310
3311
3312 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3313 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3314
3315 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3316 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3317
3318
3319 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3320
3321 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3322
3323
3324 PFILES="platforms/Makefile"
3325
3326 echo "configuring for ${BACULA} $VERSION ($DATE)"
3327
3328
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 if test -n "$ac_tool_prefix"; then
3336   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_CC+:} false; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$CC"; then
3344   ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351     for ac_exec_ext in '' $ac_executable_extensions; do
3352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358   done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373 fi
3374 if test -z "$ac_cv_prog_CC"; then
3375   ac_ct_CC=$CC
3376   # Extract the first word of "gcc", so it can be a program name with args.
3377 set dummy gcc; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   if test -n "$ac_ct_CC"; then
3384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_ac_ct_CC="gcc"
3394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398   done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412   if test "x$ac_ct_CC" = x; then
3413     CC=""
3414   else
3415     case $cross_compiling:$ac_tool_warned in
3416 yes:)
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3419 ac_tool_warned=yes ;;
3420 esac
3421     CC=$ac_ct_CC
3422   fi
3423 else
3424   CC="$ac_cv_prog_CC"
3425 fi
3426
3427 if test -z "$CC"; then
3428           if test -n "$ac_tool_prefix"; then
3429     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3430 set dummy ${ac_tool_prefix}cc; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_CC+:} false; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   if test -n "$CC"; then
3437   ac_cv_prog_CC="$CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442   IFS=$as_save_IFS
3443   test -z "$as_dir" && as_dir=.
3444     for ac_exec_ext in '' $ac_executable_extensions; do
3445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446     ac_cv_prog_CC="${ac_tool_prefix}cc"
3447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448     break 2
3449   fi
3450 done
3451   done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 CC=$ac_cv_prog_CC
3457 if test -n "$CC"; then
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459 $as_echo "$CC" >&6; }
3460 else
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 fi
3464
3465
3466   fi
3467 fi
3468 if test -z "$CC"; then
3469   # Extract the first word of "cc", so it can be a program name with args.
3470 set dummy cc; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_CC+:} false; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   if test -n "$CC"; then
3477   ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479   ac_prog_rejected=no
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3488        ac_prog_rejected=yes
3489        continue
3490      fi
3491     ac_cv_prog_CC="cc"
3492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493     break 2
3494   fi
3495 done
3496   done
3497 IFS=$as_save_IFS
3498
3499 if test $ac_prog_rejected = yes; then
3500   # We found a bogon in the path, so make sure we never use it.
3501   set dummy $ac_cv_prog_CC
3502   shift
3503   if test $# != 0; then
3504     # We chose a different compiler from the bogus one.
3505     # However, it has the same basename, so the bogon will be chosen
3506     # first if we set CC to just the basename; use the full file name.
3507     shift
3508     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3509   fi
3510 fi
3511 fi
3512 fi
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 $as_echo "$CC" >&6; }
3517 else
3518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3520 fi
3521
3522
3523 fi
3524 if test -z "$CC"; then
3525   if test -n "$ac_tool_prefix"; then
3526   for ac_prog in cl.exe
3527   do
3528     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CC+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   if test -n "$CC"; then
3536   ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543     for ac_exec_ext in '' $ac_executable_extensions; do
3544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550   done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3559 else
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564
3565     test -n "$CC" && break
3566   done
3567 fi
3568 if test -z "$CC"; then
3569   ac_ct_CC=$CC
3570   for ac_prog in cl.exe
3571 do
3572   # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579   if test -n "$ac_ct_CC"; then
3580   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587     for ac_exec_ext in '' $ac_executable_extensions; do
3588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589     ac_cv_prog_ac_ct_CC="$ac_prog"
3590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591     break 2
3592   fi
3593 done
3594   done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3600 if test -n "$ac_ct_CC"; then
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3602 $as_echo "$ac_ct_CC" >&6; }
3603 else
3604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 fi
3607
3608
3609   test -n "$ac_ct_CC" && break
3610 done
3611
3612   if test "x$ac_ct_CC" = x; then
3613     CC=""
3614   else
3615     case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621     CC=$ac_ct_CC
3622   fi
3623 fi
3624
3625 fi
3626
3627
3628 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "no acceptable C compiler found in \$PATH
3631 See \`config.log' for more details" "$LINENO" 5; }
3632
3633 # Provide some information about the compiler.
3634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3635 set X $ac_compile
3636 ac_compiler=$2
3637 for ac_option in --version -v -V -qversion; do
3638   { { ac_try="$ac_compiler $ac_option >&5"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3646   ac_status=$?
3647   if test -s conftest.err; then
3648     sed '10a\
3649 ... rest of stderr output deleted ...
3650          10q' conftest.err >conftest.er1
3651     cat conftest.er1 >&5
3652   fi
3653   rm -f conftest.er1 conftest.err
3654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655   test $ac_status = 0; }
3656 done
3657
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h.  */
3660
3661 int
3662 main ()
3663 {
3664
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 ac_clean_files_save=$ac_clean_files
3670 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3671 # Try to create an executable without -o first, disregard a.out.
3672 # It will help us diagnose broken compilers, and finding out an intuition
3673 # of exeext.
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3675 $as_echo_n "checking whether the C compiler works... " >&6; }
3676 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3677
3678 # The possible output files:
3679 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3680
3681 ac_rmfiles=
3682 for ac_file in $ac_files
3683 do
3684   case $ac_file in
3685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3686     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3687   esac
3688 done
3689 rm -f $ac_rmfiles
3690
3691 if { { ac_try="$ac_link_default"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698   (eval "$ac_link_default") 2>&5
3699   ac_status=$?
3700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701   test $ac_status = 0; }; then :
3702   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3703 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3704 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3705 # so that the user can short-circuit this test for compilers unknown to
3706 # Autoconf.
3707 for ac_file in $ac_files ''
3708 do
3709   test -f "$ac_file" || continue
3710   case $ac_file in
3711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3712         ;;
3713     [ab].out )
3714         # We found the default executable, but exeext='' is most
3715         # certainly right.
3716         break;;
3717     *.* )
3718         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3719         then :; else
3720            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3721         fi
3722         # We set ac_cv_exeext here because the later test for it is not
3723         # safe: cross compilers may not add the suffix if given an `-o'
3724         # argument, so we may need to know it at that point already.
3725         # Even if this section looks crufty: it has the advantage of
3726         # actually working.
3727         break;;
3728     * )
3729         break;;
3730   esac
3731 done
3732 test "$ac_cv_exeext" = no && ac_cv_exeext=
3733
3734 else
3735   ac_file=''
3736 fi
3737 if test -z "$ac_file"; then :
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 $as_echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error 77 "C compiler cannot create executables
3746 See \`config.log' for more details" "$LINENO" 5; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 $as_echo "yes" >&6; }
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3752 $as_echo_n "checking for C compiler default output file name... " >&6; }
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3754 $as_echo "$ac_file" >&6; }
3755 ac_exeext=$ac_cv_exeext
3756
3757 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3758 ac_clean_files=$ac_clean_files_save
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3760 $as_echo_n "checking for suffix of executables... " >&6; }
3761 if { { ac_try="$ac_link"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_link") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }; then :
3772   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3773 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3774 # work properly (i.e., refer to `conftest.exe'), while it won't with
3775 # `rm'.
3776 for ac_file in conftest.exe conftest conftest.*; do
3777   test -f "$ac_file" || continue
3778   case $ac_file in
3779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3780     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781           break;;
3782     * ) break;;
3783   esac
3784 done
3785 else
3786   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3789 See \`config.log' for more details" "$LINENO" 5; }
3790 fi
3791 rm -f conftest conftest$ac_cv_exeext
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3793 $as_echo "$ac_cv_exeext" >&6; }
3794
3795 rm -f conftest.$ac_ext
3796 EXEEXT=$ac_cv_exeext
3797 ac_exeext=$EXEEXT
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h.  */
3800 #include <stdio.h>
3801 int
3802 main ()
3803 {
3804 FILE *f = fopen ("conftest.out", "w");
3805  return ferror (f) || fclose (f) != 0;
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 ac_clean_files="$ac_clean_files conftest.out"
3812 # Check that the compiler produces executables we can run.  If not, either
3813 # the compiler is broken, or we cross compile.
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3815 $as_echo_n "checking whether we are cross compiling... " >&6; }
3816 if test "$cross_compiling" != yes; then
3817   { { ac_try="$ac_link"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824   (eval "$ac_link") 2>&5
3825   ac_status=$?
3826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827   test $ac_status = 0; }
3828   if { ac_try='./conftest$ac_cv_exeext'
3829   { { case "(($ac_try" in
3830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831   *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835   (eval "$ac_try") 2>&5
3836   ac_status=$?
3837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838   test $ac_status = 0; }; }; then
3839     cross_compiling=no
3840   else
3841     if test "$cross_compiling" = maybe; then
3842         cross_compiling=yes
3843     else
3844         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error $? "cannot run C compiled programs.
3847 If you meant to cross compile, use \`--host'.
3848 See \`config.log' for more details" "$LINENO" 5; }
3849     fi
3850   fi
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3853 $as_echo "$cross_compiling" >&6; }
3854
3855 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3856 ac_clean_files=$ac_clean_files_save
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3858 $as_echo_n "checking for suffix of object files... " >&6; }
3859 if ${ac_cv_objext+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h.  */
3864
3865 int
3866 main ()
3867 {
3868
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest.o conftest.obj
3874 if { { ac_try="$ac_compile"
3875 case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881   (eval "$ac_compile") 2>&5
3882   ac_status=$?
3883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884   test $ac_status = 0; }; then :
3885   for ac_file in conftest.o conftest.obj conftest.*; do
3886   test -f "$ac_file" || continue;
3887   case $ac_file in
3888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3889     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3890        break;;
3891   esac
3892 done
3893 else
3894   $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "cannot compute suffix of object files: cannot compile
3900 See \`config.log' for more details" "$LINENO" 5; }
3901 fi
3902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3905 $as_echo "$ac_cv_objext" >&6; }
3906 OBJEXT=$ac_cv_objext
3907 ac_objext=$OBJEXT
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3909 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3910 if ${ac_cv_c_compiler_gnu+:} false; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h.  */
3915
3916 int
3917 main ()
3918 {
3919 #ifndef __GNUC__
3920        choke me
3921 #endif
3922
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928   ac_compiler_gnu=yes
3929 else
3930   ac_compiler_gnu=no
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3934
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3937 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3938 if test $ac_compiler_gnu = yes; then
3939   GCC=yes
3940 else
3941   GCC=
3942 fi
3943 ac_test_CFLAGS=${CFLAGS+set}
3944 ac_save_CFLAGS=$CFLAGS
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3946 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3947 if ${ac_cv_prog_cc_g+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   ac_save_c_werror_flag=$ac_c_werror_flag
3951    ac_c_werror_flag=yes
3952    ac_cv_prog_cc_g=no
3953    CFLAGS="-g"
3954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h.  */
3956
3957 int
3958 main ()
3959 {
3960
3961   ;
3962   return 0;
3963 }
3964 _ACEOF
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966   ac_cv_prog_cc_g=yes
3967 else
3968   CFLAGS=""
3969       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h.  */
3971
3972 int
3973 main ()
3974 {
3975
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981
3982 else
3983   ac_c_werror_flag=$ac_save_c_werror_flag
3984          CFLAGS="-g"
3985          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997   ac_cv_prog_cc_g=yes
3998 fi
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004    ac_c_werror_flag=$ac_save_c_werror_flag
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4007 $as_echo "$ac_cv_prog_cc_g" >&6; }
4008 if test "$ac_test_CFLAGS" = set; then
4009   CFLAGS=$ac_save_CFLAGS
4010 elif test $ac_cv_prog_cc_g = yes; then
4011   if test "$GCC" = yes; then
4012     CFLAGS="-g -O2"
4013   else
4014     CFLAGS="-g"
4015   fi
4016 else
4017   if test "$GCC" = yes; then
4018     CFLAGS="-O2"
4019   else
4020     CFLAGS=
4021   fi
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4025 if ${ac_cv_prog_cc_c89+:} false; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028   ac_cv_prog_cc_c89=no
4029 ac_save_CC=$CC
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h.  */
4032 #include <stdarg.h>
4033 #include <stdio.h>
4034 struct stat;
4035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4036 struct buf { int x; };
4037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4038 static char *e (p, i)
4039      char **p;
4040      int i;
4041 {
4042   return p[i];
4043 }
4044 static char *f (char * (*g) (char **, int), char **p, ...)
4045 {
4046   char *s;
4047   va_list v;
4048   va_start (v,p);
4049   s = g (p, va_arg (v,int));
4050   va_end (v);
4051   return s;
4052 }
4053
4054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4055    function prototypes and stuff, but not '\xHH' hex character constants.
4056    These don't provoke an error unfortunately, instead are silently treated
4057    as 'x'.  The following induces an error, until -std is added to get
4058    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4059    array size at least.  It's necessary to write '\x00'==0 to get something
4060    that's true only with -std.  */
4061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4062
4063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4064    inside strings and character constants.  */
4065 #define FOO(x) 'x'
4066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4067
4068 int test (int i, double x);
4069 struct s1 {int (*f) (int a);};
4070 struct s2 {int (*f) (double a);};
4071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4072 int argc;
4073 char **argv;
4074 int
4075 main ()
4076 {
4077 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4083         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4084 do
4085   CC="$ac_save_CC $ac_arg"
4086   if ac_fn_c_try_compile "$LINENO"; then :
4087   ac_cv_prog_cc_c89=$ac_arg
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext
4090   test "x$ac_cv_prog_cc_c89" != "xno" && break
4091 done
4092 rm -f conftest.$ac_ext
4093 CC=$ac_save_CC
4094
4095 fi
4096 # AC_CACHE_VAL
4097 case "x$ac_cv_prog_cc_c89" in
4098   x)
4099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4100 $as_echo "none needed" >&6; } ;;
4101   xno)
4102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4103 $as_echo "unsupported" >&6; } ;;
4104   *)
4105     CC="$CC $ac_cv_prog_cc_c89"
4106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4108 esac
4109 if test "x$ac_cv_prog_cc_c89" != xno; then :
4110
4111 fi
4112
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118                 ac_ext=cpp
4119 ac_cpp='$CXXCPP $CPPFLAGS'
4120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4123 if test -z "$CXX"; then
4124   if test -n "$CCC"; then
4125     CXX=$CCC
4126   else
4127     if test -n "$ac_tool_prefix"; then
4128   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4129   do
4130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_CXX+:} false; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   if test -n "$CXX"; then
4138   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145     for ac_exec_ext in '' $ac_executable_extensions; do
4146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152   done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 CXX=$ac_cv_prog_CXX
4158 if test -n "$CXX"; then
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4160 $as_echo "$CXX" >&6; }
4161 else
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166
4167     test -n "$CXX" && break
4168   done
4169 fi
4170 if test -z "$CXX"; then
4171   ac_ct_CXX=$CXX
4172   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4173 do
4174   # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   if test -n "$ac_ct_CXX"; then
4182   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191     ac_cv_prog_ac_ct_CXX="$ac_prog"
4192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196   done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4202 if test -n "$ac_ct_CXX"; then
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4204 $as_echo "$ac_ct_CXX" >&6; }
4205 else
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211   test -n "$ac_ct_CXX" && break
4212 done
4213
4214   if test "x$ac_ct_CXX" = x; then
4215     CXX="g++"
4216   else
4217     case $cross_compiling:$ac_tool_warned in
4218 yes:)
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4222 esac
4223     CXX=$ac_ct_CXX
4224   fi
4225 fi
4226
4227   fi
4228 fi
4229 # Provide some information about the compiler.
4230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4231 set X $ac_compile
4232 ac_compiler=$2
4233 for ac_option in --version -v -V -qversion; do
4234   { { ac_try="$ac_compiler $ac_option >&5"
4235 case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 $as_echo "$ac_try_echo"; } >&5
4241   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4242   ac_status=$?
4243   if test -s conftest.err; then
4244     sed '10a\
4245 ... rest of stderr output deleted ...
4246          10q' conftest.err >conftest.er1
4247     cat conftest.er1 >&5
4248   fi
4249   rm -f conftest.er1 conftest.err
4250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251   test $ac_status = 0; }
4252 done
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4255 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4256 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h.  */
4261
4262 int
4263 main ()
4264 {
4265 #ifndef __GNUC__
4266        choke me
4267 #endif
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_cxx_try_compile "$LINENO"; then :
4274   ac_compiler_gnu=yes
4275 else
4276   ac_compiler_gnu=no
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4280
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4283 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4284 if test $ac_compiler_gnu = yes; then
4285   GXX=yes
4286 else
4287   GXX=
4288 fi
4289 ac_test_CXXFLAGS=${CXXFLAGS+set}
4290 ac_save_CXXFLAGS=$CXXFLAGS
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4292 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4293 if ${ac_cv_prog_cxx_g+:} false; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4297    ac_cxx_werror_flag=yes
4298    ac_cv_prog_cxx_g=no
4299    CXXFLAGS="-g"
4300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h.  */
4302
4303 int
4304 main ()
4305 {
4306
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_cxx_try_compile "$LINENO"; then :
4312   ac_cv_prog_cxx_g=yes
4313 else
4314   CXXFLAGS=""
4315       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_cxx_try_compile "$LINENO"; then :
4327
4328 else
4329   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4330          CXXFLAGS="-g"
4331          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h.  */
4333
4334 int
4335 main ()
4336 {
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 if ac_fn_cxx_try_compile "$LINENO"; then :
4343   ac_cv_prog_cxx_g=yes
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4353 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4354 if test "$ac_test_CXXFLAGS" = set; then
4355   CXXFLAGS=$ac_save_CXXFLAGS
4356 elif test $ac_cv_prog_cxx_g = yes; then
4357   if test "$GXX" = yes; then
4358     CXXFLAGS="-g -O2"
4359   else
4360     CXXFLAGS="-g"
4361   fi
4362 else
4363   if test "$GXX" = yes; then
4364     CXXFLAGS="-O2"
4365   else
4366     CXXFLAGS=
4367   fi
4368 fi
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375 if test "x$CC" != xcc; then
4376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4377 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4378 else
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4380 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4381 fi
4382 set dummy $CC; ac_cc=`$as_echo "$2" |
4383                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4384 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h.  */
4389
4390 int
4391 main ()
4392 {
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 # Make sure it works both with $CC and with simple cc.
4399 # We do the test twice because some compilers refuse to overwrite an
4400 # existing .o file with -o, though they will create one.
4401 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4402 rm -f conftest2.*
4403 if { { case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409   (eval "$ac_try") 2>&5
4410   ac_status=$?
4411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412   test $ac_status = 0; } &&
4413    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422   test $ac_status = 0; };
4423 then
4424   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4425   if test "x$CC" != xcc; then
4426     # Test first that cc exists at all.
4427     if { ac_try='cc -c conftest.$ac_ext >&5'
4428   { { case "(($ac_try" in
4429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430   *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434   (eval "$ac_try") 2>&5
4435   ac_status=$?
4436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437   test $ac_status = 0; }; }; then
4438       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4439       rm -f conftest2.*
4440       if { { case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446   (eval "$ac_try") 2>&5
4447   ac_status=$?
4448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449   test $ac_status = 0; } &&
4450          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_try") 2>&5
4457   ac_status=$?
4458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459   test $ac_status = 0; };
4460       then
4461         # cc works too.
4462         :
4463       else
4464         # cc exists but doesn't like -o.
4465         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4466       fi
4467     fi
4468   fi
4469 else
4470   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4471 fi
4472 rm -f core conftest*
4473
4474 fi
4475 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4477 $as_echo "yes" >&6; }
4478 else
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481
4482 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4483
4484 fi
4485
4486 ac_ext=c
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4492 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4493 # On Suns, sometimes $CPP names a directory.
4494 if test -n "$CPP" && test -d "$CPP"; then
4495   CPP=
4496 fi
4497 if test -z "$CPP"; then
4498   if ${ac_cv_prog_CPP+:} false; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501       # Double quotes because CPP needs to be expanded
4502     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4503     do
4504       ac_preproc_ok=false
4505 for ac_c_preproc_warn_flag in '' yes
4506 do
4507   # Use a header file that comes with gcc, so configuring glibc
4508   # with a fresh cross-compiler works.
4509   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510   # <limits.h> exists even on freestanding compilers.
4511   # On the NeXT, cc -E runs the code through the compiler's parser,
4512   # not just through cpp. "Syntax error" is here to catch this case.
4513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h.  */
4515 #ifdef __STDC__
4516 # include <limits.h>
4517 #else
4518 # include <assert.h>
4519 #endif
4520                      Syntax error
4521 _ACEOF
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4523
4524 else
4525   # Broken: fails on valid input.
4526 continue
4527 fi
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4529
4530   # OK, works on sane cases.  Now check whether nonexistent headers
4531   # can be detected and how.
4532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534 #include <ac_nonexistent.h>
4535 _ACEOF
4536 if ac_fn_c_try_cpp "$LINENO"; then :
4537   # Broken: success on invalid input.
4538 continue
4539 else
4540   # Passes both tests.
4541 ac_preproc_ok=:
4542 break
4543 fi
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4545
4546 done
4547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548 rm -f conftest.i conftest.err conftest.$ac_ext
4549 if $ac_preproc_ok; then :
4550   break
4551 fi
4552
4553     done
4554     ac_cv_prog_CPP=$CPP
4555
4556 fi
4557   CPP=$ac_cv_prog_CPP
4558 else
4559   ac_cv_prog_CPP=$CPP
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4562 $as_echo "$CPP" >&6; }
4563 ac_preproc_ok=false
4564 for ac_c_preproc_warn_flag in '' yes
4565 do
4566   # Use a header file that comes with gcc, so configuring glibc
4567   # with a fresh cross-compiler works.
4568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569   # <limits.h> exists even on freestanding compilers.
4570   # On the NeXT, cc -E runs the code through the compiler's parser,
4571   # not just through cpp. "Syntax error" is here to catch this case.
4572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h.  */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579                      Syntax error
4580 _ACEOF
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4582
4583 else
4584   # Broken: fails on valid input.
4585 continue
4586 fi
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4588
4589   # OK, works on sane cases.  Now check whether nonexistent headers
4590   # can be detected and how.
4591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593 #include <ac_nonexistent.h>
4594 _ACEOF
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596   # Broken: success on invalid input.
4597 continue
4598 else
4599   # Passes both tests.
4600 ac_preproc_ok=:
4601 break
4602 fi
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4604
4605 done
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then :
4609
4610 else
4611   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4614 See \`config.log' for more details" "$LINENO" 5; }
4615 fi
4616
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626 if ${ac_cv_path_GREP+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if test -z "$GREP"; then
4630   ac_path_GREP_found=false
4631   # Loop through the user's path and test for each of PROGNAME-LIST
4632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637     for ac_prog in grep ggrep; do
4638     for ac_exec_ext in '' $ac_executable_extensions; do
4639       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640       as_fn_executable_p "$ac_path_GREP" || continue
4641 # Check for GNU ac_path_GREP and select it if it is found.
4642   # Check for GNU $ac_path_GREP
4643 case `"$ac_path_GREP" --version 2>&1` in
4644 *GNU*)
4645   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646 *)
4647   ac_count=0
4648   $as_echo_n 0123456789 >"conftest.in"
4649   while :
4650   do
4651     cat "conftest.in" "conftest.in" >"conftest.tmp"
4652     mv "conftest.tmp" "conftest.in"
4653     cp "conftest.in" "conftest.nl"
4654     $as_echo 'GREP' >> "conftest.nl"
4655     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657     as_fn_arith $ac_count + 1 && ac_count=$as_val
4658     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659       # Best one so far, save it but keep looking for a better one
4660       ac_cv_path_GREP="$ac_path_GREP"
4661       ac_path_GREP_max=$ac_count
4662     fi
4663     # 10*(2^10) chars as input seems more than enough
4664     test $ac_count -gt 10 && break
4665   done
4666   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669       $ac_path_GREP_found && break 3
4670     done
4671   done
4672   done
4673 IFS=$as_save_IFS
4674   if test -z "$ac_cv_path_GREP"; then
4675     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676   fi
4677 else
4678   ac_cv_path_GREP=$GREP
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683 $as_echo "$ac_cv_path_GREP" >&6; }
4684  GREP="$ac_cv_path_GREP"
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688 $as_echo_n "checking for egrep... " >&6; }
4689 if ${ac_cv_path_EGREP+:} false; then :
4690   $as_echo_n "(cached) " >&6
4691 else
4692   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693    then ac_cv_path_EGREP="$GREP -E"
4694    else
4695      if test -z "$EGREP"; then
4696   ac_path_EGREP_found=false
4697   # Loop through the user's path and test for each of PROGNAME-LIST
4698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703     for ac_prog in egrep; do
4704     for ac_exec_ext in '' $ac_executable_extensions; do
4705       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706       as_fn_executable_p "$ac_path_EGREP" || continue
4707 # Check for GNU ac_path_EGREP and select it if it is found.
4708   # Check for GNU $ac_path_EGREP
4709 case `"$ac_path_EGREP" --version 2>&1` in
4710 *GNU*)
4711   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712 *)
4713   ac_count=0
4714   $as_echo_n 0123456789 >"conftest.in"
4715   while :
4716   do
4717     cat "conftest.in" "conftest.in" >"conftest.tmp"
4718     mv "conftest.tmp" "conftest.in"
4719     cp "conftest.in" "conftest.nl"
4720     $as_echo 'EGREP' >> "conftest.nl"
4721     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723     as_fn_arith $ac_count + 1 && ac_count=$as_val
4724     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725       # Best one so far, save it but keep looking for a better one
4726       ac_cv_path_EGREP="$ac_path_EGREP"
4727       ac_path_EGREP_max=$ac_count
4728     fi
4729     # 10*(2^10) chars as input seems more than enough
4730     test $ac_count -gt 10 && break
4731   done
4732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 esac
4734
4735       $ac_path_EGREP_found && break 3
4736     done
4737   done
4738   done
4739 IFS=$as_save_IFS
4740   if test -z "$ac_cv_path_EGREP"; then
4741     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742   fi
4743 else
4744   ac_cv_path_EGREP=$EGREP
4745 fi
4746
4747    fi
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750 $as_echo "$ac_cv_path_EGREP" >&6; }
4751  EGREP="$ac_cv_path_EGREP"
4752
4753
4754 if test $ac_cv_c_compiler_gnu = yes; then
4755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4756 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4757 if ${ac_cv_prog_gcc_traditional+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760     ac_pattern="Autoconf.*'x'"
4761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763 #include <sgtty.h>
4764 Autoconf TIOCGETP
4765 _ACEOF
4766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4767   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4768   ac_cv_prog_gcc_traditional=yes
4769 else
4770   ac_cv_prog_gcc_traditional=no
4771 fi
4772 rm -f conftest*
4773
4774
4775   if test $ac_cv_prog_gcc_traditional = no; then
4776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778 #include <termio.h>
4779 Autoconf TCGETA
4780 _ACEOF
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4783   ac_cv_prog_gcc_traditional=yes
4784 fi
4785 rm -f conftest*
4786
4787   fi
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4790 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4791   if test $ac_cv_prog_gcc_traditional = yes; then
4792     CC="$CC -traditional"
4793   fi
4794 fi
4795
4796 BASECC=`basename $CC`
4797 have_gcc=no
4798 if test x"$GCC" = "xyes"; then
4799    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4800
4801    have_gcc=yes
4802 fi
4803 # Extract the first word of "$CXX", so it can be a program name with args.
4804 set dummy $CXX; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_path_CXX+:} false; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810   case $CXX in
4811   [\\/]* | ?:[\\/]*)
4812   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4813   ;;
4814   *)
4815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818   IFS=$as_save_IFS
4819   test -z "$as_dir" && as_dir=.
4820     for ac_exec_ext in '' $ac_executable_extensions; do
4821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824     break 2
4825   fi
4826 done
4827   done
4828 IFS=$as_save_IFS
4829
4830   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4831   ;;
4832 esac
4833 fi
4834 CXX=$ac_cv_path_CXX
4835 if test -n "$CXX"; then
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4837 $as_echo "$CXX" >&6; }
4838 else
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 if test ! -e $CXX; then
4845    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4846 fi
4847
4848 # Find a good install program.  We prefer a C program (faster),
4849 # so one script is as good as another.  But avoid the broken or
4850 # incompatible versions:
4851 # SysV /etc/install, /usr/sbin/install
4852 # SunOS /usr/etc/install
4853 # IRIX /sbin/install
4854 # AIX /bin/install
4855 # AmigaOS /C/install, which installs bootblocks on floppy discs
4856 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4857 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4858 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4859 # OS/2's system install, which has a completely different semantic
4860 # ./install, which can be erroneously created by make from ./install.sh.
4861 # Reject install programs that cannot install multiple files.
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4863 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4864 if test -z "$INSTALL"; then
4865 if ${ac_cv_path_install+:} false; then :
4866   $as_echo_n "(cached) " >&6
4867 else
4868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873     # Account for people who put trailing slashes in PATH elements.
4874 case $as_dir/ in #((
4875   ./ | .// | /[cC]/* | \
4876   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4877   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4878   /usr/ucb/* ) ;;
4879   *)
4880     # OSF1 and SCO ODT 3.0 have their own names for install.
4881     # Don't use installbsd from OSF since it installs stuff as root
4882     # by default.
4883     for ac_prog in ginstall scoinst install; do
4884       for ac_exec_ext in '' $ac_executable_extensions; do
4885         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4886           if test $ac_prog = install &&
4887             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4888             # AIX install.  It has an incompatible calling convention.
4889             :
4890           elif test $ac_prog = install &&
4891             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4892             # program-specific install script used by HP pwplus--don't use.
4893             :
4894           else
4895             rm -rf conftest.one conftest.two conftest.dir
4896             echo one > conftest.one
4897             echo two > conftest.two
4898             mkdir conftest.dir
4899             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4900               test -s conftest.one && test -s conftest.two &&
4901               test -s conftest.dir/conftest.one &&
4902               test -s conftest.dir/conftest.two
4903             then
4904               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4905               break 3
4906             fi
4907           fi
4908         fi
4909       done
4910     done
4911     ;;
4912 esac
4913
4914   done
4915 IFS=$as_save_IFS
4916
4917 rm -rf conftest.one conftest.two conftest.dir
4918
4919 fi
4920   if test "${ac_cv_path_install+set}" = set; then
4921     INSTALL=$ac_cv_path_install
4922   else
4923     # As a last resort, use the slow shell script.  Don't cache a
4924     # value for INSTALL within a source directory, because that will
4925     # break other packages using the cache if that directory is
4926     # removed, or if the value is a relative name.
4927     INSTALL=$ac_install_sh
4928   fi
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4931 $as_echo "$INSTALL" >&6; }
4932
4933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4934 # It thinks the first close brace ends the variable substitution.
4935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4936
4937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4938
4939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4940
4941 # Extract the first word of "mv", so it can be a program name with args.
4942 set dummy mv; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_path_MV+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   case $MV in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4951   ;;
4952   *)
4953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958     for ac_exec_ext in '' $ac_executable_extensions; do
4959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965   done
4966 IFS=$as_save_IFS
4967
4968   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4969   ;;
4970 esac
4971 fi
4972 MV=$ac_cv_path_MV
4973 if test -n "$MV"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4975 $as_echo "$MV" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982 # Extract the first word of "rm", so it can be a program name with args.
4983 set dummy rm; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_path_REMOVE+:} false; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   case $REMOVE in
4990   [\\/]* | ?:[\\/]*)
4991   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4992   ;;
4993   *)
4994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999     for ac_exec_ext in '' $ac_executable_extensions; do
5000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006   done
5007 IFS=$as_save_IFS
5008
5009   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5010   ;;
5011 esac
5012 fi
5013 REMOVE=$ac_cv_path_REMOVE
5014 if test -n "$REMOVE"; then
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5016 $as_echo "$REMOVE" >&6; }
5017 else
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022
5023 # Extract the first word of "cp", so it can be a program name with args.
5024 set dummy cp; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_path_CP+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   case $CP in
5031   [\\/]* | ?:[\\/]*)
5032   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5033   ;;
5034   *)
5035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038   IFS=$as_save_IFS
5039   test -z "$as_dir" && as_dir=.
5040     for ac_exec_ext in '' $ac_executable_extensions; do
5041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044     break 2
5045   fi
5046 done
5047   done
5048 IFS=$as_save_IFS
5049
5050   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5051   ;;
5052 esac
5053 fi
5054 CP=$ac_cv_path_CP
5055 if test -n "$CP"; then
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5057 $as_echo "$CP" >&6; }
5058 else
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062
5063
5064 # Extract the first word of "sed", so it can be a program name with args.
5065 set dummy sed; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_path_SED+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   case $SED in
5072   [\\/]* | ?:[\\/]*)
5073   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5074   ;;
5075   *)
5076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079   IFS=$as_save_IFS
5080   test -z "$as_dir" && as_dir=.
5081     for ac_exec_ext in '' $ac_executable_extensions; do
5082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085     break 2
5086   fi
5087 done
5088   done
5089 IFS=$as_save_IFS
5090
5091   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5092   ;;
5093 esac
5094 fi
5095 SED=$ac_cv_path_SED
5096 if test -n "$SED"; then
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5098 $as_echo "$SED" >&6; }
5099 else
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103
5104
5105 # Extract the first word of "echo", so it can be a program name with args.
5106 set dummy echo; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_path_ECHO+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   case $ECHO in
5113   [\\/]* | ?:[\\/]*)
5114   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5115   ;;
5116   *)
5117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120   IFS=$as_save_IFS
5121   test -z "$as_dir" && as_dir=.
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126     break 2
5127   fi
5128 done
5129   done
5130 IFS=$as_save_IFS
5131
5132   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5133   ;;
5134 esac
5135 fi
5136 ECHO=$ac_cv_path_ECHO
5137 if test -n "$ECHO"; then
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5139 $as_echo "$ECHO" >&6; }
5140 else
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146 # Extract the first word of "cmp", so it can be a program name with args.
5147 set dummy cmp; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_path_CMP+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   case $CMP in
5154   [\\/]* | ?:[\\/]*)
5155   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5156   ;;
5157   *)
5158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   test -z "$as_dir" && as_dir=.
5163     for ac_exec_ext in '' $ac_executable_extensions; do
5164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167     break 2
5168   fi
5169 done
5170   done
5171 IFS=$as_save_IFS
5172
5173   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5174   ;;
5175 esac
5176 fi
5177 CMP=$ac_cv_path_CMP
5178 if test -n "$CMP"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5180 $as_echo "$CMP" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 # Extract the first word of "tbl", so it can be a program name with args.
5188 set dummy tbl; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_path_TBL+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   case $TBL in
5195   [\\/]* | ?:[\\/]*)
5196   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5197   ;;
5198   *)
5199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204     for ac_exec_ext in '' $ac_executable_extensions; do
5205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208     break 2
5209   fi
5210 done
5211   done
5212 IFS=$as_save_IFS
5213
5214   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5215   ;;
5216 esac
5217 fi
5218 TBL=$ac_cv_path_TBL
5219 if test -n "$TBL"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5221 $as_echo "$TBL" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228 # Extract the first word of "ar", so it can be a program name with args.
5229 set dummy ar; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_path_AR+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   case $AR in
5236   [\\/]* | ?:[\\/]*)
5237   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5238   ;;
5239   *)
5240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245     for ac_exec_ext in '' $ac_executable_extensions; do
5246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252   done
5253 IFS=$as_save_IFS
5254
5255   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5256   ;;
5257 esac
5258 fi
5259 AR=$ac_cv_path_AR
5260 if test -n "$AR"; then
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5262 $as_echo "$AR" >&6; }
5263 else
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5266 fi
5267
5268
5269 # Extract the first word of "openssl", so it can be a program name with args.
5270 set dummy openssl; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_path_OPENSSL+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   case $OPENSSL in
5277   [\\/]* | ?:[\\/]*)
5278   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5279   ;;
5280   *)
5281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286     for ac_exec_ext in '' $ac_executable_extensions; do
5287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293   done
5294 IFS=$as_save_IFS
5295
5296   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5297   ;;
5298 esac
5299 fi
5300 OPENSSL=$ac_cv_path_OPENSSL
5301 if test -n "$OPENSSL"; then
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5303 $as_echo "$OPENSSL" >&6; }
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309
5310 # Extract the first word of "mtx", so it can be a program name with args.
5311 set dummy mtx; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_path_MTX+:} false; then :
5315   $as_echo_n "(cached) " >&6
5316 else
5317   case $MTX in
5318   [\\/]* | ?:[\\/]*)
5319   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5320   ;;
5321   *)
5322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327     for ac_exec_ext in '' $ac_executable_extensions; do
5328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334   done
5335 IFS=$as_save_IFS
5336
5337   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5338   ;;
5339 esac
5340 fi
5341 MTX=$ac_cv_path_MTX
5342 if test -n "$MTX"; then
5343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5344 $as_echo "$MTX" >&6; }
5345 else
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5348 fi
5349
5350
5351 # Extract the first word of "dd", so it can be a program name with args.
5352 set dummy dd; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_path_DD+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   case $DD in
5359   [\\/]* | ?:[\\/]*)
5360   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5361   ;;
5362   *)
5363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5379   ;;
5380 esac
5381 fi
5382 DD=$ac_cv_path_DD
5383 if test -n "$DD"; then
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5385 $as_echo "$DD" >&6; }
5386 else
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 # Extract the first word of "mkisofs", so it can be a program name with args.
5393 set dummy mkisofs; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_path_MKISOFS+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   case $MKISOFS in
5400   [\\/]* | ?:[\\/]*)
5401   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5402   ;;
5403   *)
5404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5420   ;;
5421 esac
5422 fi
5423 MKISOFS=$ac_cv_path_MKISOFS
5424 if test -n "$MKISOFS"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5426 $as_echo "$MKISOFS" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433 # Extract the first word of "python", so it can be a program name with args.
5434 set dummy python; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_path_PYTHON+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   case $PYTHON in
5441   [\\/]* | ?:[\\/]*)
5442   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5443   ;;
5444   *)
5445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450     for ac_exec_ext in '' $ac_executable_extensions; do
5451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457   done
5458 IFS=$as_save_IFS
5459
5460   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5461   ;;
5462 esac
5463 fi
5464 PYTHON=$ac_cv_path_PYTHON
5465 if test -n "$PYTHON"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5467 $as_echo "$PYTHON" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473
5474 # Extract the first word of "growisofs", so it can be a program name with args.
5475 set dummy growisofs; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_path_GROWISOFS+:} false; then :
5479   $as_echo_n "(cached) " >&6
5480 else
5481   case $GROWISOFS in
5482   [\\/]* | ?:[\\/]*)
5483   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5484   ;;
5485   *)
5486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489   IFS=$as_save_IFS
5490   test -z "$as_dir" && as_dir=.
5491     for ac_exec_ext in '' $ac_executable_extensions; do
5492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495     break 2
5496   fi
5497 done
5498   done
5499 IFS=$as_save_IFS
5500
5501   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5502   ;;
5503 esac
5504 fi
5505 GROWISOFS=$ac_cv_path_GROWISOFS
5506 if test -n "$GROWISOFS"; then
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5508 $as_echo "$GROWISOFS" >&6; }
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513
5514
5515 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5516 set dummy dvd+rw-mediainfo; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   case $DVDRWMEDIAINFO in
5523   [\\/]* | ?:[\\/]*)
5524   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5525   ;;
5526   *)
5527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532     for ac_exec_ext in '' $ac_executable_extensions; do
5533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539   done
5540 IFS=$as_save_IFS
5541
5542   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5543   ;;
5544 esac
5545 fi
5546 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5547 if test -n "$DVDRWMEDIAINFO"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5549 $as_echo "$DVDRWMEDIAINFO" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5557 set dummy dvd+rw-format; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   case $DVDRWFORMAT in
5564   [\\/]* | ?:[\\/]*)
5565   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5566   ;;
5567   *)
5568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571   IFS=$as_save_IFS
5572   test -z "$as_dir" && as_dir=.
5573     for ac_exec_ext in '' $ac_executable_extensions; do
5574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577     break 2
5578   fi
5579 done
5580   done
5581 IFS=$as_save_IFS
5582
5583   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5584   ;;
5585 esac
5586 fi
5587 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5588 if test -n "$DVDRWFORMAT"; then
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5590 $as_echo "$DVDRWFORMAT" >&6; }
5591 else
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596
5597 # Extract the first word of "pkg-config", so it can be a program name with args.
5598 set dummy pkg-config; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_path_PKGCONFIG+:} false; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   case $PKGCONFIG in
5605   [\\/]* | ?:[\\/]*)
5606   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5607   ;;
5608   *)
5609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623
5624   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5625   ;;
5626 esac
5627 fi
5628 PKGCONFIG=$ac_cv_path_PKGCONFIG
5629 if test -n "$PKGCONFIG"; then
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5631 $as_echo "$PKGCONFIG" >&6; }
5632 else
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637
5638 # Extract the first word of "qmake", so it can be a program name with args.
5639 set dummy qmake; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_path_QMAKE+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   case $QMAKE in
5646   [\\/]* | ?:[\\/]*)
5647   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5648   ;;
5649   *)
5650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659     break 2
5660   fi
5661 done
5662   done
5663 IFS=$as_save_IFS
5664
5665   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5666   ;;
5667 esac
5668 fi
5669 QMAKE=$ac_cv_path_QMAKE
5670 if test -n "$QMAKE"; then
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5672 $as_echo "$QMAKE" >&6; }
5673 else
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5676 fi
5677
5678
5679 # Extract the first word of "gmake", so it can be a program name with args.
5680 set dummy gmake; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_path_GMAKE+:} false; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   case $GMAKE in
5687   [\\/]* | ?:[\\/]*)
5688   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5689   ;;
5690   *)
5691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696     for ac_exec_ext in '' $ac_executable_extensions; do
5697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703   done
5704 IFS=$as_save_IFS
5705
5706   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5707   ;;
5708 esac
5709 fi
5710 GMAKE=$ac_cv_path_GMAKE
5711 if test -n "$GMAKE"; then
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5713 $as_echo "$GMAKE" >&6; }
5714 else
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719
5720 # Extract the first word of "pidof", so it can be a program name with args.
5721 set dummy pidof; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_path_PIDOF+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   case $PIDOF in
5728   [\\/]* | ?:[\\/]*)
5729   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5730   ;;
5731   *)
5732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735   IFS=$as_save_IFS
5736   test -z "$as_dir" && as_dir=.
5737     for ac_exec_ext in '' $ac_executable_extensions; do
5738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741     break 2
5742   fi
5743 done
5744   done
5745 IFS=$as_save_IFS
5746
5747   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5748   ;;
5749 esac
5750 fi
5751 PIDOF=$ac_cv_path_PIDOF
5752 if test -n "$PIDOF"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5754 $as_echo "$PIDOF" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761 for ac_prog in gawk mawk nawk awk
5762 do
5763   # Extract the first word of "$ac_prog", so it can be a program name with args.
5764 set dummy $ac_prog; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_AWK+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   if test -n "$AWK"; then
5771   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778     for ac_exec_ext in '' $ac_executable_extensions; do
5779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_AWK="$ac_prog"
5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785   done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 AWK=$ac_cv_prog_AWK
5791 if test -n "$AWK"; then
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5793 $as_echo "$AWK" >&6; }
5794 else
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799
5800   test -n "$AWK" && break
5801 done
5802
5803 # Some AWK programs fail, so test it and warn the user
5804 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5805       { if ((prog == $2) || (("(" prog ")") == $2) ||
5806       (("" prog "") == $2) ||
5807       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5808 else
5809   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5810    The regex engine of $AWK is too broken to be used you
5811    might want to install GNU AWK.
5812    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5813 fi
5814 THE_AWK=$AWK
5815 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5816 set dummy $THE_AWK; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_path_AWK+:} false; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822   case $AWK in
5823   [\\/]* | ?:[\\/]*)
5824   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5825   ;;
5826   *)
5827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832     for ac_exec_ext in '' $ac_executable_extensions; do
5833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836     break 2
5837   fi
5838 done
5839   done
5840 IFS=$as_save_IFS
5841
5842   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5843   ;;
5844 esac
5845 fi
5846 AWK=$ac_cv_path_AWK
5847 if test -n "$AWK"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5849 $as_echo "$AWK" >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854
5855
5856
5857
5858 test -n "$ARFLAG" || ARFLAGS="cr"
5859
5860
5861 MAKE_SHELL=/bin/sh
5862
5863
5864
5865
5866
5867
5868
5869 use_libtool=yes
5870 # Check whether --enable-libtool was given.
5871 if test "${enable_libtool+set}" = set; then :
5872   enableval=$enable_libtool;
5873        if test x$enableval = xno; then
5874           use_libtool=no
5875        fi
5876
5877
5878 fi
5879
5880 case `pwd` in
5881   *\ * | *\     *)
5882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5883 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5884 esac
5885
5886
5887
5888 macro_version='2.4.2'
5889 macro_revision='1.3337'
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 ltmain="$ac_aux_dir/ltmain.sh"
5904
5905 # Make sure we can run config.sub.
5906 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5907   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5910 $as_echo_n "checking build system type... " >&6; }
5911 if ${ac_cv_build+:} false; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   ac_build_alias=$build_alias
5915 test "x$ac_build_alias" = x &&
5916   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5917 test "x$ac_build_alias" = x &&
5918   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5919 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5920   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5924 $as_echo "$ac_cv_build" >&6; }
5925 case $ac_cv_build in
5926 *-*-*) ;;
5927 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5928 esac
5929 build=$ac_cv_build
5930 ac_save_IFS=$IFS; IFS='-'
5931 set x $ac_cv_build
5932 shift
5933 build_cpu=$1
5934 build_vendor=$2
5935 shift; shift
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5938 build_os=$*
5939 IFS=$ac_save_IFS
5940 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5944 $as_echo_n "checking host system type... " >&6; }
5945 if ${ac_cv_host+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   if test "x$host_alias" = x; then
5949   ac_cv_host=$ac_cv_build
5950 else
5951   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5952     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5953 fi
5954
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5957 $as_echo "$ac_cv_host" >&6; }
5958 case $ac_cv_host in
5959 *-*-*) ;;
5960 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5961 esac
5962 host=$ac_cv_host
5963 ac_save_IFS=$IFS; IFS='-'
5964 set x $ac_cv_host
5965 shift
5966 host_cpu=$1
5967 host_vendor=$2
5968 shift; shift
5969 # Remember, the first character of IFS is used to create $*,
5970 # except with old shells:
5971 host_os=$*
5972 IFS=$ac_save_IFS
5973 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5974
5975
5976 # Backslashify metacharacters that are still active within
5977 # double-quoted strings.
5978 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5979
5980 # Same as above, but do not quote variable references.
5981 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5982
5983 # Sed substitution to delay expansion of an escaped shell variable in a
5984 # double_quote_subst'ed string.
5985 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5986
5987 # Sed substitution to delay expansion of an escaped single quote.
5988 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5989
5990 # Sed substitution to avoid accidental globbing in evaled expressions
5991 no_glob_subst='s/\*/\\\*/g'
5992
5993 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5998 $as_echo_n "checking how to print strings... " >&6; }
5999 # Test print first, because it will be a builtin if present.
6000 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6001    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6002   ECHO='print -r --'
6003 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6004   ECHO='printf %s\n'
6005 else
6006   # Use this function as a fallback that always works.
6007   func_fallback_echo ()
6008   {
6009     eval 'cat <<_LTECHO_EOF
6010 $1
6011 _LTECHO_EOF'
6012   }
6013   ECHO='func_fallback_echo'
6014 fi
6015
6016 # func_echo_all arg...
6017 # Invoke $ECHO with all args, space-separated.
6018 func_echo_all ()
6019 {
6020     $ECHO ""
6021 }
6022
6023 case "$ECHO" in
6024   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6025 $as_echo "printf" >&6; } ;;
6026   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6027 $as_echo "print -r" >&6; } ;;
6028   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6029 $as_echo "cat" >&6; } ;;
6030 esac
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6047 if ${ac_cv_path_SED+:} false; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6051      for ac_i in 1 2 3 4 5 6 7; do
6052        ac_script="$ac_script$as_nl$ac_script"
6053      done
6054      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6055      { ac_script=; unset ac_script;}
6056      if test -z "$SED"; then
6057   ac_path_SED_found=false
6058   # Loop through the user's path and test for each of PROGNAME-LIST
6059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064     for ac_prog in sed gsed; do
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6067       as_fn_executable_p "$ac_path_SED" || continue
6068 # Check for GNU ac_path_SED and select it if it is found.
6069   # Check for GNU $ac_path_SED
6070 case `"$ac_path_SED" --version 2>&1` in
6071 *GNU*)
6072   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6073 *)
6074   ac_count=0
6075   $as_echo_n 0123456789 >"conftest.in"
6076   while :
6077   do
6078     cat "conftest.in" "conftest.in" >"conftest.tmp"
6079     mv "conftest.tmp" "conftest.in"
6080     cp "conftest.in" "conftest.nl"
6081     $as_echo '' >> "conftest.nl"
6082     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6083     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6084     as_fn_arith $ac_count + 1 && ac_count=$as_val
6085     if test $ac_count -gt ${ac_path_SED_max-0}; then
6086       # Best one so far, save it but keep looking for a better one
6087       ac_cv_path_SED="$ac_path_SED"
6088       ac_path_SED_max=$ac_count
6089     fi
6090     # 10*(2^10) chars as input seems more than enough
6091     test $ac_count -gt 10 && break
6092   done
6093   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6094 esac
6095
6096       $ac_path_SED_found && break 3
6097     done
6098   done
6099   done
6100 IFS=$as_save_IFS
6101   if test -z "$ac_cv_path_SED"; then
6102     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6103   fi
6104 else
6105   ac_cv_path_SED=$SED
6106 fi
6107
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6110 $as_echo "$ac_cv_path_SED" >&6; }
6111  SED="$ac_cv_path_SED"
6112   rm -f conftest.sed
6113
6114 test -z "$SED" && SED=sed
6115 Xsed="$SED -e 1s/^X//"
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6128 $as_echo_n "checking for fgrep... " >&6; }
6129 if ${ac_cv_path_FGREP+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6133    then ac_cv_path_FGREP="$GREP -F"
6134    else
6135      if test -z "$FGREP"; then
6136   ac_path_FGREP_found=false
6137   # Loop through the user's path and test for each of PROGNAME-LIST
6138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143     for ac_prog in fgrep; do
6144     for ac_exec_ext in '' $ac_executable_extensions; do
6145       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6146       as_fn_executable_p "$ac_path_FGREP" || continue
6147 # Check for GNU ac_path_FGREP and select it if it is found.
6148   # Check for GNU $ac_path_FGREP
6149 case `"$ac_path_FGREP" --version 2>&1` in
6150 *GNU*)
6151   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6152 *)
6153   ac_count=0
6154   $as_echo_n 0123456789 >"conftest.in"
6155   while :
6156   do
6157     cat "conftest.in" "conftest.in" >"conftest.tmp"
6158     mv "conftest.tmp" "conftest.in"
6159     cp "conftest.in" "conftest.nl"
6160     $as_echo 'FGREP' >> "conftest.nl"
6161     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163     as_fn_arith $ac_count + 1 && ac_count=$as_val
6164     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6165       # Best one so far, save it but keep looking for a better one
6166       ac_cv_path_FGREP="$ac_path_FGREP"
6167       ac_path_FGREP_max=$ac_count
6168     fi
6169     # 10*(2^10) chars as input seems more than enough
6170     test $ac_count -gt 10 && break
6171   done
6172   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6173 esac
6174
6175       $ac_path_FGREP_found && break 3
6176     done
6177   done
6178   done
6179 IFS=$as_save_IFS
6180   if test -z "$ac_cv_path_FGREP"; then
6181     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6182   fi
6183 else
6184   ac_cv_path_FGREP=$FGREP
6185 fi
6186
6187    fi
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6190 $as_echo "$ac_cv_path_FGREP" >&6; }
6191  FGREP="$ac_cv_path_FGREP"
6192
6193
6194 test -z "$GREP" && GREP=grep
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 # Check whether --with-gnu-ld was given.
6215 if test "${with_gnu_ld+set}" = set; then :
6216   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6217 else
6218   with_gnu_ld=no
6219 fi
6220
6221 ac_prog=ld
6222 if test "$GCC" = yes; then
6223   # Check if gcc -print-prog-name=ld gives a path.
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6225 $as_echo_n "checking for ld used by $CC... " >&6; }
6226   case $host in
6227   *-*-mingw*)
6228     # gcc leaves a trailing carriage return which upsets mingw
6229     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6230   *)
6231     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6232   esac
6233   case $ac_prog in
6234     # Accept absolute paths.
6235     [\\/]* | ?:[\\/]*)
6236       re_direlt='/[^/][^/]*/\.\./'
6237       # Canonicalize the pathname of ld
6238       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6239       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6240         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6241       done
6242       test -z "$LD" && LD="$ac_prog"
6243       ;;
6244   "")
6245     # If it fails, then pretend we aren't using GCC.
6246     ac_prog=ld
6247     ;;
6248   *)
6249     # If it is relative, then search for the first ld in PATH.
6250     with_gnu_ld=unknown
6251     ;;
6252   esac
6253 elif test "$with_gnu_ld" = yes; then
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6255 $as_echo_n "checking for GNU ld... " >&6; }
6256 else
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6258 $as_echo_n "checking for non-GNU ld... " >&6; }
6259 fi
6260 if ${lt_cv_path_LD+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if test -z "$LD"; then
6264   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6265   for ac_dir in $PATH; do
6266     IFS="$lt_save_ifs"
6267     test -z "$ac_dir" && ac_dir=.
6268     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6269       lt_cv_path_LD="$ac_dir/$ac_prog"
6270       # Check to see if the program is GNU ld.  I'd rather use --version,
6271       # but apparently some variants of GNU ld only accept -v.
6272       # Break only if it was the GNU/non-GNU ld that we prefer.
6273       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6274       *GNU* | *'with BFD'*)
6275         test "$with_gnu_ld" != no && break
6276         ;;
6277       *)
6278         test "$with_gnu_ld" != yes && break
6279         ;;
6280       esac
6281     fi
6282   done
6283   IFS="$lt_save_ifs"
6284 else
6285   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6286 fi
6287 fi
6288
6289 LD="$lt_cv_path_LD"
6290 if test -n "$LD"; then
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6292 $as_echo "$LD" >&6; }
6293 else
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6300 if ${lt_cv_prog_gnu_ld+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6304 case `$LD -v 2>&1 </dev/null` in
6305 *GNU* | *'with BFD'*)
6306   lt_cv_prog_gnu_ld=yes
6307   ;;
6308 *)
6309   lt_cv_prog_gnu_ld=no
6310   ;;
6311 esac
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6315 with_gnu_ld=$lt_cv_prog_gnu_ld
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6326 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6327 if ${lt_cv_path_NM+:} false; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   if test -n "$NM"; then
6331   # Let the user override the test.
6332   lt_cv_path_NM="$NM"
6333 else
6334   lt_nm_to_check="${ac_tool_prefix}nm"
6335   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6336     lt_nm_to_check="$lt_nm_to_check nm"
6337   fi
6338   for lt_tmp_nm in $lt_nm_to_check; do
6339     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6340     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6341       IFS="$lt_save_ifs"
6342       test -z "$ac_dir" && ac_dir=.
6343       tmp_nm="$ac_dir/$lt_tmp_nm"
6344       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6345         # Check to see if the nm accepts a BSD-compat flag.
6346         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6347         #   nm: unknown option "B" ignored
6348         # Tru64's nm complains that /dev/null is an invalid object file
6349         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6350         */dev/null* | *'Invalid file or object type'*)
6351           lt_cv_path_NM="$tmp_nm -B"
6352           break
6353           ;;
6354         *)
6355           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6356           */dev/null*)
6357             lt_cv_path_NM="$tmp_nm -p"
6358             break
6359             ;;
6360           *)
6361             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6362             continue # so that we can try to find one that supports BSD flags
6363             ;;
6364           esac
6365           ;;
6366         esac
6367       fi
6368     done
6369     IFS="$lt_save_ifs"
6370   done
6371   : ${lt_cv_path_NM=no}
6372 fi
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6375 $as_echo "$lt_cv_path_NM" >&6; }
6376 if test "$lt_cv_path_NM" != "no"; then
6377   NM="$lt_cv_path_NM"
6378 else
6379   # Didn't find any BSD compatible name lister, look for dumpbin.
6380   if test -n "$DUMPBIN"; then :
6381     # Let the user override the test.
6382   else
6383     if test -n "$ac_tool_prefix"; then
6384   for ac_prog in dumpbin "link -dump"
6385   do
6386     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_DUMPBIN+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   if test -n "$DUMPBIN"; then
6394   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401     for ac_exec_ext in '' $ac_executable_extensions; do
6402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408   done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 DUMPBIN=$ac_cv_prog_DUMPBIN
6414 if test -n "$DUMPBIN"; then
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6416 $as_echo "$DUMPBIN" >&6; }
6417 else
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422
6423     test -n "$DUMPBIN" && break
6424   done
6425 fi
6426 if test -z "$DUMPBIN"; then
6427   ac_ct_DUMPBIN=$DUMPBIN
6428   for ac_prog in dumpbin "link -dump"
6429 do
6430   # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy $ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$ac_ct_DUMPBIN"; then
6438   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6458 if test -n "$ac_ct_DUMPBIN"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6460 $as_echo "$ac_ct_DUMPBIN" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467   test -n "$ac_ct_DUMPBIN" && break
6468 done
6469
6470   if test "x$ac_ct_DUMPBIN" = x; then
6471     DUMPBIN=":"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     DUMPBIN=$ac_ct_DUMPBIN
6480   fi
6481 fi
6482
6483     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6484     *COFF*)
6485       DUMPBIN="$DUMPBIN -symbols"
6486       ;;
6487     *)
6488       DUMPBIN=:
6489       ;;
6490     esac
6491   fi
6492
6493   if test "$DUMPBIN" != ":"; then
6494     NM="$DUMPBIN"
6495   fi
6496 fi
6497 test -z "$NM" && NM=nm
6498
6499
6500
6501
6502
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6505 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6506 if ${lt_cv_nm_interface+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   lt_cv_nm_interface="BSD nm"
6510   echo "int some_variable = 0;" > conftest.$ac_ext
6511   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6512   (eval "$ac_compile" 2>conftest.err)
6513   cat conftest.err >&5
6514   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6515   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6516   cat conftest.err >&5
6517   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6518   cat conftest.out >&5
6519   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6520     lt_cv_nm_interface="MS dumpbin"
6521   fi
6522   rm -f conftest*
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6525 $as_echo "$lt_cv_nm_interface" >&6; }
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6528 $as_echo_n "checking whether ln -s works... " >&6; }
6529 LN_S=$as_ln_s
6530 if test "$LN_S" = "ln -s"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532 $as_echo "yes" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6535 $as_echo "no, using $LN_S" >&6; }
6536 fi
6537
6538 # find the maximum length of command line arguments
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6540 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6541 if ${lt_cv_sys_max_cmd_len+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544     i=0
6545   teststring="ABCD"
6546
6547   case $build_os in
6548   msdosdjgpp*)
6549     # On DJGPP, this test can blow up pretty badly due to problems in libc
6550     # (any single argument exceeding 2000 bytes causes a buffer overrun
6551     # during glob expansion).  Even if it were fixed, the result of this
6552     # check would be larger than it should be.
6553     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6554     ;;
6555
6556   gnu*)
6557     # Under GNU Hurd, this test is not required because there is
6558     # no limit to the length of command line arguments.
6559     # Libtool will interpret -1 as no limit whatsoever
6560     lt_cv_sys_max_cmd_len=-1;
6561     ;;
6562
6563   cygwin* | mingw* | cegcc*)
6564     # On Win9x/ME, this test blows up -- it succeeds, but takes
6565     # about 5 minutes as the teststring grows exponentially.
6566     # Worse, since 9x/ME are not pre-emptively multitasking,
6567     # you end up with a "frozen" computer, even though with patience
6568     # the test eventually succeeds (with a max line length of 256k).
6569     # Instead, let's just punt: use the minimum linelength reported by
6570     # all of the supported platforms: 8192 (on NT/2K/XP).
6571     lt_cv_sys_max_cmd_len=8192;
6572     ;;
6573
6574   mint*)
6575     # On MiNT this can take a long time and run out of memory.
6576     lt_cv_sys_max_cmd_len=8192;
6577     ;;
6578
6579   amigaos*)
6580     # On AmigaOS with pdksh, this test takes hours, literally.
6581     # So we just punt and use a minimum line length of 8192.
6582     lt_cv_sys_max_cmd_len=8192;
6583     ;;
6584
6585   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6586     # This has been around since 386BSD, at least.  Likely further.
6587     if test -x /sbin/sysctl; then
6588       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6589     elif test -x /usr/sbin/sysctl; then
6590       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6591     else
6592       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6593     fi
6594     # And add a safety zone
6595     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6596     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6597     ;;
6598
6599   interix*)
6600     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6601     lt_cv_sys_max_cmd_len=196608
6602     ;;
6603
6604   os2*)
6605     # The test takes a long time on OS/2.
6606     lt_cv_sys_max_cmd_len=8192
6607     ;;
6608
6609   osf*)
6610     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6611     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6612     # nice to cause kernel panics so lets avoid the loop below.
6613     # First set a reasonable default.
6614     lt_cv_sys_max_cmd_len=16384
6615     #
6616     if test -x /sbin/sysconfig; then
6617       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6618         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6619       esac
6620     fi
6621     ;;
6622   sco3.2v5*)
6623     lt_cv_sys_max_cmd_len=102400
6624     ;;
6625   sysv5* | sco5v6* | sysv4.2uw2*)
6626     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6627     if test -n "$kargmax"; then
6628       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6629     else
6630       lt_cv_sys_max_cmd_len=32768
6631     fi
6632     ;;
6633   *)
6634     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6635     if test -n "$lt_cv_sys_max_cmd_len" && \
6636         test undefined != "$lt_cv_sys_max_cmd_len"; then
6637       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6638       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6639     else
6640       # Make teststring a little bigger before we do anything with it.
6641       # a 1K string should be a reasonable start.
6642       for i in 1 2 3 4 5 6 7 8 ; do
6643         teststring=$teststring$teststring
6644       done
6645       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6646       # If test is not a shell built-in, we'll probably end up computing a
6647       # maximum length that is only half of the actual maximum length, but
6648       # we can't tell.
6649       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6650                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6651               test $i != 17 # 1/2 MB should be enough
6652       do
6653         i=`expr $i + 1`
6654         teststring=$teststring$teststring
6655       done
6656       # Only check the string length outside the loop.
6657       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6658       teststring=
6659       # Add a significant safety factor because C++ compilers can tack on
6660       # massive amounts of additional arguments before passing them to the
6661       # linker.  It appears as though 1/2 is a usable value.
6662       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6663     fi
6664     ;;
6665   esac
6666
6667 fi
6668
6669 if test -n $lt_cv_sys_max_cmd_len ; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6671 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6674 $as_echo "none" >&6; }
6675 fi
6676 max_cmd_len=$lt_cv_sys_max_cmd_len
6677
6678
6679
6680
6681
6682
6683 : ${CP="cp -f"}
6684 : ${MV="mv -f"}
6685 : ${RM="rm -f"}
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6688 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6689 # Try some XSI features
6690 xsi_shell=no
6691 ( _lt_dummy="a/b/c"
6692   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6693       = c,a/b,b/c, \
6694     && eval 'test $(( 1 + 1 )) -eq 2 \
6695     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6696   && xsi_shell=yes
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6698 $as_echo "$xsi_shell" >&6; }
6699
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6702 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6703 lt_shell_append=no
6704 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6705     >/dev/null 2>&1 \
6706   && lt_shell_append=yes
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6708 $as_echo "$lt_shell_append" >&6; }
6709
6710
6711 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6712   lt_unset=unset
6713 else
6714   lt_unset=false
6715 fi
6716
6717
6718
6719
6720
6721 # test EBCDIC or ASCII
6722 case `echo X|tr X '\101'` in
6723  A) # ASCII based system
6724     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6725   lt_SP2NL='tr \040 \012'
6726   lt_NL2SP='tr \015\012 \040\040'
6727   ;;
6728  *) # EBCDIC based system
6729   lt_SP2NL='tr \100 \n'
6730   lt_NL2SP='tr \r\n \100\100'
6731   ;;
6732 esac
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6743 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6744 if ${lt_cv_to_host_file_cmd+:} false; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747   case $host in
6748   *-*-mingw* )
6749     case $build in
6750       *-*-mingw* ) # actually msys
6751         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6752         ;;
6753       *-*-cygwin* )
6754         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6755         ;;
6756       * ) # otherwise, assume *nix
6757         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6758         ;;
6759     esac
6760     ;;
6761   *-*-cygwin* )
6762     case $build in
6763       *-*-mingw* ) # actually msys
6764         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6765         ;;
6766       *-*-cygwin* )
6767         lt_cv_to_host_file_cmd=func_convert_file_noop
6768         ;;
6769       * ) # otherwise, assume *nix
6770         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6771         ;;
6772     esac
6773     ;;
6774   * ) # unhandled hosts (and "normal" native builds)
6775     lt_cv_to_host_file_cmd=func_convert_file_noop
6776     ;;
6777 esac
6778
6779 fi
6780
6781 to_host_file_cmd=$lt_cv_to_host_file_cmd
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6783 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6784
6785
6786
6787
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6790 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6791 if ${lt_cv_to_tool_file_cmd+:} false; then :
6792   $as_echo_n "(cached) " >&6
6793 else
6794   #assume ordinary cross tools, or native build.
6795 lt_cv_to_tool_file_cmd=func_convert_file_noop
6796 case $host in
6797   *-*-mingw* )
6798     case $build in
6799       *-*-mingw* ) # actually msys
6800         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6801         ;;
6802     esac
6803     ;;
6804 esac
6805
6806 fi
6807
6808 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6810 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6811
6812
6813
6814
6815
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6817 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6818 if ${lt_cv_ld_reload_flag+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   lt_cv_ld_reload_flag='-r'
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6824 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6825 reload_flag=$lt_cv_ld_reload_flag
6826 case $reload_flag in
6827 "" | " "*) ;;
6828 *) reload_flag=" $reload_flag" ;;
6829 esac
6830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6831 case $host_os in
6832   cygwin* | mingw* | pw32* | cegcc*)
6833     if test "$GCC" != yes; then
6834       reload_cmds=false
6835     fi
6836     ;;
6837   darwin*)
6838     if test "$GCC" = yes; then
6839       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6840     else
6841       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6842     fi
6843     ;;
6844 esac
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_OBJDUMP+:} false; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   if test -n "$OBJDUMP"; then
6863   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870     for ac_exec_ext in '' $ac_executable_extensions; do
6871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877   done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 OBJDUMP=$ac_cv_prog_OBJDUMP
6883 if test -n "$OBJDUMP"; then
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6885 $as_echo "$OBJDUMP" >&6; }
6886 else
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891
6892 fi
6893 if test -z "$ac_cv_prog_OBJDUMP"; then
6894   ac_ct_OBJDUMP=$OBJDUMP
6895   # Extract the first word of "objdump", so it can be a program name with args.
6896 set dummy objdump; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   if test -n "$ac_ct_OBJDUMP"; then
6903   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908   IFS=$as_save_IFS
6909   test -z "$as_dir" && as_dir=.
6910     for ac_exec_ext in '' $ac_executable_extensions; do
6911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914     break 2
6915   fi
6916 done
6917   done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6923 if test -n "$ac_ct_OBJDUMP"; then
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6925 $as_echo "$ac_ct_OBJDUMP" >&6; }
6926 else
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931   if test "x$ac_ct_OBJDUMP" = x; then
6932     OBJDUMP="false"
6933   else
6934     case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940     OBJDUMP=$ac_ct_OBJDUMP
6941   fi
6942 else
6943   OBJDUMP="$ac_cv_prog_OBJDUMP"
6944 fi
6945
6946 test -z "$OBJDUMP" && OBJDUMP=objdump
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6957 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6958 if ${lt_cv_deplibs_check_method+:} false; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   lt_cv_file_magic_cmd='$MAGIC_CMD'
6962 lt_cv_file_magic_test_file=
6963 lt_cv_deplibs_check_method='unknown'
6964 # Need to set the preceding variable on all platforms that support
6965 # interlibrary dependencies.
6966 # 'none' -- dependencies not supported.
6967 # `unknown' -- same as none, but documents that we really don't know.
6968 # 'pass_all' -- all dependencies passed with no checks.
6969 # 'test_compile' -- check by making test program.
6970 # 'file_magic [[regex]]' -- check by looking for files in library path
6971 # which responds to the $file_magic_cmd with a given extended regex.
6972 # If you have `file' or equivalent on your system and you're not sure
6973 # whether `pass_all' will *always* work, you probably want this one.
6974
6975 case $host_os in
6976 aix[4-9]*)
6977   lt_cv_deplibs_check_method=pass_all
6978   ;;
6979
6980 beos*)
6981   lt_cv_deplibs_check_method=pass_all
6982   ;;
6983
6984 bsdi[45]*)
6985   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6986   lt_cv_file_magic_cmd='/usr/bin/file -L'
6987   lt_cv_file_magic_test_file=/shlib/libc.so
6988   ;;
6989
6990 cygwin*)
6991   # func_win32_libid is a shell function defined in ltmain.sh
6992   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993   lt_cv_file_magic_cmd='func_win32_libid'
6994   ;;
6995
6996 mingw* | pw32*)
6997   # Base MSYS/MinGW do not provide the 'file' command needed by
6998   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6999   # unless we find 'file', for example because we are cross-compiling.
7000   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7001   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7002     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7003     lt_cv_file_magic_cmd='func_win32_libid'
7004   else
7005     # Keep this pattern in sync with the one in func_win32_libid.
7006     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7007     lt_cv_file_magic_cmd='$OBJDUMP -f'
7008   fi
7009   ;;
7010
7011 cegcc*)
7012   # use the weaker test based on 'objdump'. See mingw*.
7013   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7014   lt_cv_file_magic_cmd='$OBJDUMP -f'
7015   ;;
7016
7017 darwin* | rhapsody*)
7018   lt_cv_deplibs_check_method=pass_all
7019   ;;
7020
7021 freebsd* | dragonfly*)
7022   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7023     case $host_cpu in
7024     i*86 )
7025       # Not sure whether the presence of OpenBSD here was a mistake.
7026       # Let's accept both of them until this is cleared up.
7027       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7028       lt_cv_file_magic_cmd=/usr/bin/file
7029       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7030       ;;
7031     esac
7032   else
7033     lt_cv_deplibs_check_method=pass_all
7034   fi
7035   ;;
7036
7037 haiku*)
7038   lt_cv_deplibs_check_method=pass_all
7039   ;;
7040
7041 hpux10.20* | hpux11*)
7042   lt_cv_file_magic_cmd=/usr/bin/file
7043   case $host_cpu in
7044   ia64*)
7045     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7046     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7047     ;;
7048   hppa*64*)
7049     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7050     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7051     ;;
7052   *)
7053     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7054     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7055     ;;
7056   esac
7057   ;;
7058
7059 interix[3-9]*)
7060   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7061   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7062   ;;
7063
7064 irix5* | irix6* | nonstopux*)
7065   case $LD in
7066   *-32|*"-32 ") libmagic=32-bit;;
7067   *-n32|*"-n32 ") libmagic=N32;;
7068   *-64|*"-64 ") libmagic=64-bit;;
7069   *) libmagic=never-match;;
7070   esac
7071   lt_cv_deplibs_check_method=pass_all
7072   ;;
7073
7074 # This must be glibc/ELF.
7075 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7076   lt_cv_deplibs_check_method=pass_all
7077   ;;
7078
7079 netbsd* | netbsdelf*-gnu)
7080   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7082   else
7083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7084   fi
7085   ;;
7086
7087 newos6*)
7088   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7089   lt_cv_file_magic_cmd=/usr/bin/file
7090   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7091   ;;
7092
7093 *nto* | *qnx*)
7094   lt_cv_deplibs_check_method=pass_all
7095   ;;
7096
7097 openbsd*)
7098   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7099     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7100   else
7101     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7102   fi
7103   ;;
7104
7105 osf3* | osf4* | osf5*)
7106   lt_cv_deplibs_check_method=pass_all
7107   ;;
7108
7109 rdos*)
7110   lt_cv_deplibs_check_method=pass_all
7111   ;;
7112
7113 solaris*)
7114   lt_cv_deplibs_check_method=pass_all
7115   ;;
7116
7117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7118   lt_cv_deplibs_check_method=pass_all
7119   ;;
7120
7121 sysv4 | sysv4.3*)
7122   case $host_vendor in
7123   motorola)
7124     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]'
7125     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7126     ;;
7127   ncr)
7128     lt_cv_deplibs_check_method=pass_all
7129     ;;
7130   sequent)
7131     lt_cv_file_magic_cmd='/bin/file'
7132     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7133     ;;
7134   sni)
7135     lt_cv_file_magic_cmd='/bin/file'
7136     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7137     lt_cv_file_magic_test_file=/lib/libc.so
7138     ;;
7139   siemens)
7140     lt_cv_deplibs_check_method=pass_all
7141     ;;
7142   pc)
7143     lt_cv_deplibs_check_method=pass_all
7144     ;;
7145   esac
7146   ;;
7147
7148 tpf*)
7149   lt_cv_deplibs_check_method=pass_all
7150   ;;
7151 esac
7152
7153 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7155 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7156
7157 file_magic_glob=
7158 want_nocaseglob=no
7159 if test "$build" = "$host"; then
7160   case $host_os in
7161   mingw* | pw32*)
7162     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7163       want_nocaseglob=yes
7164     else
7165       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7166     fi
7167     ;;
7168   esac
7169 fi
7170
7171 file_magic_cmd=$lt_cv_file_magic_cmd
7172 deplibs_check_method=$lt_cv_deplibs_check_method
7173 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 if test -n "$ac_tool_prefix"; then
7197   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_DLLTOOL+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test -n "$DLLTOOL"; then
7205   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219   done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 DLLTOOL=$ac_cv_prog_DLLTOOL
7225 if test -n "$DLLTOOL"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7227 $as_echo "$DLLTOOL" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233
7234 fi
7235 if test -z "$ac_cv_prog_DLLTOOL"; then
7236   ac_ct_DLLTOOL=$DLLTOOL
7237   # Extract the first word of "dlltool", so it can be a program name with args.
7238 set dummy dlltool; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7242   $as_echo_n "(cached) " >&6
7243 else
7244   if test -n "$ac_ct_DLLTOOL"; then
7245   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252     for ac_exec_ext in '' $ac_executable_extensions; do
7253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259   done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7265 if test -n "$ac_ct_DLLTOOL"; then
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7267 $as_echo "$ac_ct_DLLTOOL" >&6; }
7268 else
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273   if test "x$ac_ct_DLLTOOL" = x; then
7274     DLLTOOL="false"
7275   else
7276     case $cross_compiling:$ac_tool_warned in
7277 yes:)
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7281 esac
7282     DLLTOOL=$ac_ct_DLLTOOL
7283   fi
7284 else
7285   DLLTOOL="$ac_cv_prog_DLLTOOL"
7286 fi
7287
7288 test -z "$DLLTOOL" && DLLTOOL=dlltool
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7300 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7301 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304   lt_cv_sharedlib_from_linklib_cmd='unknown'
7305
7306 case $host_os in
7307 cygwin* | mingw* | pw32* | cegcc*)
7308   # two different shell functions defined in ltmain.sh
7309   # decide which to use based on capabilities of $DLLTOOL
7310   case `$DLLTOOL --help 2>&1` in
7311   *--identify-strict*)
7312     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7313     ;;
7314   *)
7315     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7316     ;;
7317   esac
7318   ;;
7319 *)
7320   # fallback: assume linklib IS sharedlib
7321   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7322   ;;
7323 esac
7324
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7327 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7328 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7329 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7330
7331
7332
7333
7334
7335
7336
7337 if test -n "$ac_tool_prefix"; then
7338   for ac_prog in ar
7339   do
7340     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_AR+:} false; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$AR"; then
7348   ac_cv_prog_AR="$AR" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 AR=$ac_cv_prog_AR
7368 if test -n "$AR"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7370 $as_echo "$AR" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376
7377     test -n "$AR" && break
7378   done
7379 fi
7380 if test -z "$AR"; then
7381   ac_ct_AR=$AR
7382   for ac_prog in ar
7383 do
7384   # Extract the first word of "$ac_prog", so it can be a program name with args.
7385 set dummy $ac_prog; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   if test -n "$ac_ct_AR"; then
7392   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399     for ac_exec_ext in '' $ac_executable_extensions; do
7400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401     ac_cv_prog_ac_ct_AR="$ac_prog"
7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406   done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7412 if test -n "$ac_ct_AR"; then
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7414 $as_echo "$ac_ct_AR" >&6; }
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420
7421   test -n "$ac_ct_AR" && break
7422 done
7423
7424   if test "x$ac_ct_AR" = x; then
7425     AR="false"
7426   else
7427     case $cross_compiling:$ac_tool_warned in
7428 yes:)
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433     AR=$ac_ct_AR
7434   fi
7435 fi
7436
7437 : ${AR=ar}
7438 : ${AR_FLAGS=cru}
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7451 $as_echo_n "checking for archiver @FILE support... " >&6; }
7452 if ${lt_cv_ar_at_file+:} false; then :
7453   $as_echo_n "(cached) " >&6
7454 else
7455   lt_cv_ar_at_file=no
7456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h.  */
7458
7459 int
7460 main ()
7461 {
7462
7463   ;
7464   return 0;
7465 }
7466 _ACEOF
7467 if ac_fn_c_try_compile "$LINENO"; then :
7468   echo conftest.$ac_objext > conftest.lst
7469       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7470       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7471   (eval $lt_ar_try) 2>&5
7472   ac_status=$?
7473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474   test $ac_status = 0; }
7475       if test "$ac_status" -eq 0; then
7476         # Ensure the archiver fails upon bogus file names.
7477         rm -f conftest.$ac_objext libconftest.a
7478         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7479   (eval $lt_ar_try) 2>&5
7480   ac_status=$?
7481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482   test $ac_status = 0; }
7483         if test "$ac_status" -ne 0; then
7484           lt_cv_ar_at_file=@
7485         fi
7486       fi
7487       rm -f conftest.* libconftest.a
7488
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7494 $as_echo "$lt_cv_ar_at_file" >&6; }
7495
7496 if test "x$lt_cv_ar_at_file" = xno; then
7497   archiver_list_spec=
7498 else
7499   archiver_list_spec=$lt_cv_ar_at_file
7500 fi
7501
7502
7503
7504
7505
7506
7507
7508 if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}strip; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_STRIP+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   if test -n "$STRIP"; then
7517   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 STRIP=$ac_cv_prog_STRIP
7537 if test -n "$STRIP"; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7539 $as_echo "$STRIP" >&6; }
7540 else
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_STRIP"; then
7548   ac_ct_STRIP=$STRIP
7549   # Extract the first word of "strip", so it can be a program name with args.
7550 set dummy strip; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   if test -n "$ac_ct_STRIP"; then
7557   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564     for ac_exec_ext in '' $ac_executable_extensions; do
7565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566     ac_cv_prog_ac_ct_STRIP="strip"
7567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571   done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7577 if test -n "$ac_ct_STRIP"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7579 $as_echo "$ac_ct_STRIP" >&6; }
7580 else
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_STRIP" = x; then
7586     STRIP=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     STRIP=$ac_ct_STRIP
7595   fi
7596 else
7597   STRIP="$ac_cv_prog_STRIP"
7598 fi
7599
7600 test -z "$STRIP" && STRIP=:
7601
7602
7603
7604
7605
7606
7607 if test -n "$ac_tool_prefix"; then
7608   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_RANLIB+:} false; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$RANLIB"; then
7616   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 RANLIB=$ac_cv_prog_RANLIB
7636 if test -n "$RANLIB"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7638 $as_echo "$RANLIB" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645 fi
7646 if test -z "$ac_cv_prog_RANLIB"; then
7647   ac_ct_RANLIB=$RANLIB
7648   # Extract the first word of "ranlib", so it can be a program name with args.
7649 set dummy ranlib; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   if test -n "$ac_ct_RANLIB"; then
7656   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663     for ac_exec_ext in '' $ac_executable_extensions; do
7664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665     ac_cv_prog_ac_ct_RANLIB="ranlib"
7666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670   done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7676 if test -n "$ac_ct_RANLIB"; then
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7678 $as_echo "$ac_ct_RANLIB" >&6; }
7679 else
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684   if test "x$ac_ct_RANLIB" = x; then
7685     RANLIB=":"
7686   else
7687     case $cross_compiling:$ac_tool_warned in
7688 yes:)
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691 ac_tool_warned=yes ;;
7692 esac
7693     RANLIB=$ac_ct_RANLIB
7694   fi
7695 else
7696   RANLIB="$ac_cv_prog_RANLIB"
7697 fi
7698
7699 test -z "$RANLIB" && RANLIB=:
7700
7701
7702
7703
7704
7705
7706 # Determine commands to create old-style static archives.
7707 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7708 old_postinstall_cmds='chmod 644 $oldlib'
7709 old_postuninstall_cmds=
7710
7711 if test -n "$RANLIB"; then
7712   case $host_os in
7713   openbsd*)
7714     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7715     ;;
7716   *)
7717     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7718     ;;
7719   esac
7720   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7721 fi
7722
7723 case $host_os in
7724   darwin*)
7725     lock_old_archive_extraction=yes ;;
7726   *)
7727     lock_old_archive_extraction=no ;;
7728 esac
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768 # If no C compiler was specified, use CC.
7769 LTCC=${LTCC-"$CC"}
7770
7771 # If no C compiler flags were specified, use CFLAGS.
7772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7773
7774 # Allow CC to be a program name with arguments.
7775 compiler=$CC
7776
7777
7778 # Check for command to grab the raw symbol name followed by C symbol from nm.
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7780 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7781 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784
7785 # These are sane defaults that work on at least a few old systems.
7786 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7787
7788 # Character class describing NM global symbol codes.
7789 symcode='[BCDEGRST]'
7790
7791 # Regexp to match symbols that can be accessed directly from C.
7792 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7793
7794 # Define system-specific variables.
7795 case $host_os in
7796 aix*)
7797   symcode='[BCDT]'
7798   ;;
7799 cygwin* | mingw* | pw32* | cegcc*)
7800   symcode='[ABCDGISTW]'
7801   ;;
7802 hpux*)
7803   if test "$host_cpu" = ia64; then
7804     symcode='[ABCDEGRST]'
7805   fi
7806   ;;
7807 irix* | nonstopux*)
7808   symcode='[BCDEGRST]'
7809   ;;
7810 osf*)
7811   symcode='[BCDEGQRST]'
7812   ;;
7813 solaris*)
7814   symcode='[BDRT]'
7815   ;;
7816 sco3.2v5*)
7817   symcode='[DT]'
7818   ;;
7819 sysv4.2uw2*)
7820   symcode='[DT]'
7821   ;;
7822 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7823   symcode='[ABDT]'
7824   ;;
7825 sysv4)
7826   symcode='[DFNSTU]'
7827   ;;
7828 esac
7829
7830 # If we're using GNU nm, then use its standard symbol codes.
7831 case `$NM -V 2>&1` in
7832 *GNU* | *'with BFD'*)
7833   symcode='[ABCDGIRSTW]' ;;
7834 esac
7835
7836 # Transform an extracted symbol line into a proper C declaration.
7837 # Some systems (esp. on ia64) link data and code symbols differently,
7838 # so use this general approach.
7839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7840
7841 # Transform an extracted symbol line into symbol name and symbol address
7842 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7843 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'"
7844
7845 # Handle CRLF in mingw tool chain
7846 opt_cr=
7847 case $build_os in
7848 mingw*)
7849   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7850   ;;
7851 esac
7852
7853 # Try without a prefix underscore, then with it.
7854 for ac_symprfx in "" "_"; do
7855
7856   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7857   symxfrm="\\1 $ac_symprfx\\2 \\2"
7858
7859   # Write the raw and C identifiers.
7860   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7861     # Fake it for dumpbin and say T for any non-static function
7862     # and D for any global variable.
7863     # Also find C++ and __fastcall symbols from MSVC++,
7864     # which start with @ or ?.
7865     lt_cv_sys_global_symbol_pipe="$AWK '"\
7866 "     {last_section=section; section=\$ 3};"\
7867 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7868 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7869 "     \$ 0!~/External *\|/{next};"\
7870 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7871 "     {if(hide[section]) next};"\
7872 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7873 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7874 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7875 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7876 "     ' prfx=^$ac_symprfx"
7877   else
7878     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7879   fi
7880   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7881
7882   # Check to see that the pipe works correctly.
7883   pipe_works=no
7884
7885   rm -f conftest*
7886   cat > conftest.$ac_ext <<_LT_EOF
7887 #ifdef __cplusplus
7888 extern "C" {
7889 #endif
7890 char nm_test_var;
7891 void nm_test_func(void);
7892 void nm_test_func(void){}
7893 #ifdef __cplusplus
7894 }
7895 #endif
7896 int main(){nm_test_var='a';nm_test_func();return(0);}
7897 _LT_EOF
7898
7899   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900   (eval $ac_compile) 2>&5
7901   ac_status=$?
7902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903   test $ac_status = 0; }; then
7904     # Now try to grab the symbols.
7905     nlist=conftest.nm
7906     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7907   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7908   ac_status=$?
7909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910   test $ac_status = 0; } && test -s "$nlist"; then
7911       # Try sorting and uniquifying the output.
7912       if sort "$nlist" | uniq > "$nlist"T; then
7913         mv -f "$nlist"T "$nlist"
7914       else
7915         rm -f "$nlist"T
7916       fi
7917
7918       # Make sure that we snagged all the symbols we need.
7919       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7920         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7921           cat <<_LT_EOF > conftest.$ac_ext
7922 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7923 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7924 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7925    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7926 # define LT_DLSYM_CONST
7927 #elif defined(__osf__)
7928 /* This system does not cope well with relocations in const data.  */
7929 # define LT_DLSYM_CONST
7930 #else
7931 # define LT_DLSYM_CONST const
7932 #endif
7933
7934 #ifdef __cplusplus
7935 extern "C" {
7936 #endif
7937
7938 _LT_EOF
7939           # Now generate the symbol file.
7940           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7941
7942           cat <<_LT_EOF >> conftest.$ac_ext
7943
7944 /* The mapping between symbol names and symbols.  */
7945 LT_DLSYM_CONST struct {
7946   const char *name;
7947   void       *address;
7948 }
7949 lt__PROGRAM__LTX_preloaded_symbols[] =
7950 {
7951   { "@PROGRAM@", (void *) 0 },
7952 _LT_EOF
7953           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7954           cat <<\_LT_EOF >> conftest.$ac_ext
7955   {0, (void *) 0}
7956 };
7957
7958 /* This works around a problem in FreeBSD linker */
7959 #ifdef FREEBSD_WORKAROUND
7960 static const void *lt_preloaded_setup() {
7961   return lt__PROGRAM__LTX_preloaded_symbols;
7962 }
7963 #endif
7964
7965 #ifdef __cplusplus
7966 }
7967 #endif
7968 _LT_EOF
7969           # Now try linking the two files.
7970           mv conftest.$ac_objext conftstm.$ac_objext
7971           lt_globsym_save_LIBS=$LIBS
7972           lt_globsym_save_CFLAGS=$CFLAGS
7973           LIBS="conftstm.$ac_objext"
7974           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7975           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7976   (eval $ac_link) 2>&5
7977   ac_status=$?
7978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7980             pipe_works=yes
7981           fi
7982           LIBS=$lt_globsym_save_LIBS
7983           CFLAGS=$lt_globsym_save_CFLAGS
7984         else
7985           echo "cannot find nm_test_func in $nlist" >&5
7986         fi
7987       else
7988         echo "cannot find nm_test_var in $nlist" >&5
7989       fi
7990     else
7991       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7992     fi
7993   else
7994     echo "$progname: failed program was:" >&5
7995     cat conftest.$ac_ext >&5
7996   fi
7997   rm -rf conftest* conftst*
7998
7999   # Do not use the global_symbol_pipe unless it works.
8000   if test "$pipe_works" = yes; then
8001     break
8002   else
8003     lt_cv_sys_global_symbol_pipe=
8004   fi
8005 done
8006
8007 fi
8008
8009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8010   lt_cv_sys_global_symbol_to_cdecl=
8011 fi
8012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8014 $as_echo "failed" >&6; }
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8017 $as_echo "ok" >&6; }
8018 fi
8019
8020 # Response file support.
8021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8022   nm_file_list_spec='@'
8023 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8024   nm_file_list_spec='@'
8025 fi
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8054 $as_echo_n "checking for sysroot... " >&6; }
8055
8056 # Check whether --with-sysroot was given.
8057 if test "${with_sysroot+set}" = set; then :
8058   withval=$with_sysroot;
8059 else
8060   with_sysroot=no
8061 fi
8062
8063
8064 lt_sysroot=
8065 case ${with_sysroot} in #(
8066  yes)
8067    if test "$GCC" = yes; then
8068      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8069    fi
8070    ;; #(
8071  /*)
8072    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8073    ;; #(
8074  no|'')
8075    ;; #(
8076  *)
8077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8078 $as_echo "${with_sysroot}" >&6; }
8079    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8080    ;;
8081 esac
8082
8083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8084 $as_echo "${lt_sysroot:-no}" >&6; }
8085
8086
8087
8088
8089
8090 # Check whether --enable-libtool-lock was given.
8091 if test "${enable_libtool_lock+set}" = set; then :
8092   enableval=$enable_libtool_lock;
8093 fi
8094
8095 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8096
8097 # Some flags need to be propagated to the compiler or linker for good
8098 # libtool support.
8099 case $host in
8100 ia64-*-hpux*)
8101   # Find out which ABI we are using.
8102   echo 'int i;' > conftest.$ac_ext
8103   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8104   (eval $ac_compile) 2>&5
8105   ac_status=$?
8106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8107   test $ac_status = 0; }; then
8108     case `/usr/bin/file conftest.$ac_objext` in
8109       *ELF-32*)
8110         HPUX_IA64_MODE="32"
8111         ;;
8112       *ELF-64*)
8113         HPUX_IA64_MODE="64"
8114         ;;
8115     esac
8116   fi
8117   rm -rf conftest*
8118   ;;
8119 *-*-irix6*)
8120   # Find out which ABI we are using.
8121   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8122   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8123   (eval $ac_compile) 2>&5
8124   ac_status=$?
8125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8126   test $ac_status = 0; }; then
8127     if test "$lt_cv_prog_gnu_ld" = yes; then
8128       case `/usr/bin/file conftest.$ac_objext` in
8129         *32-bit*)
8130           LD="${LD-ld} -melf32bsmip"
8131           ;;
8132         *N32*)
8133           LD="${LD-ld} -melf32bmipn32"
8134           ;;
8135         *64-bit*)
8136           LD="${LD-ld} -melf64bmip"
8137         ;;
8138       esac
8139     else
8140       case `/usr/bin/file conftest.$ac_objext` in
8141         *32-bit*)
8142           LD="${LD-ld} -32"
8143           ;;
8144         *N32*)
8145           LD="${LD-ld} -n32"
8146           ;;
8147         *64-bit*)
8148           LD="${LD-ld} -64"
8149           ;;
8150       esac
8151     fi
8152   fi
8153   rm -rf conftest*
8154   ;;
8155
8156 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8157 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8158   # Find out which ABI we are using.
8159   echo 'int i;' > conftest.$ac_ext
8160   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8161   (eval $ac_compile) 2>&5
8162   ac_status=$?
8163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8164   test $ac_status = 0; }; then
8165     case `/usr/bin/file conftest.o` in
8166       *32-bit*)
8167         case $host in
8168           x86_64-*kfreebsd*-gnu)
8169             LD="${LD-ld} -m elf_i386_fbsd"
8170             ;;
8171           x86_64-*linux*)
8172             case `/usr/bin/file conftest.o` in
8173               *x86-64*)
8174                 LD="${LD-ld} -m elf32_x86_64"
8175                 ;;
8176               *)
8177                 LD="${LD-ld} -m elf_i386"
8178                 ;;
8179             esac
8180             ;;
8181           powerpc64le-*)
8182             LD="${LD-ld} -m elf32lppclinux"
8183             ;;
8184           powerpc64-*)
8185             LD="${LD-ld} -m elf32ppclinux"
8186             ;;
8187           s390x-*linux*)
8188             LD="${LD-ld} -m elf_s390"
8189             ;;
8190           sparc64-*linux*)
8191             LD="${LD-ld} -m elf32_sparc"
8192             ;;
8193         esac
8194         ;;
8195       *64-bit*)
8196         case $host in
8197           x86_64-*kfreebsd*-gnu)
8198             LD="${LD-ld} -m elf_x86_64_fbsd"
8199             ;;
8200           x86_64-*linux*)
8201             LD="${LD-ld} -m elf_x86_64"
8202             ;;
8203           powerpcle-*)
8204             LD="${LD-ld} -m elf64lppc"
8205             ;;
8206           powerpc-*)
8207             LD="${LD-ld} -m elf64ppc"
8208             ;;
8209           s390*-*linux*|s390*-*tpf*)
8210             LD="${LD-ld} -m elf64_s390"
8211             ;;
8212           sparc*-*linux*)
8213             LD="${LD-ld} -m elf64_sparc"
8214             ;;
8215         esac
8216         ;;
8217     esac
8218   fi
8219   rm -rf conftest*
8220   ;;
8221
8222 *-*-sco3.2v5*)
8223   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8224   SAVE_CFLAGS="$CFLAGS"
8225   CFLAGS="$CFLAGS -belf"
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8227 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8228 if ${lt_cv_cc_needs_belf+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   ac_ext=c
8232 ac_cpp='$CPP $CPPFLAGS'
8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8236
8237      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h.  */
8239
8240 int
8241 main ()
8242 {
8243
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 if ac_fn_c_try_link "$LINENO"; then :
8249   lt_cv_cc_needs_belf=yes
8250 else
8251   lt_cv_cc_needs_belf=no
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext \
8254     conftest$ac_exeext conftest.$ac_ext
8255      ac_ext=c
8256 ac_cpp='$CPP $CPPFLAGS'
8257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8263 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8264   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8265     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8266     CFLAGS="$SAVE_CFLAGS"
8267   fi
8268   ;;
8269 *-*solaris*)
8270   # Find out which ABI we are using.
8271   echo 'int i;' > conftest.$ac_ext
8272   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8273   (eval $ac_compile) 2>&5
8274   ac_status=$?
8275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8276   test $ac_status = 0; }; then
8277     case `/usr/bin/file conftest.o` in
8278     *64-bit*)
8279       case $lt_cv_prog_gnu_ld in
8280       yes*)
8281         case $host in
8282         i?86-*-solaris*)
8283           LD="${LD-ld} -m elf_x86_64"
8284           ;;
8285         sparc*-*-solaris*)
8286           LD="${LD-ld} -m elf64_sparc"
8287           ;;
8288         esac
8289         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8290         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8291           LD="${LD-ld}_sol2"
8292         fi
8293         ;;
8294       *)
8295         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8296           LD="${LD-ld} -64"
8297         fi
8298         ;;
8299       esac
8300       ;;
8301     esac
8302   fi
8303   rm -rf conftest*
8304   ;;
8305 esac
8306
8307 need_locks="$enable_libtool_lock"
8308
8309 if test -n "$ac_tool_prefix"; then
8310   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8311 set dummy ${ac_tool_prefix}mt; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   if test -n "$MANIFEST_TOOL"; then
8318   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8322 do
8323   IFS=$as_save_IFS
8324   test -z "$as_dir" && as_dir=.
8325     for ac_exec_ext in '' $ac_executable_extensions; do
8326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329     break 2
8330   fi
8331 done
8332   done
8333 IFS=$as_save_IFS
8334
8335 fi
8336 fi
8337 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8338 if test -n "$MANIFEST_TOOL"; then
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8340 $as_echo "$MANIFEST_TOOL" >&6; }
8341 else
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 fi
8345
8346
8347 fi
8348 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8349   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8350   # Extract the first word of "mt", so it can be a program name with args.
8351 set dummy mt; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   if test -n "$ac_ct_MANIFEST_TOOL"; then
8358   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365     for ac_exec_ext in '' $ac_executable_extensions; do
8366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372   done
8373 IFS=$as_save_IFS
8374
8375 fi
8376 fi
8377 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8378 if test -n "$ac_ct_MANIFEST_TOOL"; then
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8380 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8381 else
8382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8384 fi
8385
8386   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8387     MANIFEST_TOOL=":"
8388   else
8389     case $cross_compiling:$ac_tool_warned in
8390 yes:)
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8393 ac_tool_warned=yes ;;
8394 esac
8395     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8396   fi
8397 else
8398   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8399 fi
8400
8401 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8403 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8404 if ${lt_cv_path_mainfest_tool+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   lt_cv_path_mainfest_tool=no
8408   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8409   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8410   cat conftest.err >&5
8411   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8412     lt_cv_path_mainfest_tool=yes
8413   fi
8414   rm -f conftest*
8415 fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8417 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8418 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8419   MANIFEST_TOOL=:
8420 fi
8421
8422
8423
8424
8425
8426
8427   case $host_os in
8428     rhapsody* | darwin*)
8429     if test -n "$ac_tool_prefix"; then
8430   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8431 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8435   $as_echo_n "(cached) " >&6
8436 else
8437   if test -n "$DSYMUTIL"; then
8438   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445     for ac_exec_ext in '' $ac_executable_extensions; do
8446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8447     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452   done
8453 IFS=$as_save_IFS
8454
8455 fi
8456 fi
8457 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8458 if test -n "$DSYMUTIL"; then
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8460 $as_echo "$DSYMUTIL" >&6; }
8461 else
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8464 fi
8465
8466
8467 fi
8468 if test -z "$ac_cv_prog_DSYMUTIL"; then
8469   ac_ct_DSYMUTIL=$DSYMUTIL
8470   # Extract the first word of "dsymutil", so it can be a program name with args.
8471 set dummy dsymutil; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   if test -n "$ac_ct_DSYMUTIL"; then
8478   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483   IFS=$as_save_IFS
8484   test -z "$as_dir" && as_dir=.
8485     for ac_exec_ext in '' $ac_executable_extensions; do
8486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8487     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489     break 2
8490   fi
8491 done
8492   done
8493 IFS=$as_save_IFS
8494
8495 fi
8496 fi
8497 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8498 if test -n "$ac_ct_DSYMUTIL"; then
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8500 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8501 else
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506   if test "x$ac_ct_DSYMUTIL" = x; then
8507     DSYMUTIL=":"
8508   else
8509     case $cross_compiling:$ac_tool_warned in
8510 yes:)
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8513 ac_tool_warned=yes ;;
8514 esac
8515     DSYMUTIL=$ac_ct_DSYMUTIL
8516   fi
8517 else
8518   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8519 fi
8520
8521     if test -n "$ac_tool_prefix"; then
8522   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8523 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if ${ac_cv_prog_NMEDIT+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   if test -n "$NMEDIT"; then
8530   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535   IFS=$as_save_IFS
8536   test -z "$as_dir" && as_dir=.
8537     for ac_exec_ext in '' $ac_executable_extensions; do
8538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8539     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541     break 2
8542   fi
8543 done
8544   done
8545 IFS=$as_save_IFS
8546
8547 fi
8548 fi
8549 NMEDIT=$ac_cv_prog_NMEDIT
8550 if test -n "$NMEDIT"; then
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8552 $as_echo "$NMEDIT" >&6; }
8553 else
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8556 fi
8557
8558
8559 fi
8560 if test -z "$ac_cv_prog_NMEDIT"; then
8561   ac_ct_NMEDIT=$NMEDIT
8562   # Extract the first word of "nmedit", so it can be a program name with args.
8563 set dummy nmedit; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8567   $as_echo_n "(cached) " >&6
8568 else
8569   if test -n "$ac_ct_NMEDIT"; then
8570   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575   IFS=$as_save_IFS
8576   test -z "$as_dir" && as_dir=.
8577     for ac_exec_ext in '' $ac_executable_extensions; do
8578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581     break 2
8582   fi
8583 done
8584   done
8585 IFS=$as_save_IFS
8586
8587 fi
8588 fi
8589 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8590 if test -n "$ac_ct_NMEDIT"; then
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8592 $as_echo "$ac_ct_NMEDIT" >&6; }
8593 else
8594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8596 fi
8597
8598   if test "x$ac_ct_NMEDIT" = x; then
8599     NMEDIT=":"
8600   else
8601     case $cross_compiling:$ac_tool_warned in
8602 yes:)
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8605 ac_tool_warned=yes ;;
8606 esac
8607     NMEDIT=$ac_ct_NMEDIT
8608   fi
8609 else
8610   NMEDIT="$ac_cv_prog_NMEDIT"
8611 fi
8612
8613     if test -n "$ac_tool_prefix"; then
8614   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8615 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_LIPO+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   if test -n "$LIPO"; then
8622   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627   IFS=$as_save_IFS
8628   test -z "$as_dir" && as_dir=.
8629     for ac_exec_ext in '' $ac_executable_extensions; do
8630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633     break 2
8634   fi
8635 done
8636   done
8637 IFS=$as_save_IFS
8638
8639 fi
8640 fi
8641 LIPO=$ac_cv_prog_LIPO
8642 if test -n "$LIPO"; then
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8644 $as_echo "$LIPO" >&6; }
8645 else
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650
8651 fi
8652 if test -z "$ac_cv_prog_LIPO"; then
8653   ac_ct_LIPO=$LIPO
8654   # Extract the first word of "lipo", so it can be a program name with args.
8655 set dummy lipo; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8659   $as_echo_n "(cached) " >&6
8660 else
8661   if test -n "$ac_ct_LIPO"; then
8662   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667   IFS=$as_save_IFS
8668   test -z "$as_dir" && as_dir=.
8669     for ac_exec_ext in '' $ac_executable_extensions; do
8670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671     ac_cv_prog_ac_ct_LIPO="lipo"
8672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673     break 2
8674   fi
8675 done
8676   done
8677 IFS=$as_save_IFS
8678
8679 fi
8680 fi
8681 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8682 if test -n "$ac_ct_LIPO"; then
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8684 $as_echo "$ac_ct_LIPO" >&6; }
8685 else
8686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8688 fi
8689
8690   if test "x$ac_ct_LIPO" = x; then
8691     LIPO=":"
8692   else
8693     case $cross_compiling:$ac_tool_warned in
8694 yes:)
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8697 ac_tool_warned=yes ;;
8698 esac
8699     LIPO=$ac_ct_LIPO
8700   fi
8701 else
8702   LIPO="$ac_cv_prog_LIPO"
8703 fi
8704
8705     if test -n "$ac_tool_prefix"; then
8706   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8707 set dummy ${ac_tool_prefix}otool; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_OTOOL+:} false; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   if test -n "$OTOOL"; then
8714   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719   IFS=$as_save_IFS
8720   test -z "$as_dir" && as_dir=.
8721     for ac_exec_ext in '' $ac_executable_extensions; do
8722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725     break 2
8726   fi
8727 done
8728   done
8729 IFS=$as_save_IFS
8730
8731 fi
8732 fi
8733 OTOOL=$ac_cv_prog_OTOOL
8734 if test -n "$OTOOL"; then
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8736 $as_echo "$OTOOL" >&6; }
8737 else
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8740 fi
8741
8742
8743 fi
8744 if test -z "$ac_cv_prog_OTOOL"; then
8745   ac_ct_OTOOL=$OTOOL
8746   # Extract the first word of "otool", so it can be a program name with args.
8747 set dummy otool; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   if test -n "$ac_ct_OTOOL"; then
8754   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759   IFS=$as_save_IFS
8760   test -z "$as_dir" && as_dir=.
8761     for ac_exec_ext in '' $ac_executable_extensions; do
8762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763     ac_cv_prog_ac_ct_OTOOL="otool"
8764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765     break 2
8766   fi
8767 done
8768   done
8769 IFS=$as_save_IFS
8770
8771 fi
8772 fi
8773 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8774 if test -n "$ac_ct_OTOOL"; then
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8776 $as_echo "$ac_ct_OTOOL" >&6; }
8777 else
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782   if test "x$ac_ct_OTOOL" = x; then
8783     OTOOL=":"
8784   else
8785     case $cross_compiling:$ac_tool_warned in
8786 yes:)
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8789 ac_tool_warned=yes ;;
8790 esac
8791     OTOOL=$ac_ct_OTOOL
8792   fi
8793 else
8794   OTOOL="$ac_cv_prog_OTOOL"
8795 fi
8796
8797     if test -n "$ac_tool_prefix"; then
8798   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8799 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_prog_OTOOL64+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   if test -n "$OTOOL64"; then
8806   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8807 else
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8810 do
8811   IFS=$as_save_IFS
8812   test -z "$as_dir" && as_dir=.
8813     for ac_exec_ext in '' $ac_executable_extensions; do
8814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817     break 2
8818   fi
8819 done
8820   done
8821 IFS=$as_save_IFS
8822
8823 fi
8824 fi
8825 OTOOL64=$ac_cv_prog_OTOOL64
8826 if test -n "$OTOOL64"; then
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8828 $as_echo "$OTOOL64" >&6; }
8829 else
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8832 fi
8833
8834
8835 fi
8836 if test -z "$ac_cv_prog_OTOOL64"; then
8837   ac_ct_OTOOL64=$OTOOL64
8838   # Extract the first word of "otool64", so it can be a program name with args.
8839 set dummy otool64; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   if test -n "$ac_ct_OTOOL64"; then
8846   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8847 else
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851   IFS=$as_save_IFS
8852   test -z "$as_dir" && as_dir=.
8853     for ac_exec_ext in '' $ac_executable_extensions; do
8854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855     ac_cv_prog_ac_ct_OTOOL64="otool64"
8856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857     break 2
8858   fi
8859 done
8860   done
8861 IFS=$as_save_IFS
8862
8863 fi
8864 fi
8865 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8866 if test -n "$ac_ct_OTOOL64"; then
8867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8868 $as_echo "$ac_ct_OTOOL64" >&6; }
8869 else
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8872 fi
8873
8874   if test "x$ac_ct_OTOOL64" = x; then
8875     OTOOL64=":"
8876   else
8877     case $cross_compiling:$ac_tool_warned in
8878 yes:)
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8881 ac_tool_warned=yes ;;
8882 esac
8883     OTOOL64=$ac_ct_OTOOL64
8884   fi
8885 else
8886   OTOOL64="$ac_cv_prog_OTOOL64"
8887 fi
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8916 $as_echo_n "checking for -single_module linker flag... " >&6; }
8917 if ${lt_cv_apple_cc_single_mod+:} false; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   lt_cv_apple_cc_single_mod=no
8921       if test -z "${LT_MULTI_MODULE}"; then
8922         # By default we will add the -single_module flag. You can override
8923         # by either setting the environment variable LT_MULTI_MODULE
8924         # non-empty at configure time, or by adding -multi_module to the
8925         # link flags.
8926         rm -rf libconftest.dylib*
8927         echo "int foo(void){return 1;}" > conftest.c
8928         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8929 -dynamiclib -Wl,-single_module conftest.c" >&5
8930         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8931           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8932         _lt_result=$?
8933         # If there is a non-empty error log, and "single_module"
8934         # appears in it, assume the flag caused a linker warning
8935         if test -s conftest.err && $GREP single_module conftest.err; then
8936           cat conftest.err >&5
8937         # Otherwise, if the output was created with a 0 exit code from
8938         # the compiler, it worked.
8939         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8940           lt_cv_apple_cc_single_mod=yes
8941         else
8942           cat conftest.err >&5
8943         fi
8944         rm -rf libconftest.dylib*
8945         rm -f conftest.*
8946       fi
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8949 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8950
8951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8952 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8953 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   lt_cv_ld_exported_symbols_list=no
8957       save_LDFLAGS=$LDFLAGS
8958       echo "_main" > conftest.sym
8959       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8960       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962
8963 int
8964 main ()
8965 {
8966
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972   lt_cv_ld_exported_symbols_list=yes
8973 else
8974   lt_cv_ld_exported_symbols_list=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext \
8977     conftest$ac_exeext conftest.$ac_ext
8978         LDFLAGS="$save_LDFLAGS"
8979
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8982 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8983
8984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8985 $as_echo_n "checking for -force_load linker flag... " >&6; }
8986 if ${lt_cv_ld_force_load+:} false; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989   lt_cv_ld_force_load=no
8990       cat > conftest.c << _LT_EOF
8991 int forced_loaded() { return 2;}
8992 _LT_EOF
8993       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8994       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8995       echo "$AR cru libconftest.a conftest.o" >&5
8996       $AR cru libconftest.a conftest.o 2>&5
8997       echo "$RANLIB libconftest.a" >&5
8998       $RANLIB libconftest.a 2>&5
8999       cat > conftest.c << _LT_EOF
9000 int main() { return 0;}
9001 _LT_EOF
9002       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9003       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9004       _lt_result=$?
9005       if test -s conftest.err && $GREP force_load conftest.err; then
9006         cat conftest.err >&5
9007       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9008         lt_cv_ld_force_load=yes
9009       else
9010         cat conftest.err >&5
9011       fi
9012         rm -f conftest.err libconftest.a conftest conftest.c
9013         rm -rf conftest.dSYM
9014
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9017 $as_echo "$lt_cv_ld_force_load" >&6; }
9018     case $host_os in
9019     rhapsody* | darwin1.[012])
9020       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9021     darwin1.*)
9022       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9023     darwin*) # darwin 5.x on
9024       # if running on 10.5 or later, the deployment target defaults
9025       # to the OS version, if on x86, and 10.4, the deployment
9026       # target defaults to 10.4. Don't you love it?
9027       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9028         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9029           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9030         10.[012]*)
9031           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9032         10.*)
9033           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9034       esac
9035     ;;
9036   esac
9037     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9038       _lt_dar_single_mod='$single_module'
9039     fi
9040     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9041       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9042     else
9043       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9044     fi
9045     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9046       _lt_dsymutil='~$DSYMUTIL $lib || :'
9047     else
9048       _lt_dsymutil=
9049     fi
9050     ;;
9051   esac
9052
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9054 $as_echo_n "checking for ANSI C header files... " >&6; }
9055 if ${ac_cv_header_stdc+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h.  */
9060 #include <stdlib.h>
9061 #include <stdarg.h>
9062 #include <string.h>
9063 #include <float.h>
9064
9065 int
9066 main ()
9067 {
9068
9069   ;
9070   return 0;
9071 }
9072 _ACEOF
9073 if ac_fn_c_try_compile "$LINENO"; then :
9074   ac_cv_header_stdc=yes
9075 else
9076   ac_cv_header_stdc=no
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079
9080 if test $ac_cv_header_stdc = yes; then
9081   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h.  */
9084 #include <string.h>
9085
9086 _ACEOF
9087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9088   $EGREP "memchr" >/dev/null 2>&1; then :
9089
9090 else
9091   ac_cv_header_stdc=no
9092 fi
9093 rm -f conftest*
9094
9095 fi
9096
9097 if test $ac_cv_header_stdc = yes; then
9098   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h.  */
9101 #include <stdlib.h>
9102
9103 _ACEOF
9104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9105   $EGREP "free" >/dev/null 2>&1; then :
9106
9107 else
9108   ac_cv_header_stdc=no
9109 fi
9110 rm -f conftest*
9111
9112 fi
9113
9114 if test $ac_cv_header_stdc = yes; then
9115   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9116   if test "$cross_compiling" = yes; then :
9117   :
9118 else
9119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h.  */
9121 #include <ctype.h>
9122 #include <stdlib.h>
9123 #if ((' ' & 0x0FF) == 0x020)
9124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9126 #else
9127 # define ISLOWER(c) \
9128                    (('a' <= (c) && (c) <= 'i') \
9129                      || ('j' <= (c) && (c) <= 'r') \
9130                      || ('s' <= (c) && (c) <= 'z'))
9131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9132 #endif
9133
9134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9135 int
9136 main ()
9137 {
9138   int i;
9139   for (i = 0; i < 256; i++)
9140     if (XOR (islower (i), ISLOWER (i))
9141         || toupper (i) != TOUPPER (i))
9142       return 2;
9143   return 0;
9144 }
9145 _ACEOF
9146 if ac_fn_c_try_run "$LINENO"; then :
9147
9148 else
9149   ac_cv_header_stdc=no
9150 fi
9151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9152   conftest.$ac_objext conftest.beam conftest.$ac_ext
9153 fi
9154
9155 fi
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9158 $as_echo "$ac_cv_header_stdc" >&6; }
9159 if test $ac_cv_header_stdc = yes; then
9160
9161 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9162
9163 fi
9164
9165 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9166 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9167                   inttypes.h stdint.h unistd.h
9168 do :
9169   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9171 "
9172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9173   cat >>confdefs.h <<_ACEOF
9174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9175 _ACEOF
9176
9177 fi
9178
9179 done
9180
9181
9182 for ac_header in dlfcn.h
9183 do :
9184   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9185 "
9186 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9187   cat >>confdefs.h <<_ACEOF
9188 #define HAVE_DLFCN_H 1
9189 _ACEOF
9190
9191 fi
9192
9193 done
9194
9195
9196
9197
9198 func_stripname_cnf ()
9199 {
9200   case ${2} in
9201   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9202   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9203   esac
9204 } # func_stripname_cnf
9205
9206
9207
9208
9209
9210 # Set options
9211 # Check whether --enable-shared was given.
9212 if test "${enable_shared+set}" = set; then :
9213   enableval=$enable_shared; p=${PACKAGE-default}
9214     case $enableval in
9215     yes) enable_shared=yes ;;
9216     no) enable_shared=no ;;
9217     *)
9218       enable_shared=no
9219       # Look at the argument we got.  We use all the common list separators.
9220       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9221       for pkg in $enableval; do
9222         IFS="$lt_save_ifs"
9223         if test "X$pkg" = "X$p"; then
9224           enable_shared=yes
9225         fi
9226       done
9227       IFS="$lt_save_ifs"
9228       ;;
9229     esac
9230 else
9231   enable_shared=yes
9232 fi
9233
9234
9235
9236
9237
9238
9239
9240 # Check whether --enable-static was given.
9241 if test "${enable_static+set}" = set; then :
9242   enableval=$enable_static; p=${PACKAGE-default}
9243     case $enableval in
9244     yes) enable_static=yes ;;
9245     no) enable_static=no ;;
9246     *)
9247      enable_static=no
9248       # Look at the argument we got.  We use all the common list separators.
9249       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9250       for pkg in $enableval; do
9251         IFS="$lt_save_ifs"
9252         if test "X$pkg" = "X$p"; then
9253           enable_static=yes
9254         fi
9255       done
9256       IFS="$lt_save_ifs"
9257       ;;
9258     esac
9259 else
9260   enable_static=no
9261 fi
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272         enable_dlopen=no
9273
9274
9275   enable_win32_dll=no
9276
9277
9278
9279
9280
9281 # Check whether --with-pic was given.
9282 if test "${with_pic+set}" = set; then :
9283   withval=$with_pic; lt_p=${PACKAGE-default}
9284     case $withval in
9285     yes|no) pic_mode=$withval ;;
9286     *)
9287       pic_mode=default
9288       # Look at the argument we got.  We use all the common list separators.
9289       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9290       for lt_pkg in $withval; do
9291         IFS="$lt_save_ifs"
9292         if test "X$lt_pkg" = "X$lt_p"; then
9293           pic_mode=yes
9294         fi
9295       done
9296       IFS="$lt_save_ifs"
9297       ;;
9298     esac
9299 else
9300   pic_mode=default
9301 fi
9302
9303
9304 test -z "$pic_mode" && pic_mode=default
9305
9306
9307
9308
9309
9310
9311
9312   # Check whether --enable-fast-install was given.
9313 if test "${enable_fast_install+set}" = set; then :
9314   enableval=$enable_fast_install; p=${PACKAGE-default}
9315     case $enableval in
9316     yes) enable_fast_install=yes ;;
9317     no) enable_fast_install=no ;;
9318     *)
9319       enable_fast_install=no
9320       # Look at the argument we got.  We use all the common list separators.
9321       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9322       for pkg in $enableval; do
9323         IFS="$lt_save_ifs"
9324         if test "X$pkg" = "X$p"; then
9325           enable_fast_install=yes
9326         fi
9327       done
9328       IFS="$lt_save_ifs"
9329       ;;
9330     esac
9331 else
9332   enable_fast_install=yes
9333 fi
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345 # This can be used to rebuild libtool when needed
9346 LIBTOOL_DEPS="$ltmain"
9347
9348 # Always use our own libtool.
9349 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380 test -z "$LN_S" && LN_S="ln -s"
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395 if test -n "${ZSH_VERSION+set}" ; then
9396    setopt NO_GLOB_SUBST
9397 fi
9398
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9400 $as_echo_n "checking for objdir... " >&6; }
9401 if ${lt_cv_objdir+:} false; then :
9402   $as_echo_n "(cached) " >&6
9403 else
9404   rm -f .libs 2>/dev/null
9405 mkdir .libs 2>/dev/null
9406 if test -d .libs; then
9407   lt_cv_objdir=.libs
9408 else
9409   # MS-DOS does not allow filenames that begin with a dot.
9410   lt_cv_objdir=_libs
9411 fi
9412 rmdir .libs 2>/dev/null
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9415 $as_echo "$lt_cv_objdir" >&6; }
9416 objdir=$lt_cv_objdir
9417
9418
9419
9420
9421
9422 cat >>confdefs.h <<_ACEOF
9423 #define LT_OBJDIR "$lt_cv_objdir/"
9424 _ACEOF
9425
9426
9427
9428
9429 case $host_os in
9430 aix3*)
9431   # AIX sometimes has problems with the GCC collect2 program.  For some
9432   # reason, if we set the COLLECT_NAMES environment variable, the problems
9433   # vanish in a puff of smoke.
9434   if test "X${COLLECT_NAMES+set}" != Xset; then
9435     COLLECT_NAMES=
9436     export COLLECT_NAMES
9437   fi
9438   ;;
9439 esac
9440
9441 # Global variables:
9442 ofile=libtool
9443 can_build_shared=yes
9444
9445 # All known linkers require a `.a' archive for static linking (except MSVC,
9446 # which needs '.lib').
9447 libext=a
9448
9449 with_gnu_ld="$lt_cv_prog_gnu_ld"
9450
9451 old_CC="$CC"
9452 old_CFLAGS="$CFLAGS"
9453
9454 # Set sane defaults for various variables
9455 test -z "$CC" && CC=cc
9456 test -z "$LTCC" && LTCC=$CC
9457 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9458 test -z "$LD" && LD=ld
9459 test -z "$ac_objext" && ac_objext=o
9460
9461 for cc_temp in $compiler""; do
9462   case $cc_temp in
9463     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9464     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9465     \-*) ;;
9466     *) break;;
9467   esac
9468 done
9469 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9470
9471
9472 # Only perform the check for file, if the check method requires it
9473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9474 case $deplibs_check_method in
9475 file_magic*)
9476   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9478 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9480   $as_echo_n "(cached) " >&6
9481 else
9482   case $MAGIC_CMD in
9483 [\\/*] |  ?:[\\/]*)
9484   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9485   ;;
9486 *)
9487   lt_save_MAGIC_CMD="$MAGIC_CMD"
9488   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9489   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9490   for ac_dir in $ac_dummy; do
9491     IFS="$lt_save_ifs"
9492     test -z "$ac_dir" && ac_dir=.
9493     if test -f $ac_dir/${ac_tool_prefix}file; then
9494       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9495       if test -n "$file_magic_test_file"; then
9496         case $deplibs_check_method in
9497         "file_magic "*)
9498           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9499           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9500           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9501             $EGREP "$file_magic_regex" > /dev/null; then
9502             :
9503           else
9504             cat <<_LT_EOF 1>&2
9505
9506 *** Warning: the command libtool uses to detect shared libraries,
9507 *** $file_magic_cmd, produces output that libtool cannot recognize.
9508 *** The result is that libtool may fail to recognize shared libraries
9509 *** as such.  This will affect the creation of libtool libraries that
9510 *** depend on shared libraries, but programs linked with such libtool
9511 *** libraries will work regardless of this problem.  Nevertheless, you
9512 *** may want to report the problem to your system manager and/or to
9513 *** bug-libtool@gnu.org
9514
9515 _LT_EOF
9516           fi ;;
9517         esac
9518       fi
9519       break
9520     fi
9521   done
9522   IFS="$lt_save_ifs"
9523   MAGIC_CMD="$lt_save_MAGIC_CMD"
9524   ;;
9525 esac
9526 fi
9527
9528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9529 if test -n "$MAGIC_CMD"; then
9530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9531 $as_echo "$MAGIC_CMD" >&6; }
9532 else
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9535 fi
9536
9537
9538
9539
9540
9541 if test -z "$lt_cv_path_MAGIC_CMD"; then
9542   if test -n "$ac_tool_prefix"; then
9543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9544 $as_echo_n "checking for file... " >&6; }
9545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   case $MAGIC_CMD in
9549 [\\/*] |  ?:[\\/]*)
9550   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9551   ;;
9552 *)
9553   lt_save_MAGIC_CMD="$MAGIC_CMD"
9554   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9555   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9556   for ac_dir in $ac_dummy; do
9557     IFS="$lt_save_ifs"
9558     test -z "$ac_dir" && ac_dir=.
9559     if test -f $ac_dir/file; then
9560       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9561       if test -n "$file_magic_test_file"; then
9562         case $deplibs_check_method in
9563         "file_magic "*)
9564           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9567             $EGREP "$file_magic_regex" > /dev/null; then
9568             :
9569           else
9570             cat <<_LT_EOF 1>&2
9571
9572 *** Warning: the command libtool uses to detect shared libraries,
9573 *** $file_magic_cmd, produces output that libtool cannot recognize.
9574 *** The result is that libtool may fail to recognize shared libraries
9575 *** as such.  This will affect the creation of libtool libraries that
9576 *** depend on shared libraries, but programs linked with such libtool
9577 *** libraries will work regardless of this problem.  Nevertheless, you
9578 *** may want to report the problem to your system manager and/or to
9579 *** bug-libtool@gnu.org
9580
9581 _LT_EOF
9582           fi ;;
9583         esac
9584       fi
9585       break
9586     fi
9587   done
9588   IFS="$lt_save_ifs"
9589   MAGIC_CMD="$lt_save_MAGIC_CMD"
9590   ;;
9591 esac
9592 fi
9593
9594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9595 if test -n "$MAGIC_CMD"; then
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9597 $as_echo "$MAGIC_CMD" >&6; }
9598 else
9599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 fi
9602
9603
9604   else
9605     MAGIC_CMD=:
9606   fi
9607 fi
9608
9609   fi
9610   ;;
9611 esac
9612
9613 # Use C for the default configuration in the libtool script
9614
9615 lt_save_CC="$CC"
9616 ac_ext=c
9617 ac_cpp='$CPP $CPPFLAGS'
9618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9621
9622
9623 # Source file extension for C test sources.
9624 ac_ext=c
9625
9626 # Object file extension for compiled C test sources.
9627 objext=o
9628 objext=$objext
9629
9630 # Code to be used in simple compile tests
9631 lt_simple_compile_test_code="int some_variable = 0;"
9632
9633 # Code to be used in simple link tests
9634 lt_simple_link_test_code='int main(){return(0);}'
9635
9636
9637
9638
9639
9640
9641
9642 # If no C compiler was specified, use CC.
9643 LTCC=${LTCC-"$CC"}
9644
9645 # If no C compiler flags were specified, use CFLAGS.
9646 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9647
9648 # Allow CC to be a program name with arguments.
9649 compiler=$CC
9650
9651 # Save the default compiler, since it gets overwritten when the other
9652 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9653 compiler_DEFAULT=$CC
9654
9655 # save warnings/boilerplate of simple test code
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9659 _lt_compiler_boilerplate=`cat conftest.err`
9660 $RM conftest*
9661
9662 ac_outfile=conftest.$ac_objext
9663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9665 _lt_linker_boilerplate=`cat conftest.err`
9666 $RM -r conftest*
9667
9668
9669 ## CAVEAT EMPTOR:
9670 ## There is no encapsulation within the following macros, do not change
9671 ## the running order or otherwise move them around unless you know exactly
9672 ## what you are doing...
9673 if test -n "$compiler"; then
9674
9675 lt_prog_compiler_no_builtin_flag=
9676
9677 if test "$GCC" = yes; then
9678   case $cc_basename in
9679   nvcc*)
9680     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9681   *)
9682     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9683   esac
9684
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9686 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9687 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9688   $as_echo_n "(cached) " >&6
9689 else
9690   lt_cv_prog_compiler_rtti_exceptions=no
9691    ac_outfile=conftest.$ac_objext
9692    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9693    lt_compiler_flag="-fno-rtti -fno-exceptions"
9694    # Insert the option either (1) after the last *FLAGS variable, or
9695    # (2) before a word containing "conftest.", or (3) at the end.
9696    # Note that $ac_compile itself does not contain backslashes and begins
9697    # with a dollar sign (not a hyphen), so the echo should work correctly.
9698    # The option is referenced via a variable to avoid confusing sed.
9699    lt_compile=`echo "$ac_compile" | $SED \
9700    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9702    -e 's:$: $lt_compiler_flag:'`
9703    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9704    (eval "$lt_compile" 2>conftest.err)
9705    ac_status=$?
9706    cat conftest.err >&5
9707    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708    if (exit $ac_status) && test -s "$ac_outfile"; then
9709      # The compiler can only warn and ignore the option if not recognized
9710      # So say no if there are warnings other than the usual output.
9711      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9712      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9714        lt_cv_prog_compiler_rtti_exceptions=yes
9715      fi
9716    fi
9717    $RM conftest*
9718
9719 fi
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9721 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9722
9723 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9724     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9725 else
9726     :
9727 fi
9728
9729 fi
9730
9731
9732
9733
9734
9735
9736   lt_prog_compiler_wl=
9737 lt_prog_compiler_pic=
9738 lt_prog_compiler_static=
9739
9740
9741   if test "$GCC" = yes; then
9742     lt_prog_compiler_wl='-Wl,'
9743     lt_prog_compiler_static='-static'
9744
9745     case $host_os in
9746       aix*)
9747       # All AIX code is PIC.
9748       if test "$host_cpu" = ia64; then
9749         # AIX 5 now supports IA64 processor
9750         lt_prog_compiler_static='-Bstatic'
9751       fi
9752       ;;
9753
9754     amigaos*)
9755       case $host_cpu in
9756       powerpc)
9757             # see comment about AmigaOS4 .so support
9758             lt_prog_compiler_pic='-fPIC'
9759         ;;
9760       m68k)
9761             # FIXME: we need at least 68020 code to build shared libraries, but
9762             # adding the `-m68020' flag to GCC prevents building anything better,
9763             # like `-m68040'.
9764             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9765         ;;
9766       esac
9767       ;;
9768
9769     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9770       # PIC is the default for these OSes.
9771       ;;
9772
9773     mingw* | cygwin* | pw32* | os2* | cegcc*)
9774       # This hack is so that the source file can tell whether it is being
9775       # built for inclusion in a dll (and should export symbols for example).
9776       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9777       # (--disable-auto-import) libraries
9778       lt_prog_compiler_pic='-DDLL_EXPORT'
9779       ;;
9780
9781     darwin* | rhapsody*)
9782       # PIC is the default on this platform
9783       # Common symbols not allowed in MH_DYLIB files
9784       lt_prog_compiler_pic='-fno-common'
9785       ;;
9786
9787     haiku*)
9788       # PIC is the default for Haiku.
9789       # The "-static" flag exists, but is broken.
9790       lt_prog_compiler_static=
9791       ;;
9792
9793     hpux*)
9794       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9795       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9796       # sets the default TLS model and affects inlining.
9797       case $host_cpu in
9798       hppa*64*)
9799         # +Z the default
9800         ;;
9801       *)
9802         lt_prog_compiler_pic='-fPIC'
9803         ;;
9804       esac
9805       ;;
9806
9807     interix[3-9]*)
9808       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9809       # Instead, we relocate shared libraries at runtime.
9810       ;;
9811
9812     msdosdjgpp*)
9813       # Just because we use GCC doesn't mean we suddenly get shared libraries
9814       # on systems that don't support them.
9815       lt_prog_compiler_can_build_shared=no
9816       enable_shared=no
9817       ;;
9818
9819     *nto* | *qnx*)
9820       # QNX uses GNU C++, but need to define -shared option too, otherwise
9821       # it will coredump.
9822       lt_prog_compiler_pic='-fPIC -shared'
9823       ;;
9824
9825     sysv4*MP*)
9826       if test -d /usr/nec; then
9827         lt_prog_compiler_pic=-Kconform_pic
9828       fi
9829       ;;
9830
9831     *)
9832       lt_prog_compiler_pic='-fPIC'
9833       ;;
9834     esac
9835
9836     case $cc_basename in
9837     nvcc*) # Cuda Compiler Driver 2.2
9838       lt_prog_compiler_wl='-Xlinker '
9839       if test -n "$lt_prog_compiler_pic"; then
9840         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9841       fi
9842       ;;
9843     esac
9844   else
9845     # PORTME Check for flag to pass linker flags through the system compiler.
9846     case $host_os in
9847     aix*)
9848       lt_prog_compiler_wl='-Wl,'
9849       if test "$host_cpu" = ia64; then
9850         # AIX 5 now supports IA64 processor
9851         lt_prog_compiler_static='-Bstatic'
9852       else
9853         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9854       fi
9855       ;;
9856
9857     mingw* | cygwin* | pw32* | os2* | cegcc*)
9858       # This hack is so that the source file can tell whether it is being
9859       # built for inclusion in a dll (and should export symbols for example).
9860       lt_prog_compiler_pic='-DDLL_EXPORT'
9861       ;;
9862
9863     hpux9* | hpux10* | hpux11*)
9864       lt_prog_compiler_wl='-Wl,'
9865       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9866       # not for PA HP-UX.
9867       case $host_cpu in
9868       hppa*64*|ia64*)
9869         # +Z the default
9870         ;;
9871       *)
9872         lt_prog_compiler_pic='+Z'
9873         ;;
9874       esac
9875       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9876       lt_prog_compiler_static='${wl}-a ${wl}archive'
9877       ;;
9878
9879     irix5* | irix6* | nonstopux*)
9880       lt_prog_compiler_wl='-Wl,'
9881       # PIC (with -KPIC) is the default.
9882       lt_prog_compiler_static='-non_shared'
9883       ;;
9884
9885     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9886       case $cc_basename in
9887       # old Intel for x86_64 which still supported -KPIC.
9888       ecc*)
9889         lt_prog_compiler_wl='-Wl,'
9890         lt_prog_compiler_pic='-KPIC'
9891         lt_prog_compiler_static='-static'
9892         ;;
9893       # icc used to be incompatible with GCC.
9894       # ICC 10 doesn't accept -KPIC any more.
9895       icc* | ifort*)
9896         lt_prog_compiler_wl='-Wl,'
9897         lt_prog_compiler_pic='-fPIC'
9898         lt_prog_compiler_static='-static'
9899         ;;
9900       # Lahey Fortran 8.1.
9901       lf95*)
9902         lt_prog_compiler_wl='-Wl,'
9903         lt_prog_compiler_pic='--shared'
9904         lt_prog_compiler_static='--static'
9905         ;;
9906       nagfor*)
9907         # NAG Fortran compiler
9908         lt_prog_compiler_wl='-Wl,-Wl,,'
9909         lt_prog_compiler_pic='-PIC'
9910         lt_prog_compiler_static='-Bstatic'
9911         ;;
9912       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9913         # Portland Group compilers (*not* the Pentium gcc compiler,
9914         # which looks to be a dead project)
9915         lt_prog_compiler_wl='-Wl,'
9916         lt_prog_compiler_pic='-fpic'
9917         lt_prog_compiler_static='-Bstatic'
9918         ;;
9919       ccc*)
9920         lt_prog_compiler_wl='-Wl,'
9921         # All Alpha code is PIC.
9922         lt_prog_compiler_static='-non_shared'
9923         ;;
9924       xl* | bgxl* | bgf* | mpixl*)
9925         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9926         lt_prog_compiler_wl='-Wl,'
9927         lt_prog_compiler_pic='-qpic'
9928         lt_prog_compiler_static='-qstaticlink'
9929         ;;
9930       *)
9931         case `$CC -V 2>&1 | sed 5q` in
9932         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9933           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9934           lt_prog_compiler_pic='-KPIC'
9935           lt_prog_compiler_static='-Bstatic'
9936           lt_prog_compiler_wl=''
9937           ;;
9938         *Sun\ F* | *Sun*Fortran*)
9939           lt_prog_compiler_pic='-KPIC'
9940           lt_prog_compiler_static='-Bstatic'
9941           lt_prog_compiler_wl='-Qoption ld '
9942           ;;
9943         *Sun\ C*)
9944           # Sun C 5.9
9945           lt_prog_compiler_pic='-KPIC'
9946           lt_prog_compiler_static='-Bstatic'
9947           lt_prog_compiler_wl='-Wl,'
9948           ;;
9949         *Intel*\ [CF]*Compiler*)
9950           lt_prog_compiler_wl='-Wl,'
9951           lt_prog_compiler_pic='-fPIC'
9952           lt_prog_compiler_static='-static'
9953           ;;
9954         *Portland\ Group*)
9955           lt_prog_compiler_wl='-Wl,'
9956           lt_prog_compiler_pic='-fpic'
9957           lt_prog_compiler_static='-Bstatic'
9958           ;;
9959         esac
9960         ;;
9961       esac
9962       ;;
9963
9964     newsos6)
9965       lt_prog_compiler_pic='-KPIC'
9966       lt_prog_compiler_static='-Bstatic'
9967       ;;
9968
9969     *nto* | *qnx*)
9970       # QNX uses GNU C++, but need to define -shared option too, otherwise
9971       # it will coredump.
9972       lt_prog_compiler_pic='-fPIC -shared'
9973       ;;
9974
9975     osf3* | osf4* | osf5*)
9976       lt_prog_compiler_wl='-Wl,'
9977       # All OSF/1 code is PIC.
9978       lt_prog_compiler_static='-non_shared'
9979       ;;
9980
9981     rdos*)
9982       lt_prog_compiler_static='-non_shared'
9983       ;;
9984
9985     solaris*)
9986       lt_prog_compiler_pic='-KPIC'
9987       lt_prog_compiler_static='-Bstatic'
9988       case $cc_basename in
9989       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9990         lt_prog_compiler_wl='-Qoption ld ';;
9991       *)
9992         lt_prog_compiler_wl='-Wl,';;
9993       esac
9994       ;;
9995
9996     sunos4*)
9997       lt_prog_compiler_wl='-Qoption ld '
9998       lt_prog_compiler_pic='-PIC'
9999       lt_prog_compiler_static='-Bstatic'
10000       ;;
10001
10002     sysv4 | sysv4.2uw2* | sysv4.3*)
10003       lt_prog_compiler_wl='-Wl,'
10004       lt_prog_compiler_pic='-KPIC'
10005       lt_prog_compiler_static='-Bstatic'
10006       ;;
10007
10008     sysv4*MP*)
10009       if test -d /usr/nec ;then
10010         lt_prog_compiler_pic='-Kconform_pic'
10011         lt_prog_compiler_static='-Bstatic'
10012       fi
10013       ;;
10014
10015     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10016       lt_prog_compiler_wl='-Wl,'
10017       lt_prog_compiler_pic='-KPIC'
10018       lt_prog_compiler_static='-Bstatic'
10019       ;;
10020
10021     unicos*)
10022       lt_prog_compiler_wl='-Wl,'
10023       lt_prog_compiler_can_build_shared=no
10024       ;;
10025
10026     uts4*)
10027       lt_prog_compiler_pic='-pic'
10028       lt_prog_compiler_static='-Bstatic'
10029       ;;
10030
10031     *)
10032       lt_prog_compiler_can_build_shared=no
10033       ;;
10034     esac
10035   fi
10036
10037 case $host_os in
10038   # For platforms which do not support PIC, -DPIC is meaningless:
10039   *djgpp*)
10040     lt_prog_compiler_pic=
10041     ;;
10042   *)
10043     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10044     ;;
10045 esac
10046
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10048 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10049 if ${lt_cv_prog_compiler_pic+:} false; then :
10050   $as_echo_n "(cached) " >&6
10051 else
10052   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10055 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10056 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10057
10058 #
10059 # Check to make sure the PIC flag actually works.
10060 #
10061 if test -n "$lt_prog_compiler_pic"; then
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10063 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10064 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   lt_cv_prog_compiler_pic_works=no
10068    ac_outfile=conftest.$ac_objext
10069    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10070    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10071    # Insert the option either (1) after the last *FLAGS variable, or
10072    # (2) before a word containing "conftest.", or (3) at the end.
10073    # Note that $ac_compile itself does not contain backslashes and begins
10074    # with a dollar sign (not a hyphen), so the echo should work correctly.
10075    # The option is referenced via a variable to avoid confusing sed.
10076    lt_compile=`echo "$ac_compile" | $SED \
10077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10079    -e 's:$: $lt_compiler_flag:'`
10080    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10081    (eval "$lt_compile" 2>conftest.err)
10082    ac_status=$?
10083    cat conftest.err >&5
10084    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085    if (exit $ac_status) && test -s "$ac_outfile"; then
10086      # The compiler can only warn and ignore the option if not recognized
10087      # So say no if there are warnings other than the usual output.
10088      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10089      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10090      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10091        lt_cv_prog_compiler_pic_works=yes
10092      fi
10093    fi
10094    $RM conftest*
10095
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10098 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10099
10100 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10101     case $lt_prog_compiler_pic in
10102      "" | " "*) ;;
10103      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10104      esac
10105 else
10106     lt_prog_compiler_pic=
10107      lt_prog_compiler_can_build_shared=no
10108 fi
10109
10110 fi
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122 #
10123 # Check to make sure the static flag actually works.
10124 #
10125 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10128 if ${lt_cv_prog_compiler_static_works+:} false; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   lt_cv_prog_compiler_static_works=no
10132    save_LDFLAGS="$LDFLAGS"
10133    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10134    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10135    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10136      # The linker can only warn and ignore the option if not recognized
10137      # So say no if there are warnings
10138      if test -s conftest.err; then
10139        # Append any errors to the config.log.
10140        cat conftest.err 1>&5
10141        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10142        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10143        if diff conftest.exp conftest.er2 >/dev/null; then
10144          lt_cv_prog_compiler_static_works=yes
10145        fi
10146      else
10147        lt_cv_prog_compiler_static_works=yes
10148      fi
10149    fi
10150    $RM -r conftest*
10151    LDFLAGS="$save_LDFLAGS"
10152
10153 fi
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10155 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10156
10157 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10158     :
10159 else
10160     lt_prog_compiler_static=
10161 fi
10162
10163
10164
10165
10166
10167
10168
10169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10171 if ${lt_cv_prog_compiler_c_o+:} false; then :
10172   $as_echo_n "(cached) " >&6
10173 else
10174   lt_cv_prog_compiler_c_o=no
10175    $RM -r conftest 2>/dev/null
10176    mkdir conftest
10177    cd conftest
10178    mkdir out
10179    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10180
10181    lt_compiler_flag="-o out/conftest2.$ac_objext"
10182    # Insert the option either (1) after the last *FLAGS variable, or
10183    # (2) before a word containing "conftest.", or (3) at the end.
10184    # Note that $ac_compile itself does not contain backslashes and begins
10185    # with a dollar sign (not a hyphen), so the echo should work correctly.
10186    lt_compile=`echo "$ac_compile" | $SED \
10187    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10189    -e 's:$: $lt_compiler_flag:'`
10190    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10191    (eval "$lt_compile" 2>out/conftest.err)
10192    ac_status=$?
10193    cat out/conftest.err >&5
10194    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10196    then
10197      # The compiler can only warn and ignore the option if not recognized
10198      # So say no if there are warnings
10199      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10200      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10201      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10202        lt_cv_prog_compiler_c_o=yes
10203      fi
10204    fi
10205    chmod u+w . 2>&5
10206    $RM conftest*
10207    # SGI C++ compiler will create directory out/ii_files/ for
10208    # template instantiation
10209    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10210    $RM out/* && rmdir out
10211    cd ..
10212    $RM -r conftest
10213    $RM conftest*
10214
10215 fi
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10218
10219
10220
10221
10222
10223
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10226 if ${lt_cv_prog_compiler_c_o+:} false; then :
10227   $as_echo_n "(cached) " >&6
10228 else
10229   lt_cv_prog_compiler_c_o=no
10230    $RM -r conftest 2>/dev/null
10231    mkdir conftest
10232    cd conftest
10233    mkdir out
10234    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10235
10236    lt_compiler_flag="-o out/conftest2.$ac_objext"
10237    # Insert the option either (1) after the last *FLAGS variable, or
10238    # (2) before a word containing "conftest.", or (3) at the end.
10239    # Note that $ac_compile itself does not contain backslashes and begins
10240    # with a dollar sign (not a hyphen), so the echo should work correctly.
10241    lt_compile=`echo "$ac_compile" | $SED \
10242    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10244    -e 's:$: $lt_compiler_flag:'`
10245    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10246    (eval "$lt_compile" 2>out/conftest.err)
10247    ac_status=$?
10248    cat out/conftest.err >&5
10249    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10251    then
10252      # The compiler can only warn and ignore the option if not recognized
10253      # So say no if there are warnings
10254      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10255      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10256      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10257        lt_cv_prog_compiler_c_o=yes
10258      fi
10259    fi
10260    chmod u+w . 2>&5
10261    $RM conftest*
10262    # SGI C++ compiler will create directory out/ii_files/ for
10263    # template instantiation
10264    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10265    $RM out/* && rmdir out
10266    cd ..
10267    $RM -r conftest
10268    $RM conftest*
10269
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10272 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10273
10274
10275
10276
10277 hard_links="nottested"
10278 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10279   # do not overwrite the value of need_locks provided by the user
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10281 $as_echo_n "checking if we can lock with hard links... " >&6; }
10282   hard_links=yes
10283   $RM conftest*
10284   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10285   touch conftest.a
10286   ln conftest.a conftest.b 2>&5 || hard_links=no
10287   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10289 $as_echo "$hard_links" >&6; }
10290   if test "$hard_links" = no; then
10291     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10292 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10293     need_locks=warn
10294   fi
10295 else
10296   need_locks=no
10297 fi
10298
10299
10300
10301
10302
10303
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10305 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10306
10307   runpath_var=
10308   allow_undefined_flag=
10309   always_export_symbols=no
10310   archive_cmds=
10311   archive_expsym_cmds=
10312   compiler_needs_object=no
10313   enable_shared_with_static_runtimes=no
10314   export_dynamic_flag_spec=
10315   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10316   hardcode_automatic=no
10317   hardcode_direct=no
10318   hardcode_direct_absolute=no
10319   hardcode_libdir_flag_spec=
10320   hardcode_libdir_separator=
10321   hardcode_minus_L=no
10322   hardcode_shlibpath_var=unsupported
10323   inherit_rpath=no
10324   link_all_deplibs=unknown
10325   module_cmds=
10326   module_expsym_cmds=
10327   old_archive_from_new_cmds=
10328   old_archive_from_expsyms_cmds=
10329   thread_safe_flag_spec=
10330   whole_archive_flag_spec=
10331   # include_expsyms should be a list of space-separated symbols to be *always*
10332   # included in the symbol list
10333   include_expsyms=
10334   # exclude_expsyms can be an extended regexp of symbols to exclude
10335   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10336   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10337   # as well as any symbol that contains `d'.
10338   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10339   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10340   # platforms (ab)use it in PIC code, but their linkers get confused if
10341   # the symbol is explicitly referenced.  Since portable code cannot
10342   # rely on this symbol name, it's probably fine to never include it in
10343   # preloaded symbol tables.
10344   # Exclude shared library initialization/finalization symbols.
10345   extract_expsyms_cmds=
10346
10347   case $host_os in
10348   cygwin* | mingw* | pw32* | cegcc*)
10349     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10350     # When not using gcc, we currently assume that we are using
10351     # Microsoft Visual C++.
10352     if test "$GCC" != yes; then
10353       with_gnu_ld=no
10354     fi
10355     ;;
10356   interix*)
10357     # we just hope/assume this is gcc and not c89 (= MSVC++)
10358     with_gnu_ld=yes
10359     ;;
10360   openbsd*)
10361     with_gnu_ld=no
10362     ;;
10363   linux* | k*bsd*-gnu | gnu*)
10364     link_all_deplibs=no
10365     ;;
10366   esac
10367
10368   ld_shlibs=yes
10369
10370   # On some targets, GNU ld is compatible enough with the native linker
10371   # that we're better off using the native interface for both.
10372   lt_use_gnu_ld_interface=no
10373   if test "$with_gnu_ld" = yes; then
10374     case $host_os in
10375       aix*)
10376         # The AIX port of GNU ld has always aspired to compatibility
10377         # with the native linker.  However, as the warning in the GNU ld
10378         # block says, versions before 2.19.5* couldn't really create working
10379         # shared libraries, regardless of the interface used.
10380         case `$LD -v 2>&1` in
10381           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10382           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10383           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10384           *)
10385             lt_use_gnu_ld_interface=yes
10386             ;;
10387         esac
10388         ;;
10389       *)
10390         lt_use_gnu_ld_interface=yes
10391         ;;
10392     esac
10393   fi
10394
10395   if test "$lt_use_gnu_ld_interface" = yes; then
10396     # If archive_cmds runs LD, not CC, wlarc should be empty
10397     wlarc='${wl}'
10398
10399     # Set some defaults for GNU ld with shared library support. These
10400     # are reset later if shared libraries are not supported. Putting them
10401     # here allows them to be overridden if necessary.
10402     runpath_var=LD_RUN_PATH
10403     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404     export_dynamic_flag_spec='${wl}--export-dynamic'
10405     # ancient GNU ld didn't support --whole-archive et. al.
10406     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10407       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10408     else
10409       whole_archive_flag_spec=
10410     fi
10411     supports_anon_versioning=no
10412     case `$LD -v 2>&1` in
10413       *GNU\ gold*) supports_anon_versioning=yes ;;
10414       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10415       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10416       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10417       *\ 2.11.*) ;; # other 2.11 versions
10418       *) supports_anon_versioning=yes ;;
10419     esac
10420
10421     # See if GNU ld supports shared libraries.
10422     case $host_os in
10423     aix[3-9]*)
10424       # On AIX/PPC, the GNU linker is very broken
10425       if test "$host_cpu" != ia64; then
10426         ld_shlibs=no
10427         cat <<_LT_EOF 1>&2
10428
10429 *** Warning: the GNU linker, at least up to release 2.19, is reported
10430 *** to be unable to reliably create shared libraries on AIX.
10431 *** Therefore, libtool is disabling shared libraries support.  If you
10432 *** really care for shared libraries, you may want to install binutils
10433 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10434 *** You will then need to restart the configuration process.
10435
10436 _LT_EOF
10437       fi
10438       ;;
10439
10440     amigaos*)
10441       case $host_cpu in
10442       powerpc)
10443             # see comment about AmigaOS4 .so support
10444             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10445             archive_expsym_cmds=''
10446         ;;
10447       m68k)
10448             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)'
10449             hardcode_libdir_flag_spec='-L$libdir'
10450             hardcode_minus_L=yes
10451         ;;
10452       esac
10453       ;;
10454
10455     beos*)
10456       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10457         allow_undefined_flag=unsupported
10458         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10459         # support --undefined.  This deserves some investigation.  FIXME
10460         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461       else
10462         ld_shlibs=no
10463       fi
10464       ;;
10465
10466     cygwin* | mingw* | pw32* | cegcc*)
10467       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10468       # as there is no search path for DLLs.
10469       hardcode_libdir_flag_spec='-L$libdir'
10470       export_dynamic_flag_spec='${wl}--export-all-symbols'
10471       allow_undefined_flag=unsupported
10472       always_export_symbols=no
10473       enable_shared_with_static_runtimes=yes
10474       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10475       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10476
10477       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10478         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10479         # If the export-symbols file already is a .def file (1st line
10480         # is EXPORTS), use it as is; otherwise, prepend...
10481         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10482           cp $export_symbols $output_objdir/$soname.def;
10483         else
10484           echo EXPORTS > $output_objdir/$soname.def;
10485           cat $export_symbols >> $output_objdir/$soname.def;
10486         fi~
10487         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10488       else
10489         ld_shlibs=no
10490       fi
10491       ;;
10492
10493     haiku*)
10494       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10495       link_all_deplibs=yes
10496       ;;
10497
10498     interix[3-9]*)
10499       hardcode_direct=no
10500       hardcode_shlibpath_var=no
10501       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10502       export_dynamic_flag_spec='${wl}-E'
10503       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10504       # Instead, shared libraries are loaded at an image base (0x10000000 by
10505       # default) and relocated if they conflict, which is a slow very memory
10506       # consuming and fragmenting process.  To avoid this, we pick a random,
10507       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10508       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10509       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10510       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'
10511       ;;
10512
10513     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10514       tmp_diet=no
10515       if test "$host_os" = linux-dietlibc; then
10516         case $cc_basename in
10517           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10518         esac
10519       fi
10520       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10521          && test "$tmp_diet" = no
10522       then
10523         tmp_addflag=' $pic_flag'
10524         tmp_sharedflag='-shared'
10525         case $cc_basename,$host_cpu in
10526         pgcc*)                          # Portland Group C compiler
10527           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10528           tmp_addflag=' $pic_flag'
10529           ;;
10530         pgf77* | pgf90* | pgf95* | pgfortran*)
10531                                         # Portland Group f77 and f90 compilers
10532           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10533           tmp_addflag=' $pic_flag -Mnomain' ;;
10534         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10535           tmp_addflag=' -i_dynamic' ;;
10536         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10537           tmp_addflag=' -i_dynamic -nofor_main' ;;
10538         ifc* | ifort*)                  # Intel Fortran compiler
10539           tmp_addflag=' -nofor_main' ;;
10540         lf95*)                          # Lahey Fortran 8.1
10541           whole_archive_flag_spec=
10542           tmp_sharedflag='--shared' ;;
10543         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10544           tmp_sharedflag='-qmkshrobj'
10545           tmp_addflag= ;;
10546         nvcc*)  # Cuda Compiler Driver 2.2
10547           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10548           compiler_needs_object=yes
10549           ;;
10550         esac
10551         case `$CC -V 2>&1 | sed 5q` in
10552         *Sun\ C*)                       # Sun C 5.9
10553           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10554           compiler_needs_object=yes
10555           tmp_sharedflag='-G' ;;
10556         *Sun\ F*)                       # Sun Fortran 8.3
10557           tmp_sharedflag='-G' ;;
10558         esac
10559         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560
10561         if test "x$supports_anon_versioning" = xyes; then
10562           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10563             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10564             echo "local: *; };" >> $output_objdir/$libname.ver~
10565             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10566         fi
10567
10568         case $cc_basename in
10569         xlf* | bgf* | bgxlf* | mpixlf*)
10570           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10571           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10572           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10573           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10574           if test "x$supports_anon_versioning" = xyes; then
10575             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10576               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10577               echo "local: *; };" >> $output_objdir/$libname.ver~
10578               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10579           fi
10580           ;;
10581         esac
10582       else
10583         ld_shlibs=no
10584       fi
10585       ;;
10586
10587     netbsd* | netbsdelf*-gnu)
10588       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10590         wlarc=
10591       else
10592         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10593         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10594       fi
10595       ;;
10596
10597     solaris*)
10598       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10599         ld_shlibs=no
10600         cat <<_LT_EOF 1>&2
10601
10602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10603 *** create shared libraries on Solaris systems.  Therefore, libtool
10604 *** is disabling shared libraries support.  We urge you to upgrade GNU
10605 *** binutils to release 2.9.1 or newer.  Another option is to modify
10606 *** your PATH or compiler configuration so that the native linker is
10607 *** used, and then restart.
10608
10609 _LT_EOF
10610       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10611         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10612         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10613       else
10614         ld_shlibs=no
10615       fi
10616       ;;
10617
10618     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10619       case `$LD -v 2>&1` in
10620         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10621         ld_shlibs=no
10622         cat <<_LT_EOF 1>&2
10623
10624 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10625 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10626 *** is disabling shared libraries support.  We urge you to upgrade GNU
10627 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10628 *** your PATH or compiler configuration so that the native linker is
10629 *** used, and then restart.
10630
10631 _LT_EOF
10632         ;;
10633         *)
10634           # For security reasons, it is highly recommended that you always
10635           # use absolute paths for naming shared libraries, and exclude the
10636           # DT_RUNPATH tag from executables and libraries.  But doing so
10637           # requires that you compile everything twice, which is a pain.
10638           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10639             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10640             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10641             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10642           else
10643             ld_shlibs=no
10644           fi
10645         ;;
10646       esac
10647       ;;
10648
10649     sunos4*)
10650       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10651       wlarc=
10652       hardcode_direct=yes
10653       hardcode_shlibpath_var=no
10654       ;;
10655
10656     *)
10657       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10658         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10659         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10660       else
10661         ld_shlibs=no
10662       fi
10663       ;;
10664     esac
10665
10666     if test "$ld_shlibs" = no; then
10667       runpath_var=
10668       hardcode_libdir_flag_spec=
10669       export_dynamic_flag_spec=
10670       whole_archive_flag_spec=
10671     fi
10672   else
10673     # PORTME fill in a description of your system's linker (not GNU ld)
10674     case $host_os in
10675     aix3*)
10676       allow_undefined_flag=unsupported
10677       always_export_symbols=yes
10678       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'
10679       # Note: this linker hardcodes the directories in LIBPATH if there
10680       # are no directories specified by -L.
10681       hardcode_minus_L=yes
10682       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10683         # Neither direct hardcoding nor static linking is supported with a
10684         # broken collect2.
10685         hardcode_direct=unsupported
10686       fi
10687       ;;
10688
10689     aix[4-9]*)
10690       if test "$host_cpu" = ia64; then
10691         # On IA64, the linker does run time linking by default, so we don't
10692         # have to do anything special.
10693         aix_use_runtimelinking=no
10694         exp_sym_flag='-Bexport'
10695         no_entry_flag=""
10696       else
10697         # If we're using GNU nm, then we don't want the "-C" option.
10698         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10699         # Also, AIX nm treats weak defined symbols like other global
10700         # defined symbols, whereas GNU nm marks them as "W".
10701         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10702           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10703         else
10704           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'
10705         fi
10706         aix_use_runtimelinking=no
10707
10708         # Test if we are trying to use run time linking or normal
10709         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10710         # need to do runtime linking.
10711         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10712           for ld_flag in $LDFLAGS; do
10713           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10714             aix_use_runtimelinking=yes
10715             break
10716           fi
10717           done
10718           ;;
10719         esac
10720
10721         exp_sym_flag='-bexport'
10722         no_entry_flag='-bnoentry'
10723       fi
10724
10725       # When large executables or shared objects are built, AIX ld can
10726       # have problems creating the table of contents.  If linking a library
10727       # or program results in "error TOC overflow" add -mminimal-toc to
10728       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10729       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10730
10731       archive_cmds=''
10732       hardcode_direct=yes
10733       hardcode_direct_absolute=yes
10734       hardcode_libdir_separator=':'
10735       link_all_deplibs=yes
10736       file_list_spec='${wl}-f,'
10737
10738       if test "$GCC" = yes; then
10739         case $host_os in aix4.[012]|aix4.[012].*)
10740         # We only want to do this on AIX 4.2 and lower, the check
10741         # below for broken collect2 doesn't work under 4.3+
10742           collect2name=`${CC} -print-prog-name=collect2`
10743           if test -f "$collect2name" &&
10744            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10745           then
10746           # We have reworked collect2
10747           :
10748           else
10749           # We have old collect2
10750           hardcode_direct=unsupported
10751           # It fails to find uninstalled libraries when the uninstalled
10752           # path is not listed in the libpath.  Setting hardcode_minus_L
10753           # to unsupported forces relinking
10754           hardcode_minus_L=yes
10755           hardcode_libdir_flag_spec='-L$libdir'
10756           hardcode_libdir_separator=
10757           fi
10758           ;;
10759         esac
10760         shared_flag='-shared'
10761         if test "$aix_use_runtimelinking" = yes; then
10762           shared_flag="$shared_flag "'${wl}-G'
10763         fi
10764         link_all_deplibs=no
10765       else
10766         # not using gcc
10767         if test "$host_cpu" = ia64; then
10768         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10769         # chokes on -Wl,-G. The following line is correct:
10770           shared_flag='-G'
10771         else
10772           if test "$aix_use_runtimelinking" = yes; then
10773             shared_flag='${wl}-G'
10774           else
10775             shared_flag='${wl}-bM:SRE'
10776           fi
10777         fi
10778       fi
10779
10780       export_dynamic_flag_spec='${wl}-bexpall'
10781       # It seems that -bexpall does not export symbols beginning with
10782       # underscore (_), so it is better to generate a list of symbols to export.
10783       always_export_symbols=yes
10784       if test "$aix_use_runtimelinking" = yes; then
10785         # Warning - without using the other runtime loading flags (-brtl),
10786         # -berok will link without error, but may produce a broken library.
10787         allow_undefined_flag='-berok'
10788         # Determine the default libpath from the value encoded in an
10789         # empty executable.
10790         if test "${lt_cv_aix_libpath+set}" = set; then
10791   aix_libpath=$lt_cv_aix_libpath
10792 else
10793   if ${lt_cv_aix_libpath_+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h.  */
10798
10799 int
10800 main ()
10801 {
10802
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808
10809   lt_aix_libpath_sed='
10810       /Import File Strings/,/^$/ {
10811           /^0/ {
10812               s/^0  *\([^ ]*\) *$/\1/
10813               p
10814           }
10815       }'
10816   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10817   # Check for a 64-bit object if we didn't find anything.
10818   if test -z "$lt_cv_aix_libpath_"; then
10819     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10820   fi
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823     conftest$ac_exeext conftest.$ac_ext
10824   if test -z "$lt_cv_aix_libpath_"; then
10825     lt_cv_aix_libpath_="/usr/lib:/lib"
10826   fi
10827
10828 fi
10829
10830   aix_libpath=$lt_cv_aix_libpath_
10831 fi
10832
10833         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10834         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10835       else
10836         if test "$host_cpu" = ia64; then
10837           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10838           allow_undefined_flag="-z nodefs"
10839           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"
10840         else
10841          # Determine the default libpath from the value encoded in an
10842          # empty executable.
10843          if test "${lt_cv_aix_libpath+set}" = set; then
10844   aix_libpath=$lt_cv_aix_libpath
10845 else
10846   if ${lt_cv_aix_libpath_+:} false; then :
10847   $as_echo_n "(cached) " >&6
10848 else
10849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h.  */
10851
10852 int
10853 main ()
10854 {
10855
10856   ;
10857   return 0;
10858 }
10859 _ACEOF
10860 if ac_fn_c_try_link "$LINENO"; then :
10861
10862   lt_aix_libpath_sed='
10863       /Import File Strings/,/^$/ {
10864           /^0/ {
10865               s/^0  *\([^ ]*\) *$/\1/
10866               p
10867           }
10868       }'
10869   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10870   # Check for a 64-bit object if we didn't find anything.
10871   if test -z "$lt_cv_aix_libpath_"; then
10872     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10873   fi
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext \
10876     conftest$ac_exeext conftest.$ac_ext
10877   if test -z "$lt_cv_aix_libpath_"; then
10878     lt_cv_aix_libpath_="/usr/lib:/lib"
10879   fi
10880
10881 fi
10882
10883   aix_libpath=$lt_cv_aix_libpath_
10884 fi
10885
10886          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10887           # Warning - without using the other run time loading flags,
10888           # -berok will link without error, but may produce a broken library.
10889           no_undefined_flag=' ${wl}-bernotok'
10890           allow_undefined_flag=' ${wl}-berok'
10891           if test "$with_gnu_ld" = yes; then
10892             # We only use this code for GNU lds that support --whole-archive.
10893             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10894           else
10895             # Exported symbols can be pulled into shared objects from archives
10896             whole_archive_flag_spec='$convenience'
10897           fi
10898           archive_cmds_need_lc=yes
10899           # This is similar to how AIX traditionally builds its shared libraries.
10900           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'
10901         fi
10902       fi
10903       ;;
10904
10905     amigaos*)
10906       case $host_cpu in
10907       powerpc)
10908             # see comment about AmigaOS4 .so support
10909             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10910             archive_expsym_cmds=''
10911         ;;
10912       m68k)
10913             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)'
10914             hardcode_libdir_flag_spec='-L$libdir'
10915             hardcode_minus_L=yes
10916         ;;
10917       esac
10918       ;;
10919
10920     bsdi[45]*)
10921       export_dynamic_flag_spec=-rdynamic
10922       ;;
10923
10924     cygwin* | mingw* | pw32* | cegcc*)
10925       # When not using gcc, we currently assume that we are using
10926       # Microsoft Visual C++.
10927       # hardcode_libdir_flag_spec is actually meaningless, as there is
10928       # no search path for DLLs.
10929       case $cc_basename in
10930       cl*)
10931         # Native MSVC
10932         hardcode_libdir_flag_spec=' '
10933         allow_undefined_flag=unsupported
10934         always_export_symbols=yes
10935         file_list_spec='@'
10936         # Tell ltmain to make .lib files, not .a files.
10937         libext=lib
10938         # Tell ltmain to make .dll files, not .so files.
10939         shrext_cmds=".dll"
10940         # FIXME: Setting linknames here is a bad hack.
10941         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10942         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10943             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10944           else
10945             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10946           fi~
10947           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10948           linknames='
10949         # The linker will not automatically build a static lib if we build a DLL.
10950         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10951         enable_shared_with_static_runtimes=yes
10952         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10953         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10954         # Don't use ranlib
10955         old_postinstall_cmds='chmod 644 $oldlib'
10956         postlink_cmds='lt_outputfile="@OUTPUT@"~
10957           lt_tool_outputfile="@TOOL_OUTPUT@"~
10958           case $lt_outputfile in
10959             *.exe|*.EXE) ;;
10960             *)
10961               lt_outputfile="$lt_outputfile.exe"
10962               lt_tool_outputfile="$lt_tool_outputfile.exe"
10963               ;;
10964           esac~
10965           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10966             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10967             $RM "$lt_outputfile.manifest";
10968           fi'
10969         ;;
10970       *)
10971         # Assume MSVC wrapper
10972         hardcode_libdir_flag_spec=' '
10973         allow_undefined_flag=unsupported
10974         # Tell ltmain to make .lib files, not .a files.
10975         libext=lib
10976         # Tell ltmain to make .dll files, not .so files.
10977         shrext_cmds=".dll"
10978         # FIXME: Setting linknames here is a bad hack.
10979         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10980         # The linker will automatically build a .lib file if we build a DLL.
10981         old_archive_from_new_cmds='true'
10982         # FIXME: Should let the user specify the lib program.
10983         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10984         enable_shared_with_static_runtimes=yes
10985         ;;
10986       esac
10987       ;;
10988
10989     darwin* | rhapsody*)
10990
10991
10992   archive_cmds_need_lc=no
10993   hardcode_direct=no
10994   hardcode_automatic=yes
10995   hardcode_shlibpath_var=unsupported
10996   if test "$lt_cv_ld_force_load" = "yes"; then
10997     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10998
10999   else
11000     whole_archive_flag_spec=''
11001   fi
11002   link_all_deplibs=yes
11003   allow_undefined_flag="$_lt_dar_allow_undefined"
11004   case $cc_basename in
11005      ifort*) _lt_dar_can_shared=yes ;;
11006      *) _lt_dar_can_shared=$GCC ;;
11007   esac
11008   if test "$_lt_dar_can_shared" = "yes"; then
11009     output_verbose_link_cmd=func_echo_all
11010     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11011     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11012     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}"
11013     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}"
11014
11015   else
11016   ld_shlibs=no
11017   fi
11018
11019       ;;
11020
11021     dgux*)
11022       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023       hardcode_libdir_flag_spec='-L$libdir'
11024       hardcode_shlibpath_var=no
11025       ;;
11026
11027     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11028     # support.  Future versions do this automatically, but an explicit c++rt0.o
11029     # does not break anything, and helps significantly (at the cost of a little
11030     # extra space).
11031     freebsd2.2*)
11032       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11033       hardcode_libdir_flag_spec='-R$libdir'
11034       hardcode_direct=yes
11035       hardcode_shlibpath_var=no
11036       ;;
11037
11038     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11039     freebsd2.*)
11040       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11041       hardcode_direct=yes
11042       hardcode_minus_L=yes
11043       hardcode_shlibpath_var=no
11044       ;;
11045
11046     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11047     freebsd* | dragonfly*)
11048       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11049       hardcode_libdir_flag_spec='-R$libdir'
11050       hardcode_direct=yes
11051       hardcode_shlibpath_var=no
11052       ;;
11053
11054     hpux9*)
11055       if test "$GCC" = yes; then
11056         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11057       else
11058         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'
11059       fi
11060       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11061       hardcode_libdir_separator=:
11062       hardcode_direct=yes
11063
11064       # hardcode_minus_L: Not really in the search PATH,
11065       # but as the default location of the library.
11066       hardcode_minus_L=yes
11067       export_dynamic_flag_spec='${wl}-E'
11068       ;;
11069
11070     hpux10*)
11071       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11072         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11073       else
11074         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11075       fi
11076       if test "$with_gnu_ld" = no; then
11077         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11078         hardcode_libdir_separator=:
11079         hardcode_direct=yes
11080         hardcode_direct_absolute=yes
11081         export_dynamic_flag_spec='${wl}-E'
11082         # hardcode_minus_L: Not really in the search PATH,
11083         # but as the default location of the library.
11084         hardcode_minus_L=yes
11085       fi
11086       ;;
11087
11088     hpux11*)
11089       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11090         case $host_cpu in
11091         hppa*64*)
11092           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11093           ;;
11094         ia64*)
11095           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11096           ;;
11097         *)
11098           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11099           ;;
11100         esac
11101       else
11102         case $host_cpu in
11103         hppa*64*)
11104           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11105           ;;
11106         ia64*)
11107           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11108           ;;
11109         *)
11110
11111           # Older versions of the 11.00 compiler do not understand -b yet
11112           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11113           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11114 $as_echo_n "checking if $CC understands -b... " >&6; }
11115 if ${lt_cv_prog_compiler__b+:} false; then :
11116   $as_echo_n "(cached) " >&6
11117 else
11118   lt_cv_prog_compiler__b=no
11119    save_LDFLAGS="$LDFLAGS"
11120    LDFLAGS="$LDFLAGS -b"
11121    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11122    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11123      # The linker can only warn and ignore the option if not recognized
11124      # So say no if there are warnings
11125      if test -s conftest.err; then
11126        # Append any errors to the config.log.
11127        cat conftest.err 1>&5
11128        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11129        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11130        if diff conftest.exp conftest.er2 >/dev/null; then
11131          lt_cv_prog_compiler__b=yes
11132        fi
11133      else
11134        lt_cv_prog_compiler__b=yes
11135      fi
11136    fi
11137    $RM -r conftest*
11138    LDFLAGS="$save_LDFLAGS"
11139
11140 fi
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11142 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11143
11144 if test x"$lt_cv_prog_compiler__b" = xyes; then
11145     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11146 else
11147     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11148 fi
11149
11150           ;;
11151         esac
11152       fi
11153       if test "$with_gnu_ld" = no; then
11154         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11155         hardcode_libdir_separator=:
11156
11157         case $host_cpu in
11158         hppa*64*|ia64*)
11159           hardcode_direct=no
11160           hardcode_shlibpath_var=no
11161           ;;
11162         *)
11163           hardcode_direct=yes
11164           hardcode_direct_absolute=yes
11165           export_dynamic_flag_spec='${wl}-E'
11166
11167           # hardcode_minus_L: Not really in the search PATH,
11168           # but as the default location of the library.
11169           hardcode_minus_L=yes
11170           ;;
11171         esac
11172       fi
11173       ;;
11174
11175     irix5* | irix6* | nonstopux*)
11176       if test "$GCC" = yes; then
11177         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11178         # Try to use the -exported_symbol ld option, if it does not
11179         # work, assume that -exports_file does not work either and
11180         # implicitly export all symbols.
11181         # This should be the same for all languages, so no per-tag cache variable.
11182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11183 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11184 if ${lt_cv_irix_exported_symbol+:} false; then :
11185   $as_echo_n "(cached) " >&6
11186 else
11187   save_LDFLAGS="$LDFLAGS"
11188            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11189            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h.  */
11191 int foo (void) { return 0; }
11192 _ACEOF
11193 if ac_fn_c_try_link "$LINENO"; then :
11194   lt_cv_irix_exported_symbol=yes
11195 else
11196   lt_cv_irix_exported_symbol=no
11197 fi
11198 rm -f core conftest.err conftest.$ac_objext \
11199     conftest$ac_exeext conftest.$ac_ext
11200            LDFLAGS="$save_LDFLAGS"
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11203 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11204         if test "$lt_cv_irix_exported_symbol" = yes; then
11205           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11206         fi
11207       else
11208         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11209         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11210       fi
11211       archive_cmds_need_lc='no'
11212       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11213       hardcode_libdir_separator=:
11214       inherit_rpath=yes
11215       link_all_deplibs=yes
11216       ;;
11217
11218     netbsd* | netbsdelf*-gnu)
11219       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11220         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11221       else
11222         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11223       fi
11224       hardcode_libdir_flag_spec='-R$libdir'
11225       hardcode_direct=yes
11226       hardcode_shlibpath_var=no
11227       ;;
11228
11229     newsos6)
11230       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11231       hardcode_direct=yes
11232       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11233       hardcode_libdir_separator=:
11234       hardcode_shlibpath_var=no
11235       ;;
11236
11237     *nto* | *qnx*)
11238       ;;
11239
11240     openbsd*)
11241       if test -f /usr/libexec/ld.so; then
11242         hardcode_direct=yes
11243         hardcode_shlibpath_var=no
11244         hardcode_direct_absolute=yes
11245         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11246           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11247           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11248           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11249           export_dynamic_flag_spec='${wl}-E'
11250         else
11251           case $host_os in
11252            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11253              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11254              hardcode_libdir_flag_spec='-R$libdir'
11255              ;;
11256            *)
11257              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11258              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11259              ;;
11260           esac
11261         fi
11262       else
11263         ld_shlibs=no
11264       fi
11265       ;;
11266
11267     os2*)
11268       hardcode_libdir_flag_spec='-L$libdir'
11269       hardcode_minus_L=yes
11270       allow_undefined_flag=unsupported
11271       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'
11272       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11273       ;;
11274
11275     osf3*)
11276       if test "$GCC" = yes; then
11277         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11278         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11279       else
11280         allow_undefined_flag=' -expect_unresolved \*'
11281         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11282       fi
11283       archive_cmds_need_lc='no'
11284       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11285       hardcode_libdir_separator=:
11286       ;;
11287
11288     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11289       if test "$GCC" = yes; then
11290         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11291         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11292         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11293       else
11294         allow_undefined_flag=' -expect_unresolved \*'
11295         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11296         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~
11297         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11298
11299         # Both c and cxx compiler support -rpath directly
11300         hardcode_libdir_flag_spec='-rpath $libdir'
11301       fi
11302       archive_cmds_need_lc='no'
11303       hardcode_libdir_separator=:
11304       ;;
11305
11306     solaris*)
11307       no_undefined_flag=' -z defs'
11308       if test "$GCC" = yes; then
11309         wlarc='${wl}'
11310         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11311         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11312           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11313       else
11314         case `$CC -V 2>&1` in
11315         *"Compilers 5.0"*)
11316           wlarc=''
11317           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11318           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11319           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11320           ;;
11321         *)
11322           wlarc='${wl}'
11323           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11324           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11325           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11326           ;;
11327         esac
11328       fi
11329       hardcode_libdir_flag_spec='-R$libdir'
11330       hardcode_shlibpath_var=no
11331       case $host_os in
11332       solaris2.[0-5] | solaris2.[0-5].*) ;;
11333       *)
11334         # The compiler driver will combine and reorder linker options,
11335         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11336         # but is careful enough not to reorder.
11337         # Supported since Solaris 2.6 (maybe 2.5.1?)
11338         if test "$GCC" = yes; then
11339           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11340         else
11341           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11342         fi
11343         ;;
11344       esac
11345       link_all_deplibs=yes
11346       ;;
11347
11348     sunos4*)
11349       if test "x$host_vendor" = xsequent; then
11350         # Use $CC to link under sequent, because it throws in some extra .o
11351         # files that make .init and .fini sections work.
11352         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11353       else
11354         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11355       fi
11356       hardcode_libdir_flag_spec='-L$libdir'
11357       hardcode_direct=yes
11358       hardcode_minus_L=yes
11359       hardcode_shlibpath_var=no
11360       ;;
11361
11362     sysv4)
11363       case $host_vendor in
11364         sni)
11365           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11366           hardcode_direct=yes # is this really true???
11367         ;;
11368         siemens)
11369           ## LD is ld it makes a PLAMLIB
11370           ## CC just makes a GrossModule.
11371           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11372           reload_cmds='$CC -r -o $output$reload_objs'
11373           hardcode_direct=no
11374         ;;
11375         motorola)
11376           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11378         ;;
11379       esac
11380       runpath_var='LD_RUN_PATH'
11381       hardcode_shlibpath_var=no
11382       ;;
11383
11384     sysv4.3*)
11385       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386       hardcode_shlibpath_var=no
11387       export_dynamic_flag_spec='-Bexport'
11388       ;;
11389
11390     sysv4*MP*)
11391       if test -d /usr/nec; then
11392         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11393         hardcode_shlibpath_var=no
11394         runpath_var=LD_RUN_PATH
11395         hardcode_runpath_var=yes
11396         ld_shlibs=yes
11397       fi
11398       ;;
11399
11400     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11401       no_undefined_flag='${wl}-z,text'
11402       archive_cmds_need_lc=no
11403       hardcode_shlibpath_var=no
11404       runpath_var='LD_RUN_PATH'
11405
11406       if test "$GCC" = yes; then
11407         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409       else
11410         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11411         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412       fi
11413       ;;
11414
11415     sysv5* | sco3.2v5* | sco5v6*)
11416       # Note: We can NOT use -z defs as we might desire, because we do not
11417       # link with -lc, and that would cause any symbols used from libc to
11418       # always be unresolved, which means just about no library would
11419       # ever link correctly.  If we're not using GNU ld we use -z text
11420       # though, which does catch some bad symbols but isn't as heavy-handed
11421       # as -z defs.
11422       no_undefined_flag='${wl}-z,text'
11423       allow_undefined_flag='${wl}-z,nodefs'
11424       archive_cmds_need_lc=no
11425       hardcode_shlibpath_var=no
11426       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11427       hardcode_libdir_separator=':'
11428       link_all_deplibs=yes
11429       export_dynamic_flag_spec='${wl}-Bexport'
11430       runpath_var='LD_RUN_PATH'
11431
11432       if test "$GCC" = yes; then
11433         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435       else
11436         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11437         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11438       fi
11439       ;;
11440
11441     uts4*)
11442       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11443       hardcode_libdir_flag_spec='-L$libdir'
11444       hardcode_shlibpath_var=no
11445       ;;
11446
11447     *)
11448       ld_shlibs=no
11449       ;;
11450     esac
11451
11452     if test x$host_vendor = xsni; then
11453       case $host in
11454       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11455         export_dynamic_flag_spec='${wl}-Blargedynsym'
11456         ;;
11457       esac
11458     fi
11459   fi
11460
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11462 $as_echo "$ld_shlibs" >&6; }
11463 test "$ld_shlibs" = no && can_build_shared=no
11464
11465 with_gnu_ld=$with_gnu_ld
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481 #
11482 # Do we need to explicitly link libc?
11483 #
11484 case "x$archive_cmds_need_lc" in
11485 x|xyes)
11486   # Assume -lc should be added
11487   archive_cmds_need_lc=yes
11488
11489   if test "$enable_shared" = yes && test "$GCC" = yes; then
11490     case $archive_cmds in
11491     *'~'*)
11492       # FIXME: we may have to deal with multi-command sequences.
11493       ;;
11494     '$CC '*)
11495       # Test whether the compiler implicitly links with -lc since on some
11496       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11497       # to ld, don't add -lc before -lgcc.
11498       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11500 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   $RM conftest*
11504         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11505
11506         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11507   (eval $ac_compile) 2>&5
11508   ac_status=$?
11509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510   test $ac_status = 0; } 2>conftest.err; then
11511           soname=conftest
11512           lib=conftest
11513           libobjs=conftest.$ac_objext
11514           deplibs=
11515           wl=$lt_prog_compiler_wl
11516           pic_flag=$lt_prog_compiler_pic
11517           compiler_flags=-v
11518           linker_flags=-v
11519           verstring=
11520           output_objdir=.
11521           libname=conftest
11522           lt_save_allow_undefined_flag=$allow_undefined_flag
11523           allow_undefined_flag=
11524           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11525   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11526   ac_status=$?
11527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11528   test $ac_status = 0; }
11529           then
11530             lt_cv_archive_cmds_need_lc=no
11531           else
11532             lt_cv_archive_cmds_need_lc=yes
11533           fi
11534           allow_undefined_flag=$lt_save_allow_undefined_flag
11535         else
11536           cat conftest.err 1>&5
11537         fi
11538         $RM conftest*
11539
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11542 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11543       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11544       ;;
11545     esac
11546   fi
11547   ;;
11548 esac
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11702 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11703
11704 if test "$GCC" = yes; then
11705   case $host_os in
11706     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11707     *) lt_awk_arg="/^libraries:/" ;;
11708   esac
11709   case $host_os in
11710     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11711     *) lt_sed_strip_eq="s,=/,/,g" ;;
11712   esac
11713   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11714   case $lt_search_path_spec in
11715   *\;*)
11716     # if the path contains ";" then we assume it to be the separator
11717     # otherwise default to the standard path separator (i.e. ":") - it is
11718     # assumed that no part of a normal pathname contains ";" but that should
11719     # okay in the real world where ";" in dirpaths is itself problematic.
11720     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11721     ;;
11722   *)
11723     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11724     ;;
11725   esac
11726   # Ok, now we have the path, separated by spaces, we can step through it
11727   # and add multilib dir if necessary.
11728   lt_tmp_lt_search_path_spec=
11729   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11730   for lt_sys_path in $lt_search_path_spec; do
11731     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11732       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11733     else
11734       test -d "$lt_sys_path" && \
11735         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11736     fi
11737   done
11738   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11739 BEGIN {RS=" "; FS="/|\n";} {
11740   lt_foo="";
11741   lt_count=0;
11742   for (lt_i = NF; lt_i > 0; lt_i--) {
11743     if ($lt_i != "" && $lt_i != ".") {
11744       if ($lt_i == "..") {
11745         lt_count++;
11746       } else {
11747         if (lt_count == 0) {
11748           lt_foo="/" $lt_i lt_foo;
11749         } else {
11750           lt_count--;
11751         }
11752       }
11753     }
11754   }
11755   if (lt_foo != "") { lt_freq[lt_foo]++; }
11756   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11757 }'`
11758   # AWK program above erroneously prepends '/' to C:/dos/paths
11759   # for these hosts.
11760   case $host_os in
11761     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11762       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11763   esac
11764   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11765 else
11766   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11767 fi
11768 library_names_spec=
11769 libname_spec='lib$name'
11770 soname_spec=
11771 shrext_cmds=".so"
11772 postinstall_cmds=
11773 postuninstall_cmds=
11774 finish_cmds=
11775 finish_eval=
11776 shlibpath_var=
11777 shlibpath_overrides_runpath=unknown
11778 version_type=none
11779 dynamic_linker="$host_os ld.so"
11780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11781 need_lib_prefix=unknown
11782 hardcode_into_libs=no
11783
11784 # when you set need_version to no, make sure it does not cause -set_version
11785 # flags to be left without arguments
11786 need_version=unknown
11787
11788 case $host_os in
11789 aix3*)
11790   version_type=linux # correct to gnu/linux during the next big refactor
11791   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11792   shlibpath_var=LIBPATH
11793
11794   # AIX 3 has no versioning support, so we append a major version to the name.
11795   soname_spec='${libname}${release}${shared_ext}$major'
11796   ;;
11797
11798 aix[4-9]*)
11799   version_type=linux # correct to gnu/linux during the next big refactor
11800   need_lib_prefix=no
11801   need_version=no
11802   hardcode_into_libs=yes
11803   if test "$host_cpu" = ia64; then
11804     # AIX 5 supports IA64
11805     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11806     shlibpath_var=LD_LIBRARY_PATH
11807   else
11808     # With GCC up to 2.95.x, collect2 would create an import file
11809     # for dependence libraries.  The import file would start with
11810     # the line `#! .'.  This would cause the generated library to
11811     # depend on `.', always an invalid library.  This was fixed in
11812     # development snapshots of GCC prior to 3.0.
11813     case $host_os in
11814       aix4 | aix4.[01] | aix4.[01].*)
11815       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11816            echo ' yes '
11817            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11818         :
11819       else
11820         can_build_shared=no
11821       fi
11822       ;;
11823     esac
11824     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11825     # soname into executable. Probably we can add versioning support to
11826     # collect2, so additional links can be useful in future.
11827     if test "$aix_use_runtimelinking" = yes; then
11828       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11829       # instead of lib<name>.a to let people know that these are not
11830       # typical AIX shared libraries.
11831       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832     else
11833       # We preserve .a as extension for shared libraries through AIX4.2
11834       # and later when we are not doing run time linking.
11835       library_names_spec='${libname}${release}.a $libname.a'
11836       soname_spec='${libname}${release}${shared_ext}$major'
11837     fi
11838     shlibpath_var=LIBPATH
11839   fi
11840   ;;
11841
11842 amigaos*)
11843   case $host_cpu in
11844   powerpc)
11845     # Since July 2007 AmigaOS4 officially supports .so libraries.
11846     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848     ;;
11849   m68k)
11850     library_names_spec='$libname.ixlibrary $libname.a'
11851     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11852     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11853     ;;
11854   esac
11855   ;;
11856
11857 beos*)
11858   library_names_spec='${libname}${shared_ext}'
11859   dynamic_linker="$host_os ld.so"
11860   shlibpath_var=LIBRARY_PATH
11861   ;;
11862
11863 bsdi[45]*)
11864   version_type=linux # correct to gnu/linux during the next big refactor
11865   need_version=no
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867   soname_spec='${libname}${release}${shared_ext}$major'
11868   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11869   shlibpath_var=LD_LIBRARY_PATH
11870   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11871   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11872   # the default ld.so.conf also contains /usr/contrib/lib and
11873   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11874   # libtool to hard-code these into programs
11875   ;;
11876
11877 cygwin* | mingw* | pw32* | cegcc*)
11878   version_type=windows
11879   shrext_cmds=".dll"
11880   need_version=no
11881   need_lib_prefix=no
11882
11883   case $GCC,$cc_basename in
11884   yes,*)
11885     # gcc
11886     library_names_spec='$libname.dll.a'
11887     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11888     postinstall_cmds='base_file=`basename \${file}`~
11889       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11890       dldir=$destdir/`dirname \$dlpath`~
11891       test -d \$dldir || mkdir -p \$dldir~
11892       $install_prog $dir/$dlname \$dldir/$dlname~
11893       chmod a+x \$dldir/$dlname~
11894       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11895         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11896       fi'
11897     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11898       dlpath=$dir/\$dldll~
11899        $RM \$dlpath'
11900     shlibpath_overrides_runpath=yes
11901
11902     case $host_os in
11903     cygwin*)
11904       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11905       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906
11907       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11908       ;;
11909     mingw* | cegcc*)
11910       # MinGW DLLs use traditional 'lib' prefix
11911       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11912       ;;
11913     pw32*)
11914       # pw32 DLLs use 'pw' prefix rather than 'lib'
11915       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11916       ;;
11917     esac
11918     dynamic_linker='Win32 ld.exe'
11919     ;;
11920
11921   *,cl*)
11922     # Native MSVC
11923     libname_spec='$name'
11924     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11925     library_names_spec='${libname}.dll.lib'
11926
11927     case $build_os in
11928     mingw*)
11929       sys_lib_search_path_spec=
11930       lt_save_ifs=$IFS
11931       IFS=';'
11932       for lt_path in $LIB
11933       do
11934         IFS=$lt_save_ifs
11935         # Let DOS variable expansion print the short 8.3 style file name.
11936         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11937         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11938       done
11939       IFS=$lt_save_ifs
11940       # Convert to MSYS style.
11941       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11942       ;;
11943     cygwin*)
11944       # Convert to unix form, then to dos form, then back to unix form
11945       # but this time dos style (no spaces!) so that the unix form looks
11946       # like /cygdrive/c/PROGRA~1:/cygdr...
11947       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11948       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11949       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11950       ;;
11951     *)
11952       sys_lib_search_path_spec="$LIB"
11953       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11954         # It is most probably a Windows format PATH.
11955         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11956       else
11957         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11958       fi
11959       # FIXME: find the short name or the path components, as spaces are
11960       # common. (e.g. "Program Files" -> "PROGRA~1")
11961       ;;
11962     esac
11963
11964     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11965     postinstall_cmds='base_file=`basename \${file}`~
11966       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11967       dldir=$destdir/`dirname \$dlpath`~
11968       test -d \$dldir || mkdir -p \$dldir~
11969       $install_prog $dir/$dlname \$dldir/$dlname'
11970     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11971       dlpath=$dir/\$dldll~
11972        $RM \$dlpath'
11973     shlibpath_overrides_runpath=yes
11974     dynamic_linker='Win32 link.exe'
11975     ;;
11976
11977   *)
11978     # Assume MSVC wrapper
11979     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11980     dynamic_linker='Win32 ld.exe'
11981     ;;
11982   esac
11983   # FIXME: first we should search . and the directory the executable is in
11984   shlibpath_var=PATH
11985   ;;
11986
11987 darwin* | rhapsody*)
11988   dynamic_linker="$host_os dyld"
11989   version_type=darwin
11990   need_lib_prefix=no
11991   need_version=no
11992   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11993   soname_spec='${libname}${release}${major}$shared_ext'
11994   shlibpath_overrides_runpath=yes
11995   shlibpath_var=DYLD_LIBRARY_PATH
11996   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11997
11998   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12000   ;;
12001
12002 dgux*)
12003   version_type=linux # correct to gnu/linux during the next big refactor
12004   need_lib_prefix=no
12005   need_version=no
12006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12007   soname_spec='${libname}${release}${shared_ext}$major'
12008   shlibpath_var=LD_LIBRARY_PATH
12009   ;;
12010
12011 freebsd* | dragonfly*)
12012   # DragonFly does not have aout.  When/if they implement a new
12013   # versioning mechanism, adjust this.
12014   if test -x /usr/bin/objformat; then
12015     objformat=`/usr/bin/objformat`
12016   else
12017     case $host_os in
12018     freebsd[23].*) objformat=aout ;;
12019     *) objformat=elf ;;
12020     esac
12021   fi
12022   version_type=freebsd-$objformat
12023   case $version_type in
12024     freebsd-elf*)
12025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12026       need_version=no
12027       need_lib_prefix=no
12028       ;;
12029     freebsd-*)
12030       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12031       need_version=yes
12032       ;;
12033   esac
12034   shlibpath_var=LD_LIBRARY_PATH
12035   case $host_os in
12036   freebsd2.*)
12037     shlibpath_overrides_runpath=yes
12038     ;;
12039   freebsd3.[01]* | freebsdelf3.[01]*)
12040     shlibpath_overrides_runpath=yes
12041     hardcode_into_libs=yes
12042     ;;
12043   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12044   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12045     shlibpath_overrides_runpath=no
12046     hardcode_into_libs=yes
12047     ;;
12048   *) # from 4.6 on, and DragonFly
12049     shlibpath_overrides_runpath=yes
12050     hardcode_into_libs=yes
12051     ;;
12052   esac
12053   ;;
12054
12055 haiku*)
12056   version_type=linux # correct to gnu/linux during the next big refactor
12057   need_lib_prefix=no
12058   need_version=no
12059   dynamic_linker="$host_os runtime_loader"
12060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12061   soname_spec='${libname}${release}${shared_ext}$major'
12062   shlibpath_var=LIBRARY_PATH
12063   shlibpath_overrides_runpath=yes
12064   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12065   hardcode_into_libs=yes
12066   ;;
12067
12068 hpux9* | hpux10* | hpux11*)
12069   # Give a soname corresponding to the major version so that dld.sl refuses to
12070   # link against other versions.
12071   version_type=sunos
12072   need_lib_prefix=no
12073   need_version=no
12074   case $host_cpu in
12075   ia64*)
12076     shrext_cmds='.so'
12077     hardcode_into_libs=yes
12078     dynamic_linker="$host_os dld.so"
12079     shlibpath_var=LD_LIBRARY_PATH
12080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082     soname_spec='${libname}${release}${shared_ext}$major'
12083     if test "X$HPUX_IA64_MODE" = X32; then
12084       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12085     else
12086       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12087     fi
12088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12089     ;;
12090   hppa*64*)
12091     shrext_cmds='.sl'
12092     hardcode_into_libs=yes
12093     dynamic_linker="$host_os dld.sl"
12094     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097     soname_spec='${libname}${release}${shared_ext}$major'
12098     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12099     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12100     ;;
12101   *)
12102     shrext_cmds='.sl'
12103     dynamic_linker="$host_os dld.sl"
12104     shlibpath_var=SHLIB_PATH
12105     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12107     soname_spec='${libname}${release}${shared_ext}$major'
12108     ;;
12109   esac
12110   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12111   postinstall_cmds='chmod 555 $lib'
12112   # or fails outright, so override atomically:
12113   install_override_mode=555
12114   ;;
12115
12116 interix[3-9]*)
12117   version_type=linux # correct to gnu/linux during the next big refactor
12118   need_lib_prefix=no
12119   need_version=no
12120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12121   soname_spec='${libname}${release}${shared_ext}$major'
12122   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12123   shlibpath_var=LD_LIBRARY_PATH
12124   shlibpath_overrides_runpath=no
12125   hardcode_into_libs=yes
12126   ;;
12127
12128 irix5* | irix6* | nonstopux*)
12129   case $host_os in
12130     nonstopux*) version_type=nonstopux ;;
12131     *)
12132         if test "$lt_cv_prog_gnu_ld" = yes; then
12133                 version_type=linux # correct to gnu/linux during the next big refactor
12134         else
12135                 version_type=irix
12136         fi ;;
12137   esac
12138   need_lib_prefix=no
12139   need_version=no
12140   soname_spec='${libname}${release}${shared_ext}$major'
12141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12142   case $host_os in
12143   irix5* | nonstopux*)
12144     libsuff= shlibsuff=
12145     ;;
12146   *)
12147     case $LD in # libtool.m4 will add one of these switches to LD
12148     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12149       libsuff= shlibsuff= libmagic=32-bit;;
12150     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12151       libsuff=32 shlibsuff=N32 libmagic=N32;;
12152     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12153       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12154     *) libsuff= shlibsuff= libmagic=never-match;;
12155     esac
12156     ;;
12157   esac
12158   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12159   shlibpath_overrides_runpath=no
12160   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12161   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12162   hardcode_into_libs=yes
12163   ;;
12164
12165 # No shared lib support for Linux oldld, aout, or coff.
12166 linux*oldld* | linux*aout* | linux*coff*)
12167   dynamic_linker=no
12168   ;;
12169
12170 # This must be glibc/ELF.
12171 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12172   version_type=linux # correct to gnu/linux during the next big refactor
12173   need_lib_prefix=no
12174   need_version=no
12175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12176   soname_spec='${libname}${release}${shared_ext}$major'
12177   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12178   shlibpath_var=LD_LIBRARY_PATH
12179   shlibpath_overrides_runpath=no
12180
12181   # Some binutils ld are patched to set DT_RUNPATH
12182   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12183   $as_echo_n "(cached) " >&6
12184 else
12185   lt_cv_shlibpath_overrides_runpath=no
12186     save_LDFLAGS=$LDFLAGS
12187     save_libdir=$libdir
12188     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12189          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h.  */
12192
12193 int
12194 main ()
12195 {
12196
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12203   lt_cv_shlibpath_overrides_runpath=yes
12204 fi
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext \
12207     conftest$ac_exeext conftest.$ac_ext
12208     LDFLAGS=$save_LDFLAGS
12209     libdir=$save_libdir
12210
12211 fi
12212
12213   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12214
12215   # This implies no fast_install, which is unacceptable.
12216   # Some rework will be needed to allow for fast_install
12217   # before this can be enabled.
12218   hardcode_into_libs=yes
12219
12220   # Append ld.so.conf contents to the search path
12221   if test -f /etc/ld.so.conf; then
12222     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12223     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12224   fi
12225
12226   # We used to test for /lib/ld.so.1 and disable shared libraries on
12227   # powerpc, because MkLinux only supported shared libraries with the
12228   # GNU dynamic linker.  Since this was broken with cross compilers,
12229   # most powerpc-linux boxes support dynamic linking these days and
12230   # people can always --disable-shared, the test was removed, and we
12231   # assume the GNU/Linux dynamic linker is in use.
12232   dynamic_linker='GNU/Linux ld.so'
12233   ;;
12234
12235 netbsdelf*-gnu)
12236   version_type=linux
12237   need_lib_prefix=no
12238   need_version=no
12239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12240   soname_spec='${libname}${release}${shared_ext}$major'
12241   shlibpath_var=LD_LIBRARY_PATH
12242   shlibpath_overrides_runpath=no
12243   hardcode_into_libs=yes
12244   dynamic_linker='NetBSD ld.elf_so'
12245   ;;
12246
12247 netbsd*)
12248   version_type=sunos
12249   need_lib_prefix=no
12250   need_version=no
12251   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12253     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12254     dynamic_linker='NetBSD (a.out) ld.so'
12255   else
12256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12257     soname_spec='${libname}${release}${shared_ext}$major'
12258     dynamic_linker='NetBSD ld.elf_so'
12259   fi
12260   shlibpath_var=LD_LIBRARY_PATH
12261   shlibpath_overrides_runpath=yes
12262   hardcode_into_libs=yes
12263   ;;
12264
12265 newsos6)
12266   version_type=linux # correct to gnu/linux during the next big refactor
12267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268   shlibpath_var=LD_LIBRARY_PATH
12269   shlibpath_overrides_runpath=yes
12270   ;;
12271
12272 *nto* | *qnx*)
12273   version_type=qnx
12274   need_lib_prefix=no
12275   need_version=no
12276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277   soname_spec='${libname}${release}${shared_ext}$major'
12278   shlibpath_var=LD_LIBRARY_PATH
12279   shlibpath_overrides_runpath=no
12280   hardcode_into_libs=yes
12281   dynamic_linker='ldqnx.so'
12282   ;;
12283
12284 openbsd*)
12285   version_type=sunos
12286   sys_lib_dlsearch_path_spec="/usr/lib"
12287   need_lib_prefix=no
12288   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12289   case $host_os in
12290     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12291     *)                          need_version=no  ;;
12292   esac
12293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12295   shlibpath_var=LD_LIBRARY_PATH
12296   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12297     case $host_os in
12298       openbsd2.[89] | openbsd2.[89].*)
12299         shlibpath_overrides_runpath=no
12300         ;;
12301       *)
12302         shlibpath_overrides_runpath=yes
12303         ;;
12304       esac
12305   else
12306     shlibpath_overrides_runpath=yes
12307   fi
12308   ;;
12309
12310 os2*)
12311   libname_spec='$name'
12312   shrext_cmds=".dll"
12313   need_lib_prefix=no
12314   library_names_spec='$libname${shared_ext} $libname.a'
12315   dynamic_linker='OS/2 ld.exe'
12316   shlibpath_var=LIBPATH
12317   ;;
12318
12319 osf3* | osf4* | osf5*)
12320   version_type=osf
12321   need_lib_prefix=no
12322   need_version=no
12323   soname_spec='${libname}${release}${shared_ext}$major'
12324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325   shlibpath_var=LD_LIBRARY_PATH
12326   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12327   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12328   ;;
12329
12330 rdos*)
12331   dynamic_linker=no
12332   ;;
12333
12334 solaris*)
12335   version_type=linux # correct to gnu/linux during the next big refactor
12336   need_lib_prefix=no
12337   need_version=no
12338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339   soname_spec='${libname}${release}${shared_ext}$major'
12340   shlibpath_var=LD_LIBRARY_PATH
12341   shlibpath_overrides_runpath=yes
12342   hardcode_into_libs=yes
12343   # ldd complains unless libraries are executable
12344   postinstall_cmds='chmod +x $lib'
12345   ;;
12346
12347 sunos4*)
12348   version_type=sunos
12349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12350   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12351   shlibpath_var=LD_LIBRARY_PATH
12352   shlibpath_overrides_runpath=yes
12353   if test "$with_gnu_ld" = yes; then
12354     need_lib_prefix=no
12355   fi
12356   need_version=yes
12357   ;;
12358
12359 sysv4 | sysv4.3*)
12360   version_type=linux # correct to gnu/linux during the next big refactor
12361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362   soname_spec='${libname}${release}${shared_ext}$major'
12363   shlibpath_var=LD_LIBRARY_PATH
12364   case $host_vendor in
12365     sni)
12366       shlibpath_overrides_runpath=no
12367       need_lib_prefix=no
12368       runpath_var=LD_RUN_PATH
12369       ;;
12370     siemens)
12371       need_lib_prefix=no
12372       ;;
12373     motorola)
12374       need_lib_prefix=no
12375       need_version=no
12376       shlibpath_overrides_runpath=no
12377       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12378       ;;
12379   esac
12380   ;;
12381
12382 sysv4*MP*)
12383   if test -d /usr/nec ;then
12384     version_type=linux # correct to gnu/linux during the next big refactor
12385     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12386     soname_spec='$libname${shared_ext}.$major'
12387     shlibpath_var=LD_LIBRARY_PATH
12388   fi
12389   ;;
12390
12391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392   version_type=freebsd-elf
12393   need_lib_prefix=no
12394   need_version=no
12395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12396   soname_spec='${libname}${release}${shared_ext}$major'
12397   shlibpath_var=LD_LIBRARY_PATH
12398   shlibpath_overrides_runpath=yes
12399   hardcode_into_libs=yes
12400   if test "$with_gnu_ld" = yes; then
12401     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12402   else
12403     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12404     case $host_os in
12405       sco3.2v5*)
12406         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12407         ;;
12408     esac
12409   fi
12410   sys_lib_dlsearch_path_spec='/usr/lib'
12411   ;;
12412
12413 tpf*)
12414   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12415   version_type=linux # correct to gnu/linux during the next big refactor
12416   need_lib_prefix=no
12417   need_version=no
12418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419   shlibpath_var=LD_LIBRARY_PATH
12420   shlibpath_overrides_runpath=no
12421   hardcode_into_libs=yes
12422   ;;
12423
12424 uts4*)
12425   version_type=linux # correct to gnu/linux during the next big refactor
12426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427   soname_spec='${libname}${release}${shared_ext}$major'
12428   shlibpath_var=LD_LIBRARY_PATH
12429   ;;
12430
12431 *)
12432   dynamic_linker=no
12433   ;;
12434 esac
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12436 $as_echo "$dynamic_linker" >&6; }
12437 test "$dynamic_linker" = no && can_build_shared=no
12438
12439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12440 if test "$GCC" = yes; then
12441   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12442 fi
12443
12444 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12445   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12446 fi
12447 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12448   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12449 fi
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12543 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12544 hardcode_action=
12545 if test -n "$hardcode_libdir_flag_spec" ||
12546    test -n "$runpath_var" ||
12547    test "X$hardcode_automatic" = "Xyes" ; then
12548
12549   # We can hardcode non-existent directories.
12550   if test "$hardcode_direct" != no &&
12551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12552      # have to relink, otherwise we might link with an installed library
12553      # when we should be linking with a yet-to-be-installed one
12554      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12555      test "$hardcode_minus_L" != no; then
12556     # Linking always hardcodes the temporary library directory.
12557     hardcode_action=relink
12558   else
12559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12560     hardcode_action=immediate
12561   fi
12562 else
12563   # We cannot hardcode anything, or else we can only hardcode existing
12564   # directories.
12565   hardcode_action=unsupported
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12568 $as_echo "$hardcode_action" >&6; }
12569
12570 if test "$hardcode_action" = relink ||
12571    test "$inherit_rpath" = yes; then
12572   # Fast installation is not supported
12573   enable_fast_install=no
12574 elif test "$shlibpath_overrides_runpath" = yes ||
12575      test "$enable_shared" = no; then
12576   # Fast installation is not necessary
12577   enable_fast_install=needless
12578 fi
12579
12580
12581
12582
12583
12584
12585   if test "x$enable_dlopen" != xyes; then
12586   enable_dlopen=unknown
12587   enable_dlopen_self=unknown
12588   enable_dlopen_self_static=unknown
12589 else
12590   lt_cv_dlopen=no
12591   lt_cv_dlopen_libs=
12592
12593   case $host_os in
12594   beos*)
12595     lt_cv_dlopen="load_add_on"
12596     lt_cv_dlopen_libs=
12597     lt_cv_dlopen_self=yes
12598     ;;
12599
12600   mingw* | pw32* | cegcc*)
12601     lt_cv_dlopen="LoadLibrary"
12602     lt_cv_dlopen_libs=
12603     ;;
12604
12605   cygwin*)
12606     lt_cv_dlopen="dlopen"
12607     lt_cv_dlopen_libs=
12608     ;;
12609
12610   darwin*)
12611   # if libdl is installed we need to link against it
12612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12614 if ${ac_cv_lib_dl_dlopen+:} false; then :
12615   $as_echo_n "(cached) " >&6
12616 else
12617   ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-ldl  $LIBS"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h.  */
12621
12622 /* Override any GCC internal prototype to avoid an error.
12623    Use char because int might match the return type of a GCC
12624    builtin and then its argument prototype would still apply.  */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char dlopen ();
12629 int
12630 main ()
12631 {
12632 return dlopen ();
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638   ac_cv_lib_dl_dlopen=yes
12639 else
12640   ac_cv_lib_dl_dlopen=no
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext \
12643     conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12649   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12650 else
12651
12652     lt_cv_dlopen="dyld"
12653     lt_cv_dlopen_libs=
12654     lt_cv_dlopen_self=yes
12655
12656 fi
12657
12658     ;;
12659
12660   *)
12661     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12662 if test "x$ac_cv_func_shl_load" = xyes; then :
12663   lt_cv_dlopen="shl_load"
12664 else
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12667 if ${ac_cv_lib_dld_shl_load+:} false; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670   ac_check_lib_save_LIBS=$LIBS
12671 LIBS="-ldld  $LIBS"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h.  */
12674
12675 /* Override any GCC internal prototype to avoid an error.
12676    Use char because int might match the return type of a GCC
12677    builtin and then its argument prototype would still apply.  */
12678 #ifdef __cplusplus
12679 extern "C"
12680 #endif
12681 char shl_load ();
12682 int
12683 main ()
12684 {
12685 return shl_load ();
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_link "$LINENO"; then :
12691   ac_cv_lib_dld_shl_load=yes
12692 else
12693   ac_cv_lib_dld_shl_load=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext \
12696     conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12700 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12701 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12702   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12703 else
12704   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12705 if test "x$ac_cv_func_dlopen" = xyes; then :
12706   lt_cv_dlopen="dlopen"
12707 else
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12710 if ${ac_cv_lib_dl_dlopen+:} false; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-ldl  $LIBS"
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h.  */
12717
12718 /* Override any GCC internal prototype to avoid an error.
12719    Use char because int might match the return type of a GCC
12720    builtin and then its argument prototype would still apply.  */
12721 #ifdef __cplusplus
12722 extern "C"
12723 #endif
12724 char dlopen ();
12725 int
12726 main ()
12727 {
12728 return dlopen ();
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 if ac_fn_c_try_link "$LINENO"; then :
12734   ac_cv_lib_dl_dlopen=yes
12735 else
12736   ac_cv_lib_dl_dlopen=no
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext \
12739     conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12744 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12745   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12746 else
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12748 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12749 if ${ac_cv_lib_svld_dlopen+:} false; then :
12750   $as_echo_n "(cached) " >&6
12751 else
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lsvld  $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758    Use char because int might match the return type of a GCC
12759    builtin and then its argument prototype would still apply.  */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char dlopen ();
12764 int
12765 main ()
12766 {
12767 return dlopen ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773   ac_cv_lib_svld_dlopen=yes
12774 else
12775   ac_cv_lib_svld_dlopen=no
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext \
12778     conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12782 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12783 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12784   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12785 else
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12787 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12788 if ${ac_cv_lib_dld_dld_link+:} false; then :
12789   $as_echo_n "(cached) " >&6
12790 else
12791   ac_check_lib_save_LIBS=$LIBS
12792 LIBS="-ldld  $LIBS"
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h.  */
12795
12796 /* Override any GCC internal prototype to avoid an error.
12797    Use char because int might match the return type of a GCC
12798    builtin and then its argument prototype would still apply.  */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char dld_link ();
12803 int
12804 main ()
12805 {
12806 return dld_link ();
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 if ac_fn_c_try_link "$LINENO"; then :
12812   ac_cv_lib_dld_dld_link=yes
12813 else
12814   ac_cv_lib_dld_dld_link=no
12815 fi
12816 rm -f core conftest.err conftest.$ac_objext \
12817     conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12821 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12822 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12823   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12824 fi
12825
12826
12827 fi
12828
12829
12830 fi
12831
12832
12833 fi
12834
12835
12836 fi
12837
12838
12839 fi
12840
12841     ;;
12842   esac
12843
12844   if test "x$lt_cv_dlopen" != xno; then
12845     enable_dlopen=yes
12846   else
12847     enable_dlopen=no
12848   fi
12849
12850   case $lt_cv_dlopen in
12851   dlopen)
12852     save_CPPFLAGS="$CPPFLAGS"
12853     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12854
12855     save_LDFLAGS="$LDFLAGS"
12856     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12857
12858     save_LIBS="$LIBS"
12859     LIBS="$lt_cv_dlopen_libs $LIBS"
12860
12861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12862 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12863 if ${lt_cv_dlopen_self+:} false; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866           if test "$cross_compiling" = yes; then :
12867   lt_cv_dlopen_self=cross
12868 else
12869   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12870   lt_status=$lt_dlunknown
12871   cat > conftest.$ac_ext <<_LT_EOF
12872 #line $LINENO "configure"
12873 #include "confdefs.h"
12874
12875 #if HAVE_DLFCN_H
12876 #include <dlfcn.h>
12877 #endif
12878
12879 #include <stdio.h>
12880
12881 #ifdef RTLD_GLOBAL
12882 #  define LT_DLGLOBAL           RTLD_GLOBAL
12883 #else
12884 #  ifdef DL_GLOBAL
12885 #    define LT_DLGLOBAL         DL_GLOBAL
12886 #  else
12887 #    define LT_DLGLOBAL         0
12888 #  endif
12889 #endif
12890
12891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12892    find out it does not work in some platform. */
12893 #ifndef LT_DLLAZY_OR_NOW
12894 #  ifdef RTLD_LAZY
12895 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12896 #  else
12897 #    ifdef DL_LAZY
12898 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12899 #    else
12900 #      ifdef RTLD_NOW
12901 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12902 #      else
12903 #        ifdef DL_NOW
12904 #          define LT_DLLAZY_OR_NOW      DL_NOW
12905 #        else
12906 #          define LT_DLLAZY_OR_NOW      0
12907 #        endif
12908 #      endif
12909 #    endif
12910 #  endif
12911 #endif
12912
12913 /* When -fvisbility=hidden is used, assume the code has been annotated
12914    correspondingly for the symbols needed.  */
12915 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12916 int fnord () __attribute__((visibility("default")));
12917 #endif
12918
12919 int fnord () { return 42; }
12920 int main ()
12921 {
12922   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12923   int status = $lt_dlunknown;
12924
12925   if (self)
12926     {
12927       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12928       else
12929         {
12930           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12931           else puts (dlerror ());
12932         }
12933       /* dlclose (self); */
12934     }
12935   else
12936     puts (dlerror ());
12937
12938   return status;
12939 }
12940 _LT_EOF
12941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12942   (eval $ac_link) 2>&5
12943   ac_status=$?
12944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12946     (./conftest; exit; ) >&5 2>/dev/null
12947     lt_status=$?
12948     case x$lt_status in
12949       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12950       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12951       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12952     esac
12953   else :
12954     # compilation failed
12955     lt_cv_dlopen_self=no
12956   fi
12957 fi
12958 rm -fr conftest*
12959
12960
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12963 $as_echo "$lt_cv_dlopen_self" >&6; }
12964
12965     if test "x$lt_cv_dlopen_self" = xyes; then
12966       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12967       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12968 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12969 if ${lt_cv_dlopen_self_static+:} false; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972           if test "$cross_compiling" = yes; then :
12973   lt_cv_dlopen_self_static=cross
12974 else
12975   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12976   lt_status=$lt_dlunknown
12977   cat > conftest.$ac_ext <<_LT_EOF
12978 #line $LINENO "configure"
12979 #include "confdefs.h"
12980
12981 #if HAVE_DLFCN_H
12982 #include <dlfcn.h>
12983 #endif
12984
12985 #include <stdio.h>
12986
12987 #ifdef RTLD_GLOBAL
12988 #  define LT_DLGLOBAL           RTLD_GLOBAL
12989 #else
12990 #  ifdef DL_GLOBAL
12991 #    define LT_DLGLOBAL         DL_GLOBAL
12992 #  else
12993 #    define LT_DLGLOBAL         0
12994 #  endif
12995 #endif
12996
12997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12998    find out it does not work in some platform. */
12999 #ifndef LT_DLLAZY_OR_NOW
13000 #  ifdef RTLD_LAZY
13001 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13002 #  else
13003 #    ifdef DL_LAZY
13004 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13005 #    else
13006 #      ifdef RTLD_NOW
13007 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13008 #      else
13009 #        ifdef DL_NOW
13010 #          define LT_DLLAZY_OR_NOW      DL_NOW
13011 #        else
13012 #          define LT_DLLAZY_OR_NOW      0
13013 #        endif
13014 #      endif
13015 #    endif
13016 #  endif
13017 #endif
13018
13019 /* When -fvisbility=hidden is used, assume the code has been annotated
13020    correspondingly for the symbols needed.  */
13021 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13022 int fnord () __attribute__((visibility("default")));
13023 #endif
13024
13025 int fnord () { return 42; }
13026 int main ()
13027 {
13028   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13029   int status = $lt_dlunknown;
13030
13031   if (self)
13032     {
13033       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13034       else
13035         {
13036           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13037           else puts (dlerror ());
13038         }
13039       /* dlclose (self); */
13040     }
13041   else
13042     puts (dlerror ());
13043
13044   return status;
13045 }
13046 _LT_EOF
13047   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13048   (eval $ac_link) 2>&5
13049   ac_status=$?
13050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13051   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13052     (./conftest; exit; ) >&5 2>/dev/null
13053     lt_status=$?
13054     case x$lt_status in
13055       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13056       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13057       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13058     esac
13059   else :
13060     # compilation failed
13061     lt_cv_dlopen_self_static=no
13062   fi
13063 fi
13064 rm -fr conftest*
13065
13066
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13070     fi
13071
13072     CPPFLAGS="$save_CPPFLAGS"
13073     LDFLAGS="$save_LDFLAGS"
13074     LIBS="$save_LIBS"
13075     ;;
13076   esac
13077
13078   case $lt_cv_dlopen_self in
13079   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13080   *) enable_dlopen_self=unknown ;;
13081   esac
13082
13083   case $lt_cv_dlopen_self_static in
13084   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13085   *) enable_dlopen_self_static=unknown ;;
13086   esac
13087 fi
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105 striplib=
13106 old_striplib=
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13108 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13110   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13111   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13114 else
13115 # FIXME - insert some real tests, host_os isn't really good enough
13116   case $host_os in
13117   darwin*)
13118     if test -n "$STRIP" ; then
13119       striplib="$STRIP -x"
13120       old_striplib="$STRIP -S"
13121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13122 $as_echo "yes" >&6; }
13123     else
13124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126     fi
13127     ;;
13128   *)
13129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13131     ;;
13132   esac
13133 fi
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146   # Report which library types will actually be built
13147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13150 $as_echo "$can_build_shared" >&6; }
13151
13152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13153 $as_echo_n "checking whether to build shared libraries... " >&6; }
13154   test "$can_build_shared" = "no" && enable_shared=no
13155
13156   # On AIX, shared libraries and static libraries use the same namespace, and
13157   # are all built from PIC.
13158   case $host_os in
13159   aix3*)
13160     test "$enable_shared" = yes && enable_static=no
13161     if test -n "$RANLIB"; then
13162       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13163       postinstall_cmds='$RANLIB $lib'
13164     fi
13165     ;;
13166
13167   aix[4-9]*)
13168     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13169       test "$enable_shared" = yes && enable_static=no
13170     fi
13171     ;;
13172   esac
13173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13174 $as_echo "$enable_shared" >&6; }
13175
13176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13177 $as_echo_n "checking whether to build static libraries... " >&6; }
13178   # Make sure either enable_shared or enable_static is yes.
13179   test "$enable_shared" = yes || enable_static=yes
13180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13181 $as_echo "$enable_static" >&6; }
13182
13183
13184
13185
13186 fi
13187 ac_ext=c
13188 ac_cpp='$CPP $CPPFLAGS'
13189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13192
13193 CC="$lt_save_CC"
13194
13195       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13196     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13197     (test "X$CXX" != "Xg++"))) ; then
13198   ac_ext=cpp
13199 ac_cpp='$CXXCPP $CPPFLAGS'
13200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13204 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13205 if test -z "$CXXCPP"; then
13206   if ${ac_cv_prog_CXXCPP+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209       # Double quotes because CXXCPP needs to be expanded
13210     for CXXCPP in "$CXX -E" "/lib/cpp"
13211     do
13212       ac_preproc_ok=false
13213 for ac_cxx_preproc_warn_flag in '' yes
13214 do
13215   # Use a header file that comes with gcc, so configuring glibc
13216   # with a fresh cross-compiler works.
13217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13218   # <limits.h> exists even on freestanding compilers.
13219   # On the NeXT, cc -E runs the code through the compiler's parser,
13220   # not just through cpp. "Syntax error" is here to catch this case.
13221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h.  */
13223 #ifdef __STDC__
13224 # include <limits.h>
13225 #else
13226 # include <assert.h>
13227 #endif
13228                      Syntax error
13229 _ACEOF
13230 if ac_fn_cxx_try_cpp "$LINENO"; then :
13231
13232 else
13233   # Broken: fails on valid input.
13234 continue
13235 fi
13236 rm -f conftest.err conftest.i conftest.$ac_ext
13237
13238   # OK, works on sane cases.  Now check whether nonexistent headers
13239   # can be detected and how.
13240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h.  */
13242 #include <ac_nonexistent.h>
13243 _ACEOF
13244 if ac_fn_cxx_try_cpp "$LINENO"; then :
13245   # Broken: success on invalid input.
13246 continue
13247 else
13248   # Passes both tests.
13249 ac_preproc_ok=:
13250 break
13251 fi
13252 rm -f conftest.err conftest.i conftest.$ac_ext
13253
13254 done
13255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13256 rm -f conftest.i conftest.err conftest.$ac_ext
13257 if $ac_preproc_ok; then :
13258   break
13259 fi
13260
13261     done
13262     ac_cv_prog_CXXCPP=$CXXCPP
13263
13264 fi
13265   CXXCPP=$ac_cv_prog_CXXCPP
13266 else
13267   ac_cv_prog_CXXCPP=$CXXCPP
13268 fi
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13270 $as_echo "$CXXCPP" >&6; }
13271 ac_preproc_ok=false
13272 for ac_cxx_preproc_warn_flag in '' yes
13273 do
13274   # Use a header file that comes with gcc, so configuring glibc
13275   # with a fresh cross-compiler works.
13276   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277   # <limits.h> exists even on freestanding compilers.
13278   # On the NeXT, cc -E runs the code through the compiler's parser,
13279   # not just through cpp. "Syntax error" is here to catch this case.
13280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h.  */
13282 #ifdef __STDC__
13283 # include <limits.h>
13284 #else
13285 # include <assert.h>
13286 #endif
13287                      Syntax error
13288 _ACEOF
13289 if ac_fn_cxx_try_cpp "$LINENO"; then :
13290
13291 else
13292   # Broken: fails on valid input.
13293 continue
13294 fi
13295 rm -f conftest.err conftest.i conftest.$ac_ext
13296
13297   # OK, works on sane cases.  Now check whether nonexistent headers
13298   # can be detected and how.
13299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h.  */
13301 #include <ac_nonexistent.h>
13302 _ACEOF
13303 if ac_fn_cxx_try_cpp "$LINENO"; then :
13304   # Broken: success on invalid input.
13305 continue
13306 else
13307   # Passes both tests.
13308 ac_preproc_ok=:
13309 break
13310 fi
13311 rm -f conftest.err conftest.i conftest.$ac_ext
13312
13313 done
13314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13315 rm -f conftest.i conftest.err conftest.$ac_ext
13316 if $ac_preproc_ok; then :
13317
13318 else
13319   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13321 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13322 See \`config.log' for more details" "$LINENO" 5; }
13323 fi
13324
13325 ac_ext=c
13326 ac_cpp='$CPP $CPPFLAGS'
13327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13330
13331 else
13332   _lt_caught_CXX_error=yes
13333 fi
13334
13335 ac_ext=cpp
13336 ac_cpp='$CXXCPP $CPPFLAGS'
13337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13340
13341 archive_cmds_need_lc_CXX=no
13342 allow_undefined_flag_CXX=
13343 always_export_symbols_CXX=no
13344 archive_expsym_cmds_CXX=
13345 compiler_needs_object_CXX=no
13346 export_dynamic_flag_spec_CXX=
13347 hardcode_direct_CXX=no
13348 hardcode_direct_absolute_CXX=no
13349 hardcode_libdir_flag_spec_CXX=
13350 hardcode_libdir_separator_CXX=
13351 hardcode_minus_L_CXX=no
13352 hardcode_shlibpath_var_CXX=unsupported
13353 hardcode_automatic_CXX=no
13354 inherit_rpath_CXX=no
13355 module_cmds_CXX=
13356 module_expsym_cmds_CXX=
13357 link_all_deplibs_CXX=unknown
13358 old_archive_cmds_CXX=$old_archive_cmds
13359 reload_flag_CXX=$reload_flag
13360 reload_cmds_CXX=$reload_cmds
13361 no_undefined_flag_CXX=
13362 whole_archive_flag_spec_CXX=
13363 enable_shared_with_static_runtimes_CXX=no
13364
13365 # Source file extension for C++ test sources.
13366 ac_ext=cpp
13367
13368 # Object file extension for compiled C++ test sources.
13369 objext=o
13370 objext_CXX=$objext
13371
13372 # No sense in running all these tests if we already determined that
13373 # the CXX compiler isn't working.  Some variables (like enable_shared)
13374 # are currently assumed to apply to all compilers on this platform,
13375 # and will be corrupted by setting them based on a non-working compiler.
13376 if test "$_lt_caught_CXX_error" != yes; then
13377   # Code to be used in simple compile tests
13378   lt_simple_compile_test_code="int some_variable = 0;"
13379
13380   # Code to be used in simple link tests
13381   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13382
13383   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13384
13385
13386
13387
13388
13389
13390 # If no C compiler was specified, use CC.
13391 LTCC=${LTCC-"$CC"}
13392
13393 # If no C compiler flags were specified, use CFLAGS.
13394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13395
13396 # Allow CC to be a program name with arguments.
13397 compiler=$CC
13398
13399
13400   # save warnings/boilerplate of simple test code
13401   ac_outfile=conftest.$ac_objext
13402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13404 _lt_compiler_boilerplate=`cat conftest.err`
13405 $RM conftest*
13406
13407   ac_outfile=conftest.$ac_objext
13408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410 _lt_linker_boilerplate=`cat conftest.err`
13411 $RM -r conftest*
13412
13413
13414   # Allow CC to be a program name with arguments.
13415   lt_save_CC=$CC
13416   lt_save_CFLAGS=$CFLAGS
13417   lt_save_LD=$LD
13418   lt_save_GCC=$GCC
13419   GCC=$GXX
13420   lt_save_with_gnu_ld=$with_gnu_ld
13421   lt_save_path_LD=$lt_cv_path_LD
13422   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13423     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13424   else
13425     $as_unset lt_cv_prog_gnu_ld
13426   fi
13427   if test -n "${lt_cv_path_LDCXX+set}"; then
13428     lt_cv_path_LD=$lt_cv_path_LDCXX
13429   else
13430     $as_unset lt_cv_path_LD
13431   fi
13432   test -z "${LDCXX+set}" || LD=$LDCXX
13433   CC=${CXX-"c++"}
13434   CFLAGS=$CXXFLAGS
13435   compiler=$CC
13436   compiler_CXX=$CC
13437   for cc_temp in $compiler""; do
13438   case $cc_temp in
13439     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13440     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13441     \-*) ;;
13442     *) break;;
13443   esac
13444 done
13445 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13446
13447
13448   if test -n "$compiler"; then
13449     # We don't want -fno-exception when compiling C++ code, so set the
13450     # no_builtin_flag separately
13451     if test "$GXX" = yes; then
13452       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13453     else
13454       lt_prog_compiler_no_builtin_flag_CXX=
13455     fi
13456
13457     if test "$GXX" = yes; then
13458       # Set up default GNU C++ configuration
13459
13460
13461
13462 # Check whether --with-gnu-ld was given.
13463 if test "${with_gnu_ld+set}" = set; then :
13464   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13465 else
13466   with_gnu_ld=no
13467 fi
13468
13469 ac_prog=ld
13470 if test "$GCC" = yes; then
13471   # Check if gcc -print-prog-name=ld gives a path.
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13473 $as_echo_n "checking for ld used by $CC... " >&6; }
13474   case $host in
13475   *-*-mingw*)
13476     # gcc leaves a trailing carriage return which upsets mingw
13477     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13478   *)
13479     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13480   esac
13481   case $ac_prog in
13482     # Accept absolute paths.
13483     [\\/]* | ?:[\\/]*)
13484       re_direlt='/[^/][^/]*/\.\./'
13485       # Canonicalize the pathname of ld
13486       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13487       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13488         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13489       done
13490       test -z "$LD" && LD="$ac_prog"
13491       ;;
13492   "")
13493     # If it fails, then pretend we aren't using GCC.
13494     ac_prog=ld
13495     ;;
13496   *)
13497     # If it is relative, then search for the first ld in PATH.
13498     with_gnu_ld=unknown
13499     ;;
13500   esac
13501 elif test "$with_gnu_ld" = yes; then
13502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13503 $as_echo_n "checking for GNU ld... " >&6; }
13504 else
13505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13506 $as_echo_n "checking for non-GNU ld... " >&6; }
13507 fi
13508 if ${lt_cv_path_LD+:} false; then :
13509   $as_echo_n "(cached) " >&6
13510 else
13511   if test -z "$LD"; then
13512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13513   for ac_dir in $PATH; do
13514     IFS="$lt_save_ifs"
13515     test -z "$ac_dir" && ac_dir=.
13516     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13517       lt_cv_path_LD="$ac_dir/$ac_prog"
13518       # Check to see if the program is GNU ld.  I'd rather use --version,
13519       # but apparently some variants of GNU ld only accept -v.
13520       # Break only if it was the GNU/non-GNU ld that we prefer.
13521       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13522       *GNU* | *'with BFD'*)
13523         test "$with_gnu_ld" != no && break
13524         ;;
13525       *)
13526         test "$with_gnu_ld" != yes && break
13527         ;;
13528       esac
13529     fi
13530   done
13531   IFS="$lt_save_ifs"
13532 else
13533   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13534 fi
13535 fi
13536
13537 LD="$lt_cv_path_LD"
13538 if test -n "$LD"; then
13539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13540 $as_echo "$LD" >&6; }
13541 else
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13548 if ${lt_cv_prog_gnu_ld+:} false; then :
13549   $as_echo_n "(cached) " >&6
13550 else
13551   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13552 case `$LD -v 2>&1 </dev/null` in
13553 *GNU* | *'with BFD'*)
13554   lt_cv_prog_gnu_ld=yes
13555   ;;
13556 *)
13557   lt_cv_prog_gnu_ld=no
13558   ;;
13559 esac
13560 fi
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13562 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13563 with_gnu_ld=$lt_cv_prog_gnu_ld
13564
13565
13566
13567
13568
13569
13570
13571       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13572       # archiving commands below assume that GNU ld is being used.
13573       if test "$with_gnu_ld" = yes; then
13574         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13576
13577         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13578         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13579
13580         # If archive_cmds runs LD, not CC, wlarc should be empty
13581         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13582         #     investigate it a little bit more. (MM)
13583         wlarc='${wl}'
13584
13585         # ancient GNU ld didn't support --whole-archive et. al.
13586         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13587           $GREP 'no-whole-archive' > /dev/null; then
13588           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13589         else
13590           whole_archive_flag_spec_CXX=
13591         fi
13592       else
13593         with_gnu_ld=no
13594         wlarc=
13595
13596         # A generic and very simple default shared library creation
13597         # command for GNU C++ for the case where it uses the native
13598         # linker, instead of GNU ld.  If possible, this setting should
13599         # overridden to take advantage of the native linker features on
13600         # the platform it is being used on.
13601         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13602       fi
13603
13604       # Commands to make compiler produce verbose output that lists
13605       # what "hidden" libraries, object files and flags are used when
13606       # linking a shared library.
13607       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13608
13609     else
13610       GXX=no
13611       with_gnu_ld=no
13612       wlarc=
13613     fi
13614
13615     # PORTME: fill in a description of your system's C++ link characteristics
13616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13618     ld_shlibs_CXX=yes
13619     case $host_os in
13620       aix3*)
13621         # FIXME: insert proper C++ library support
13622         ld_shlibs_CXX=no
13623         ;;
13624       aix[4-9]*)
13625         if test "$host_cpu" = ia64; then
13626           # On IA64, the linker does run time linking by default, so we don't
13627           # have to do anything special.
13628           aix_use_runtimelinking=no
13629           exp_sym_flag='-Bexport'
13630           no_entry_flag=""
13631         else
13632           aix_use_runtimelinking=no
13633
13634           # Test if we are trying to use run time linking or normal
13635           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13636           # need to do runtime linking.
13637           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13638             for ld_flag in $LDFLAGS; do
13639               case $ld_flag in
13640               *-brtl*)
13641                 aix_use_runtimelinking=yes
13642                 break
13643                 ;;
13644               esac
13645             done
13646             ;;
13647           esac
13648
13649           exp_sym_flag='-bexport'
13650           no_entry_flag='-bnoentry'
13651         fi
13652
13653         # When large executables or shared objects are built, AIX ld can
13654         # have problems creating the table of contents.  If linking a library
13655         # or program results in "error TOC overflow" add -mminimal-toc to
13656         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13657         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13658
13659         archive_cmds_CXX=''
13660         hardcode_direct_CXX=yes
13661         hardcode_direct_absolute_CXX=yes
13662         hardcode_libdir_separator_CXX=':'
13663         link_all_deplibs_CXX=yes
13664         file_list_spec_CXX='${wl}-f,'
13665
13666         if test "$GXX" = yes; then
13667           case $host_os in aix4.[012]|aix4.[012].*)
13668           # We only want to do this on AIX 4.2 and lower, the check
13669           # below for broken collect2 doesn't work under 4.3+
13670           collect2name=`${CC} -print-prog-name=collect2`
13671           if test -f "$collect2name" &&
13672              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13673           then
13674             # We have reworked collect2
13675             :
13676           else
13677             # We have old collect2
13678             hardcode_direct_CXX=unsupported
13679             # It fails to find uninstalled libraries when the uninstalled
13680             # path is not listed in the libpath.  Setting hardcode_minus_L
13681             # to unsupported forces relinking
13682             hardcode_minus_L_CXX=yes
13683             hardcode_libdir_flag_spec_CXX='-L$libdir'
13684             hardcode_libdir_separator_CXX=
13685           fi
13686           esac
13687           shared_flag='-shared'
13688           if test "$aix_use_runtimelinking" = yes; then
13689             shared_flag="$shared_flag "'${wl}-G'
13690           fi
13691         else
13692           # not using gcc
13693           if test "$host_cpu" = ia64; then
13694           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13695           # chokes on -Wl,-G. The following line is correct:
13696           shared_flag='-G'
13697           else
13698             if test "$aix_use_runtimelinking" = yes; then
13699               shared_flag='${wl}-G'
13700             else
13701               shared_flag='${wl}-bM:SRE'
13702             fi
13703           fi
13704         fi
13705
13706         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13707         # It seems that -bexpall does not export symbols beginning with
13708         # underscore (_), so it is better to generate a list of symbols to
13709         # export.
13710         always_export_symbols_CXX=yes
13711         if test "$aix_use_runtimelinking" = yes; then
13712           # Warning - without using the other runtime loading flags (-brtl),
13713           # -berok will link without error, but may produce a broken library.
13714           allow_undefined_flag_CXX='-berok'
13715           # Determine the default libpath from the value encoded in an empty
13716           # executable.
13717           if test "${lt_cv_aix_libpath+set}" = set; then
13718   aix_libpath=$lt_cv_aix_libpath
13719 else
13720   if ${lt_cv_aix_libpath__CXX+:} false; then :
13721   $as_echo_n "(cached) " >&6
13722 else
13723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h.  */
13725
13726 int
13727 main ()
13728 {
13729
13730   ;
13731   return 0;
13732 }
13733 _ACEOF
13734 if ac_fn_cxx_try_link "$LINENO"; then :
13735
13736   lt_aix_libpath_sed='
13737       /Import File Strings/,/^$/ {
13738           /^0/ {
13739               s/^0  *\([^ ]*\) *$/\1/
13740               p
13741           }
13742       }'
13743   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13744   # Check for a 64-bit object if we didn't find anything.
13745   if test -z "$lt_cv_aix_libpath__CXX"; then
13746     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13747   fi
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext \
13750     conftest$ac_exeext conftest.$ac_ext
13751   if test -z "$lt_cv_aix_libpath__CXX"; then
13752     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13753   fi
13754
13755 fi
13756
13757   aix_libpath=$lt_cv_aix_libpath__CXX
13758 fi
13759
13760           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13761
13762           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13763         else
13764           if test "$host_cpu" = ia64; then
13765             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13766             allow_undefined_flag_CXX="-z nodefs"
13767             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"
13768           else
13769             # Determine the default libpath from the value encoded in an
13770             # empty executable.
13771             if test "${lt_cv_aix_libpath+set}" = set; then
13772   aix_libpath=$lt_cv_aix_libpath
13773 else
13774   if ${lt_cv_aix_libpath__CXX+:} false; then :
13775   $as_echo_n "(cached) " >&6
13776 else
13777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h.  */
13779
13780 int
13781 main ()
13782 {
13783
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 if ac_fn_cxx_try_link "$LINENO"; then :
13789
13790   lt_aix_libpath_sed='
13791       /Import File Strings/,/^$/ {
13792           /^0/ {
13793               s/^0  *\([^ ]*\) *$/\1/
13794               p
13795           }
13796       }'
13797   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13798   # Check for a 64-bit object if we didn't find anything.
13799   if test -z "$lt_cv_aix_libpath__CXX"; then
13800     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13801   fi
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext \
13804     conftest$ac_exeext conftest.$ac_ext
13805   if test -z "$lt_cv_aix_libpath__CXX"; then
13806     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13807   fi
13808
13809 fi
13810
13811   aix_libpath=$lt_cv_aix_libpath__CXX
13812 fi
13813
13814             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13815             # Warning - without using the other run time loading flags,
13816             # -berok will link without error, but may produce a broken library.
13817             no_undefined_flag_CXX=' ${wl}-bernotok'
13818             allow_undefined_flag_CXX=' ${wl}-berok'
13819             if test "$with_gnu_ld" = yes; then
13820               # We only use this code for GNU lds that support --whole-archive.
13821               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13822             else
13823               # Exported symbols can be pulled into shared objects from archives
13824               whole_archive_flag_spec_CXX='$convenience'
13825             fi
13826             archive_cmds_need_lc_CXX=yes
13827             # This is similar to how AIX traditionally builds its shared
13828             # libraries.
13829             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'
13830           fi
13831         fi
13832         ;;
13833
13834       beos*)
13835         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13836           allow_undefined_flag_CXX=unsupported
13837           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13838           # support --undefined.  This deserves some investigation.  FIXME
13839           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13840         else
13841           ld_shlibs_CXX=no
13842         fi
13843         ;;
13844
13845       chorus*)
13846         case $cc_basename in
13847           *)
13848           # FIXME: insert proper C++ library support
13849           ld_shlibs_CXX=no
13850           ;;
13851         esac
13852         ;;
13853
13854       cygwin* | mingw* | pw32* | cegcc*)
13855         case $GXX,$cc_basename in
13856         ,cl* | no,cl*)
13857           # Native MSVC
13858           # hardcode_libdir_flag_spec is actually meaningless, as there is
13859           # no search path for DLLs.
13860           hardcode_libdir_flag_spec_CXX=' '
13861           allow_undefined_flag_CXX=unsupported
13862           always_export_symbols_CXX=yes
13863           file_list_spec_CXX='@'
13864           # Tell ltmain to make .lib files, not .a files.
13865           libext=lib
13866           # Tell ltmain to make .dll files, not .so files.
13867           shrext_cmds=".dll"
13868           # FIXME: Setting linknames here is a bad hack.
13869           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13870           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13871               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13872             else
13873               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13874             fi~
13875             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13876             linknames='
13877           # The linker will not automatically build a static lib if we build a DLL.
13878           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13879           enable_shared_with_static_runtimes_CXX=yes
13880           # Don't use ranlib
13881           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13882           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13883             lt_tool_outputfile="@TOOL_OUTPUT@"~
13884             case $lt_outputfile in
13885               *.exe|*.EXE) ;;
13886               *)
13887                 lt_outputfile="$lt_outputfile.exe"
13888                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13889                 ;;
13890             esac~
13891             func_to_tool_file "$lt_outputfile"~
13892             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13893               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13894               $RM "$lt_outputfile.manifest";
13895             fi'
13896           ;;
13897         *)
13898           # g++
13899           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13900           # as there is no search path for DLLs.
13901           hardcode_libdir_flag_spec_CXX='-L$libdir'
13902           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13903           allow_undefined_flag_CXX=unsupported
13904           always_export_symbols_CXX=no
13905           enable_shared_with_static_runtimes_CXX=yes
13906
13907           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13908             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'
13909             # If the export-symbols file already is a .def file (1st line
13910             # is EXPORTS), use it as is; otherwise, prepend...
13911             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13912               cp $export_symbols $output_objdir/$soname.def;
13913             else
13914               echo EXPORTS > $output_objdir/$soname.def;
13915               cat $export_symbols >> $output_objdir/$soname.def;
13916             fi~
13917             $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'
13918           else
13919             ld_shlibs_CXX=no
13920           fi
13921           ;;
13922         esac
13923         ;;
13924       darwin* | rhapsody*)
13925
13926
13927   archive_cmds_need_lc_CXX=no
13928   hardcode_direct_CXX=no
13929   hardcode_automatic_CXX=yes
13930   hardcode_shlibpath_var_CXX=unsupported
13931   if test "$lt_cv_ld_force_load" = "yes"; then
13932     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13933
13934   else
13935     whole_archive_flag_spec_CXX=''
13936   fi
13937   link_all_deplibs_CXX=yes
13938   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13939   case $cc_basename in
13940      ifort*) _lt_dar_can_shared=yes ;;
13941      *) _lt_dar_can_shared=$GCC ;;
13942   esac
13943   if test "$_lt_dar_can_shared" = "yes"; then
13944     output_verbose_link_cmd=func_echo_all
13945     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}"
13946     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13947     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}"
13948     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}"
13949        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13950       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}"
13951       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}"
13952     fi
13953
13954   else
13955   ld_shlibs_CXX=no
13956   fi
13957
13958         ;;
13959
13960       dgux*)
13961         case $cc_basename in
13962           ec++*)
13963             # FIXME: insert proper C++ library support
13964             ld_shlibs_CXX=no
13965             ;;
13966           ghcx*)
13967             # Green Hills C++ Compiler
13968             # FIXME: insert proper C++ library support
13969             ld_shlibs_CXX=no
13970             ;;
13971           *)
13972             # FIXME: insert proper C++ library support
13973             ld_shlibs_CXX=no
13974             ;;
13975         esac
13976         ;;
13977
13978       freebsd2.*)
13979         # C++ shared libraries reported to be fairly broken before
13980         # switch to ELF
13981         ld_shlibs_CXX=no
13982         ;;
13983
13984       freebsd-elf*)
13985         archive_cmds_need_lc_CXX=no
13986         ;;
13987
13988       freebsd* | dragonfly*)
13989         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13990         # conventions
13991         ld_shlibs_CXX=yes
13992         ;;
13993
13994       haiku*)
13995         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996         link_all_deplibs_CXX=yes
13997         ;;
13998
13999       hpux9*)
14000         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14001         hardcode_libdir_separator_CXX=:
14002         export_dynamic_flag_spec_CXX='${wl}-E'
14003         hardcode_direct_CXX=yes
14004         hardcode_minus_L_CXX=yes # Not in the search PATH,
14005                                              # but as the default
14006                                              # location of the library.
14007
14008         case $cc_basename in
14009           CC*)
14010             # FIXME: insert proper C++ library support
14011             ld_shlibs_CXX=no
14012             ;;
14013           aCC*)
14014             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'
14015             # Commands to make compiler produce verbose output that lists
14016             # what "hidden" libraries, object files and flags are used when
14017             # linking a shared library.
14018             #
14019             # There doesn't appear to be a way to prevent this compiler from
14020             # explicitly linking system object files so we need to strip them
14021             # from the output so that they don't get included in the library
14022             # dependencies.
14023             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; func_echo_all "$list"'
14024             ;;
14025           *)
14026             if test "$GXX" = yes; then
14027               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14028             else
14029               # FIXME: insert proper C++ library support
14030               ld_shlibs_CXX=no
14031             fi
14032             ;;
14033         esac
14034         ;;
14035
14036       hpux10*|hpux11*)
14037         if test $with_gnu_ld = no; then
14038           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14039           hardcode_libdir_separator_CXX=:
14040
14041           case $host_cpu in
14042             hppa*64*|ia64*)
14043               ;;
14044             *)
14045               export_dynamic_flag_spec_CXX='${wl}-E'
14046               ;;
14047           esac
14048         fi
14049         case $host_cpu in
14050           hppa*64*|ia64*)
14051             hardcode_direct_CXX=no
14052             hardcode_shlibpath_var_CXX=no
14053             ;;
14054           *)
14055             hardcode_direct_CXX=yes
14056             hardcode_direct_absolute_CXX=yes
14057             hardcode_minus_L_CXX=yes # Not in the search PATH,
14058                                                  # but as the default
14059                                                  # location of the library.
14060             ;;
14061         esac
14062
14063         case $cc_basename in
14064           CC*)
14065             # FIXME: insert proper C++ library support
14066             ld_shlibs_CXX=no
14067             ;;
14068           aCC*)
14069             case $host_cpu in
14070               hppa*64*)
14071                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14072                 ;;
14073               ia64*)
14074                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14075                 ;;
14076               *)
14077                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14078                 ;;
14079             esac
14080             # Commands to make compiler produce verbose output that lists
14081             # what "hidden" libraries, object files and flags are used when
14082             # linking a shared library.
14083             #
14084             # There doesn't appear to be a way to prevent this compiler from
14085             # explicitly linking system object files so we need to strip them
14086             # from the output so that they don't get included in the library
14087             # dependencies.
14088             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; func_echo_all "$list"'
14089             ;;
14090           *)
14091             if test "$GXX" = yes; then
14092               if test $with_gnu_ld = no; then
14093                 case $host_cpu in
14094                   hppa*64*)
14095                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14096                     ;;
14097                   ia64*)
14098                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14099                     ;;
14100                   *)
14101                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102                     ;;
14103                 esac
14104               fi
14105             else
14106               # FIXME: insert proper C++ library support
14107               ld_shlibs_CXX=no
14108             fi
14109             ;;
14110         esac
14111         ;;
14112
14113       interix[3-9]*)
14114         hardcode_direct_CXX=no
14115         hardcode_shlibpath_var_CXX=no
14116         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14117         export_dynamic_flag_spec_CXX='${wl}-E'
14118         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14119         # Instead, shared libraries are loaded at an image base (0x10000000 by
14120         # default) and relocated if they conflict, which is a slow very memory
14121         # consuming and fragmenting process.  To avoid this, we pick a random,
14122         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14123         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14124         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'
14125         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'
14126         ;;
14127       irix5* | irix6*)
14128         case $cc_basename in
14129           CC*)
14130             # SGI C++
14131             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14132
14133             # Archives containing C++ object files must be created using
14134             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14135             # necessary to make sure instantiated templates are included
14136             # in the archive.
14137             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14138             ;;
14139           *)
14140             if test "$GXX" = yes; then
14141               if test "$with_gnu_ld" = no; then
14142                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14143               else
14144                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14145               fi
14146             fi
14147             link_all_deplibs_CXX=yes
14148             ;;
14149         esac
14150         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14151         hardcode_libdir_separator_CXX=:
14152         inherit_rpath_CXX=yes
14153         ;;
14154
14155       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14156         case $cc_basename in
14157           KCC*)
14158             # Kuck and Associates, Inc. (KAI) C++ Compiler
14159
14160             # KCC will only create a shared library if the output file
14161             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14162             # to its proper name (with version) after linking.
14163             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'
14164             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'
14165             # Commands to make compiler produce verbose output that lists
14166             # what "hidden" libraries, object files and flags are used when
14167             # linking a shared library.
14168             #
14169             # There doesn't appear to be a way to prevent this compiler from
14170             # explicitly linking system object files so we need to strip them
14171             # from the output so that they don't get included in the library
14172             # dependencies.
14173             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; func_echo_all "$list"'
14174
14175             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14176             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14177
14178             # Archives containing C++ object files must be created using
14179             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14180             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14181             ;;
14182           icpc* | ecpc* )
14183             # Intel C++
14184             with_gnu_ld=yes
14185             # version 8.0 and above of icpc choke on multiply defined symbols
14186             # if we add $predep_objects and $postdep_objects, however 7.1 and
14187             # earlier do not add the objects themselves.
14188             case `$CC -V 2>&1` in
14189               *"Version 7."*)
14190                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14191                 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'
14192                 ;;
14193               *)  # Version 8.0 or newer
14194                 tmp_idyn=
14195                 case $host_cpu in
14196                   ia64*) tmp_idyn=' -i_dynamic';;
14197                 esac
14198                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199                 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'
14200                 ;;
14201             esac
14202             archive_cmds_need_lc_CXX=no
14203             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14204             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14205             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14206             ;;
14207           pgCC* | pgcpp*)
14208             # Portland Group C++ compiler
14209             case `$CC -V` in
14210             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14211               prelink_cmds_CXX='tpldir=Template.dir~
14212                 rm -rf $tpldir~
14213                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14214                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14215               old_archive_cmds_CXX='tpldir=Template.dir~
14216                 rm -rf $tpldir~
14217                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14218                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14219                 $RANLIB $oldlib'
14220               archive_cmds_CXX='tpldir=Template.dir~
14221                 rm -rf $tpldir~
14222                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14223                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14224               archive_expsym_cmds_CXX='tpldir=Template.dir~
14225                 rm -rf $tpldir~
14226                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14227                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14228               ;;
14229             *) # Version 6 and above use weak symbols
14230               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14231               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'
14232               ;;
14233             esac
14234
14235             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14236             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14237             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14238             ;;
14239           cxx*)
14240             # Compaq C++
14241             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242             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'
14243
14244             runpath_var=LD_RUN_PATH
14245             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14246             hardcode_libdir_separator_CXX=:
14247
14248             # Commands to make compiler produce verbose output that lists
14249             # what "hidden" libraries, object files and flags are used when
14250             # linking a shared library.
14251             #
14252             # There doesn't appear to be a way to prevent this compiler from
14253             # explicitly linking system object files so we need to strip them
14254             # from the output so that they don't get included in the library
14255             # dependencies.
14256             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14257             ;;
14258           xl* | mpixl* | bgxl*)
14259             # IBM XL 8.0 on PPC, with GNU ld
14260             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14261             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14262             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263             if test "x$supports_anon_versioning" = xyes; then
14264               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14265                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14266                 echo "local: *; };" >> $output_objdir/$libname.ver~
14267                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14268             fi
14269             ;;
14270           *)
14271             case `$CC -V 2>&1 | sed 5q` in
14272             *Sun\ C*)
14273               # Sun C++ 5.9
14274               no_undefined_flag_CXX=' -zdefs'
14275               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14276               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'
14277               hardcode_libdir_flag_spec_CXX='-R$libdir'
14278               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14279               compiler_needs_object_CXX=yes
14280
14281               # Not sure whether something based on
14282               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14283               # would be better.
14284               output_verbose_link_cmd='func_echo_all'
14285
14286               # Archives containing C++ object files must be created using
14287               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14288               # necessary to make sure instantiated templates are included
14289               # in the archive.
14290               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14291               ;;
14292             esac
14293             ;;
14294         esac
14295         ;;
14296
14297       lynxos*)
14298         # FIXME: insert proper C++ library support
14299         ld_shlibs_CXX=no
14300         ;;
14301
14302       m88k*)
14303         # FIXME: insert proper C++ library support
14304         ld_shlibs_CXX=no
14305         ;;
14306
14307       mvs*)
14308         case $cc_basename in
14309           cxx*)
14310             # FIXME: insert proper C++ library support
14311             ld_shlibs_CXX=no
14312             ;;
14313           *)
14314             # FIXME: insert proper C++ library support
14315             ld_shlibs_CXX=no
14316             ;;
14317         esac
14318         ;;
14319
14320       netbsd*)
14321         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14322           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14323           wlarc=
14324           hardcode_libdir_flag_spec_CXX='-R$libdir'
14325           hardcode_direct_CXX=yes
14326           hardcode_shlibpath_var_CXX=no
14327         fi
14328         # Workaround some broken pre-1.5 toolchains
14329         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14330         ;;
14331
14332       *nto* | *qnx*)
14333         ld_shlibs_CXX=yes
14334         ;;
14335
14336       openbsd2*)
14337         # C++ shared libraries are fairly broken
14338         ld_shlibs_CXX=no
14339         ;;
14340
14341       openbsd*)
14342         if test -f /usr/libexec/ld.so; then
14343           hardcode_direct_CXX=yes
14344           hardcode_shlibpath_var_CXX=no
14345           hardcode_direct_absolute_CXX=yes
14346           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14347           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14348           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14349             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14350             export_dynamic_flag_spec_CXX='${wl}-E'
14351             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14352           fi
14353           output_verbose_link_cmd=func_echo_all
14354         else
14355           ld_shlibs_CXX=no
14356         fi
14357         ;;
14358
14359       osf3* | osf4* | osf5*)
14360         case $cc_basename in
14361           KCC*)
14362             # Kuck and Associates, Inc. (KAI) C++ Compiler
14363
14364             # KCC will only create a shared library if the output file
14365             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14366             # to its proper name (with version) after linking.
14367             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'
14368
14369             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14370             hardcode_libdir_separator_CXX=:
14371
14372             # Archives containing C++ object files must be created using
14373             # the KAI C++ compiler.
14374             case $host in
14375               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14376               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14377             esac
14378             ;;
14379           RCC*)
14380             # Rational C++ 2.4.1
14381             # FIXME: insert proper C++ library support
14382             ld_shlibs_CXX=no
14383             ;;
14384           cxx*)
14385             case $host in
14386               osf3*)
14387                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14388                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14389                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14390                 ;;
14391               *)
14392                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14393                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14394                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14395                   echo "-hidden">> $lib.exp~
14396                   $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14397                   $RM $lib.exp'
14398                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14399                 ;;
14400             esac
14401
14402             hardcode_libdir_separator_CXX=:
14403
14404             # Commands to make compiler produce verbose output that lists
14405             # what "hidden" libraries, object files and flags are used when
14406             # linking a shared library.
14407             #
14408             # There doesn't appear to be a way to prevent this compiler from
14409             # explicitly linking system object files so we need to strip them
14410             # from the output so that they don't get included in the library
14411             # dependencies.
14412             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14413             ;;
14414           *)
14415             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14416               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14417               case $host in
14418                 osf3*)
14419                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14420                   ;;
14421                 *)
14422                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14423                   ;;
14424               esac
14425
14426               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14427               hardcode_libdir_separator_CXX=:
14428
14429               # Commands to make compiler produce verbose output that lists
14430               # what "hidden" libraries, object files and flags are used when
14431               # linking a shared library.
14432               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14433
14434             else
14435               # FIXME: insert proper C++ library support
14436               ld_shlibs_CXX=no
14437             fi
14438             ;;
14439         esac
14440         ;;
14441
14442       psos*)
14443         # FIXME: insert proper C++ library support
14444         ld_shlibs_CXX=no
14445         ;;
14446
14447       sunos4*)
14448         case $cc_basename in
14449           CC*)
14450             # Sun C++ 4.x
14451             # FIXME: insert proper C++ library support
14452             ld_shlibs_CXX=no
14453             ;;
14454           lcc*)
14455             # Lucid
14456             # FIXME: insert proper C++ library support
14457             ld_shlibs_CXX=no
14458             ;;
14459           *)
14460             # FIXME: insert proper C++ library support
14461             ld_shlibs_CXX=no
14462             ;;
14463         esac
14464         ;;
14465
14466       solaris*)
14467         case $cc_basename in
14468           CC* | sunCC*)
14469             # Sun C++ 4.2, 5.x and Centerline C++
14470             archive_cmds_need_lc_CXX=yes
14471             no_undefined_flag_CXX=' -zdefs'
14472             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14473             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14474               $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'
14475
14476             hardcode_libdir_flag_spec_CXX='-R$libdir'
14477             hardcode_shlibpath_var_CXX=no
14478             case $host_os in
14479               solaris2.[0-5] | solaris2.[0-5].*) ;;
14480               *)
14481                 # The compiler driver will combine and reorder linker options,
14482                 # but understands `-z linker_flag'.
14483                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14484                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14485                 ;;
14486             esac
14487             link_all_deplibs_CXX=yes
14488
14489             output_verbose_link_cmd='func_echo_all'
14490
14491             # Archives containing C++ object files must be created using
14492             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14493             # necessary to make sure instantiated templates are included
14494             # in the archive.
14495             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14496             ;;
14497           gcx*)
14498             # Green Hills C++ Compiler
14499             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14500
14501             # The C++ compiler must be used to create the archive.
14502             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14503             ;;
14504           *)
14505             # GNU C++ compiler with Solaris linker
14506             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14507               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14508               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14509                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14510                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14511                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14512
14513                 # Commands to make compiler produce verbose output that lists
14514                 # what "hidden" libraries, object files and flags are used when
14515                 # linking a shared library.
14516                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14517               else
14518                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14519                 # platform.
14520                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14521                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14522                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14523
14524                 # Commands to make compiler produce verbose output that lists
14525                 # what "hidden" libraries, object files and flags are used when
14526                 # linking a shared library.
14527                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14528               fi
14529
14530               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14531               case $host_os in
14532                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14533                 *)
14534                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14535                   ;;
14536               esac
14537             fi
14538             ;;
14539         esac
14540         ;;
14541
14542     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14543       no_undefined_flag_CXX='${wl}-z,text'
14544       archive_cmds_need_lc_CXX=no
14545       hardcode_shlibpath_var_CXX=no
14546       runpath_var='LD_RUN_PATH'
14547
14548       case $cc_basename in
14549         CC*)
14550           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14552           ;;
14553         *)
14554           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14556           ;;
14557       esac
14558       ;;
14559
14560       sysv5* | sco3.2v5* | sco5v6*)
14561         # Note: We can NOT use -z defs as we might desire, because we do not
14562         # link with -lc, and that would cause any symbols used from libc to
14563         # always be unresolved, which means just about no library would
14564         # ever link correctly.  If we're not using GNU ld we use -z text
14565         # though, which does catch some bad symbols but isn't as heavy-handed
14566         # as -z defs.
14567         no_undefined_flag_CXX='${wl}-z,text'
14568         allow_undefined_flag_CXX='${wl}-z,nodefs'
14569         archive_cmds_need_lc_CXX=no
14570         hardcode_shlibpath_var_CXX=no
14571         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14572         hardcode_libdir_separator_CXX=':'
14573         link_all_deplibs_CXX=yes
14574         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14575         runpath_var='LD_RUN_PATH'
14576
14577         case $cc_basename in
14578           CC*)
14579             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14582               '"$old_archive_cmds_CXX"
14583             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14584               '"$reload_cmds_CXX"
14585             ;;
14586           *)
14587             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14589             ;;
14590         esac
14591       ;;
14592
14593       tandem*)
14594         case $cc_basename in
14595           NCC*)
14596             # NonStop-UX NCC 3.20
14597             # FIXME: insert proper C++ library support
14598             ld_shlibs_CXX=no
14599             ;;
14600           *)
14601             # FIXME: insert proper C++ library support
14602             ld_shlibs_CXX=no
14603             ;;
14604         esac
14605         ;;
14606
14607       vxworks*)
14608         # FIXME: insert proper C++ library support
14609         ld_shlibs_CXX=no
14610         ;;
14611
14612       *)
14613         # FIXME: insert proper C++ library support
14614         ld_shlibs_CXX=no
14615         ;;
14616     esac
14617
14618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14619 $as_echo "$ld_shlibs_CXX" >&6; }
14620     test "$ld_shlibs_CXX" = no && can_build_shared=no
14621
14622     GCC_CXX="$GXX"
14623     LD_CXX="$LD"
14624
14625     ## CAVEAT EMPTOR:
14626     ## There is no encapsulation within the following macros, do not change
14627     ## the running order or otherwise move them around unless you know exactly
14628     ## what you are doing...
14629     # Dependencies to place before and after the object being linked:
14630 predep_objects_CXX=
14631 postdep_objects_CXX=
14632 predeps_CXX=
14633 postdeps_CXX=
14634 compiler_lib_search_path_CXX=
14635
14636 cat > conftest.$ac_ext <<_LT_EOF
14637 class Foo
14638 {
14639 public:
14640   Foo (void) { a = 0; }
14641 private:
14642   int a;
14643 };
14644 _LT_EOF
14645
14646
14647 _lt_libdeps_save_CFLAGS=$CFLAGS
14648 case "$CC $CFLAGS " in #(
14649 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14650 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14651 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14652 esac
14653
14654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14655   (eval $ac_compile) 2>&5
14656   ac_status=$?
14657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14658   test $ac_status = 0; }; then
14659   # Parse the compiler output and extract the necessary
14660   # objects, libraries and library flags.
14661
14662   # Sentinel used to keep track of whether or not we are before
14663   # the conftest object file.
14664   pre_test_object_deps_done=no
14665
14666   for p in `eval "$output_verbose_link_cmd"`; do
14667     case ${prev}${p} in
14668
14669     -L* | -R* | -l*)
14670        # Some compilers place space between "-{L,R}" and the path.
14671        # Remove the space.
14672        if test $p = "-L" ||
14673           test $p = "-R"; then
14674          prev=$p
14675          continue
14676        fi
14677
14678        # Expand the sysroot to ease extracting the directories later.
14679        if test -z "$prev"; then
14680          case $p in
14681          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14682          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14683          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14684          esac
14685        fi
14686        case $p in
14687        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14688        esac
14689        if test "$pre_test_object_deps_done" = no; then
14690          case ${prev} in
14691          -L | -R)
14692            # Internal compiler library paths should come after those
14693            # provided the user.  The postdeps already come after the
14694            # user supplied libs so there is no need to process them.
14695            if test -z "$compiler_lib_search_path_CXX"; then
14696              compiler_lib_search_path_CXX="${prev}${p}"
14697            else
14698              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14699            fi
14700            ;;
14701          # The "-l" case would never come before the object being
14702          # linked, so don't bother handling this case.
14703          esac
14704        else
14705          if test -z "$postdeps_CXX"; then
14706            postdeps_CXX="${prev}${p}"
14707          else
14708            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14709          fi
14710        fi
14711        prev=
14712        ;;
14713
14714     *.lto.$objext) ;; # Ignore GCC LTO objects
14715     *.$objext)
14716        # This assumes that the test object file only shows up
14717        # once in the compiler output.
14718        if test "$p" = "conftest.$objext"; then
14719          pre_test_object_deps_done=yes
14720          continue
14721        fi
14722
14723        if test "$pre_test_object_deps_done" = no; then
14724          if test -z "$predep_objects_CXX"; then
14725            predep_objects_CXX="$p"
14726          else
14727            predep_objects_CXX="$predep_objects_CXX $p"
14728          fi
14729        else
14730          if test -z "$postdep_objects_CXX"; then
14731            postdep_objects_CXX="$p"
14732          else
14733            postdep_objects_CXX="$postdep_objects_CXX $p"
14734          fi
14735        fi
14736        ;;
14737
14738     *) ;; # Ignore the rest.
14739
14740     esac
14741   done
14742
14743   # Clean up.
14744   rm -f a.out a.exe
14745 else
14746   echo "libtool.m4: error: problem compiling CXX test program"
14747 fi
14748
14749 $RM -f confest.$objext
14750 CFLAGS=$_lt_libdeps_save_CFLAGS
14751
14752 # PORTME: override above test on systems where it is broken
14753 case $host_os in
14754 interix[3-9]*)
14755   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14756   # hack all around it, let's just trust "g++" to DTRT.
14757   predep_objects_CXX=
14758   postdep_objects_CXX=
14759   postdeps_CXX=
14760   ;;
14761
14762 linux*)
14763   case `$CC -V 2>&1 | sed 5q` in
14764   *Sun\ C*)
14765     # Sun C++ 5.9
14766
14767     # The more standards-conforming stlport4 library is
14768     # incompatible with the Cstd library. Avoid specifying
14769     # it if it's in CXXFLAGS. Ignore libCrun as
14770     # -library=stlport4 depends on it.
14771     case " $CXX $CXXFLAGS " in
14772     *" -library=stlport4 "*)
14773       solaris_use_stlport4=yes
14774       ;;
14775     esac
14776
14777     if test "$solaris_use_stlport4" != yes; then
14778       postdeps_CXX='-library=Cstd -library=Crun'
14779     fi
14780     ;;
14781   esac
14782   ;;
14783
14784 solaris*)
14785   case $cc_basename in
14786   CC* | sunCC*)
14787     # The more standards-conforming stlport4 library is
14788     # incompatible with the Cstd library. Avoid specifying
14789     # it if it's in CXXFLAGS. Ignore libCrun as
14790     # -library=stlport4 depends on it.
14791     case " $CXX $CXXFLAGS " in
14792     *" -library=stlport4 "*)
14793       solaris_use_stlport4=yes
14794       ;;
14795     esac
14796
14797     # Adding this requires a known-good setup of shared libraries for
14798     # Sun compiler versions before 5.6, else PIC objects from an old
14799     # archive will be linked into the output, leading to subtle bugs.
14800     if test "$solaris_use_stlport4" != yes; then
14801       postdeps_CXX='-library=Cstd -library=Crun'
14802     fi
14803     ;;
14804   esac
14805   ;;
14806 esac
14807
14808
14809 case " $postdeps_CXX " in
14810 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14811 esac
14812  compiler_lib_search_dirs_CXX=
14813 if test -n "${compiler_lib_search_path_CXX}"; then
14814  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14815 fi
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847     lt_prog_compiler_wl_CXX=
14848 lt_prog_compiler_pic_CXX=
14849 lt_prog_compiler_static_CXX=
14850
14851
14852   # C++ specific cases for pic, static, wl, etc.
14853   if test "$GXX" = yes; then
14854     lt_prog_compiler_wl_CXX='-Wl,'
14855     lt_prog_compiler_static_CXX='-static'
14856
14857     case $host_os in
14858     aix*)
14859       # All AIX code is PIC.
14860       if test "$host_cpu" = ia64; then
14861         # AIX 5 now supports IA64 processor
14862         lt_prog_compiler_static_CXX='-Bstatic'
14863       fi
14864       ;;
14865
14866     amigaos*)
14867       case $host_cpu in
14868       powerpc)
14869             # see comment about AmigaOS4 .so support
14870             lt_prog_compiler_pic_CXX='-fPIC'
14871         ;;
14872       m68k)
14873             # FIXME: we need at least 68020 code to build shared libraries, but
14874             # adding the `-m68020' flag to GCC prevents building anything better,
14875             # like `-m68040'.
14876             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14877         ;;
14878       esac
14879       ;;
14880
14881     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14882       # PIC is the default for these OSes.
14883       ;;
14884     mingw* | cygwin* | os2* | pw32* | cegcc*)
14885       # This hack is so that the source file can tell whether it is being
14886       # built for inclusion in a dll (and should export symbols for example).
14887       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14888       # (--disable-auto-import) libraries
14889       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14890       ;;
14891     darwin* | rhapsody*)
14892       # PIC is the default on this platform
14893       # Common symbols not allowed in MH_DYLIB files
14894       lt_prog_compiler_pic_CXX='-fno-common'
14895       ;;
14896     *djgpp*)
14897       # DJGPP does not support shared libraries at all
14898       lt_prog_compiler_pic_CXX=
14899       ;;
14900     haiku*)
14901       # PIC is the default for Haiku.
14902       # The "-static" flag exists, but is broken.
14903       lt_prog_compiler_static_CXX=
14904       ;;
14905     interix[3-9]*)
14906       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14907       # Instead, we relocate shared libraries at runtime.
14908       ;;
14909     sysv4*MP*)
14910       if test -d /usr/nec; then
14911         lt_prog_compiler_pic_CXX=-Kconform_pic
14912       fi
14913       ;;
14914     hpux*)
14915       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14916       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14917       # sets the default TLS model and affects inlining.
14918       case $host_cpu in
14919       hppa*64*)
14920         ;;
14921       *)
14922         lt_prog_compiler_pic_CXX='-fPIC'
14923         ;;
14924       esac
14925       ;;
14926     *qnx* | *nto*)
14927       # QNX uses GNU C++, but need to define -shared option too, otherwise
14928       # it will coredump.
14929       lt_prog_compiler_pic_CXX='-fPIC -shared'
14930       ;;
14931     *)
14932       lt_prog_compiler_pic_CXX='-fPIC'
14933       ;;
14934     esac
14935   else
14936     case $host_os in
14937       aix[4-9]*)
14938         # All AIX code is PIC.
14939         if test "$host_cpu" = ia64; then
14940           # AIX 5 now supports IA64 processor
14941           lt_prog_compiler_static_CXX='-Bstatic'
14942         else
14943           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14944         fi
14945         ;;
14946       chorus*)
14947         case $cc_basename in
14948         cxch68*)
14949           # Green Hills C++ Compiler
14950           # _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"
14951           ;;
14952         esac
14953         ;;
14954       mingw* | cygwin* | os2* | pw32* | cegcc*)
14955         # This hack is so that the source file can tell whether it is being
14956         # built for inclusion in a dll (and should export symbols for example).
14957         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14958         ;;
14959       dgux*)
14960         case $cc_basename in
14961           ec++*)
14962             lt_prog_compiler_pic_CXX='-KPIC'
14963             ;;
14964           ghcx*)
14965             # Green Hills C++ Compiler
14966             lt_prog_compiler_pic_CXX='-pic'
14967             ;;
14968           *)
14969             ;;
14970         esac
14971         ;;
14972       freebsd* | dragonfly*)
14973         # FreeBSD uses GNU C++
14974         ;;
14975       hpux9* | hpux10* | hpux11*)
14976         case $cc_basename in
14977           CC*)
14978             lt_prog_compiler_wl_CXX='-Wl,'
14979             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14980             if test "$host_cpu" != ia64; then
14981               lt_prog_compiler_pic_CXX='+Z'
14982             fi
14983             ;;
14984           aCC*)
14985             lt_prog_compiler_wl_CXX='-Wl,'
14986             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14987             case $host_cpu in
14988             hppa*64*|ia64*)
14989               # +Z the default
14990               ;;
14991             *)
14992               lt_prog_compiler_pic_CXX='+Z'
14993               ;;
14994             esac
14995             ;;
14996           *)
14997             ;;
14998         esac
14999         ;;
15000       interix*)
15001         # This is c89, which is MS Visual C++ (no shared libs)
15002         # Anyone wants to do a port?
15003         ;;
15004       irix5* | irix6* | nonstopux*)
15005         case $cc_basename in
15006           CC*)
15007             lt_prog_compiler_wl_CXX='-Wl,'
15008             lt_prog_compiler_static_CXX='-non_shared'
15009             # CC pic flag -KPIC is the default.
15010             ;;
15011           *)
15012             ;;
15013         esac
15014         ;;
15015       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15016         case $cc_basename in
15017           KCC*)
15018             # KAI C++ Compiler
15019             lt_prog_compiler_wl_CXX='--backend -Wl,'
15020             lt_prog_compiler_pic_CXX='-fPIC'
15021             ;;
15022           ecpc* )
15023             # old Intel C++ for x86_64 which still supported -KPIC.
15024             lt_prog_compiler_wl_CXX='-Wl,'
15025             lt_prog_compiler_pic_CXX='-KPIC'
15026             lt_prog_compiler_static_CXX='-static'
15027             ;;
15028           icpc* )
15029             # Intel C++, used to be incompatible with GCC.
15030             # ICC 10 doesn't accept -KPIC any more.
15031             lt_prog_compiler_wl_CXX='-Wl,'
15032             lt_prog_compiler_pic_CXX='-fPIC'
15033             lt_prog_compiler_static_CXX='-static'
15034             ;;
15035           pgCC* | pgcpp*)
15036             # Portland Group C++ compiler
15037             lt_prog_compiler_wl_CXX='-Wl,'
15038             lt_prog_compiler_pic_CXX='-fpic'
15039             lt_prog_compiler_static_CXX='-Bstatic'
15040             ;;
15041           cxx*)
15042             # Compaq C++
15043             # Make sure the PIC flag is empty.  It appears that all Alpha
15044             # Linux and Compaq Tru64 Unix objects are PIC.
15045             lt_prog_compiler_pic_CXX=
15046             lt_prog_compiler_static_CXX='-non_shared'
15047             ;;
15048           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15049             # IBM XL 8.0, 9.0 on PPC and BlueGene
15050             lt_prog_compiler_wl_CXX='-Wl,'
15051             lt_prog_compiler_pic_CXX='-qpic'
15052             lt_prog_compiler_static_CXX='-qstaticlink'
15053             ;;
15054           *)
15055             case `$CC -V 2>&1 | sed 5q` in
15056             *Sun\ C*)
15057               # Sun C++ 5.9
15058               lt_prog_compiler_pic_CXX='-KPIC'
15059               lt_prog_compiler_static_CXX='-Bstatic'
15060               lt_prog_compiler_wl_CXX='-Qoption ld '
15061               ;;
15062             esac
15063             ;;
15064         esac
15065         ;;
15066       lynxos*)
15067         ;;
15068       m88k*)
15069         ;;
15070       mvs*)
15071         case $cc_basename in
15072           cxx*)
15073             lt_prog_compiler_pic_CXX='-W c,exportall'
15074             ;;
15075           *)
15076             ;;
15077         esac
15078         ;;
15079       netbsd* | netbsdelf*-gnu)
15080         ;;
15081       *qnx* | *nto*)
15082         # QNX uses GNU C++, but need to define -shared option too, otherwise
15083         # it will coredump.
15084         lt_prog_compiler_pic_CXX='-fPIC -shared'
15085         ;;
15086       osf3* | osf4* | osf5*)
15087         case $cc_basename in
15088           KCC*)
15089             lt_prog_compiler_wl_CXX='--backend -Wl,'
15090             ;;
15091           RCC*)
15092             # Rational C++ 2.4.1
15093             lt_prog_compiler_pic_CXX='-pic'
15094             ;;
15095           cxx*)
15096             # Digital/Compaq C++
15097             lt_prog_compiler_wl_CXX='-Wl,'
15098             # Make sure the PIC flag is empty.  It appears that all Alpha
15099             # Linux and Compaq Tru64 Unix objects are PIC.
15100             lt_prog_compiler_pic_CXX=
15101             lt_prog_compiler_static_CXX='-non_shared'
15102             ;;
15103           *)
15104             ;;
15105         esac
15106         ;;
15107       psos*)
15108         ;;
15109       solaris*)
15110         case $cc_basename in
15111           CC* | sunCC*)
15112             # Sun C++ 4.2, 5.x and Centerline C++
15113             lt_prog_compiler_pic_CXX='-KPIC'
15114             lt_prog_compiler_static_CXX='-Bstatic'
15115             lt_prog_compiler_wl_CXX='-Qoption ld '
15116             ;;
15117           gcx*)
15118             # Green Hills C++ Compiler
15119             lt_prog_compiler_pic_CXX='-PIC'
15120             ;;
15121           *)
15122             ;;
15123         esac
15124         ;;
15125       sunos4*)
15126         case $cc_basename in
15127           CC*)
15128             # Sun C++ 4.x
15129             lt_prog_compiler_pic_CXX='-pic'
15130             lt_prog_compiler_static_CXX='-Bstatic'
15131             ;;
15132           lcc*)
15133             # Lucid
15134             lt_prog_compiler_pic_CXX='-pic'
15135             ;;
15136           *)
15137             ;;
15138         esac
15139         ;;
15140       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15141         case $cc_basename in
15142           CC*)
15143             lt_prog_compiler_wl_CXX='-Wl,'
15144             lt_prog_compiler_pic_CXX='-KPIC'
15145             lt_prog_compiler_static_CXX='-Bstatic'
15146             ;;
15147         esac
15148         ;;
15149       tandem*)
15150         case $cc_basename in
15151           NCC*)
15152             # NonStop-UX NCC 3.20
15153             lt_prog_compiler_pic_CXX='-KPIC'
15154             ;;
15155           *)
15156             ;;
15157         esac
15158         ;;
15159       vxworks*)
15160         ;;
15161       *)
15162         lt_prog_compiler_can_build_shared_CXX=no
15163         ;;
15164     esac
15165   fi
15166
15167 case $host_os in
15168   # For platforms which do not support PIC, -DPIC is meaningless:
15169   *djgpp*)
15170     lt_prog_compiler_pic_CXX=
15171     ;;
15172   *)
15173     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15174     ;;
15175 esac
15176
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15178 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15179 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15180   $as_echo_n "(cached) " >&6
15181 else
15182   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15183 fi
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15185 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15186 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15187
15188 #
15189 # Check to make sure the PIC flag actually works.
15190 #
15191 if test -n "$lt_prog_compiler_pic_CXX"; then
15192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15193 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15194 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15195   $as_echo_n "(cached) " >&6
15196 else
15197   lt_cv_prog_compiler_pic_works_CXX=no
15198    ac_outfile=conftest.$ac_objext
15199    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15200    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15201    # Insert the option either (1) after the last *FLAGS variable, or
15202    # (2) before a word containing "conftest.", or (3) at the end.
15203    # Note that $ac_compile itself does not contain backslashes and begins
15204    # with a dollar sign (not a hyphen), so the echo should work correctly.
15205    # The option is referenced via a variable to avoid confusing sed.
15206    lt_compile=`echo "$ac_compile" | $SED \
15207    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15208    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15209    -e 's:$: $lt_compiler_flag:'`
15210    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15211    (eval "$lt_compile" 2>conftest.err)
15212    ac_status=$?
15213    cat conftest.err >&5
15214    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215    if (exit $ac_status) && test -s "$ac_outfile"; then
15216      # The compiler can only warn and ignore the option if not recognized
15217      # So say no if there are warnings other than the usual output.
15218      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15219      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15220      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15221        lt_cv_prog_compiler_pic_works_CXX=yes
15222      fi
15223    fi
15224    $RM conftest*
15225
15226 fi
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15228 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15229
15230 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15231     case $lt_prog_compiler_pic_CXX in
15232      "" | " "*) ;;
15233      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15234      esac
15235 else
15236     lt_prog_compiler_pic_CXX=
15237      lt_prog_compiler_can_build_shared_CXX=no
15238 fi
15239
15240 fi
15241
15242
15243
15244
15245
15246 #
15247 # Check to make sure the static flag actually works.
15248 #
15249 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15251 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15252 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15253   $as_echo_n "(cached) " >&6
15254 else
15255   lt_cv_prog_compiler_static_works_CXX=no
15256    save_LDFLAGS="$LDFLAGS"
15257    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15258    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15259    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15260      # The linker can only warn and ignore the option if not recognized
15261      # So say no if there are warnings
15262      if test -s conftest.err; then
15263        # Append any errors to the config.log.
15264        cat conftest.err 1>&5
15265        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15266        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15267        if diff conftest.exp conftest.er2 >/dev/null; then
15268          lt_cv_prog_compiler_static_works_CXX=yes
15269        fi
15270      else
15271        lt_cv_prog_compiler_static_works_CXX=yes
15272      fi
15273    fi
15274    $RM -r conftest*
15275    LDFLAGS="$save_LDFLAGS"
15276
15277 fi
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15279 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15280
15281 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15282     :
15283 else
15284     lt_prog_compiler_static_CXX=
15285 fi
15286
15287
15288
15289
15290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15292 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15293   $as_echo_n "(cached) " >&6
15294 else
15295   lt_cv_prog_compiler_c_o_CXX=no
15296    $RM -r conftest 2>/dev/null
15297    mkdir conftest
15298    cd conftest
15299    mkdir out
15300    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15301
15302    lt_compiler_flag="-o out/conftest2.$ac_objext"
15303    # Insert the option either (1) after the last *FLAGS variable, or
15304    # (2) before a word containing "conftest.", or (3) at the end.
15305    # Note that $ac_compile itself does not contain backslashes and begins
15306    # with a dollar sign (not a hyphen), so the echo should work correctly.
15307    lt_compile=`echo "$ac_compile" | $SED \
15308    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15310    -e 's:$: $lt_compiler_flag:'`
15311    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15312    (eval "$lt_compile" 2>out/conftest.err)
15313    ac_status=$?
15314    cat out/conftest.err >&5
15315    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15317    then
15318      # The compiler can only warn and ignore the option if not recognized
15319      # So say no if there are warnings
15320      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15321      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15322      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15323        lt_cv_prog_compiler_c_o_CXX=yes
15324      fi
15325    fi
15326    chmod u+w . 2>&5
15327    $RM conftest*
15328    # SGI C++ compiler will create directory out/ii_files/ for
15329    # template instantiation
15330    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15331    $RM out/* && rmdir out
15332    cd ..
15333    $RM -r conftest
15334    $RM conftest*
15335
15336 fi
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15338 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15339
15340
15341
15342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15344 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15345   $as_echo_n "(cached) " >&6
15346 else
15347   lt_cv_prog_compiler_c_o_CXX=no
15348    $RM -r conftest 2>/dev/null
15349    mkdir conftest
15350    cd conftest
15351    mkdir out
15352    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15353
15354    lt_compiler_flag="-o out/conftest2.$ac_objext"
15355    # Insert the option either (1) after the last *FLAGS variable, or
15356    # (2) before a word containing "conftest.", or (3) at the end.
15357    # Note that $ac_compile itself does not contain backslashes and begins
15358    # with a dollar sign (not a hyphen), so the echo should work correctly.
15359    lt_compile=`echo "$ac_compile" | $SED \
15360    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362    -e 's:$: $lt_compiler_flag:'`
15363    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15364    (eval "$lt_compile" 2>out/conftest.err)
15365    ac_status=$?
15366    cat out/conftest.err >&5
15367    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15369    then
15370      # The compiler can only warn and ignore the option if not recognized
15371      # So say no if there are warnings
15372      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15373      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375        lt_cv_prog_compiler_c_o_CXX=yes
15376      fi
15377    fi
15378    chmod u+w . 2>&5
15379    $RM conftest*
15380    # SGI C++ compiler will create directory out/ii_files/ for
15381    # template instantiation
15382    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15383    $RM out/* && rmdir out
15384    cd ..
15385    $RM -r conftest
15386    $RM conftest*
15387
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15391
15392
15393
15394
15395 hard_links="nottested"
15396 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15397   # do not overwrite the value of need_locks provided by the user
15398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15399 $as_echo_n "checking if we can lock with hard links... " >&6; }
15400   hard_links=yes
15401   $RM conftest*
15402   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403   touch conftest.a
15404   ln conftest.a conftest.b 2>&5 || hard_links=no
15405   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15407 $as_echo "$hard_links" >&6; }
15408   if test "$hard_links" = no; then
15409     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15410 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15411     need_locks=warn
15412   fi
15413 else
15414   need_locks=no
15415 fi
15416
15417
15418
15419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15421
15422   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15423   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15424   case $host_os in
15425   aix[4-9]*)
15426     # If we're using GNU nm, then we don't want the "-C" option.
15427     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15428     # Also, AIX nm treats weak defined symbols like other global defined
15429     # symbols, whereas GNU nm marks them as "W".
15430     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15431       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15432     else
15433       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'
15434     fi
15435     ;;
15436   pw32*)
15437     export_symbols_cmds_CXX="$ltdll_cmds"
15438     ;;
15439   cygwin* | mingw* | cegcc*)
15440     case $cc_basename in
15441     cl*)
15442       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15443       ;;
15444     *)
15445       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15446       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15447       ;;
15448     esac
15449     ;;
15450   linux* | k*bsd*-gnu | gnu*)
15451     link_all_deplibs_CXX=no
15452     ;;
15453   *)
15454     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15455     ;;
15456   esac
15457
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15459 $as_echo "$ld_shlibs_CXX" >&6; }
15460 test "$ld_shlibs_CXX" = no && can_build_shared=no
15461
15462 with_gnu_ld_CXX=$with_gnu_ld
15463
15464
15465
15466
15467
15468
15469 #
15470 # Do we need to explicitly link libc?
15471 #
15472 case "x$archive_cmds_need_lc_CXX" in
15473 x|xyes)
15474   # Assume -lc should be added
15475   archive_cmds_need_lc_CXX=yes
15476
15477   if test "$enable_shared" = yes && test "$GCC" = yes; then
15478     case $archive_cmds_CXX in
15479     *'~'*)
15480       # FIXME: we may have to deal with multi-command sequences.
15481       ;;
15482     '$CC '*)
15483       # Test whether the compiler implicitly links with -lc since on some
15484       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15485       # to ld, don't add -lc before -lgcc.
15486       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15487 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15488 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15489   $as_echo_n "(cached) " >&6
15490 else
15491   $RM conftest*
15492         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15493
15494         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15495   (eval $ac_compile) 2>&5
15496   ac_status=$?
15497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498   test $ac_status = 0; } 2>conftest.err; then
15499           soname=conftest
15500           lib=conftest
15501           libobjs=conftest.$ac_objext
15502           deplibs=
15503           wl=$lt_prog_compiler_wl_CXX
15504           pic_flag=$lt_prog_compiler_pic_CXX
15505           compiler_flags=-v
15506           linker_flags=-v
15507           verstring=
15508           output_objdir=.
15509           libname=conftest
15510           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15511           allow_undefined_flag_CXX=
15512           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15513   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15514   ac_status=$?
15515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516   test $ac_status = 0; }
15517           then
15518             lt_cv_archive_cmds_need_lc_CXX=no
15519           else
15520             lt_cv_archive_cmds_need_lc_CXX=yes
15521           fi
15522           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15523         else
15524           cat conftest.err 1>&5
15525         fi
15526         $RM conftest*
15527
15528 fi
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15530 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15531       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15532       ;;
15533     esac
15534   fi
15535   ;;
15536 esac
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15601
15602 library_names_spec=
15603 libname_spec='lib$name'
15604 soname_spec=
15605 shrext_cmds=".so"
15606 postinstall_cmds=
15607 postuninstall_cmds=
15608 finish_cmds=
15609 finish_eval=
15610 shlibpath_var=
15611 shlibpath_overrides_runpath=unknown
15612 version_type=none
15613 dynamic_linker="$host_os ld.so"
15614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15615 need_lib_prefix=unknown
15616 hardcode_into_libs=no
15617
15618 # when you set need_version to no, make sure it does not cause -set_version
15619 # flags to be left without arguments
15620 need_version=unknown
15621
15622 case $host_os in
15623 aix3*)
15624   version_type=linux # correct to gnu/linux during the next big refactor
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15626   shlibpath_var=LIBPATH
15627
15628   # AIX 3 has no versioning support, so we append a major version to the name.
15629   soname_spec='${libname}${release}${shared_ext}$major'
15630   ;;
15631
15632 aix[4-9]*)
15633   version_type=linux # correct to gnu/linux during the next big refactor
15634   need_lib_prefix=no
15635   need_version=no
15636   hardcode_into_libs=yes
15637   if test "$host_cpu" = ia64; then
15638     # AIX 5 supports IA64
15639     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15640     shlibpath_var=LD_LIBRARY_PATH
15641   else
15642     # With GCC up to 2.95.x, collect2 would create an import file
15643     # for dependence libraries.  The import file would start with
15644     # the line `#! .'.  This would cause the generated library to
15645     # depend on `.', always an invalid library.  This was fixed in
15646     # development snapshots of GCC prior to 3.0.
15647     case $host_os in
15648       aix4 | aix4.[01] | aix4.[01].*)
15649       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15650            echo ' yes '
15651            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15652         :
15653       else
15654         can_build_shared=no
15655       fi
15656       ;;
15657     esac
15658     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15659     # soname into executable. Probably we can add versioning support to
15660     # collect2, so additional links can be useful in future.
15661     if test "$aix_use_runtimelinking" = yes; then
15662       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15663       # instead of lib<name>.a to let people know that these are not
15664       # typical AIX shared libraries.
15665       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666     else
15667       # We preserve .a as extension for shared libraries through AIX4.2
15668       # and later when we are not doing run time linking.
15669       library_names_spec='${libname}${release}.a $libname.a'
15670       soname_spec='${libname}${release}${shared_ext}$major'
15671     fi
15672     shlibpath_var=LIBPATH
15673   fi
15674   ;;
15675
15676 amigaos*)
15677   case $host_cpu in
15678   powerpc)
15679     # Since July 2007 AmigaOS4 officially supports .so libraries.
15680     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682     ;;
15683   m68k)
15684     library_names_spec='$libname.ixlibrary $libname.a'
15685     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15686     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15687     ;;
15688   esac
15689   ;;
15690
15691 beos*)
15692   library_names_spec='${libname}${shared_ext}'
15693   dynamic_linker="$host_os ld.so"
15694   shlibpath_var=LIBRARY_PATH
15695   ;;
15696
15697 bsdi[45]*)
15698   version_type=linux # correct to gnu/linux during the next big refactor
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15703   shlibpath_var=LD_LIBRARY_PATH
15704   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15705   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15706   # the default ld.so.conf also contains /usr/contrib/lib and
15707   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15708   # libtool to hard-code these into programs
15709   ;;
15710
15711 cygwin* | mingw* | pw32* | cegcc*)
15712   version_type=windows
15713   shrext_cmds=".dll"
15714   need_version=no
15715   need_lib_prefix=no
15716
15717   case $GCC,$cc_basename in
15718   yes,*)
15719     # gcc
15720     library_names_spec='$libname.dll.a'
15721     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15722     postinstall_cmds='base_file=`basename \${file}`~
15723       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15724       dldir=$destdir/`dirname \$dlpath`~
15725       test -d \$dldir || mkdir -p \$dldir~
15726       $install_prog $dir/$dlname \$dldir/$dlname~
15727       chmod a+x \$dldir/$dlname~
15728       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15729         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15730       fi'
15731     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15732       dlpath=$dir/\$dldll~
15733        $RM \$dlpath'
15734     shlibpath_overrides_runpath=yes
15735
15736     case $host_os in
15737     cygwin*)
15738       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15739       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740
15741       ;;
15742     mingw* | cegcc*)
15743       # MinGW DLLs use traditional 'lib' prefix
15744       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15745       ;;
15746     pw32*)
15747       # pw32 DLLs use 'pw' prefix rather than 'lib'
15748       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15749       ;;
15750     esac
15751     dynamic_linker='Win32 ld.exe'
15752     ;;
15753
15754   *,cl*)
15755     # Native MSVC
15756     libname_spec='$name'
15757     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15758     library_names_spec='${libname}.dll.lib'
15759
15760     case $build_os in
15761     mingw*)
15762       sys_lib_search_path_spec=
15763       lt_save_ifs=$IFS
15764       IFS=';'
15765       for lt_path in $LIB
15766       do
15767         IFS=$lt_save_ifs
15768         # Let DOS variable expansion print the short 8.3 style file name.
15769         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15770         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15771       done
15772       IFS=$lt_save_ifs
15773       # Convert to MSYS style.
15774       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15775       ;;
15776     cygwin*)
15777       # Convert to unix form, then to dos form, then back to unix form
15778       # but this time dos style (no spaces!) so that the unix form looks
15779       # like /cygdrive/c/PROGRA~1:/cygdr...
15780       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15781       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15782       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15783       ;;
15784     *)
15785       sys_lib_search_path_spec="$LIB"
15786       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15787         # It is most probably a Windows format PATH.
15788         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15789       else
15790         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15791       fi
15792       # FIXME: find the short name or the path components, as spaces are
15793       # common. (e.g. "Program Files" -> "PROGRA~1")
15794       ;;
15795     esac
15796
15797     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15798     postinstall_cmds='base_file=`basename \${file}`~
15799       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15800       dldir=$destdir/`dirname \$dlpath`~
15801       test -d \$dldir || mkdir -p \$dldir~
15802       $install_prog $dir/$dlname \$dldir/$dlname'
15803     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804       dlpath=$dir/\$dldll~
15805        $RM \$dlpath'
15806     shlibpath_overrides_runpath=yes
15807     dynamic_linker='Win32 link.exe'
15808     ;;
15809
15810   *)
15811     # Assume MSVC wrapper
15812     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15813     dynamic_linker='Win32 ld.exe'
15814     ;;
15815   esac
15816   # FIXME: first we should search . and the directory the executable is in
15817   shlibpath_var=PATH
15818   ;;
15819
15820 darwin* | rhapsody*)
15821   dynamic_linker="$host_os dyld"
15822   version_type=darwin
15823   need_lib_prefix=no
15824   need_version=no
15825   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15826   soname_spec='${libname}${release}${major}$shared_ext'
15827   shlibpath_overrides_runpath=yes
15828   shlibpath_var=DYLD_LIBRARY_PATH
15829   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15830
15831   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15832   ;;
15833
15834 dgux*)
15835   version_type=linux # correct to gnu/linux during the next big refactor
15836   need_lib_prefix=no
15837   need_version=no
15838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839   soname_spec='${libname}${release}${shared_ext}$major'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   ;;
15842
15843 freebsd* | dragonfly*)
15844   # DragonFly does not have aout.  When/if they implement a new
15845   # versioning mechanism, adjust this.
15846   if test -x /usr/bin/objformat; then
15847     objformat=`/usr/bin/objformat`
15848   else
15849     case $host_os in
15850     freebsd[23].*) objformat=aout ;;
15851     *) objformat=elf ;;
15852     esac
15853   fi
15854   version_type=freebsd-$objformat
15855   case $version_type in
15856     freebsd-elf*)
15857       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15858       need_version=no
15859       need_lib_prefix=no
15860       ;;
15861     freebsd-*)
15862       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15863       need_version=yes
15864       ;;
15865   esac
15866   shlibpath_var=LD_LIBRARY_PATH
15867   case $host_os in
15868   freebsd2.*)
15869     shlibpath_overrides_runpath=yes
15870     ;;
15871   freebsd3.[01]* | freebsdelf3.[01]*)
15872     shlibpath_overrides_runpath=yes
15873     hardcode_into_libs=yes
15874     ;;
15875   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15876   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15877     shlibpath_overrides_runpath=no
15878     hardcode_into_libs=yes
15879     ;;
15880   *) # from 4.6 on, and DragonFly
15881     shlibpath_overrides_runpath=yes
15882     hardcode_into_libs=yes
15883     ;;
15884   esac
15885   ;;
15886
15887 haiku*)
15888   version_type=linux # correct to gnu/linux during the next big refactor
15889   need_lib_prefix=no
15890   need_version=no
15891   dynamic_linker="$host_os runtime_loader"
15892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15893   soname_spec='${libname}${release}${shared_ext}$major'
15894   shlibpath_var=LIBRARY_PATH
15895   shlibpath_overrides_runpath=yes
15896   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15897   hardcode_into_libs=yes
15898   ;;
15899
15900 hpux9* | hpux10* | hpux11*)
15901   # Give a soname corresponding to the major version so that dld.sl refuses to
15902   # link against other versions.
15903   version_type=sunos
15904   need_lib_prefix=no
15905   need_version=no
15906   case $host_cpu in
15907   ia64*)
15908     shrext_cmds='.so'
15909     hardcode_into_libs=yes
15910     dynamic_linker="$host_os dld.so"
15911     shlibpath_var=LD_LIBRARY_PATH
15912     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914     soname_spec='${libname}${release}${shared_ext}$major'
15915     if test "X$HPUX_IA64_MODE" = X32; then
15916       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15917     else
15918       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15919     fi
15920     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15921     ;;
15922   hppa*64*)
15923     shrext_cmds='.sl'
15924     hardcode_into_libs=yes
15925     dynamic_linker="$host_os dld.sl"
15926     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15927     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929     soname_spec='${libname}${release}${shared_ext}$major'
15930     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15931     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15932     ;;
15933   *)
15934     shrext_cmds='.sl'
15935     dynamic_linker="$host_os dld.sl"
15936     shlibpath_var=SHLIB_PATH
15937     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939     soname_spec='${libname}${release}${shared_ext}$major'
15940     ;;
15941   esac
15942   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15943   postinstall_cmds='chmod 555 $lib'
15944   # or fails outright, so override atomically:
15945   install_override_mode=555
15946   ;;
15947
15948 interix[3-9]*)
15949   version_type=linux # correct to gnu/linux during the next big refactor
15950   need_lib_prefix=no
15951   need_version=no
15952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15955   shlibpath_var=LD_LIBRARY_PATH
15956   shlibpath_overrides_runpath=no
15957   hardcode_into_libs=yes
15958   ;;
15959
15960 irix5* | irix6* | nonstopux*)
15961   case $host_os in
15962     nonstopux*) version_type=nonstopux ;;
15963     *)
15964         if test "$lt_cv_prog_gnu_ld" = yes; then
15965                 version_type=linux # correct to gnu/linux during the next big refactor
15966         else
15967                 version_type=irix
15968         fi ;;
15969   esac
15970   need_lib_prefix=no
15971   need_version=no
15972   soname_spec='${libname}${release}${shared_ext}$major'
15973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15974   case $host_os in
15975   irix5* | nonstopux*)
15976     libsuff= shlibsuff=
15977     ;;
15978   *)
15979     case $LD in # libtool.m4 will add one of these switches to LD
15980     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15981       libsuff= shlibsuff= libmagic=32-bit;;
15982     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15983       libsuff=32 shlibsuff=N32 libmagic=N32;;
15984     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15985       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15986     *) libsuff= shlibsuff= libmagic=never-match;;
15987     esac
15988     ;;
15989   esac
15990   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15991   shlibpath_overrides_runpath=no
15992   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15993   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15994   hardcode_into_libs=yes
15995   ;;
15996
15997 # No shared lib support for Linux oldld, aout, or coff.
15998 linux*oldld* | linux*aout* | linux*coff*)
15999   dynamic_linker=no
16000   ;;
16001
16002 # This must be glibc/ELF.
16003 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16004   version_type=linux # correct to gnu/linux during the next big refactor
16005   need_lib_prefix=no
16006   need_version=no
16007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008   soname_spec='${libname}${release}${shared_ext}$major'
16009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16010   shlibpath_var=LD_LIBRARY_PATH
16011   shlibpath_overrides_runpath=no
16012
16013   # Some binutils ld are patched to set DT_RUNPATH
16014   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16015   $as_echo_n "(cached) " >&6
16016 else
16017   lt_cv_shlibpath_overrides_runpath=no
16018     save_LDFLAGS=$LDFLAGS
16019     save_libdir=$libdir
16020     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16021          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h.  */
16024
16025 int
16026 main ()
16027 {
16028
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_cxx_try_link "$LINENO"; then :
16034   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16035   lt_cv_shlibpath_overrides_runpath=yes
16036 fi
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext \
16039     conftest$ac_exeext conftest.$ac_ext
16040     LDFLAGS=$save_LDFLAGS
16041     libdir=$save_libdir
16042
16043 fi
16044
16045   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16046
16047   # This implies no fast_install, which is unacceptable.
16048   # Some rework will be needed to allow for fast_install
16049   # before this can be enabled.
16050   hardcode_into_libs=yes
16051
16052   # Append ld.so.conf contents to the search path
16053   if test -f /etc/ld.so.conf; then
16054     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16055     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16056   fi
16057
16058   # We used to test for /lib/ld.so.1 and disable shared libraries on
16059   # powerpc, because MkLinux only supported shared libraries with the
16060   # GNU dynamic linker.  Since this was broken with cross compilers,
16061   # most powerpc-linux boxes support dynamic linking these days and
16062   # people can always --disable-shared, the test was removed, and we
16063   # assume the GNU/Linux dynamic linker is in use.
16064   dynamic_linker='GNU/Linux ld.so'
16065   ;;
16066
16067 netbsdelf*-gnu)
16068   version_type=linux
16069   need_lib_prefix=no
16070   need_version=no
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16072   soname_spec='${libname}${release}${shared_ext}$major'
16073   shlibpath_var=LD_LIBRARY_PATH
16074   shlibpath_overrides_runpath=no
16075   hardcode_into_libs=yes
16076   dynamic_linker='NetBSD ld.elf_so'
16077   ;;
16078
16079 netbsd*)
16080   version_type=sunos
16081   need_lib_prefix=no
16082   need_version=no
16083   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16085     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16086     dynamic_linker='NetBSD (a.out) ld.so'
16087   else
16088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16089     soname_spec='${libname}${release}${shared_ext}$major'
16090     dynamic_linker='NetBSD ld.elf_so'
16091   fi
16092   shlibpath_var=LD_LIBRARY_PATH
16093   shlibpath_overrides_runpath=yes
16094   hardcode_into_libs=yes
16095   ;;
16096
16097 newsos6)
16098   version_type=linux # correct to gnu/linux during the next big refactor
16099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100   shlibpath_var=LD_LIBRARY_PATH
16101   shlibpath_overrides_runpath=yes
16102   ;;
16103
16104 *nto* | *qnx*)
16105   version_type=qnx
16106   need_lib_prefix=no
16107   need_version=no
16108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109   soname_spec='${libname}${release}${shared_ext}$major'
16110   shlibpath_var=LD_LIBRARY_PATH
16111   shlibpath_overrides_runpath=no
16112   hardcode_into_libs=yes
16113   dynamic_linker='ldqnx.so'
16114   ;;
16115
16116 openbsd*)
16117   version_type=sunos
16118   sys_lib_dlsearch_path_spec="/usr/lib"
16119   need_lib_prefix=no
16120   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16121   case $host_os in
16122     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16123     *)                          need_version=no  ;;
16124   esac
16125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16126   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16127   shlibpath_var=LD_LIBRARY_PATH
16128   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16129     case $host_os in
16130       openbsd2.[89] | openbsd2.[89].*)
16131         shlibpath_overrides_runpath=no
16132         ;;
16133       *)
16134         shlibpath_overrides_runpath=yes
16135         ;;
16136       esac
16137   else
16138     shlibpath_overrides_runpath=yes
16139   fi
16140   ;;
16141
16142 os2*)
16143   libname_spec='$name'
16144   shrext_cmds=".dll"
16145   need_lib_prefix=no
16146   library_names_spec='$libname${shared_ext} $libname.a'
16147   dynamic_linker='OS/2 ld.exe'
16148   shlibpath_var=LIBPATH
16149   ;;
16150
16151 osf3* | osf4* | osf5*)
16152   version_type=osf
16153   need_lib_prefix=no
16154   need_version=no
16155   soname_spec='${libname}${release}${shared_ext}$major'
16156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157   shlibpath_var=LD_LIBRARY_PATH
16158   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16159   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16160   ;;
16161
16162 rdos*)
16163   dynamic_linker=no
16164   ;;
16165
16166 solaris*)
16167   version_type=linux # correct to gnu/linux during the next big refactor
16168   need_lib_prefix=no
16169   need_version=no
16170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171   soname_spec='${libname}${release}${shared_ext}$major'
16172   shlibpath_var=LD_LIBRARY_PATH
16173   shlibpath_overrides_runpath=yes
16174   hardcode_into_libs=yes
16175   # ldd complains unless libraries are executable
16176   postinstall_cmds='chmod +x $lib'
16177   ;;
16178
16179 sunos4*)
16180   version_type=sunos
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16182   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   shlibpath_overrides_runpath=yes
16185   if test "$with_gnu_ld" = yes; then
16186     need_lib_prefix=no
16187   fi
16188   need_version=yes
16189   ;;
16190
16191 sysv4 | sysv4.3*)
16192   version_type=linux # correct to gnu/linux during the next big refactor
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194   soname_spec='${libname}${release}${shared_ext}$major'
16195   shlibpath_var=LD_LIBRARY_PATH
16196   case $host_vendor in
16197     sni)
16198       shlibpath_overrides_runpath=no
16199       need_lib_prefix=no
16200       runpath_var=LD_RUN_PATH
16201       ;;
16202     siemens)
16203       need_lib_prefix=no
16204       ;;
16205     motorola)
16206       need_lib_prefix=no
16207       need_version=no
16208       shlibpath_overrides_runpath=no
16209       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16210       ;;
16211   esac
16212   ;;
16213
16214 sysv4*MP*)
16215   if test -d /usr/nec ;then
16216     version_type=linux # correct to gnu/linux during the next big refactor
16217     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218     soname_spec='$libname${shared_ext}.$major'
16219     shlibpath_var=LD_LIBRARY_PATH
16220   fi
16221   ;;
16222
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224   version_type=freebsd-elf
16225   need_lib_prefix=no
16226   need_version=no
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228   soname_spec='${libname}${release}${shared_ext}$major'
16229   shlibpath_var=LD_LIBRARY_PATH
16230   shlibpath_overrides_runpath=yes
16231   hardcode_into_libs=yes
16232   if test "$with_gnu_ld" = yes; then
16233     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16234   else
16235     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236     case $host_os in
16237       sco3.2v5*)
16238         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16239         ;;
16240     esac
16241   fi
16242   sys_lib_dlsearch_path_spec='/usr/lib'
16243   ;;
16244
16245 tpf*)
16246   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16247   version_type=linux # correct to gnu/linux during the next big refactor
16248   need_lib_prefix=no
16249   need_version=no
16250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   shlibpath_overrides_runpath=no
16253   hardcode_into_libs=yes
16254   ;;
16255
16256 uts4*)
16257   version_type=linux # correct to gnu/linux during the next big refactor
16258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259   soname_spec='${libname}${release}${shared_ext}$major'
16260   shlibpath_var=LD_LIBRARY_PATH
16261   ;;
16262
16263 *)
16264   dynamic_linker=no
16265   ;;
16266 esac
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16268 $as_echo "$dynamic_linker" >&6; }
16269 test "$dynamic_linker" = no && can_build_shared=no
16270
16271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16272 if test "$GCC" = yes; then
16273   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16274 fi
16275
16276 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16277   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16278 fi
16279 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16280   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16281 fi
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16321 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16322 hardcode_action_CXX=
16323 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16324    test -n "$runpath_var_CXX" ||
16325    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16326
16327   # We can hardcode non-existent directories.
16328   if test "$hardcode_direct_CXX" != no &&
16329      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16330      # have to relink, otherwise we might link with an installed library
16331      # when we should be linking with a yet-to-be-installed one
16332      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16333      test "$hardcode_minus_L_CXX" != no; then
16334     # Linking always hardcodes the temporary library directory.
16335     hardcode_action_CXX=relink
16336   else
16337     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16338     hardcode_action_CXX=immediate
16339   fi
16340 else
16341   # We cannot hardcode anything, or else we can only hardcode existing
16342   # directories.
16343   hardcode_action_CXX=unsupported
16344 fi
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16346 $as_echo "$hardcode_action_CXX" >&6; }
16347
16348 if test "$hardcode_action_CXX" = relink ||
16349    test "$inherit_rpath_CXX" = yes; then
16350   # Fast installation is not supported
16351   enable_fast_install=no
16352 elif test "$shlibpath_overrides_runpath" = yes ||
16353      test "$enable_shared" = no; then
16354   # Fast installation is not necessary
16355   enable_fast_install=needless
16356 fi
16357
16358
16359
16360
16361
16362
16363
16364   fi # test -n "$compiler"
16365
16366   CC=$lt_save_CC
16367   CFLAGS=$lt_save_CFLAGS
16368   LDCXX=$LD
16369   LD=$lt_save_LD
16370   GCC=$lt_save_GCC
16371   with_gnu_ld=$lt_save_with_gnu_ld
16372   lt_cv_path_LDCXX=$lt_cv_path_LD
16373   lt_cv_path_LD=$lt_save_path_LD
16374   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16375   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16376 fi # test "$_lt_caught_CXX_error" != yes
16377
16378 ac_ext=c
16379 ac_cpp='$CPP $CPPFLAGS'
16380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398         ac_config_commands="$ac_config_commands libtool"
16399
16400
16401
16402
16403 # Only expand once:
16404
16405
16406
16407 LT_DLLOADERS=
16408
16409
16410 ac_ext=c
16411 ac_cpp='$CPP $CPPFLAGS'
16412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16415
16416
16417 LIBADD_DLOPEN=
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16419 $as_echo_n "checking for library containing dlopen... " >&6; }
16420 if ${ac_cv_search_dlopen+:} false; then :
16421   $as_echo_n "(cached) " >&6
16422 else
16423   ac_func_search_save_LIBS=$LIBS
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h.  */
16426
16427 /* Override any GCC internal prototype to avoid an error.
16428    Use char because int might match the return type of a GCC
16429    builtin and then its argument prototype would still apply.  */
16430 #ifdef __cplusplus
16431 extern "C"
16432 #endif
16433 char dlopen ();
16434 int
16435 main ()
16436 {
16437 return dlopen ();
16438   ;
16439   return 0;
16440 }
16441 _ACEOF
16442 for ac_lib in '' dl; do
16443   if test -z "$ac_lib"; then
16444     ac_res="none required"
16445   else
16446     ac_res=-l$ac_lib
16447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16448   fi
16449   if ac_fn_c_try_link "$LINENO"; then :
16450   ac_cv_search_dlopen=$ac_res
16451 fi
16452 rm -f core conftest.err conftest.$ac_objext \
16453     conftest$ac_exeext
16454   if ${ac_cv_search_dlopen+:} false; then :
16455   break
16456 fi
16457 done
16458 if ${ac_cv_search_dlopen+:} false; then :
16459
16460 else
16461   ac_cv_search_dlopen=no
16462 fi
16463 rm conftest.$ac_ext
16464 LIBS=$ac_func_search_save_LIBS
16465 fi
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16467 $as_echo "$ac_cv_search_dlopen" >&6; }
16468 ac_res=$ac_cv_search_dlopen
16469 if test "$ac_res" != no; then :
16470   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16471
16472 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16473
16474         if test "$ac_cv_search_dlopen" != "none required" ; then
16475           LIBADD_DLOPEN="-ldl"
16476         fi
16477         libltdl_cv_lib_dl_dlopen="yes"
16478         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16479 else
16480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h.  */
16482 #if HAVE_DLFCN_H
16483 #  include <dlfcn.h>
16484 #endif
16485
16486 int
16487 main ()
16488 {
16489 dlopen(0, 0);
16490   ;
16491   return 0;
16492 }
16493 _ACEOF
16494 if ac_fn_c_try_link "$LINENO"; then :
16495
16496 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16497
16498             libltdl_cv_func_dlopen="yes"
16499             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16500 else
16501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16502 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16503 if ${ac_cv_lib_svld_dlopen+:} false; then :
16504   $as_echo_n "(cached) " >&6
16505 else
16506   ac_check_lib_save_LIBS=$LIBS
16507 LIBS="-lsvld  $LIBS"
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h.  */
16510
16511 /* Override any GCC internal prototype to avoid an error.
16512    Use char because int might match the return type of a GCC
16513    builtin and then its argument prototype would still apply.  */
16514 #ifdef __cplusplus
16515 extern "C"
16516 #endif
16517 char dlopen ();
16518 int
16519 main ()
16520 {
16521 return dlopen ();
16522   ;
16523   return 0;
16524 }
16525 _ACEOF
16526 if ac_fn_c_try_link "$LINENO"; then :
16527   ac_cv_lib_svld_dlopen=yes
16528 else
16529   ac_cv_lib_svld_dlopen=no
16530 fi
16531 rm -f core conftest.err conftest.$ac_objext \
16532     conftest$ac_exeext conftest.$ac_ext
16533 LIBS=$ac_check_lib_save_LIBS
16534 fi
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16536 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16537 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16538
16539 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16540
16541                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16542                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16543 fi
16544
16545 fi
16546 rm -f core conftest.err conftest.$ac_objext \
16547     conftest$ac_exeext conftest.$ac_ext
16548 fi
16549
16550 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16551 then
16552   lt_save_LIBS="$LIBS"
16553   LIBS="$LIBS $LIBADD_DLOPEN"
16554   for ac_func in dlerror
16555 do :
16556   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16557 if test "x$ac_cv_func_dlerror" = xyes; then :
16558   cat >>confdefs.h <<_ACEOF
16559 #define HAVE_DLERROR 1
16560 _ACEOF
16561
16562 fi
16563 done
16564
16565   LIBS="$lt_save_LIBS"
16566 fi
16567
16568
16569 LIBADD_SHL_LOAD=
16570 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16571 if test "x$ac_cv_func_shl_load" = xyes; then :
16572
16573 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16574
16575         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16576 else
16577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16578 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16579 if ${ac_cv_lib_dld_shl_load+:} false; then :
16580   $as_echo_n "(cached) " >&6
16581 else
16582   ac_check_lib_save_LIBS=$LIBS
16583 LIBS="-ldld  $LIBS"
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h.  */
16586
16587 /* Override any GCC internal prototype to avoid an error.
16588    Use char because int might match the return type of a GCC
16589    builtin and then its argument prototype would still apply.  */
16590 #ifdef __cplusplus
16591 extern "C"
16592 #endif
16593 char shl_load ();
16594 int
16595 main ()
16596 {
16597 return shl_load ();
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_c_try_link "$LINENO"; then :
16603   ac_cv_lib_dld_shl_load=yes
16604 else
16605   ac_cv_lib_dld_shl_load=no
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext \
16608     conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16610 fi
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16612 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16613 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16614
16615 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16616
16617             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16618             LIBADD_SHL_LOAD="-ldld"
16619 fi
16620
16621 fi
16622
16623
16624
16625 case $host_os in
16626 darwin[1567].*)
16627 # We only want this for pre-Mac OS X 10.4.
16628   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16629 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16630
16631 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16632
16633         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16634 fi
16635
16636   ;;
16637 beos*)
16638   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16639   ;;
16640 cygwin* | mingw* | os2* | pw32*)
16641   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16642 "
16643 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16644   ac_have_decl=1
16645 else
16646   ac_have_decl=0
16647 fi
16648
16649 cat >>confdefs.h <<_ACEOF
16650 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16651 _ACEOF
16652
16653   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16654   ;;
16655 esac
16656
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16658 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16659 if ${ac_cv_lib_dld_dld_link+:} false; then :
16660   $as_echo_n "(cached) " >&6
16661 else
16662   ac_check_lib_save_LIBS=$LIBS
16663 LIBS="-ldld  $LIBS"
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h.  */
16666
16667 /* Override any GCC internal prototype to avoid an error.
16668    Use char because int might match the return type of a GCC
16669    builtin and then its argument prototype would still apply.  */
16670 #ifdef __cplusplus
16671 extern "C"
16672 #endif
16673 char dld_link ();
16674 int
16675 main ()
16676 {
16677 return dld_link ();
16678   ;
16679   return 0;
16680 }
16681 _ACEOF
16682 if ac_fn_c_try_link "$LINENO"; then :
16683   ac_cv_lib_dld_dld_link=yes
16684 else
16685   ac_cv_lib_dld_dld_link=no
16686 fi
16687 rm -f core conftest.err conftest.$ac_objext \
16688     conftest$ac_exeext conftest.$ac_ext
16689 LIBS=$ac_check_lib_save_LIBS
16690 fi
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16692 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16693 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16694
16695 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16696
16697                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16698 fi
16699
16700
16701
16702
16703 LT_DLPREOPEN=
16704 if test -n "$LT_DLLOADERS"
16705 then
16706   for lt_loader in $LT_DLLOADERS; do
16707     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16708   done
16709
16710 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16711
16712 fi
16713
16714
16715 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16716
16717
16718 ac_ext=c
16719 ac_cpp='$CPP $CPPFLAGS'
16720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16723
16724
16725
16726
16727 if test x$use_libtool != xno; then
16728    DEFAULT_OBJECT_TYPE=".lo"
16729    DEFAULT_ARCHIVE_TYPE=".la"
16730    DEFAULT_SHARED_OBJECT_TYPE=".la"
16731    LIBTOOL="\$(LIBTOOL)"
16732    LIBTOOL_INSTALL_TARGET="libtool-install"
16733    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16734    LIBTOOL_CLEAN_TARGET="libtool-clean"
16735    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16736    FD_PLUGIN_DIR="src/plugins/fd"
16737    have_plugins=yes
16738 else
16739    DEFAULT_OBJECT_TYPE=".o"
16740    DEFAULT_ARCHIVE_TYPE=".a"
16741    DEFAULT_SHARED_OBJECT_TYPE=".so"
16742    LIBTOOL="# \$(LIBTOOL)"
16743    LIBTOOL_INSTALL_TARGET=""
16744    LIBTOOL_UNINSTALL_TARGET=""
16745    LIBTOOL_CLEAN_TARGET=""
16746    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16747    FD_PLUGIN_DIR=""
16748    have_plugins=no
16749 fi
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761 # Check whether --enable-includes was given.
16762 if test "${enable_includes+set}" = set; then :
16763   enableval=$enable_includes;
16764        if test x$enableval = xyes; then
16765           install_includes=yes
16766        fi
16767
16768
16769 fi
16770
16771
16772
16773 if test x$use_libtool != xno -a x$install_includes = xyes; then
16774    INCLUDE_INSTALL_TARGET="install-includes"
16775    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16776 else
16777    INCLUDE_INSTALL_TARGET=""
16778    INCLUDE_UNINSTALL_TARGET=""
16779 fi
16780
16781
16782
16783
16784
16785 case $host_os in
16786   *cygwin* ) CYGWIN=yes;;
16787          * ) CYGWIN=no;;
16788 esac
16789
16790 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16791 then
16792
16793
16794 if $TRUEPRG; then
16795   HAVE_SUN_OS_TRUE=
16796   HAVE_SUN_OS_FALSE='#'
16797 else
16798   HAVE_SUN_OS_TRUE='#'
16799   HAVE_SUN_OS_FALSE=
16800 fi
16801         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16802
16803 else
16804
16805
16806 if $FALSEPRG; then
16807   HAVE_SUN_OS_TRUE=
16808   HAVE_SUN_OS_FALSE='#'
16809 else
16810   HAVE_SUN_OS_TRUE='#'
16811   HAVE_SUN_OS_FALSE=
16812 fi
16813 fi
16814
16815 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16816 then
16817
16818
16819 if $TRUEPRG; then
16820   HAVE_HURD_OS_TRUE=
16821   HAVE_HURD_OS_FALSE='#'
16822 else
16823   HAVE_HURD_OS_TRUE='#'
16824   HAVE_HURD_OS_FALSE=
16825 fi
16826         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16827
16828 else
16829
16830
16831 if $FALSEPRG; then
16832   HAVE_HURD_OS_TRUE=
16833   HAVE_HURD_OS_FALSE='#'
16834 else
16835   HAVE_HURD_OS_TRUE='#'
16836   HAVE_HURD_OS_FALSE=
16837 fi
16838 fi
16839
16840 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16841 then
16842
16843
16844 if $TRUEPRG; then
16845   HAVE_OSF1_OS_TRUE=
16846   HAVE_OSF1_OS_FALSE='#'
16847 else
16848   HAVE_OSF1_OS_TRUE='#'
16849   HAVE_OSF1_OS_FALSE=
16850 fi
16851         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16852
16853 else
16854
16855
16856 if $FALSEPRG; then
16857   HAVE_OSF1_OS_TRUE=
16858   HAVE_OSF1_OS_FALSE='#'
16859 else
16860   HAVE_OSF1_OS_TRUE='#'
16861   HAVE_OSF1_OS_FALSE=
16862 fi
16863 fi
16864
16865 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16866 then
16867
16868
16869 if $TRUEPRG; then
16870   HAVE_AIX_OS_TRUE=
16871   HAVE_AIX_OS_FALSE='#'
16872 else
16873   HAVE_AIX_OS_TRUE='#'
16874   HAVE_AIX_OS_FALSE=
16875 fi
16876         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16877
16878 else
16879
16880
16881 if $FALSEPRG; then
16882   HAVE_AIX_OS_TRUE=
16883   HAVE_AIX_OS_FALSE='#'
16884 else
16885   HAVE_AIX_OS_TRUE='#'
16886   HAVE_AIX_OS_FALSE=
16887 fi
16888 fi
16889
16890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16891 then
16892
16893
16894 if $TRUEPRG; then
16895   HAVE_HPUX_OS_TRUE=
16896   HAVE_HPUX_OS_FALSE='#'
16897 else
16898   HAVE_HPUX_OS_TRUE='#'
16899   HAVE_HPUX_OS_FALSE=
16900 fi
16901         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16902
16903 else
16904
16905
16906 if $FALSEPRG; then
16907   HAVE_HPUX_OS_TRUE=
16908   HAVE_HPUX_OS_FALSE='#'
16909 else
16910   HAVE_HPUX_OS_TRUE='#'
16911   HAVE_HPUX_OS_FALSE=
16912 fi
16913 fi
16914
16915 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16916 then
16917
16918
16919 if $TRUEPRG; then
16920   HAVE_LINUX_OS_TRUE=
16921   HAVE_LINUX_OS_FALSE='#'
16922 else
16923   HAVE_LINUX_OS_TRUE='#'
16924   HAVE_LINUX_OS_FALSE=
16925 fi
16926         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16927
16928 else
16929
16930
16931 if $FALSEPRG; then
16932   HAVE_LINUX_OS_TRUE=
16933   HAVE_LINUX_OS_FALSE='#'
16934 else
16935   HAVE_LINUX_OS_TRUE='#'
16936   HAVE_LINUX_OS_FALSE=
16937 fi
16938 fi
16939
16940 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16941 then
16942
16943
16944 if $TRUEPRG; then
16945   HAVE_FREEBSD_OS_TRUE=
16946   HAVE_FREEBSD_OS_FALSE='#'
16947 else
16948   HAVE_FREEBSD_OS_TRUE='#'
16949   HAVE_FREEBSD_OS_FALSE=
16950 fi
16951         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16952
16953 else
16954
16955
16956 if $FALSEPRG; then
16957   HAVE_FREEBSD_OS_TRUE=
16958   HAVE_FREEBSD_OS_FALSE='#'
16959 else
16960   HAVE_FREEBSD_OS_TRUE='#'
16961   HAVE_FREEBSD_OS_FALSE=
16962 fi
16963 fi
16964
16965 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16966 then
16967
16968
16969 if $TRUEPRG; then
16970   HAVE_NETBSD_OS_TRUE=
16971   HAVE_NETBSD_OS_FALSE='#'
16972 else
16973   HAVE_NETBSD_OS_TRUE='#'
16974   HAVE_NETBSD_OS_FALSE=
16975 fi
16976         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16977
16978 else
16979
16980
16981 if $FALSEPRG; then
16982   HAVE_NETBSD_OS_TRUE=
16983   HAVE_NETBSD_OS_FALSE='#'
16984 else
16985   HAVE_NETBSD_OS_TRUE='#'
16986   HAVE_NETBSD_OS_FALSE=
16987 fi
16988 fi
16989
16990 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16991 then
16992
16993
16994 if $TRUEPRG; then
16995   HAVE_OPENBSD_OS_TRUE=
16996   HAVE_OPENBSD_OS_FALSE='#'
16997 else
16998   HAVE_OPENBSD_OS_TRUE='#'
16999   HAVE_OPENBSD_OS_FALSE=
17000 fi
17001         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
17002
17003 else
17004
17005
17006 if $FALSEPRG; then
17007   HAVE_OPENBSD_OS_TRUE=
17008   HAVE_OPENBSD_OS_FALSE='#'
17009 else
17010   HAVE_OPENBSD_OS_TRUE='#'
17011   HAVE_OPENBSD_OS_FALSE=
17012 fi
17013 fi
17014
17015 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17016 then
17017
17018
17019 if $TRUEPRG; then
17020   HAVE_BSDI_OS_TRUE=
17021   HAVE_BSDI_OS_FALSE='#'
17022 else
17023   HAVE_BSDI_OS_TRUE='#'
17024   HAVE_BSDI_OS_FALSE=
17025 fi
17026         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17027
17028 else
17029
17030
17031 if $FALSEPRG; then
17032   HAVE_BSDI_OS_TRUE=
17033   HAVE_BSDI_OS_FALSE='#'
17034 else
17035   HAVE_BSDI_OS_TRUE='#'
17036   HAVE_BSDI_OS_FALSE=
17037 fi
17038 fi
17039
17040 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17041 then
17042
17043
17044 if $TRUEPRG; then
17045   HAVE_SGI_OS_TRUE=
17046   HAVE_SGI_OS_FALSE='#'
17047 else
17048   HAVE_SGI_OS_TRUE='#'
17049   HAVE_SGI_OS_FALSE=
17050 fi
17051         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17052
17053 else
17054
17055
17056 if $FALSEPRG; then
17057   HAVE_SGI_OS_TRUE=
17058   HAVE_SGI_OS_FALSE='#'
17059 else
17060   HAVE_SGI_OS_TRUE='#'
17061   HAVE_SGI_OS_FALSE=
17062 fi
17063 fi
17064
17065 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17066 then
17067
17068
17069 if $TRUEPRG; then
17070   HAVE_IRIX_OS_TRUE=
17071   HAVE_IRIX_OS_FALSE='#'
17072 else
17073   HAVE_IRIX_OS_TRUE='#'
17074   HAVE_IRIX_OS_FALSE=
17075 fi
17076         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17077
17078 else
17079
17080
17081 if $FALSEPRG; then
17082   HAVE_IRIX_OS_TRUE=
17083   HAVE_IRIX_OS_FALSE='#'
17084 else
17085   HAVE_IRIX_OS_TRUE='#'
17086   HAVE_IRIX_OS_FALSE=
17087 fi
17088 fi
17089
17090 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17091 then
17092
17093
17094 if $TRUEPRG; then
17095   HAVE_DARWIN_OS_TRUE=
17096   HAVE_DARWIN_OS_FALSE='#'
17097 else
17098   HAVE_DARWIN_OS_TRUE='#'
17099   HAVE_DARWIN_OS_FALSE=
17100 fi
17101     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17102
17103 else
17104
17105
17106 if $FALSEPRG; then
17107   HAVE_DARWIN_OS_TRUE=
17108   HAVE_DARWIN_OS_FALSE='#'
17109 else
17110   HAVE_DARWIN_OS_TRUE='#'
17111   HAVE_DARWIN_OS_FALSE=
17112 fi
17113 fi
17114
17115 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17116 then
17117
17118
17119 if $TRUEPRG; then
17120   HAVE_KFREEBSD_OS_TRUE=
17121   HAVE_KFREEBSD_OS_FALSE='#'
17122 else
17123   HAVE_KFREEBSD_OS_TRUE='#'
17124   HAVE_KFREEBSD_OS_FALSE=
17125 fi
17126     $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17127
17128 else
17129
17130
17131 if $FALSEPRG; then
17132   HAVE_KFREEBSD_OS_TRUE=
17133   HAVE_KFREEBSD_OS_FALSE='#'
17134 else
17135   HAVE_KFREEBSD_OS_TRUE='#'
17136   HAVE_KFREEBSD_OS_FALSE=
17137 fi
17138 fi
17139
17140
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17142 $as_echo_n "checking for Operating System Distribution... " >&6; }
17143 if test "x$DISTNAME" != "x"
17144 then
17145         echo "distname set to $DISTNAME"
17146 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17147 then
17148         DISTNAME=alpha
17149 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17150 then
17151         DISTNAME=aix
17152 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17153 then
17154         DISTNAME=hpux
17155 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17156 then
17157         DISTNAME=solaris
17158 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17159 then
17160         DISTNAME=hurd
17161 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17162 then
17163         DISTNAME=freebsd
17164 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17165 then
17166         DISTNAME=netbsd
17167 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17168 then
17169         DISTNAME=openbsd
17170 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17171 then
17172         DISTNAME=irix
17173 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17174 then
17175         DISTNAME=bsdi
17176 elif test -f /etc/SuSE-release
17177 then
17178         DISTNAME=suse
17179 elif test -d /etc/SuSEconfig
17180 then
17181         DISTNAME=suse5
17182 elif test -f /etc/mandrake-release
17183 then
17184         DISTNAME=mandrake
17185 elif test -f /etc/whitebox-release
17186 then
17187        DISTNAME=redhat
17188 elif test -f /etc/redhat-release
17189 then
17190         DISTNAME=redhat
17191 elif test -f /etc/gentoo-release
17192 then
17193         DISTNAME=gentoo
17194 elif test -f /etc/debian_version
17195 then
17196         DISTNAME=debian
17197 elif test -f /etc/slackware-version
17198 then
17199         DISTNAME=slackware
17200 elif test x$host_vendor = xapple
17201 then
17202     DISTNAME=osx
17203 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17204 then
17205     DISTNAME=darwin
17206 elif test -f /etc/engarde-version
17207 then
17208         DISTNAME=engarde
17209 elif test -f /etc/arch-release
17210 then
17211         DISTNAME=archlinux
17212 elif test "$CYGWIN" = yes
17213 then
17214         DISTNAME=cygwin
17215         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17216
17217 else
17218         DISTNAME=unknown
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17221 $as_echo "done" >&6; }
17222
17223
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17225 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17226 set x ${MAKE-make}
17227 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17228 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17229   $as_echo_n "(cached) " >&6
17230 else
17231   cat >conftest.make <<\_ACEOF
17232 SHELL = /bin/sh
17233 all:
17234         @echo '@@@%%%=$(MAKE)=@@@%%%'
17235 _ACEOF
17236 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17238   *@@@%%%=?*=@@@%%%*)
17239     eval ac_cv_prog_make_${ac_make}_set=yes;;
17240   *)
17241     eval ac_cv_prog_make_${ac_make}_set=no;;
17242 esac
17243 rm -f conftest.make
17244 fi
17245 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17247 $as_echo "yes" >&6; }
17248   SET_MAKE=
17249 else
17250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17251 $as_echo "no" >&6; }
17252   SET_MAKE="MAKE=${MAKE-make}"
17253 fi
17254
17255
17256
17257         MKINSTALLDIRS=
17258   if test -n "$ac_aux_dir"; then
17259     case "$ac_aux_dir" in
17260       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17261       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17262     esac
17263   fi
17264   if test -z "$MKINSTALLDIRS"; then
17265     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17266   fi
17267
17268
17269
17270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17271 $as_echo_n "checking whether NLS is requested... " >&6; }
17272     # Check whether --enable-nls was given.
17273 if test "${enable_nls+set}" = set; then :
17274   enableval=$enable_nls; USE_NLS=$enableval
17275 else
17276   USE_NLS=yes
17277 fi
17278
17279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17280 $as_echo "$USE_NLS" >&6; }
17281
17282
17283
17284
17285
17286
17287 # Prepare PATH_SEPARATOR.
17288 # The user is always right.
17289 if test "${PATH_SEPARATOR+set}" != set; then
17290   echo "#! /bin/sh" >conf$$.sh
17291   echo  "exit 0"   >>conf$$.sh
17292   chmod +x conf$$.sh
17293   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17294     PATH_SEPARATOR=';'
17295   else
17296     PATH_SEPARATOR=:
17297   fi
17298   rm -f conf$$.sh
17299 fi
17300
17301 # Find out how to test for executable files. Don't use a zero-byte file,
17302 # as systems may use methods other than mode bits to determine executability.
17303 cat >conf$$.file <<_ASEOF
17304 #! /bin/sh
17305 exit 0
17306 _ASEOF
17307 chmod +x conf$$.file
17308 if test -x conf$$.file >/dev/null 2>&1; then
17309   ac_executable_p="test -x"
17310 else
17311   ac_executable_p="test -f"
17312 fi
17313 rm -f conf$$.file
17314
17315 # Extract the first word of "msgfmt", so it can be a program name with args.
17316 set dummy msgfmt; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_path_MSGFMT+:} false; then :
17320   $as_echo_n "(cached) " >&6
17321 else
17322   case "$MSGFMT" in
17323   [\\/]* | ?:[\\/]*)
17324     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17325     ;;
17326   *)
17327     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17328     for ac_dir in $PATH; do
17329       IFS="$ac_save_IFS"
17330       test -z "$ac_dir" && ac_dir=.
17331       for ac_exec_ext in '' $ac_executable_extensions; do
17332         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17333           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17334           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17335      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17336             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17337             break 2
17338           fi
17339         fi
17340       done
17341     done
17342     IFS="$ac_save_IFS"
17343   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17344     ;;
17345 esac
17346 fi
17347 MSGFMT="$ac_cv_path_MSGFMT"
17348 if test "$MSGFMT" != ":"; then
17349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17350 $as_echo "$MSGFMT" >&6; }
17351 else
17352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17354 fi
17355
17356   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17357 set dummy gmsgfmt; ac_word=$2
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17359 $as_echo_n "checking for $ac_word... " >&6; }
17360 if ${ac_cv_path_GMSGFMT+:} false; then :
17361   $as_echo_n "(cached) " >&6
17362 else
17363   case $GMSGFMT in
17364   [\\/]* | ?:[\\/]*)
17365   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17366   ;;
17367   *)
17368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17370 do
17371   IFS=$as_save_IFS
17372   test -z "$as_dir" && as_dir=.
17373     for ac_exec_ext in '' $ac_executable_extensions; do
17374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17375     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17377     break 2
17378   fi
17379 done
17380   done
17381 IFS=$as_save_IFS
17382
17383   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17384   ;;
17385 esac
17386 fi
17387 GMSGFMT=$ac_cv_path_GMSGFMT
17388 if test -n "$GMSGFMT"; then
17389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17390 $as_echo "$GMSGFMT" >&6; }
17391 else
17392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17393 $as_echo "no" >&6; }
17394 fi
17395
17396
17397
17398
17399 # Prepare PATH_SEPARATOR.
17400 # The user is always right.
17401 if test "${PATH_SEPARATOR+set}" != set; then
17402   echo "#! /bin/sh" >conf$$.sh
17403   echo  "exit 0"   >>conf$$.sh
17404   chmod +x conf$$.sh
17405   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17406     PATH_SEPARATOR=';'
17407   else
17408     PATH_SEPARATOR=:
17409   fi
17410   rm -f conf$$.sh
17411 fi
17412
17413 # Find out how to test for executable files. Don't use a zero-byte file,
17414 # as systems may use methods other than mode bits to determine executability.
17415 cat >conf$$.file <<_ASEOF
17416 #! /bin/sh
17417 exit 0
17418 _ASEOF
17419 chmod +x conf$$.file
17420 if test -x conf$$.file >/dev/null 2>&1; then
17421   ac_executable_p="test -x"
17422 else
17423   ac_executable_p="test -f"
17424 fi
17425 rm -f conf$$.file
17426
17427 # Extract the first word of "xgettext", so it can be a program name with args.
17428 set dummy xgettext; ac_word=$2
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17430 $as_echo_n "checking for $ac_word... " >&6; }
17431 if ${ac_cv_path_XGETTEXT+:} false; then :
17432   $as_echo_n "(cached) " >&6
17433 else
17434   case "$XGETTEXT" in
17435   [\\/]* | ?:[\\/]*)
17436     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17437     ;;
17438   *)
17439     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17440     for ac_dir in $PATH; do
17441       IFS="$ac_save_IFS"
17442       test -z "$ac_dir" && ac_dir=.
17443       for ac_exec_ext in '' $ac_executable_extensions; do
17444         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17445           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17446           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17447      (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
17448             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17449             break 2
17450           fi
17451         fi
17452       done
17453     done
17454     IFS="$ac_save_IFS"
17455   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17456     ;;
17457 esac
17458 fi
17459 XGETTEXT="$ac_cv_path_XGETTEXT"
17460 if test "$XGETTEXT" != ":"; then
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17462 $as_echo "$XGETTEXT" >&6; }
17463 else
17464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465 $as_echo "no" >&6; }
17466 fi
17467
17468     rm -f messages.po
17469
17470
17471 # Prepare PATH_SEPARATOR.
17472 # The user is always right.
17473 if test "${PATH_SEPARATOR+set}" != set; then
17474   echo "#! /bin/sh" >conf$$.sh
17475   echo  "exit 0"   >>conf$$.sh
17476   chmod +x conf$$.sh
17477   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17478     PATH_SEPARATOR=';'
17479   else
17480     PATH_SEPARATOR=:
17481   fi
17482   rm -f conf$$.sh
17483 fi
17484
17485 # Find out how to test for executable files. Don't use a zero-byte file,
17486 # as systems may use methods other than mode bits to determine executability.
17487 cat >conf$$.file <<_ASEOF
17488 #! /bin/sh
17489 exit 0
17490 _ASEOF
17491 chmod +x conf$$.file
17492 if test -x conf$$.file >/dev/null 2>&1; then
17493   ac_executable_p="test -x"
17494 else
17495   ac_executable_p="test -f"
17496 fi
17497 rm -f conf$$.file
17498
17499 # Extract the first word of "msgmerge", so it can be a program name with args.
17500 set dummy msgmerge; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17502 $as_echo_n "checking for $ac_word... " >&6; }
17503 if ${ac_cv_path_MSGMERGE+:} false; then :
17504   $as_echo_n "(cached) " >&6
17505 else
17506   case "$MSGMERGE" in
17507   [\\/]* | ?:[\\/]*)
17508     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17509     ;;
17510   *)
17511     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17512     for ac_dir in $PATH; do
17513       IFS="$ac_save_IFS"
17514       test -z "$ac_dir" && ac_dir=.
17515       for ac_exec_ext in '' $ac_executable_extensions; do
17516         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17517           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17518           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17519             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17520             break 2
17521           fi
17522         fi
17523       done
17524     done
17525     IFS="$ac_save_IFS"
17526   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17527     ;;
17528 esac
17529 fi
17530 MSGMERGE="$ac_cv_path_MSGMERGE"
17531 if test "$MSGMERGE" != ":"; then
17532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17533 $as_echo "$MSGMERGE" >&6; }
17534 else
17535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536 $as_echo "no" >&6; }
17537 fi
17538
17539
17540       if test "$GMSGFMT" != ":"; then
17541             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17542        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17543       : ;
17544     else
17545       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17547 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17548       GMSGFMT=":"
17549     fi
17550   fi
17551
17552       if test "$XGETTEXT" != ":"; then
17553             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17554        (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
17555       : ;
17556     else
17557       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17558 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17559       XGETTEXT=":"
17560     fi
17561         rm -f messages.po
17562   fi
17563
17564   ac_config_commands="$ac_config_commands default-1"
17565
17566
17567
17568       if test "X$prefix" = "XNONE"; then
17569     acl_final_prefix="$ac_default_prefix"
17570   else
17571     acl_final_prefix="$prefix"
17572   fi
17573   if test "X$exec_prefix" = "XNONE"; then
17574     acl_final_exec_prefix='${prefix}'
17575   else
17576     acl_final_exec_prefix="$exec_prefix"
17577   fi
17578   acl_save_prefix="$prefix"
17579   prefix="$acl_final_prefix"
17580   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17581   prefix="$acl_save_prefix"
17582
17583
17584 # Check whether --with-gnu-ld was given.
17585 if test "${with_gnu_ld+set}" = set; then :
17586   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17587 else
17588   with_gnu_ld=no
17589 fi
17590
17591 # Prepare PATH_SEPARATOR.
17592 # The user is always right.
17593 if test "${PATH_SEPARATOR+set}" != set; then
17594   echo "#! /bin/sh" >conf$$.sh
17595   echo  "exit 0"   >>conf$$.sh
17596   chmod +x conf$$.sh
17597   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17598     PATH_SEPARATOR=';'
17599   else
17600     PATH_SEPARATOR=:
17601   fi
17602   rm -f conf$$.sh
17603 fi
17604 ac_prog=ld
17605 if test "$GCC" = yes; then
17606   # Check if gcc -print-prog-name=ld gives a path.
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17608 $as_echo_n "checking for ld used by GCC... " >&6; }
17609   case $host in
17610   *-*-mingw*)
17611     # gcc leaves a trailing carriage return which upsets mingw
17612     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17613   *)
17614     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17615   esac
17616   case $ac_prog in
17617     # Accept absolute paths.
17618     [\\/]* | [A-Za-z]:[\\/]*)
17619       re_direlt='/[^/][^/]*/\.\./'
17620       # Canonicalize the path of ld
17621       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17622       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17623         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17624       done
17625       test -z "$LD" && LD="$ac_prog"
17626       ;;
17627   "")
17628     # If it fails, then pretend we aren't using GCC.
17629     ac_prog=ld
17630     ;;
17631   *)
17632     # If it is relative, then search for the first ld in PATH.
17633     with_gnu_ld=unknown
17634     ;;
17635   esac
17636 elif test "$with_gnu_ld" = yes; then
17637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17638 $as_echo_n "checking for GNU ld... " >&6; }
17639 else
17640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17641 $as_echo_n "checking for non-GNU ld... " >&6; }
17642 fi
17643 if ${acl_cv_path_LD+:} false; then :
17644   $as_echo_n "(cached) " >&6
17645 else
17646   if test -z "$LD"; then
17647   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17648   for ac_dir in $PATH; do
17649     test -z "$ac_dir" && ac_dir=.
17650     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17651       acl_cv_path_LD="$ac_dir/$ac_prog"
17652       # Check to see if the program is GNU ld.  I'd rather use --version,
17653       # but apparently some GNU ld's only accept -v.
17654       # Break only if it was the GNU/non-GNU ld that we prefer.
17655       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17656       *GNU* | *'with BFD'*)
17657         test "$with_gnu_ld" != no && break ;;
17658       *)
17659         test "$with_gnu_ld" != yes && break ;;
17660       esac
17661     fi
17662   done
17663   IFS="$ac_save_ifs"
17664 else
17665   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17666 fi
17667 fi
17668
17669 LD="$acl_cv_path_LD"
17670 if test -n "$LD"; then
17671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17672 $as_echo "$LD" >&6; }
17673 else
17674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17675 $as_echo "no" >&6; }
17676 fi
17677 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17680 if ${acl_cv_prog_gnu_ld+:} false; then :
17681   $as_echo_n "(cached) " >&6
17682 else
17683   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17684 case `$LD -v 2>&1 </dev/null` in
17685 *GNU* | *'with BFD'*)
17686   acl_cv_prog_gnu_ld=yes ;;
17687 *)
17688   acl_cv_prog_gnu_ld=no ;;
17689 esac
17690 fi
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17692 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17693 with_gnu_ld=$acl_cv_prog_gnu_ld
17694
17695
17696
17697
17698                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17699 $as_echo_n "checking for shared library run path origin... " >&6; }
17700 if ${acl_cv_rpath+:} false; then :
17701   $as_echo_n "(cached) " >&6
17702 else
17703
17704     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17705     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17706     . ./conftest.sh
17707     rm -f ./conftest.sh
17708     acl_cv_rpath=done
17709
17710 fi
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17712 $as_echo "$acl_cv_rpath" >&6; }
17713   wl="$acl_cv_wl"
17714   libext="$acl_cv_libext"
17715   shlibext="$acl_cv_shlibext"
17716   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17717   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17718   hardcode_direct="$acl_cv_hardcode_direct"
17719   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17720     # Check whether --enable-rpath was given.
17721 if test "${enable_rpath+set}" = set; then :
17722   enableval=$enable_rpath; :
17723 else
17724   enable_rpath=yes
17725 fi
17726
17727
17728
17729
17730
17731
17732
17733
17734     use_additional=yes
17735
17736   acl_save_prefix="$prefix"
17737   prefix="$acl_final_prefix"
17738   acl_save_exec_prefix="$exec_prefix"
17739   exec_prefix="$acl_final_exec_prefix"
17740
17741     eval additional_includedir=\"$includedir\"
17742     eval additional_libdir=\"$libdir\"
17743
17744   exec_prefix="$acl_save_exec_prefix"
17745   prefix="$acl_save_prefix"
17746
17747
17748 # Check whether --with-libiconv-prefix was given.
17749 if test "${with_libiconv_prefix+set}" = set; then :
17750   withval=$with_libiconv_prefix;
17751     if test "X$withval" = "Xno"; then
17752       use_additional=no
17753     else
17754       if test "X$withval" = "X"; then
17755
17756   acl_save_prefix="$prefix"
17757   prefix="$acl_final_prefix"
17758   acl_save_exec_prefix="$exec_prefix"
17759   exec_prefix="$acl_final_exec_prefix"
17760
17761           eval additional_includedir=\"$includedir\"
17762           eval additional_libdir=\"$libdir\"
17763
17764   exec_prefix="$acl_save_exec_prefix"
17765   prefix="$acl_save_prefix"
17766
17767       else
17768         additional_includedir="$withval/include"
17769         additional_libdir="$withval/lib"
17770       fi
17771     fi
17772
17773 fi
17774
17775       LIBICONV=
17776   LTLIBICONV=
17777   INCICONV=
17778   rpathdirs=
17779   ltrpathdirs=
17780   names_already_handled=
17781   names_next_round='iconv '
17782   while test -n "$names_next_round"; do
17783     names_this_round="$names_next_round"
17784     names_next_round=
17785     for name in $names_this_round; do
17786       already_handled=
17787       for n in $names_already_handled; do
17788         if test "$n" = "$name"; then
17789           already_handled=yes
17790           break
17791         fi
17792       done
17793       if test -z "$already_handled"; then
17794         names_already_handled="$names_already_handled $name"
17795                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17796         eval value=\"\$HAVE_LIB$uppername\"
17797         if test -n "$value"; then
17798           if test "$value" = yes; then
17799             eval value=\"\$LIB$uppername\"
17800             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17801             eval value=\"\$LTLIB$uppername\"
17802             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17803           else
17804                                     :
17805           fi
17806         else
17807                               found_dir=
17808           found_la=
17809           found_so=
17810           found_a=
17811           if test $use_additional = yes; then
17812             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17813               found_dir="$additional_libdir"
17814               found_so="$additional_libdir/lib$name.$shlibext"
17815               if test -f "$additional_libdir/lib$name.la"; then
17816                 found_la="$additional_libdir/lib$name.la"
17817               fi
17818             else
17819               if test -f "$additional_libdir/lib$name.$libext"; then
17820                 found_dir="$additional_libdir"
17821                 found_a="$additional_libdir/lib$name.$libext"
17822                 if test -f "$additional_libdir/lib$name.la"; then
17823                   found_la="$additional_libdir/lib$name.la"
17824                 fi
17825               fi
17826             fi
17827           fi
17828           if test "X$found_dir" = "X"; then
17829             for x in $LDFLAGS $LTLIBICONV; do
17830
17831   acl_save_prefix="$prefix"
17832   prefix="$acl_final_prefix"
17833   acl_save_exec_prefix="$exec_prefix"
17834   exec_prefix="$acl_final_exec_prefix"
17835   eval x=\"$x\"
17836   exec_prefix="$acl_save_exec_prefix"
17837   prefix="$acl_save_prefix"
17838
17839               case "$x" in
17840                 -L*)
17841                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17842                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17843                     found_dir="$dir"
17844                     found_so="$dir/lib$name.$shlibext"
17845                     if test -f "$dir/lib$name.la"; then
17846                       found_la="$dir/lib$name.la"
17847                     fi
17848                   else
17849                     if test -f "$dir/lib$name.$libext"; then
17850                       found_dir="$dir"
17851                       found_a="$dir/lib$name.$libext"
17852                       if test -f "$dir/lib$name.la"; then
17853                         found_la="$dir/lib$name.la"
17854                       fi
17855                     fi
17856                   fi
17857                   ;;
17858               esac
17859               if test "X$found_dir" != "X"; then
17860                 break
17861               fi
17862             done
17863           fi
17864           if test "X$found_dir" != "X"; then
17865                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17866             if test "X$found_so" != "X"; then
17867                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17868                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17869               else
17870                                                                                 haveit=
17871                 for x in $ltrpathdirs; do
17872                   if test "X$x" = "X$found_dir"; then
17873                     haveit=yes
17874                     break
17875                   fi
17876                 done
17877                 if test -z "$haveit"; then
17878                   ltrpathdirs="$ltrpathdirs $found_dir"
17879                 fi
17880                                 if test "$hardcode_direct" = yes; then
17881                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17882                 else
17883                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17884                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17885                                                             haveit=
17886                     for x in $rpathdirs; do
17887                       if test "X$x" = "X$found_dir"; then
17888                         haveit=yes
17889                         break
17890                       fi
17891                     done
17892                     if test -z "$haveit"; then
17893                       rpathdirs="$rpathdirs $found_dir"
17894                     fi
17895                   else
17896                                                                                 haveit=
17897                     for x in $LDFLAGS $LIBICONV; do
17898
17899   acl_save_prefix="$prefix"
17900   prefix="$acl_final_prefix"
17901   acl_save_exec_prefix="$exec_prefix"
17902   exec_prefix="$acl_final_exec_prefix"
17903   eval x=\"$x\"
17904   exec_prefix="$acl_save_exec_prefix"
17905   prefix="$acl_save_prefix"
17906
17907                       if test "X$x" = "X-L$found_dir"; then
17908                         haveit=yes
17909                         break
17910                       fi
17911                     done
17912                     if test -z "$haveit"; then
17913                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17914                     fi
17915                     if test "$hardcode_minus_L" != no; then
17916                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17917                     else
17918                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17919                     fi
17920                   fi
17921                 fi
17922               fi
17923             else
17924               if test "X$found_a" != "X"; then
17925                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17926               else
17927                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17928               fi
17929             fi
17930                         additional_includedir=
17931             case "$found_dir" in
17932               */lib | */lib/)
17933                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17934                 additional_includedir="$basedir/include"
17935                 ;;
17936             esac
17937             if test "X$additional_includedir" != "X"; then
17938                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17939                 haveit=
17940                 if test "X$additional_includedir" = "X/usr/local/include"; then
17941                   if test -n "$GCC"; then
17942                     case $host_os in
17943                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17944                     esac
17945                   fi
17946                 fi
17947                 if test -z "$haveit"; then
17948                   for x in $CPPFLAGS $INCICONV; do
17949
17950   acl_save_prefix="$prefix"
17951   prefix="$acl_final_prefix"
17952   acl_save_exec_prefix="$exec_prefix"
17953   exec_prefix="$acl_final_exec_prefix"
17954   eval x=\"$x\"
17955   exec_prefix="$acl_save_exec_prefix"
17956   prefix="$acl_save_prefix"
17957
17958                     if test "X$x" = "X-I$additional_includedir"; then
17959                       haveit=yes
17960                       break
17961                     fi
17962                   done
17963                   if test -z "$haveit"; then
17964                     if test -d "$additional_includedir"; then
17965                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17966                     fi
17967                   fi
17968                 fi
17969               fi
17970             fi
17971                         if test -n "$found_la"; then
17972                                                         save_libdir="$libdir"
17973               case "$found_la" in
17974                 */* | *\\*) . "$found_la" ;;
17975                 *) . "./$found_la" ;;
17976               esac
17977               libdir="$save_libdir"
17978                             for dep in $dependency_libs; do
17979                 case "$dep" in
17980                   -L*)
17981                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17982                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17983                       haveit=
17984                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17985                         if test -n "$GCC"; then
17986                           case $host_os in
17987                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17988                           esac
17989                         fi
17990                       fi
17991                       if test -z "$haveit"; then
17992                         haveit=
17993                         for x in $LDFLAGS $LIBICONV; do
17994
17995   acl_save_prefix="$prefix"
17996   prefix="$acl_final_prefix"
17997   acl_save_exec_prefix="$exec_prefix"
17998   exec_prefix="$acl_final_exec_prefix"
17999   eval x=\"$x\"
18000   exec_prefix="$acl_save_exec_prefix"
18001   prefix="$acl_save_prefix"
18002
18003                           if test "X$x" = "X-L$additional_libdir"; then
18004                             haveit=yes
18005                             break
18006                           fi
18007                         done
18008                         if test -z "$haveit"; then
18009                           if test -d "$additional_libdir"; then
18010                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18011                           fi
18012                         fi
18013                         haveit=
18014                         for x in $LDFLAGS $LTLIBICONV; do
18015
18016   acl_save_prefix="$prefix"
18017   prefix="$acl_final_prefix"
18018   acl_save_exec_prefix="$exec_prefix"
18019   exec_prefix="$acl_final_exec_prefix"
18020   eval x=\"$x\"
18021   exec_prefix="$acl_save_exec_prefix"
18022   prefix="$acl_save_prefix"
18023
18024                           if test "X$x" = "X-L$additional_libdir"; then
18025                             haveit=yes
18026                             break
18027                           fi
18028                         done
18029                         if test -z "$haveit"; then
18030                           if test -d "$additional_libdir"; then
18031                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18032                           fi
18033                         fi
18034                       fi
18035                     fi
18036                     ;;
18037                   -R*)
18038                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18039                     if test "$enable_rpath" != no; then
18040                                                                   haveit=
18041                       for x in $rpathdirs; do
18042                         if test "X$x" = "X$dir"; then
18043                           haveit=yes
18044                           break
18045                         fi
18046                       done
18047                       if test -z "$haveit"; then
18048                         rpathdirs="$rpathdirs $dir"
18049                       fi
18050                                                                   haveit=
18051                       for x in $ltrpathdirs; do
18052                         if test "X$x" = "X$dir"; then
18053                           haveit=yes
18054                           break
18055                         fi
18056                       done
18057                       if test -z "$haveit"; then
18058                         ltrpathdirs="$ltrpathdirs $dir"
18059                       fi
18060                     fi
18061                     ;;
18062                   -l*)
18063                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18064                     ;;
18065                   *.la)
18066                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18067                     ;;
18068                   *)
18069                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18070                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18071                     ;;
18072                 esac
18073               done
18074             fi
18075           else
18076                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18077             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18078           fi
18079         fi
18080       fi
18081     done
18082   done
18083   if test "X$rpathdirs" != "X"; then
18084     if test -n "$hardcode_libdir_separator"; then
18085                         alldirs=
18086       for found_dir in $rpathdirs; do
18087         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18088       done
18089             acl_save_libdir="$libdir"
18090       libdir="$alldirs"
18091       eval flag=\"$hardcode_libdir_flag_spec\"
18092       libdir="$acl_save_libdir"
18093       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18094     else
18095             for found_dir in $rpathdirs; do
18096         acl_save_libdir="$libdir"
18097         libdir="$found_dir"
18098         eval flag=\"$hardcode_libdir_flag_spec\"
18099         libdir="$acl_save_libdir"
18100         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18101       done
18102     fi
18103   fi
18104   if test "X$ltrpathdirs" != "X"; then
18105             for found_dir in $ltrpathdirs; do
18106       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18107     done
18108   fi
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18128 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18129 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18130   $as_echo_n "(cached) " >&6
18131 else
18132   gt_save_CPPFLAGS="$CPPFLAGS"
18133      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18134      gt_save_LIBS="$LIBS"
18135      LIBS="$LIBS -framework CoreFoundation"
18136      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h.  */
18138 #include <CFPreferences.h>
18139 int
18140 main ()
18141 {
18142 CFPreferencesCopyAppValue(NULL, NULL)
18143   ;
18144   return 0;
18145 }
18146 _ACEOF
18147 if ac_fn_c_try_link "$LINENO"; then :
18148   gt_cv_func_CFPreferencesCopyAppValue=yes
18149 else
18150   gt_cv_func_CFPreferencesCopyAppValue=no
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext \
18153     conftest$ac_exeext conftest.$ac_ext
18154      CPPFLAGS="$gt_save_CPPFLAGS"
18155      LIBS="$gt_save_LIBS"
18156 fi
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18158 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18159   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18160
18161 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18162
18163   fi
18164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18165 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18166 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18167   $as_echo_n "(cached) " >&6
18168 else
18169   gt_save_CPPFLAGS="$CPPFLAGS"
18170      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18171      gt_save_LIBS="$LIBS"
18172      LIBS="$LIBS -framework CoreFoundation"
18173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h.  */
18175 #include <CFLocale.h>
18176 int
18177 main ()
18178 {
18179 CFLocaleCopyCurrent();
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 if ac_fn_c_try_link "$LINENO"; then :
18185   gt_cv_func_CFLocaleCopyCurrent=yes
18186 else
18187   gt_cv_func_CFLocaleCopyCurrent=no
18188 fi
18189 rm -f core conftest.err conftest.$ac_objext \
18190     conftest$ac_exeext conftest.$ac_ext
18191      CPPFLAGS="$gt_save_CPPFLAGS"
18192      LIBS="$gt_save_LIBS"
18193 fi
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18195 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18196   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18197
18198 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18199
18200   fi
18201   INTL_MACOSX_LIBS=
18202   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18203     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18204   fi
18205
18206
18207
18208
18209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18210 $as_echo_n "checking whether NLS is requested... " >&6; }
18211     # Check whether --enable-nls was given.
18212 if test "${enable_nls+set}" = set; then :
18213   enableval=$enable_nls; USE_NLS=$enableval
18214 else
18215   USE_NLS=yes
18216 fi
18217
18218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18219 $as_echo "$USE_NLS" >&6; }
18220
18221
18222
18223
18224   LIBINTL=
18225   LTLIBINTL=
18226   POSUB=
18227
18228     if test "$USE_NLS" = "yes"; then
18229     gt_use_preinstalled_gnugettext=no
18230
18231
18232
18233
18234
18235
18236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18237 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18238 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18239   $as_echo_n "(cached) " >&6
18240 else
18241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h.  */
18243 #include <libintl.h>
18244 extern int _nl_msg_cat_cntr;
18245 extern int *_nl_domain_bindings;
18246 int
18247 main ()
18248 {
18249 bindtextdomain ("", "");
18250 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18251   ;
18252   return 0;
18253 }
18254 _ACEOF
18255 if ac_fn_c_try_link "$LINENO"; then :
18256   gt_cv_func_gnugettext1_libc=yes
18257 else
18258   gt_cv_func_gnugettext1_libc=no
18259 fi
18260 rm -f core conftest.err conftest.$ac_objext \
18261     conftest$ac_exeext conftest.$ac_ext
18262 fi
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18264 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18265
18266         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18267
18268
18269
18270
18271
18272           am_save_CPPFLAGS="$CPPFLAGS"
18273
18274   for element in $INCICONV; do
18275     haveit=
18276     for x in $CPPFLAGS; do
18277
18278   acl_save_prefix="$prefix"
18279   prefix="$acl_final_prefix"
18280   acl_save_exec_prefix="$exec_prefix"
18281   exec_prefix="$acl_final_exec_prefix"
18282   eval x=\"$x\"
18283   exec_prefix="$acl_save_exec_prefix"
18284   prefix="$acl_save_prefix"
18285
18286       if test "X$x" = "X$element"; then
18287         haveit=yes
18288         break
18289       fi
18290     done
18291     if test -z "$haveit"; then
18292       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18293     fi
18294   done
18295
18296
18297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18298 $as_echo_n "checking for iconv... " >&6; }
18299 if ${am_cv_func_iconv+:} false; then :
18300   $as_echo_n "(cached) " >&6
18301 else
18302
18303     am_cv_func_iconv="no, consider installing GNU libiconv"
18304     am_cv_lib_iconv=no
18305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h.  */
18307 #include <stdlib.h>
18308 #include <iconv.h>
18309 int
18310 main ()
18311 {
18312 iconv_t cd = iconv_open("","");
18313        iconv(cd,NULL,NULL,NULL,NULL);
18314        iconv_close(cd);
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 if ac_fn_c_try_link "$LINENO"; then :
18320   am_cv_func_iconv=yes
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext \
18323     conftest$ac_exeext conftest.$ac_ext
18324     if test "$am_cv_func_iconv" != yes; then
18325       am_save_LIBS="$LIBS"
18326       LIBS="$LIBS $LIBICONV"
18327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h.  */
18329 #include <stdlib.h>
18330 #include <iconv.h>
18331 int
18332 main ()
18333 {
18334 iconv_t cd = iconv_open("","");
18335          iconv(cd,NULL,NULL,NULL,NULL);
18336          iconv_close(cd);
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 if ac_fn_c_try_link "$LINENO"; then :
18342   am_cv_lib_iconv=yes
18343         am_cv_func_iconv=yes
18344 fi
18345 rm -f core conftest.err conftest.$ac_objext \
18346     conftest$ac_exeext conftest.$ac_ext
18347       LIBS="$am_save_LIBS"
18348     fi
18349
18350 fi
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18352 $as_echo "$am_cv_func_iconv" >&6; }
18353   if test "$am_cv_func_iconv" = yes; then
18354
18355 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18356
18357   fi
18358   if test "$am_cv_lib_iconv" = yes; then
18359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18360 $as_echo_n "checking how to link with libiconv... " >&6; }
18361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18362 $as_echo "$LIBICONV" >&6; }
18363   else
18364             CPPFLAGS="$am_save_CPPFLAGS"
18365     LIBICONV=
18366     LTLIBICONV=
18367   fi
18368
18369
18370
18371
18372
18373
18374     use_additional=yes
18375
18376   acl_save_prefix="$prefix"
18377   prefix="$acl_final_prefix"
18378   acl_save_exec_prefix="$exec_prefix"
18379   exec_prefix="$acl_final_exec_prefix"
18380
18381     eval additional_includedir=\"$includedir\"
18382     eval additional_libdir=\"$libdir\"
18383
18384   exec_prefix="$acl_save_exec_prefix"
18385   prefix="$acl_save_prefix"
18386
18387
18388 # Check whether --with-libintl-prefix was given.
18389 if test "${with_libintl_prefix+set}" = set; then :
18390   withval=$with_libintl_prefix;
18391     if test "X$withval" = "Xno"; then
18392       use_additional=no
18393     else
18394       if test "X$withval" = "X"; then
18395
18396   acl_save_prefix="$prefix"
18397   prefix="$acl_final_prefix"
18398   acl_save_exec_prefix="$exec_prefix"
18399   exec_prefix="$acl_final_exec_prefix"
18400
18401           eval additional_includedir=\"$includedir\"
18402           eval additional_libdir=\"$libdir\"
18403
18404   exec_prefix="$acl_save_exec_prefix"
18405   prefix="$acl_save_prefix"
18406
18407       else
18408         additional_includedir="$withval/include"
18409         additional_libdir="$withval/lib"
18410       fi
18411     fi
18412
18413 fi
18414
18415       LIBINTL=
18416   LTLIBINTL=
18417   INCINTL=
18418   rpathdirs=
18419   ltrpathdirs=
18420   names_already_handled=
18421   names_next_round='intl '
18422   while test -n "$names_next_round"; do
18423     names_this_round="$names_next_round"
18424     names_next_round=
18425     for name in $names_this_round; do
18426       already_handled=
18427       for n in $names_already_handled; do
18428         if test "$n" = "$name"; then
18429           already_handled=yes
18430           break
18431         fi
18432       done
18433       if test -z "$already_handled"; then
18434         names_already_handled="$names_already_handled $name"
18435                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18436         eval value=\"\$HAVE_LIB$uppername\"
18437         if test -n "$value"; then
18438           if test "$value" = yes; then
18439             eval value=\"\$LIB$uppername\"
18440             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18441             eval value=\"\$LTLIB$uppername\"
18442             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18443           else
18444                                     :
18445           fi
18446         else
18447                               found_dir=
18448           found_la=
18449           found_so=
18450           found_a=
18451           if test $use_additional = yes; then
18452             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18453               found_dir="$additional_libdir"
18454               found_so="$additional_libdir/lib$name.$shlibext"
18455               if test -f "$additional_libdir/lib$name.la"; then
18456                 found_la="$additional_libdir/lib$name.la"
18457               fi
18458             else
18459               if test -f "$additional_libdir/lib$name.$libext"; then
18460                 found_dir="$additional_libdir"
18461                 found_a="$additional_libdir/lib$name.$libext"
18462                 if test -f "$additional_libdir/lib$name.la"; then
18463                   found_la="$additional_libdir/lib$name.la"
18464                 fi
18465               fi
18466             fi
18467           fi
18468           if test "X$found_dir" = "X"; then
18469             for x in $LDFLAGS $LTLIBINTL; do
18470
18471   acl_save_prefix="$prefix"
18472   prefix="$acl_final_prefix"
18473   acl_save_exec_prefix="$exec_prefix"
18474   exec_prefix="$acl_final_exec_prefix"
18475   eval x=\"$x\"
18476   exec_prefix="$acl_save_exec_prefix"
18477   prefix="$acl_save_prefix"
18478
18479               case "$x" in
18480                 -L*)
18481                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18482                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18483                     found_dir="$dir"
18484                     found_so="$dir/lib$name.$shlibext"
18485                     if test -f "$dir/lib$name.la"; then
18486                       found_la="$dir/lib$name.la"
18487                     fi
18488                   else
18489                     if test -f "$dir/lib$name.$libext"; then
18490                       found_dir="$dir"
18491                       found_a="$dir/lib$name.$libext"
18492                       if test -f "$dir/lib$name.la"; then
18493                         found_la="$dir/lib$name.la"
18494                       fi
18495                     fi
18496                   fi
18497                   ;;
18498               esac
18499               if test "X$found_dir" != "X"; then
18500                 break
18501               fi
18502             done
18503           fi
18504           if test "X$found_dir" != "X"; then
18505                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18506             if test "X$found_so" != "X"; then
18507                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18508                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18509               else
18510                                                                                 haveit=
18511                 for x in $ltrpathdirs; do
18512                   if test "X$x" = "X$found_dir"; then
18513                     haveit=yes
18514                     break
18515                   fi
18516                 done
18517                 if test -z "$haveit"; then
18518                   ltrpathdirs="$ltrpathdirs $found_dir"
18519                 fi
18520                                 if test "$hardcode_direct" = yes; then
18521                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18522                 else
18523                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18524                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18525                                                             haveit=
18526                     for x in $rpathdirs; do
18527                       if test "X$x" = "X$found_dir"; then
18528                         haveit=yes
18529                         break
18530                       fi
18531                     done
18532                     if test -z "$haveit"; then
18533                       rpathdirs="$rpathdirs $found_dir"
18534                     fi
18535                   else
18536                                                                                 haveit=
18537                     for x in $LDFLAGS $LIBINTL; do
18538
18539   acl_save_prefix="$prefix"
18540   prefix="$acl_final_prefix"
18541   acl_save_exec_prefix="$exec_prefix"
18542   exec_prefix="$acl_final_exec_prefix"
18543   eval x=\"$x\"
18544   exec_prefix="$acl_save_exec_prefix"
18545   prefix="$acl_save_prefix"
18546
18547                       if test "X$x" = "X-L$found_dir"; then
18548                         haveit=yes
18549                         break
18550                       fi
18551                     done
18552                     if test -z "$haveit"; then
18553                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18554                     fi
18555                     if test "$hardcode_minus_L" != no; then
18556                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18557                     else
18558                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18559                     fi
18560                   fi
18561                 fi
18562               fi
18563             else
18564               if test "X$found_a" != "X"; then
18565                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18566               else
18567                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18568               fi
18569             fi
18570                         additional_includedir=
18571             case "$found_dir" in
18572               */lib | */lib/)
18573                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18574                 additional_includedir="$basedir/include"
18575                 ;;
18576             esac
18577             if test "X$additional_includedir" != "X"; then
18578                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18579                 haveit=
18580                 if test "X$additional_includedir" = "X/usr/local/include"; then
18581                   if test -n "$GCC"; then
18582                     case $host_os in
18583                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18584                     esac
18585                   fi
18586                 fi
18587                 if test -z "$haveit"; then
18588                   for x in $CPPFLAGS $INCINTL; do
18589
18590   acl_save_prefix="$prefix"
18591   prefix="$acl_final_prefix"
18592   acl_save_exec_prefix="$exec_prefix"
18593   exec_prefix="$acl_final_exec_prefix"
18594   eval x=\"$x\"
18595   exec_prefix="$acl_save_exec_prefix"
18596   prefix="$acl_save_prefix"
18597
18598                     if test "X$x" = "X-I$additional_includedir"; then
18599                       haveit=yes
18600                       break
18601                     fi
18602                   done
18603                   if test -z "$haveit"; then
18604                     if test -d "$additional_includedir"; then
18605                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18606                     fi
18607                   fi
18608                 fi
18609               fi
18610             fi
18611                         if test -n "$found_la"; then
18612                                                         save_libdir="$libdir"
18613               case "$found_la" in
18614                 */* | *\\*) . "$found_la" ;;
18615                 *) . "./$found_la" ;;
18616               esac
18617               libdir="$save_libdir"
18618                             for dep in $dependency_libs; do
18619                 case "$dep" in
18620                   -L*)
18621                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18622                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18623                       haveit=
18624                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18625                         if test -n "$GCC"; then
18626                           case $host_os in
18627                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18628                           esac
18629                         fi
18630                       fi
18631                       if test -z "$haveit"; then
18632                         haveit=
18633                         for x in $LDFLAGS $LIBINTL; do
18634
18635   acl_save_prefix="$prefix"
18636   prefix="$acl_final_prefix"
18637   acl_save_exec_prefix="$exec_prefix"
18638   exec_prefix="$acl_final_exec_prefix"
18639   eval x=\"$x\"
18640   exec_prefix="$acl_save_exec_prefix"
18641   prefix="$acl_save_prefix"
18642
18643                           if test "X$x" = "X-L$additional_libdir"; then
18644                             haveit=yes
18645                             break
18646                           fi
18647                         done
18648                         if test -z "$haveit"; then
18649                           if test -d "$additional_libdir"; then
18650                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18651                           fi
18652                         fi
18653                         haveit=
18654                         for x in $LDFLAGS $LTLIBINTL; do
18655
18656   acl_save_prefix="$prefix"
18657   prefix="$acl_final_prefix"
18658   acl_save_exec_prefix="$exec_prefix"
18659   exec_prefix="$acl_final_exec_prefix"
18660   eval x=\"$x\"
18661   exec_prefix="$acl_save_exec_prefix"
18662   prefix="$acl_save_prefix"
18663
18664                           if test "X$x" = "X-L$additional_libdir"; then
18665                             haveit=yes
18666                             break
18667                           fi
18668                         done
18669                         if test -z "$haveit"; then
18670                           if test -d "$additional_libdir"; then
18671                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18672                           fi
18673                         fi
18674                       fi
18675                     fi
18676                     ;;
18677                   -R*)
18678                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18679                     if test "$enable_rpath" != no; then
18680                                                                   haveit=
18681                       for x in $rpathdirs; do
18682                         if test "X$x" = "X$dir"; then
18683                           haveit=yes
18684                           break
18685                         fi
18686                       done
18687                       if test -z "$haveit"; then
18688                         rpathdirs="$rpathdirs $dir"
18689                       fi
18690                                                                   haveit=
18691                       for x in $ltrpathdirs; do
18692                         if test "X$x" = "X$dir"; then
18693                           haveit=yes
18694                           break
18695                         fi
18696                       done
18697                       if test -z "$haveit"; then
18698                         ltrpathdirs="$ltrpathdirs $dir"
18699                       fi
18700                     fi
18701                     ;;
18702                   -l*)
18703                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18704                     ;;
18705                   *.la)
18706                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18707                     ;;
18708                   *)
18709                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18710                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18711                     ;;
18712                 esac
18713               done
18714             fi
18715           else
18716                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18717             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18718           fi
18719         fi
18720       fi
18721     done
18722   done
18723   if test "X$rpathdirs" != "X"; then
18724     if test -n "$hardcode_libdir_separator"; then
18725                         alldirs=
18726       for found_dir in $rpathdirs; do
18727         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18728       done
18729             acl_save_libdir="$libdir"
18730       libdir="$alldirs"
18731       eval flag=\"$hardcode_libdir_flag_spec\"
18732       libdir="$acl_save_libdir"
18733       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18734     else
18735             for found_dir in $rpathdirs; do
18736         acl_save_libdir="$libdir"
18737         libdir="$found_dir"
18738         eval flag=\"$hardcode_libdir_flag_spec\"
18739         libdir="$acl_save_libdir"
18740         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18741       done
18742     fi
18743   fi
18744   if test "X$ltrpathdirs" != "X"; then
18745             for found_dir in $ltrpathdirs; do
18746       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18747     done
18748   fi
18749
18750           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18751 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18752 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18753   $as_echo_n "(cached) " >&6
18754 else
18755   gt_save_CPPFLAGS="$CPPFLAGS"
18756             CPPFLAGS="$CPPFLAGS $INCINTL"
18757             gt_save_LIBS="$LIBS"
18758             LIBS="$LIBS $LIBINTL"
18759                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h.  */
18761 #include <libintl.h>
18762 extern int _nl_msg_cat_cntr;
18763 extern
18764 #ifdef __cplusplus
18765 "C"
18766 #endif
18767 const char *_nl_expand_alias (const char *);
18768 int
18769 main ()
18770 {
18771 bindtextdomain ("", "");
18772 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 if ac_fn_c_try_link "$LINENO"; then :
18778   gt_cv_func_gnugettext1_libintl=yes
18779 else
18780   gt_cv_func_gnugettext1_libintl=no
18781 fi
18782 rm -f core conftest.err conftest.$ac_objext \
18783     conftest$ac_exeext conftest.$ac_ext
18784                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18785               LIBS="$LIBS $LIBICONV"
18786               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h.  */
18788 #include <libintl.h>
18789 extern int _nl_msg_cat_cntr;
18790 extern
18791 #ifdef __cplusplus
18792 "C"
18793 #endif
18794 const char *_nl_expand_alias (const char *);
18795 int
18796 main ()
18797 {
18798 bindtextdomain ("", "");
18799 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18800   ;
18801   return 0;
18802 }
18803 _ACEOF
18804 if ac_fn_c_try_link "$LINENO"; then :
18805   LIBINTL="$LIBINTL $LIBICONV"
18806                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18807                 gt_cv_func_gnugettext1_libintl=yes
18808
18809 fi
18810 rm -f core conftest.err conftest.$ac_objext \
18811     conftest$ac_exeext conftest.$ac_ext
18812             fi
18813             CPPFLAGS="$gt_save_CPPFLAGS"
18814             LIBS="$gt_save_LIBS"
18815 fi
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18817 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18818         fi
18819
18820                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18821            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18822                 && test "$PACKAGE" != gettext-runtime \
18823                 && test "$PACKAGE" != gettext-tools; }; then
18824           gt_use_preinstalled_gnugettext=yes
18825         else
18826                     LIBINTL=
18827           LTLIBINTL=
18828           INCINTL=
18829         fi
18830
18831
18832
18833     if test -n "$INTL_MACOSX_LIBS"; then
18834       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18835          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18836                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18837         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18838       fi
18839     fi
18840
18841     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18842        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18843
18844 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18845
18846     else
18847       USE_NLS=no
18848     fi
18849   fi
18850
18851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18852 $as_echo_n "checking whether to use NLS... " >&6; }
18853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18854 $as_echo "$USE_NLS" >&6; }
18855   if test "$USE_NLS" = "yes"; then
18856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18857 $as_echo_n "checking where the gettext function comes from... " >&6; }
18858     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18859       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18860         gt_source="external libintl"
18861       else
18862         gt_source="libc"
18863       fi
18864     else
18865       gt_source="included intl directory"
18866     fi
18867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18868 $as_echo "$gt_source" >&6; }
18869   fi
18870
18871   if test "$USE_NLS" = "yes"; then
18872
18873     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18874       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18875         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18876 $as_echo_n "checking how to link with libintl... " >&6; }
18877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18878 $as_echo "$LIBINTL" >&6; }
18879
18880   for element in $INCINTL; do
18881     haveit=
18882     for x in $CPPFLAGS; do
18883
18884   acl_save_prefix="$prefix"
18885   prefix="$acl_final_prefix"
18886   acl_save_exec_prefix="$exec_prefix"
18887   exec_prefix="$acl_final_exec_prefix"
18888   eval x=\"$x\"
18889   exec_prefix="$acl_save_exec_prefix"
18890   prefix="$acl_save_prefix"
18891
18892       if test "X$x" = "X$element"; then
18893         haveit=yes
18894         break
18895       fi
18896     done
18897     if test -z "$haveit"; then
18898       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18899     fi
18900   done
18901
18902       fi
18903
18904
18905 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18906
18907
18908 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18909
18910     fi
18911
18912         POSUB=po
18913   fi
18914
18915
18916
18917     INTLLIBS="$LIBINTL"
18918
18919
18920
18921
18922
18923
18924
18925 os_name=`uname -s 2>/dev/null`
18926 if test x${prefix} = xNONE ; then
18927    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18928       sysconfdir=/etc/bacula
18929    fi
18930
18931    if test `eval echo ${libdir}` = NONE/lib ; then
18932       case ${os_name} in
18933       Linux)
18934          os_processor=`uname -p 2>/dev/null`
18935          case ${os_processor} in
18936          x86_64)
18937             libdir=/usr/lib64
18938             ;;
18939          *)
18940             libdir=/usr/lib
18941             ;;
18942          esac
18943          ;;
18944       *)
18945          libdir=/usr/lib
18946          ;;
18947       esac
18948    fi
18949
18950    if test `eval echo ${includedir}` = NONE/include ; then
18951       includedir=/usr/include
18952    fi
18953
18954    if test `eval echo ${datarootdir}` = NONE/share ; then
18955       datarootdir=/usr/share
18956    fi
18957    prefix=
18958 fi
18959
18960 if test x${exec_prefix} = xNONE ; then
18961    exec_prefix=${prefix}
18962 fi
18963
18964 sysconfdir=`eval echo ${sysconfdir}`
18965 datarootdir=`eval echo ${datarootdir}`
18966 docdir=`eval echo ${docdir}`
18967 htmldir=`eval echo ${htmldir}`
18968 libdir=`eval echo ${libdir}`
18969 includedir=`eval echo ${includedir}`
18970 localedir=`eval echo ${datarootdir}/locale`
18971 cat >>confdefs.h <<_ACEOF
18972 #define SYSCONFDIR "$sysconfdir"
18973 _ACEOF
18974
18975 cat >>confdefs.h <<_ACEOF
18976 #define LOCALEDIR "$localedir"
18977 _ACEOF
18978
18979
18980 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18981    sbindir=${exec_prefix}/sbin
18982 fi
18983 sbindir=`eval echo ${sbindir}`
18984
18985 if test x$mandir = x'${prefix}/man' ; then
18986    mandir=/usr/share/man
18987 fi
18988
18989 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18990    htmldir=`eval echo ${docdir}html`
18991 fi
18992
18993 if test x$docdir = x'/usr/share/doc/' ; then
18994    docdir=`eval echo ${docdir}bacula`
18995 fi
18996
18997
18998 for ac_prog in msgfmt
18999 do
19000   # Extract the first word of "$ac_prog", so it can be a program name with args.
19001 set dummy $ac_prog; ac_word=$2
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19003 $as_echo_n "checking for $ac_word... " >&6; }
19004 if ${ac_cv_path_MSGFMT+:} false; then :
19005   $as_echo_n "(cached) " >&6
19006 else
19007   case $MSGFMT in
19008   [\\/]* | ?:[\\/]*)
19009   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19010   ;;
19011   *)
19012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19013 for as_dir in $PATH
19014 do
19015   IFS=$as_save_IFS
19016   test -z "$as_dir" && as_dir=.
19017     for ac_exec_ext in '' $ac_executable_extensions; do
19018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19019     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19021     break 2
19022   fi
19023 done
19024   done
19025 IFS=$as_save_IFS
19026
19027   ;;
19028 esac
19029 fi
19030 MSGFMT=$ac_cv_path_MSGFMT
19031 if test -n "$MSGFMT"; then
19032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19033 $as_echo "$MSGFMT" >&6; }
19034 else
19035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19036 $as_echo "no" >&6; }
19037 fi
19038
19039
19040   test -n "$MSGFMT" && break
19041 done
19042 test -n "$MSGFMT" || MSGFMT="no"
19043
19044 if test "$MSGFMT" = "no"
19045 then
19046    echo 'msgfmt program not found, disabling NLS !'
19047    USE_NLS=no
19048    USE_INCLUDED_LIBINTL=no
19049 #else
19050
19051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19052 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19053 if ${ac_cv_gnu_library_2+:} false; then :
19054   $as_echo_n "(cached) " >&6
19055 else
19056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h.  */
19058
19059 #include <features.h>
19060 #ifdef __GNU_LIBRARY__
19061  #if (__GLIBC__ >= 2)
19062   Lucky GNU user
19063  #endif
19064 #endif
19065
19066 _ACEOF
19067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19068   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19069   ac_cv_gnu_library_2=yes
19070 else
19071   ac_cv_gnu_library_2=no
19072 fi
19073 rm -f conftest*
19074
19075
19076
19077 fi
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19079 $as_echo "$ac_cv_gnu_library_2" >&6; }
19080
19081     GLIBC2="$ac_cv_gnu_library_2"
19082
19083
19084 if test -n "$ac_tool_prefix"; then
19085   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19088 $as_echo_n "checking for $ac_word... " >&6; }
19089 if ${ac_cv_prog_RANLIB+:} false; then :
19090   $as_echo_n "(cached) " >&6
19091 else
19092   if test -n "$RANLIB"; then
19093   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19094 else
19095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19096 for as_dir in $PATH
19097 do
19098   IFS=$as_save_IFS
19099   test -z "$as_dir" && as_dir=.
19100     for ac_exec_ext in '' $ac_executable_extensions; do
19101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19102     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19104     break 2
19105   fi
19106 done
19107   done
19108 IFS=$as_save_IFS
19109
19110 fi
19111 fi
19112 RANLIB=$ac_cv_prog_RANLIB
19113 if test -n "$RANLIB"; then
19114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19115 $as_echo "$RANLIB" >&6; }
19116 else
19117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118 $as_echo "no" >&6; }
19119 fi
19120
19121
19122 fi
19123 if test -z "$ac_cv_prog_RANLIB"; then
19124   ac_ct_RANLIB=$RANLIB
19125   # Extract the first word of "ranlib", so it can be a program name with args.
19126 set dummy ranlib; ac_word=$2
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19128 $as_echo_n "checking for $ac_word... " >&6; }
19129 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19130   $as_echo_n "(cached) " >&6
19131 else
19132   if test -n "$ac_ct_RANLIB"; then
19133   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19134 else
19135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19136 for as_dir in $PATH
19137 do
19138   IFS=$as_save_IFS
19139   test -z "$as_dir" && as_dir=.
19140     for ac_exec_ext in '' $ac_executable_extensions; do
19141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19142     ac_cv_prog_ac_ct_RANLIB="ranlib"
19143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19144     break 2
19145   fi
19146 done
19147   done
19148 IFS=$as_save_IFS
19149
19150 fi
19151 fi
19152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19153 if test -n "$ac_ct_RANLIB"; then
19154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19155 $as_echo "$ac_ct_RANLIB" >&6; }
19156 else
19157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158 $as_echo "no" >&6; }
19159 fi
19160
19161   if test "x$ac_ct_RANLIB" = x; then
19162     RANLIB=":"
19163   else
19164     case $cross_compiling:$ac_tool_warned in
19165 yes:)
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19168 ac_tool_warned=yes ;;
19169 esac
19170     RANLIB=$ac_ct_RANLIB
19171   fi
19172 else
19173   RANLIB="$ac_cv_prog_RANLIB"
19174 fi
19175
19176
19177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19178 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19179 if ${ac_cv_lib_cposix_strerror+:} false; then :
19180   $as_echo_n "(cached) " >&6
19181 else
19182   ac_check_lib_save_LIBS=$LIBS
19183 LIBS="-lcposix  $LIBS"
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h.  */
19186
19187 /* Override any GCC internal prototype to avoid an error.
19188    Use char because int might match the return type of a GCC
19189    builtin and then its argument prototype would still apply.  */
19190 #ifdef __cplusplus
19191 extern "C"
19192 #endif
19193 char strerror ();
19194 int
19195 main ()
19196 {
19197 return strerror ();
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 if ac_fn_c_try_link "$LINENO"; then :
19203   ac_cv_lib_cposix_strerror=yes
19204 else
19205   ac_cv_lib_cposix_strerror=no
19206 fi
19207 rm -f core conftest.err conftest.$ac_objext \
19208     conftest$ac_exeext conftest.$ac_ext
19209 LIBS=$ac_check_lib_save_LIBS
19210 fi
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19212 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19213 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19214   LIBS="$LIBS -lcposix"
19215 fi
19216
19217
19218
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19220 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19221 if ${ac_cv_c_const+:} false; then :
19222   $as_echo_n "(cached) " >&6
19223 else
19224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h.  */
19226
19227 int
19228 main ()
19229 {
19230
19231 #ifndef __cplusplus
19232   /* Ultrix mips cc rejects this sort of thing.  */
19233   typedef int charset[2];
19234   const charset cs = { 0, 0 };
19235   /* SunOS 4.1.1 cc rejects this.  */
19236   char const *const *pcpcc;
19237   char **ppc;
19238   /* NEC SVR4.0.2 mips cc rejects this.  */
19239   struct point {int x, y;};
19240   static struct point const zero = {0,0};
19241   /* AIX XL C 1.02.0.0 rejects this.
19242      It does not let you subtract one const X* pointer from another in
19243      an arm of an if-expression whose if-part is not a constant
19244      expression */
19245   const char *g = "string";
19246   pcpcc = &g + (g ? g-g : 0);
19247   /* HPUX 7.0 cc rejects these. */
19248   ++pcpcc;
19249   ppc = (char**) pcpcc;
19250   pcpcc = (char const *const *) ppc;
19251   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19252     char tx;
19253     char *t = &tx;
19254     char const *s = 0 ? (char *) 0 : (char const *) 0;
19255
19256     *t++ = 0;
19257     if (s) return 0;
19258   }
19259   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19260     int x[] = {25, 17};
19261     const int *foo = &x[0];
19262     ++foo;
19263   }
19264   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19265     typedef const int *iptr;
19266     iptr p = 0;
19267     ++p;
19268   }
19269   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19270        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19271     struct s { int j; const int *ap[3]; } bx;
19272     struct s *b = &bx; b->j = 5;
19273   }
19274   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19275     const int foo = 10;
19276     if (!foo) return 0;
19277   }
19278   return !cs[0] && !zero.x;
19279 #endif
19280
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 if ac_fn_c_try_compile "$LINENO"; then :
19286   ac_cv_c_const=yes
19287 else
19288   ac_cv_c_const=no
19289 fi
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 fi
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19293 $as_echo "$ac_cv_c_const" >&6; }
19294 if test $ac_cv_c_const = no; then
19295
19296 $as_echo "#define const /**/" >>confdefs.h
19297
19298 fi
19299
19300
19301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19302 $as_echo_n "checking for signed... " >&6; }
19303 if ${bh_cv_c_signed+:} false; then :
19304   $as_echo_n "(cached) " >&6
19305 else
19306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h.  */
19308
19309 int
19310 main ()
19311 {
19312 signed char x;
19313   ;
19314   return 0;
19315 }
19316 _ACEOF
19317 if ac_fn_c_try_compile "$LINENO"; then :
19318   bh_cv_c_signed=yes
19319 else
19320   bh_cv_c_signed=no
19321 fi
19322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323 fi
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19325 $as_echo "$bh_cv_c_signed" >&6; }
19326   if test $bh_cv_c_signed = no; then
19327
19328 $as_echo "#define signed /**/" >>confdefs.h
19329
19330   fi
19331
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19333 $as_echo_n "checking for inline... " >&6; }
19334 if ${ac_cv_c_inline+:} false; then :
19335   $as_echo_n "(cached) " >&6
19336 else
19337   ac_cv_c_inline=no
19338 for ac_kw in inline __inline__ __inline; do
19339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h.  */
19341 #ifndef __cplusplus
19342 typedef int foo_t;
19343 static $ac_kw foo_t static_foo () {return 0; }
19344 $ac_kw foo_t foo () {return 0; }
19345 #endif
19346
19347 _ACEOF
19348 if ac_fn_c_try_compile "$LINENO"; then :
19349   ac_cv_c_inline=$ac_kw
19350 fi
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352   test "$ac_cv_c_inline" != no && break
19353 done
19354
19355 fi
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19357 $as_echo "$ac_cv_c_inline" >&6; }
19358
19359 case $ac_cv_c_inline in
19360   inline | yes) ;;
19361   *)
19362     case $ac_cv_c_inline in
19363       no) ac_val=;;
19364       *) ac_val=$ac_cv_c_inline;;
19365     esac
19366     cat >>confdefs.h <<_ACEOF
19367 #ifndef __cplusplus
19368 #define inline $ac_val
19369 #endif
19370 _ACEOF
19371     ;;
19372 esac
19373
19374 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19375 if test "x$ac_cv_type_off_t" = xyes; then :
19376
19377 else
19378
19379 cat >>confdefs.h <<_ACEOF
19380 #define off_t long int
19381 _ACEOF
19382
19383 fi
19384
19385 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19386 if test "x$ac_cv_type_size_t" = xyes; then :
19387
19388 else
19389
19390 cat >>confdefs.h <<_ACEOF
19391 #define size_t unsigned int
19392 _ACEOF
19393
19394 fi
19395
19396
19397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19398 $as_echo_n "checking for long long... " >&6; }
19399 if ${ac_cv_type_long_long+:} false; then :
19400   $as_echo_n "(cached) " >&6
19401 else
19402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h.  */
19404 long long ll = 1LL; int i = 63;
19405 int
19406 main ()
19407 {
19408 long long llmax = (long long) -1;
19409      return ll << i | ll >> i | llmax / ll | llmax % ll;
19410   ;
19411   return 0;
19412 }
19413 _ACEOF
19414 if ac_fn_c_try_link "$LINENO"; then :
19415   ac_cv_type_long_long=yes
19416 else
19417   ac_cv_type_long_long=no
19418 fi
19419 rm -f core conftest.err conftest.$ac_objext \
19420     conftest$ac_exeext conftest.$ac_ext
19421 fi
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19423 $as_echo "$ac_cv_type_long_long" >&6; }
19424   if test $ac_cv_type_long_long = yes; then
19425
19426 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19427
19428   fi
19429
19430
19431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19432 $as_echo_n "checking for long double... " >&6; }
19433 if ${gt_cv_c_long_double+:} false; then :
19434   $as_echo_n "(cached) " >&6
19435 else
19436   if test "$GCC" = yes; then
19437        gt_cv_c_long_double=yes
19438      else
19439        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h.  */
19441
19442          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19443          long double foo = 0.0;
19444          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19445          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19446
19447 int
19448 main ()
19449 {
19450
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 if ac_fn_c_try_compile "$LINENO"; then :
19456   gt_cv_c_long_double=yes
19457 else
19458   gt_cv_c_long_double=no
19459 fi
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461      fi
19462 fi
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19464 $as_echo "$gt_cv_c_long_double" >&6; }
19465   if test $gt_cv_c_long_double = yes; then
19466
19467 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19468
19469   fi
19470
19471
19472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19473 $as_echo_n "checking for wchar_t... " >&6; }
19474 if ${gt_cv_c_wchar_t+:} false; then :
19475   $as_echo_n "(cached) " >&6
19476 else
19477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h.  */
19479 #include <stddef.h>
19480        wchar_t foo = (wchar_t)'\0';
19481 int
19482 main ()
19483 {
19484
19485   ;
19486   return 0;
19487 }
19488 _ACEOF
19489 if ac_fn_c_try_compile "$LINENO"; then :
19490   gt_cv_c_wchar_t=yes
19491 else
19492   gt_cv_c_wchar_t=no
19493 fi
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 fi
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19497 $as_echo "$gt_cv_c_wchar_t" >&6; }
19498   if test $gt_cv_c_wchar_t = yes; then
19499
19500 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19501
19502   fi
19503
19504
19505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19506 $as_echo_n "checking for wint_t... " >&6; }
19507 if ${gt_cv_c_wint_t+:} false; then :
19508   $as_echo_n "(cached) " >&6
19509 else
19510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h.  */
19512 #include <wchar.h>
19513        wint_t foo = (wchar_t)'\0';
19514 int
19515 main ()
19516 {
19517
19518   ;
19519   return 0;
19520 }
19521 _ACEOF
19522 if ac_fn_c_try_compile "$LINENO"; then :
19523   gt_cv_c_wint_t=yes
19524 else
19525   gt_cv_c_wint_t=no
19526 fi
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528 fi
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19530 $as_echo "$gt_cv_c_wint_t" >&6; }
19531   if test $gt_cv_c_wint_t = yes; then
19532
19533 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19534
19535   fi
19536
19537
19538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19539 $as_echo_n "checking for inttypes.h... " >&6; }
19540 if ${gl_cv_header_inttypes_h+:} false; then :
19541   $as_echo_n "(cached) " >&6
19542 else
19543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h.  */
19545 #include <sys/types.h>
19546 #include <inttypes.h>
19547 int
19548 main ()
19549 {
19550 uintmax_t i = (uintmax_t) -1;
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 if ac_fn_c_try_compile "$LINENO"; then :
19556   gl_cv_header_inttypes_h=yes
19557 else
19558   gl_cv_header_inttypes_h=no
19559 fi
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19563 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19564   if test $gl_cv_header_inttypes_h = yes; then
19565
19566 cat >>confdefs.h <<_ACEOF
19567 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19568 _ACEOF
19569
19570   fi
19571
19572
19573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19574 $as_echo_n "checking for stdint.h... " >&6; }
19575 if ${gl_cv_header_stdint_h+:} false; then :
19576   $as_echo_n "(cached) " >&6
19577 else
19578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h.  */
19580 #include <sys/types.h>
19581 #include <stdint.h>
19582 int
19583 main ()
19584 {
19585 uintmax_t i = (uintmax_t) -1;
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 if ac_fn_c_try_compile "$LINENO"; then :
19591   gl_cv_header_stdint_h=yes
19592 else
19593   gl_cv_header_stdint_h=no
19594 fi
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19596 fi
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19598 $as_echo "$gl_cv_header_stdint_h" >&6; }
19599   if test $gl_cv_header_stdint_h = yes; then
19600
19601 cat >>confdefs.h <<_ACEOF
19602 #define HAVE_STDINT_H_WITH_UINTMAX 1
19603 _ACEOF
19604
19605   fi
19606
19607
19608
19609
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19611 $as_echo_n "checking for intmax_t... " >&6; }
19612 if ${gt_cv_c_intmax_t+:} false; then :
19613   $as_echo_n "(cached) " >&6
19614 else
19615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h.  */
19617
19618 #include <stddef.h>
19619 #include <stdlib.h>
19620 #if HAVE_STDINT_H_WITH_UINTMAX
19621 #include <stdint.h>
19622 #endif
19623 #if HAVE_INTTYPES_H_WITH_UINTMAX
19624 #include <inttypes.h>
19625 #endif
19626
19627 int
19628 main ()
19629 {
19630 intmax_t x = -1;
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 if ac_fn_c_try_compile "$LINENO"; then :
19636   gt_cv_c_intmax_t=yes
19637 else
19638   gt_cv_c_intmax_t=no
19639 fi
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19641 fi
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19643 $as_echo "$gt_cv_c_intmax_t" >&6; }
19644   if test $gt_cv_c_intmax_t = yes; then
19645
19646 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19647
19648   fi
19649
19650
19651
19652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19653 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19654 if ${gt_cv_func_printf_posix+:} false; then :
19655   $as_echo_n "(cached) " >&6
19656 else
19657
19658       if test "$cross_compiling" = yes; then :
19659
19660         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h.  */
19662
19663 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19664   notposix
19665 #endif
19666
19667 _ACEOF
19668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19669   $EGREP "notposix" >/dev/null 2>&1; then :
19670   gt_cv_func_printf_posix="guessing no"
19671 else
19672   gt_cv_func_printf_posix="guessing yes"
19673 fi
19674 rm -f conftest*
19675
19676
19677 else
19678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h.  */
19680
19681 #include <stdio.h>
19682 #include <string.h>
19683 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19684    dollar expansion (possibly an autoconf bug).  */
19685 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19686 static char buf[100];
19687 int main ()
19688 {
19689   sprintf (buf, format, 33, 55);
19690   return (strcmp (buf, "55 33") != 0);
19691 }
19692 _ACEOF
19693 if ac_fn_c_try_run "$LINENO"; then :
19694   gt_cv_func_printf_posix=yes
19695 else
19696   gt_cv_func_printf_posix=no
19697 fi
19698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19699   conftest.$ac_objext conftest.beam conftest.$ac_ext
19700 fi
19701
19702
19703 fi
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19705 $as_echo "$gt_cv_func_printf_posix" >&6; }
19706   case $gt_cv_func_printf_posix in
19707     *yes)
19708
19709 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19710
19711       ;;
19712   esac
19713
19714 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19715 # for constant arguments.  Useless!
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19717 $as_echo_n "checking for working alloca.h... " >&6; }
19718 if ${ac_cv_working_alloca_h+:} false; then :
19719   $as_echo_n "(cached) " >&6
19720 else
19721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h.  */
19723 #include <alloca.h>
19724 int
19725 main ()
19726 {
19727 char *p = (char *) alloca (2 * sizeof (int));
19728                           if (p) return 0;
19729   ;
19730   return 0;
19731 }
19732 _ACEOF
19733 if ac_fn_c_try_link "$LINENO"; then :
19734   ac_cv_working_alloca_h=yes
19735 else
19736   ac_cv_working_alloca_h=no
19737 fi
19738 rm -f core conftest.err conftest.$ac_objext \
19739     conftest$ac_exeext conftest.$ac_ext
19740 fi
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19742 $as_echo "$ac_cv_working_alloca_h" >&6; }
19743 if test $ac_cv_working_alloca_h = yes; then
19744
19745 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19746
19747 fi
19748
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19750 $as_echo_n "checking for alloca... " >&6; }
19751 if ${ac_cv_func_alloca_works+:} false; then :
19752   $as_echo_n "(cached) " >&6
19753 else
19754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h.  */
19756 #ifdef __GNUC__
19757 # define alloca __builtin_alloca
19758 #else
19759 # ifdef _MSC_VER
19760 #  include <malloc.h>
19761 #  define alloca _alloca
19762 # else
19763 #  ifdef HAVE_ALLOCA_H
19764 #   include <alloca.h>
19765 #  else
19766 #   ifdef _AIX
19767  #pragma alloca
19768 #   else
19769 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19770 void *alloca (size_t);
19771 #    endif
19772 #   endif
19773 #  endif
19774 # endif
19775 #endif
19776
19777 int
19778 main ()
19779 {
19780 char *p = (char *) alloca (1);
19781                                     if (p) return 0;
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 if ac_fn_c_try_link "$LINENO"; then :
19787   ac_cv_func_alloca_works=yes
19788 else
19789   ac_cv_func_alloca_works=no
19790 fi
19791 rm -f core conftest.err conftest.$ac_objext \
19792     conftest$ac_exeext conftest.$ac_ext
19793 fi
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19795 $as_echo "$ac_cv_func_alloca_works" >&6; }
19796
19797 if test $ac_cv_func_alloca_works = yes; then
19798
19799 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19800
19801 else
19802   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19803 # that cause trouble.  Some versions do not even contain alloca or
19804 # contain a buggy version.  If you still want to use their alloca,
19805 # use ar to extract alloca.o from them instead of compiling alloca.c.
19806
19807 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19808
19809 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19810
19811
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19813 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19814 if ${ac_cv_os_cray+:} false; then :
19815   $as_echo_n "(cached) " >&6
19816 else
19817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h.  */
19819 #if defined CRAY && ! defined CRAY2
19820 webecray
19821 #else
19822 wenotbecray
19823 #endif
19824
19825 _ACEOF
19826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19827   $EGREP "webecray" >/dev/null 2>&1; then :
19828   ac_cv_os_cray=yes
19829 else
19830   ac_cv_os_cray=no
19831 fi
19832 rm -f conftest*
19833
19834 fi
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19836 $as_echo "$ac_cv_os_cray" >&6; }
19837 if test $ac_cv_os_cray = yes; then
19838   for ac_func in _getb67 GETB67 getb67; do
19839     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19842
19843 cat >>confdefs.h <<_ACEOF
19844 #define CRAY_STACKSEG_END $ac_func
19845 _ACEOF
19846
19847     break
19848 fi
19849
19850   done
19851 fi
19852
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19854 $as_echo_n "checking stack direction for C alloca... " >&6; }
19855 if ${ac_cv_c_stack_direction+:} false; then :
19856   $as_echo_n "(cached) " >&6
19857 else
19858   if test "$cross_compiling" = yes; then :
19859   ac_cv_c_stack_direction=0
19860 else
19861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h.  */
19863 $ac_includes_default
19864 int
19865 find_stack_direction (int *addr, int depth)
19866 {
19867   int dir, dummy = 0;
19868   if (! addr)
19869     addr = &dummy;
19870   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19871   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19872   return dir + dummy;
19873 }
19874
19875 int
19876 main (int argc, char **argv)
19877 {
19878   return find_stack_direction (0, argc + !argv + 20) < 0;
19879 }
19880 _ACEOF
19881 if ac_fn_c_try_run "$LINENO"; then :
19882   ac_cv_c_stack_direction=1
19883 else
19884   ac_cv_c_stack_direction=-1
19885 fi
19886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19887   conftest.$ac_objext conftest.beam conftest.$ac_ext
19888 fi
19889
19890 fi
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19892 $as_echo "$ac_cv_c_stack_direction" >&6; }
19893 cat >>confdefs.h <<_ACEOF
19894 #define STACK_DIRECTION $ac_cv_c_stack_direction
19895 _ACEOF
19896
19897
19898 fi
19899
19900
19901
19902
19903   for ac_header in $ac_header_list
19904 do :
19905   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19907 "
19908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19909   cat >>confdefs.h <<_ACEOF
19910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19911 _ACEOF
19912
19913 fi
19914
19915 done
19916
19917
19918
19919
19920
19921
19922
19923
19924 for ac_func in getpagesize
19925 do :
19926   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19927 if test "x$ac_cv_func_getpagesize" = xyes; then :
19928   cat >>confdefs.h <<_ACEOF
19929 #define HAVE_GETPAGESIZE 1
19930 _ACEOF
19931
19932 fi
19933 done
19934
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19936 $as_echo_n "checking for working mmap... " >&6; }
19937 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19938   $as_echo_n "(cached) " >&6
19939 else
19940   if test "$cross_compiling" = yes; then :
19941   ac_cv_func_mmap_fixed_mapped=no
19942 else
19943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19944 /* end confdefs.h.  */
19945 $ac_includes_default
19946 /* malloc might have been renamed as rpl_malloc. */
19947 #undef malloc
19948
19949 /* Thanks to Mike Haertel and Jim Avera for this test.
19950    Here is a matrix of mmap possibilities:
19951         mmap private not fixed
19952         mmap private fixed at somewhere currently unmapped
19953         mmap private fixed at somewhere already mapped
19954         mmap shared not fixed
19955         mmap shared fixed at somewhere currently unmapped
19956         mmap shared fixed at somewhere already mapped
19957    For private mappings, we should verify that changes cannot be read()
19958    back from the file, nor mmap's back from the file at a different
19959    address.  (There have been systems where private was not correctly
19960    implemented like the infamous i386 svr4.0, and systems where the
19961    VM page cache was not coherent with the file system buffer cache
19962    like early versions of FreeBSD and possibly contemporary NetBSD.)
19963    For shared mappings, we should conversely verify that changes get
19964    propagated back to all the places they're supposed to be.
19965
19966    Grep wants private fixed already mapped.
19967    The main things grep needs to know about mmap are:
19968    * does it exist and is it safe to write into the mmap'd area
19969    * how to use it (BSD variants)  */
19970
19971 #include <fcntl.h>
19972 #include <sys/mman.h>
19973
19974 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19975 char *malloc ();
19976 #endif
19977
19978 /* This mess was copied from the GNU getpagesize.h.  */
19979 #ifndef HAVE_GETPAGESIZE
19980 # ifdef _SC_PAGESIZE
19981 #  define getpagesize() sysconf(_SC_PAGESIZE)
19982 # else /* no _SC_PAGESIZE */
19983 #  ifdef HAVE_SYS_PARAM_H
19984 #   include <sys/param.h>
19985 #   ifdef EXEC_PAGESIZE
19986 #    define getpagesize() EXEC_PAGESIZE
19987 #   else /* no EXEC_PAGESIZE */
19988 #    ifdef NBPG
19989 #     define getpagesize() NBPG * CLSIZE
19990 #     ifndef CLSIZE
19991 #      define CLSIZE 1
19992 #     endif /* no CLSIZE */
19993 #    else /* no NBPG */
19994 #     ifdef NBPC
19995 #      define getpagesize() NBPC
19996 #     else /* no NBPC */
19997 #      ifdef PAGESIZE
19998 #       define getpagesize() PAGESIZE
19999 #      endif /* PAGESIZE */
20000 #     endif /* no NBPC */
20001 #    endif /* no NBPG */
20002 #   endif /* no EXEC_PAGESIZE */
20003 #  else /* no HAVE_SYS_PARAM_H */
20004 #   define getpagesize() 8192   /* punt totally */
20005 #  endif /* no HAVE_SYS_PARAM_H */
20006 # endif /* no _SC_PAGESIZE */
20007
20008 #endif /* no HAVE_GETPAGESIZE */
20009
20010 int
20011 main ()
20012 {
20013   char *data, *data2, *data3;
20014   const char *cdata2;
20015   int i, pagesize;
20016   int fd, fd2;
20017
20018   pagesize = getpagesize ();
20019
20020   /* First, make a file with some known garbage in it. */
20021   data = (char *) malloc (pagesize);
20022   if (!data)
20023     return 1;
20024   for (i = 0; i < pagesize; ++i)
20025     *(data + i) = rand ();
20026   umask (0);
20027   fd = creat ("conftest.mmap", 0600);
20028   if (fd < 0)
20029     return 2;
20030   if (write (fd, data, pagesize) != pagesize)
20031     return 3;
20032   close (fd);
20033
20034   /* Next, check that the tail of a page is zero-filled.  File must have
20035      non-zero length, otherwise we risk SIGBUS for entire page.  */
20036   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20037   if (fd2 < 0)
20038     return 4;
20039   cdata2 = "";
20040   if (write (fd2, cdata2, 1) != 1)
20041     return 5;
20042   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20043   if (data2 == MAP_FAILED)
20044     return 6;
20045   for (i = 0; i < pagesize; ++i)
20046     if (*(data2 + i))
20047       return 7;
20048   close (fd2);
20049   if (munmap (data2, pagesize))
20050     return 8;
20051
20052   /* Next, try to mmap the file at a fixed address which already has
20053      something else allocated at it.  If we can, also make sure that
20054      we see the same garbage.  */
20055   fd = open ("conftest.mmap", O_RDWR);
20056   if (fd < 0)
20057     return 9;
20058   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20059                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20060     return 10;
20061   for (i = 0; i < pagesize; ++i)
20062     if (*(data + i) != *(data2 + i))
20063       return 11;
20064
20065   /* Finally, make sure that changes to the mapped area do not
20066      percolate back to the file as seen by read().  (This is a bug on
20067      some variants of i386 svr4.0.)  */
20068   for (i = 0; i < pagesize; ++i)
20069     *(data2 + i) = *(data2 + i) + 1;
20070   data3 = (char *) malloc (pagesize);
20071   if (!data3)
20072     return 12;
20073   if (read (fd, data3, pagesize) != pagesize)
20074     return 13;
20075   for (i = 0; i < pagesize; ++i)
20076     if (*(data + i) != *(data3 + i))
20077       return 14;
20078   close (fd);
20079   return 0;
20080 }
20081 _ACEOF
20082 if ac_fn_c_try_run "$LINENO"; then :
20083   ac_cv_func_mmap_fixed_mapped=yes
20084 else
20085   ac_cv_func_mmap_fixed_mapped=no
20086 fi
20087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20088   conftest.$ac_objext conftest.beam conftest.$ac_ext
20089 fi
20090
20091 fi
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20093 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20094 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20095
20096 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20097
20098 fi
20099 rm -f conftest.mmap conftest.txt
20100
20101
20102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20103 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20104 if ${ac_cv_gnu_library_2_1+:} false; then :
20105   $as_echo_n "(cached) " >&6
20106 else
20107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h.  */
20109
20110 #include <features.h>
20111 #ifdef __GNU_LIBRARY__
20112  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20113   Lucky GNU user
20114  #endif
20115 #endif
20116
20117 _ACEOF
20118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20119   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20120   ac_cv_gnu_library_2_1=yes
20121 else
20122   ac_cv_gnu_library_2_1=no
20123 fi
20124 rm -f conftest*
20125
20126
20127
20128 fi
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20130 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20131
20132     GLIBC21="$ac_cv_gnu_library_2_1"
20133
20134
20135
20136
20137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20138 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20139 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20140   $as_echo_n "(cached) " >&6
20141 else
20142
20143       if test "$cross_compiling" = yes; then :
20144
20145           # Guess based on the CPU.
20146           case "$host_cpu" in
20147             alpha* | i3456786 | m68k | s390*)
20148               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20149             *)
20150               gt_cv_int_divbyzero_sigfpe="guessing no";;
20151           esac
20152
20153 else
20154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h.  */
20156
20157 #include <stdlib.h>
20158 #include <signal.h>
20159
20160 static void
20161 #ifdef __cplusplus
20162 sigfpe_handler (int sig)
20163 #else
20164 sigfpe_handler (sig) int sig;
20165 #endif
20166 {
20167   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20168   exit (sig != SIGFPE);
20169 }
20170
20171 int x = 1;
20172 int y = 0;
20173 int z;
20174 int nan;
20175
20176 int main ()
20177 {
20178   signal (SIGFPE, sigfpe_handler);
20179 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20180 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20181   signal (SIGTRAP, sigfpe_handler);
20182 #endif
20183 /* Linux/SPARC yields signal SIGILL.  */
20184 #if defined (__sparc__) && defined (__linux__)
20185   signal (SIGILL, sigfpe_handler);
20186 #endif
20187
20188   z = x / y;
20189   nan = y / y;
20190   exit (1);
20191 }
20192
20193 _ACEOF
20194 if ac_fn_c_try_run "$LINENO"; then :
20195   gt_cv_int_divbyzero_sigfpe=yes
20196 else
20197   gt_cv_int_divbyzero_sigfpe=no
20198 fi
20199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20200   conftest.$ac_objext conftest.beam conftest.$ac_ext
20201 fi
20202
20203
20204 fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20206 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20207   case "$gt_cv_int_divbyzero_sigfpe" in
20208     *yes) value=1;;
20209     *) value=0;;
20210   esac
20211
20212 cat >>confdefs.h <<_ACEOF
20213 #define INTDIV0_RAISES_SIGFPE $value
20214 _ACEOF
20215
20216
20217
20218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20219 $as_echo_n "checking for unsigned long long... " >&6; }
20220 if ${ac_cv_type_unsigned_long_long+:} false; then :
20221   $as_echo_n "(cached) " >&6
20222 else
20223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h.  */
20225 unsigned long long ull = 1ULL; int i = 63;
20226 int
20227 main ()
20228 {
20229 unsigned long long ullmax = (unsigned long long) -1;
20230      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 if ac_fn_c_try_link "$LINENO"; then :
20236   ac_cv_type_unsigned_long_long=yes
20237 else
20238   ac_cv_type_unsigned_long_long=no
20239 fi
20240 rm -f core conftest.err conftest.$ac_objext \
20241     conftest$ac_exeext conftest.$ac_ext
20242 fi
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20244 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20245   if test $ac_cv_type_unsigned_long_long = yes; then
20246
20247 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20248
20249   fi
20250
20251
20252
20253
20254   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20255
20256     test $ac_cv_type_unsigned_long_long = yes \
20257       && ac_type='unsigned long long' \
20258       || ac_type='unsigned long'
20259
20260 cat >>confdefs.h <<_ACEOF
20261 #define uintmax_t $ac_type
20262 _ACEOF
20263
20264   else
20265
20266 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20267
20268   fi
20269
20270
20271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20272 $as_echo_n "checking for inttypes.h... " >&6; }
20273 if ${gt_cv_header_inttypes_h+:} false; then :
20274   $as_echo_n "(cached) " >&6
20275 else
20276
20277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h.  */
20279 #include <sys/types.h>
20280 #include <inttypes.h>
20281 int
20282 main ()
20283 {
20284
20285   ;
20286   return 0;
20287 }
20288 _ACEOF
20289 if ac_fn_c_try_compile "$LINENO"; then :
20290   gt_cv_header_inttypes_h=yes
20291 else
20292   gt_cv_header_inttypes_h=no
20293 fi
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295
20296 fi
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20298 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20299   if test $gt_cv_header_inttypes_h = yes; then
20300
20301 cat >>confdefs.h <<_ACEOF
20302 #define HAVE_INTTYPES_H 1
20303 _ACEOF
20304
20305   fi
20306
20307
20308
20309   if test $gt_cv_header_inttypes_h = yes; then
20310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20311 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20312 if ${gt_cv_inttypes_pri_broken+:} false; then :
20313   $as_echo_n "(cached) " >&6
20314 else
20315
20316         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h.  */
20318 #include <inttypes.h>
20319 #ifdef PRId32
20320 char *p = PRId32;
20321 #endif
20322
20323 int
20324 main ()
20325 {
20326
20327   ;
20328   return 0;
20329 }
20330 _ACEOF
20331 if ac_fn_c_try_compile "$LINENO"; then :
20332   gt_cv_inttypes_pri_broken=no
20333 else
20334   gt_cv_inttypes_pri_broken=yes
20335 fi
20336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337
20338 fi
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20340 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20341   fi
20342   if test "$gt_cv_inttypes_pri_broken" = yes; then
20343
20344 cat >>confdefs.h <<_ACEOF
20345 #define PRI_MACROS_BROKEN 1
20346 _ACEOF
20347
20348   fi
20349
20350
20351   for ac_header in stdint.h
20352 do :
20353   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20354 if test "x$ac_cv_header_stdint_h" = xyes; then :
20355   cat >>confdefs.h <<_ACEOF
20356 #define HAVE_STDINT_H 1
20357 _ACEOF
20358
20359 fi
20360
20361 done
20362
20363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20364 $as_echo_n "checking for SIZE_MAX... " >&6; }
20365   result=
20366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h.  */
20368
20369 #include <limits.h>
20370 #if HAVE_STDINT_H
20371 #include <stdint.h>
20372 #endif
20373 #ifdef SIZE_MAX
20374 Found it
20375 #endif
20376
20377 _ACEOF
20378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20379   $EGREP "Found it" >/dev/null 2>&1; then :
20380   result=yes
20381 fi
20382 rm -f conftest*
20383
20384   if test -z "$result"; then
20385                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20386
20387 else
20388   result=?
20389 fi
20390
20391
20392     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20393
20394 else
20395   result=?
20396 fi
20397
20398
20399     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20400
20401 else
20402   result=?
20403 fi
20404
20405
20406     if test "$fits_in_uint" = 1; then
20407                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h.  */
20409 #include <stddef.h>
20410         extern size_t foo;
20411         extern unsigned long foo;
20412
20413 int
20414 main ()
20415 {
20416
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 if ac_fn_c_try_compile "$LINENO"; then :
20422   fits_in_uint=0
20423 fi
20424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425     fi
20426     if test -z "$result"; then
20427       if test "$fits_in_uint" = 1; then
20428         result="$res_hi$res_lo"U
20429       else
20430         result="$res_hi$res_lo"UL
20431       fi
20432     else
20433             result='~(size_t)0'
20434     fi
20435   fi
20436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20437 $as_echo "$result" >&6; }
20438   if test "$result" != yes; then
20439
20440 cat >>confdefs.h <<_ACEOF
20441 #define SIZE_MAX $result
20442 _ACEOF
20443
20444   fi
20445
20446
20447
20448
20449   for ac_header in stdint.h
20450 do :
20451   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20452 if test "x$ac_cv_header_stdint_h" = xyes; then :
20453   cat >>confdefs.h <<_ACEOF
20454 #define HAVE_STDINT_H 1
20455 _ACEOF
20456
20457 fi
20458
20459 done
20460
20461
20462
20463
20464
20465
20466
20467
20468   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20469 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20470
20471 else
20472
20473 $as_echo "#define ptrdiff_t long" >>confdefs.h
20474
20475
20476 fi
20477
20478   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20479 stdlib.h string.h unistd.h sys/param.h
20480 do :
20481   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20482 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20484   cat >>confdefs.h <<_ACEOF
20485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20486 _ACEOF
20487
20488 fi
20489
20490 done
20491
20492   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20493 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20494 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20495 __fsetlocking
20496 do :
20497   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20500   cat >>confdefs.h <<_ACEOF
20501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20502 _ACEOF
20503
20504 fi
20505 done
20506
20507
20508
20509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20510 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20511 if ${ac_cv_have_decl__snprintf+:} false; then :
20512   $as_echo_n "(cached) " >&6
20513 else
20514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h.  */
20516 #include <stdio.h>
20517 int
20518 main ()
20519 {
20520
20521 #ifndef _snprintf
20522   char *p = (char *) _snprintf;
20523 #endif
20524
20525   ;
20526   return 0;
20527 }
20528 _ACEOF
20529 if ac_fn_c_try_compile "$LINENO"; then :
20530   ac_cv_have_decl__snprintf=yes
20531 else
20532   ac_cv_have_decl__snprintf=no
20533 fi
20534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20535 fi
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20537 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20538   if test $ac_cv_have_decl__snprintf = yes; then
20539     gt_value=1
20540   else
20541     gt_value=0
20542   fi
20543
20544 cat >>confdefs.h <<_ACEOF
20545 #define HAVE_DECL__SNPRINTF $gt_value
20546 _ACEOF
20547
20548
20549
20550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20551 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20552 if ${ac_cv_have_decl__snwprintf+:} false; then :
20553   $as_echo_n "(cached) " >&6
20554 else
20555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h.  */
20557 #include <stdio.h>
20558 int
20559 main ()
20560 {
20561
20562 #ifndef _snwprintf
20563   char *p = (char *) _snwprintf;
20564 #endif
20565
20566   ;
20567   return 0;
20568 }
20569 _ACEOF
20570 if ac_fn_c_try_compile "$LINENO"; then :
20571   ac_cv_have_decl__snwprintf=yes
20572 else
20573   ac_cv_have_decl__snwprintf=no
20574 fi
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576 fi
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20578 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20579   if test $ac_cv_have_decl__snwprintf = yes; then
20580     gt_value=1
20581   else
20582     gt_value=0
20583   fi
20584
20585 cat >>confdefs.h <<_ACEOF
20586 #define HAVE_DECL__SNWPRINTF $gt_value
20587 _ACEOF
20588
20589
20590
20591
20592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20593 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20594 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20595   $as_echo_n "(cached) " >&6
20596 else
20597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598 /* end confdefs.h.  */
20599 #include <stdio.h>
20600 int
20601 main ()
20602 {
20603
20604 #ifndef feof_unlocked
20605   char *p = (char *) feof_unlocked;
20606 #endif
20607
20608   ;
20609   return 0;
20610 }
20611 _ACEOF
20612 if ac_fn_c_try_compile "$LINENO"; then :
20613   ac_cv_have_decl_feof_unlocked=yes
20614 else
20615   ac_cv_have_decl_feof_unlocked=no
20616 fi
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 fi
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20620 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20621   if test $ac_cv_have_decl_feof_unlocked = yes; then
20622     gt_value=1
20623   else
20624     gt_value=0
20625   fi
20626
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20629 _ACEOF
20630
20631
20632
20633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20634 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20635 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20636   $as_echo_n "(cached) " >&6
20637 else
20638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h.  */
20640 #include <stdio.h>
20641 int
20642 main ()
20643 {
20644
20645 #ifndef fgets_unlocked
20646   char *p = (char *) fgets_unlocked;
20647 #endif
20648
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 if ac_fn_c_try_compile "$LINENO"; then :
20654   ac_cv_have_decl_fgets_unlocked=yes
20655 else
20656   ac_cv_have_decl_fgets_unlocked=no
20657 fi
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 fi
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20661 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20662   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20663     gt_value=1
20664   else
20665     gt_value=0
20666   fi
20667
20668 cat >>confdefs.h <<_ACEOF
20669 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20670 _ACEOF
20671
20672
20673
20674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20675 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20676 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20677   $as_echo_n "(cached) " >&6
20678 else
20679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h.  */
20681 #include <stdio.h>
20682 int
20683 main ()
20684 {
20685
20686 #ifndef getc_unlocked
20687   char *p = (char *) getc_unlocked;
20688 #endif
20689
20690   ;
20691   return 0;
20692 }
20693 _ACEOF
20694 if ac_fn_c_try_compile "$LINENO"; then :
20695   ac_cv_have_decl_getc_unlocked=yes
20696 else
20697   ac_cv_have_decl_getc_unlocked=no
20698 fi
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700 fi
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20702 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20703   if test $ac_cv_have_decl_getc_unlocked = yes; then
20704     gt_value=1
20705   else
20706     gt_value=0
20707   fi
20708
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20711 _ACEOF
20712
20713
20714
20715   case $gt_cv_func_printf_posix in
20716     *yes) HAVE_POSIX_PRINTF=1 ;;
20717     *) HAVE_POSIX_PRINTF=0 ;;
20718   esac
20719
20720   if test "$ac_cv_func_asprintf" = yes; then
20721     HAVE_ASPRINTF=1
20722   else
20723     HAVE_ASPRINTF=0
20724   fi
20725
20726   if test "$ac_cv_func_snprintf" = yes; then
20727     HAVE_SNPRINTF=1
20728   else
20729     HAVE_SNPRINTF=0
20730   fi
20731
20732   if test "$ac_cv_func_wprintf" = yes; then
20733     HAVE_WPRINTF=1
20734   else
20735     HAVE_WPRINTF=0
20736   fi
20737
20738
20739
20740
20741
20742
20743
20744           am_save_CPPFLAGS="$CPPFLAGS"
20745
20746   for element in $INCICONV; do
20747     haveit=
20748     for x in $CPPFLAGS; do
20749
20750   acl_save_prefix="$prefix"
20751   prefix="$acl_final_prefix"
20752   acl_save_exec_prefix="$exec_prefix"
20753   exec_prefix="$acl_final_exec_prefix"
20754   eval x=\"$x\"
20755   exec_prefix="$acl_save_exec_prefix"
20756   prefix="$acl_save_prefix"
20757
20758       if test "X$x" = "X$element"; then
20759         haveit=yes
20760         break
20761       fi
20762     done
20763     if test -z "$haveit"; then
20764       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20765     fi
20766   done
20767
20768
20769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20770 $as_echo_n "checking for iconv... " >&6; }
20771 if ${am_cv_func_iconv+:} false; then :
20772   $as_echo_n "(cached) " >&6
20773 else
20774
20775     am_cv_func_iconv="no, consider installing GNU libiconv"
20776     am_cv_lib_iconv=no
20777     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h.  */
20779 #include <stdlib.h>
20780 #include <iconv.h>
20781 int
20782 main ()
20783 {
20784 iconv_t cd = iconv_open("","");
20785        iconv(cd,NULL,NULL,NULL,NULL);
20786        iconv_close(cd);
20787   ;
20788   return 0;
20789 }
20790 _ACEOF
20791 if ac_fn_c_try_link "$LINENO"; then :
20792   am_cv_func_iconv=yes
20793 fi
20794 rm -f core conftest.err conftest.$ac_objext \
20795     conftest$ac_exeext conftest.$ac_ext
20796     if test "$am_cv_func_iconv" != yes; then
20797       am_save_LIBS="$LIBS"
20798       LIBS="$LIBS $LIBICONV"
20799       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h.  */
20801 #include <stdlib.h>
20802 #include <iconv.h>
20803 int
20804 main ()
20805 {
20806 iconv_t cd = iconv_open("","");
20807          iconv(cd,NULL,NULL,NULL,NULL);
20808          iconv_close(cd);
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 if ac_fn_c_try_link "$LINENO"; then :
20814   am_cv_lib_iconv=yes
20815         am_cv_func_iconv=yes
20816 fi
20817 rm -f core conftest.err conftest.$ac_objext \
20818     conftest$ac_exeext conftest.$ac_ext
20819       LIBS="$am_save_LIBS"
20820     fi
20821
20822 fi
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20824 $as_echo "$am_cv_func_iconv" >&6; }
20825   if test "$am_cv_func_iconv" = yes; then
20826
20827 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20828
20829   fi
20830   if test "$am_cv_lib_iconv" = yes; then
20831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20832 $as_echo_n "checking how to link with libiconv... " >&6; }
20833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20834 $as_echo "$LIBICONV" >&6; }
20835   else
20836             CPPFLAGS="$am_save_CPPFLAGS"
20837     LIBICONV=
20838     LTLIBICONV=
20839   fi
20840
20841
20842
20843   if test "$am_cv_func_iconv" = yes; then
20844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20845 $as_echo_n "checking for iconv declaration... " >&6; }
20846     if ${am_cv_proto_iconv+:} false; then :
20847   $as_echo_n "(cached) " >&6
20848 else
20849
20850       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20851 /* end confdefs.h.  */
20852
20853 #include <stdlib.h>
20854 #include <iconv.h>
20855 extern
20856 #ifdef __cplusplus
20857 "C"
20858 #endif
20859 #if defined(__STDC__) || defined(__cplusplus)
20860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20861 #else
20862 size_t iconv();
20863 #endif
20864
20865 int
20866 main ()
20867 {
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 if ac_fn_c_try_compile "$LINENO"; then :
20874   am_cv_proto_iconv_arg1=""
20875 else
20876   am_cv_proto_iconv_arg1="const"
20877 fi
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879       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);"
20880 fi
20881
20882     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20884          }$am_cv_proto_iconv" >&5
20885 $as_echo "${ac_t:-
20886          }$am_cv_proto_iconv" >&6; }
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define ICONV_CONST $am_cv_proto_iconv_arg1
20890 _ACEOF
20891
20892   fi
20893
20894
20895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20896 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20897 if ${am_cv_langinfo_codeset+:} false; then :
20898   $as_echo_n "(cached) " >&6
20899 else
20900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h.  */
20902 #include <langinfo.h>
20903 int
20904 main ()
20905 {
20906 char* cs = nl_langinfo(CODESET);
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 if ac_fn_c_try_link "$LINENO"; then :
20912   am_cv_langinfo_codeset=yes
20913 else
20914   am_cv_langinfo_codeset=no
20915 fi
20916 rm -f core conftest.err conftest.$ac_objext \
20917     conftest$ac_exeext conftest.$ac_ext
20918
20919 fi
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20921 $as_echo "$am_cv_langinfo_codeset" >&6; }
20922   if test $am_cv_langinfo_codeset = yes; then
20923
20924 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20925
20926   fi
20927
20928   if test $ac_cv_header_locale_h = yes; then
20929
20930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20931 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20932 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20933   $as_echo_n "(cached) " >&6
20934 else
20935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h.  */
20937 #include <locale.h>
20938 int
20939 main ()
20940 {
20941 return LC_MESSAGES
20942   ;
20943   return 0;
20944 }
20945 _ACEOF
20946 if ac_fn_c_try_link "$LINENO"; then :
20947   gt_cv_val_LC_MESSAGES=yes
20948 else
20949   gt_cv_val_LC_MESSAGES=no
20950 fi
20951 rm -f core conftest.err conftest.$ac_objext \
20952     conftest$ac_exeext conftest.$ac_ext
20953 fi
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20955 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20956   if test $gt_cv_val_LC_MESSAGES = yes; then
20957
20958 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20959
20960   fi
20961
20962   fi
20963
20964   if test -n "$INTL_MACOSX_LIBS"; then
20965     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20966   fi
20967
20968                       for ac_prog in bison
20969 do
20970   # Extract the first word of "$ac_prog", so it can be a program name with args.
20971 set dummy $ac_prog; ac_word=$2
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20973 $as_echo_n "checking for $ac_word... " >&6; }
20974 if ${ac_cv_prog_INTLBISON+:} false; then :
20975   $as_echo_n "(cached) " >&6
20976 else
20977   if test -n "$INTLBISON"; then
20978   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20979 else
20980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20981 for as_dir in $PATH
20982 do
20983   IFS=$as_save_IFS
20984   test -z "$as_dir" && as_dir=.
20985     for ac_exec_ext in '' $ac_executable_extensions; do
20986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20987     ac_cv_prog_INTLBISON="$ac_prog"
20988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20989     break 2
20990   fi
20991 done
20992   done
20993 IFS=$as_save_IFS
20994
20995 fi
20996 fi
20997 INTLBISON=$ac_cv_prog_INTLBISON
20998 if test -n "$INTLBISON"; then
20999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
21000 $as_echo "$INTLBISON" >&6; }
21001 else
21002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21003 $as_echo "no" >&6; }
21004 fi
21005
21006
21007   test -n "$INTLBISON" && break
21008 done
21009
21010   if test -z "$INTLBISON"; then
21011     ac_verc_fail=yes
21012   else
21013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21014 $as_echo_n "checking version of bison... " >&6; }
21015     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21016     case $ac_prog_version in
21017       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21018       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21019          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21020       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21021     esac
21022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21023 $as_echo "$ac_prog_version" >&6; }
21024   fi
21025   if test $ac_verc_fail = yes; then
21026     INTLBISON=:
21027   fi
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21045 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21046 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21047   $as_echo_n "(cached) " >&6
21048 else
21049   gt_save_CPPFLAGS="$CPPFLAGS"
21050      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21051      gt_save_LIBS="$LIBS"
21052      LIBS="$LIBS -framework CoreFoundation"
21053      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054 /* end confdefs.h.  */
21055 #include <CFPreferences.h>
21056 int
21057 main ()
21058 {
21059 CFPreferencesCopyAppValue(NULL, NULL)
21060   ;
21061   return 0;
21062 }
21063 _ACEOF
21064 if ac_fn_c_try_link "$LINENO"; then :
21065   gt_cv_func_CFPreferencesCopyAppValue=yes
21066 else
21067   gt_cv_func_CFPreferencesCopyAppValue=no
21068 fi
21069 rm -f core conftest.err conftest.$ac_objext \
21070     conftest$ac_exeext conftest.$ac_ext
21071      CPPFLAGS="$gt_save_CPPFLAGS"
21072      LIBS="$gt_save_LIBS"
21073 fi
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21075 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21076   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21077
21078 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21079
21080   fi
21081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21082 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21083 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21084   $as_echo_n "(cached) " >&6
21085 else
21086   gt_save_CPPFLAGS="$CPPFLAGS"
21087      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21088      gt_save_LIBS="$LIBS"
21089      LIBS="$LIBS -framework CoreFoundation"
21090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h.  */
21092 #include <CFLocale.h>
21093 int
21094 main ()
21095 {
21096 CFLocaleCopyCurrent();
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 if ac_fn_c_try_link "$LINENO"; then :
21102   gt_cv_func_CFLocaleCopyCurrent=yes
21103 else
21104   gt_cv_func_CFLocaleCopyCurrent=no
21105 fi
21106 rm -f core conftest.err conftest.$ac_objext \
21107     conftest$ac_exeext conftest.$ac_ext
21108      CPPFLAGS="$gt_save_CPPFLAGS"
21109      LIBS="$gt_save_LIBS"
21110 fi
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21112 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21113   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21114
21115 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21116
21117   fi
21118   INTL_MACOSX_LIBS=
21119   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21120     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21121   fi
21122
21123
21124
21125
21126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21127 $as_echo_n "checking whether NLS is requested... " >&6; }
21128     # Check whether --enable-nls was given.
21129 if test "${enable_nls+set}" = set; then :
21130   enableval=$enable_nls; USE_NLS=$enableval
21131 else
21132   USE_NLS=yes
21133 fi
21134
21135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21136 $as_echo "$USE_NLS" >&6; }
21137
21138
21139
21140
21141     BUILD_INCLUDED_LIBINTL=no
21142     USE_INCLUDED_LIBINTL=no
21143
21144   LIBINTL=
21145   LTLIBINTL=
21146   POSUB=
21147
21148     if test "$USE_NLS" = "yes"; then
21149     gt_use_preinstalled_gnugettext=no
21150
21151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21152 $as_echo_n "checking whether included gettext is requested... " >&6; }
21153
21154 # Check whether --with-included-gettext was given.
21155 if test "${with_included_gettext+set}" = set; then :
21156   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21157 else
21158   nls_cv_force_use_gnu_gettext=no
21159 fi
21160
21161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21162 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21163
21164       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21165       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21166
21167
21168
21169
21170
21171
21172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21173 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21174 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21175   $as_echo_n "(cached) " >&6
21176 else
21177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h.  */
21179 #include <libintl.h>
21180 extern int _nl_msg_cat_cntr;
21181 extern int *_nl_domain_bindings;
21182 int
21183 main ()
21184 {
21185 bindtextdomain ("", "");
21186 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 if ac_fn_c_try_link "$LINENO"; then :
21192   gt_cv_func_gnugettext1_libc=yes
21193 else
21194   gt_cv_func_gnugettext1_libc=no
21195 fi
21196 rm -f core conftest.err conftest.$ac_objext \
21197     conftest$ac_exeext conftest.$ac_ext
21198 fi
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21200 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21201
21202         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21203
21204
21205
21206     use_additional=yes
21207
21208   acl_save_prefix="$prefix"
21209   prefix="$acl_final_prefix"
21210   acl_save_exec_prefix="$exec_prefix"
21211   exec_prefix="$acl_final_exec_prefix"
21212
21213     eval additional_includedir=\"$includedir\"
21214     eval additional_libdir=\"$libdir\"
21215
21216   exec_prefix="$acl_save_exec_prefix"
21217   prefix="$acl_save_prefix"
21218
21219
21220 # Check whether --with-libintl-prefix was given.
21221 if test "${with_libintl_prefix+set}" = set; then :
21222   withval=$with_libintl_prefix;
21223     if test "X$withval" = "Xno"; then
21224       use_additional=no
21225     else
21226       if test "X$withval" = "X"; then
21227
21228   acl_save_prefix="$prefix"
21229   prefix="$acl_final_prefix"
21230   acl_save_exec_prefix="$exec_prefix"
21231   exec_prefix="$acl_final_exec_prefix"
21232
21233           eval additional_includedir=\"$includedir\"
21234           eval additional_libdir=\"$libdir\"
21235
21236   exec_prefix="$acl_save_exec_prefix"
21237   prefix="$acl_save_prefix"
21238
21239       else
21240         additional_includedir="$withval/include"
21241         additional_libdir="$withval/lib"
21242       fi
21243     fi
21244
21245 fi
21246
21247       LIBINTL=
21248   LTLIBINTL=
21249   INCINTL=
21250   rpathdirs=
21251   ltrpathdirs=
21252   names_already_handled=
21253   names_next_round='intl '
21254   while test -n "$names_next_round"; do
21255     names_this_round="$names_next_round"
21256     names_next_round=
21257     for name in $names_this_round; do
21258       already_handled=
21259       for n in $names_already_handled; do
21260         if test "$n" = "$name"; then
21261           already_handled=yes
21262           break
21263         fi
21264       done
21265       if test -z "$already_handled"; then
21266         names_already_handled="$names_already_handled $name"
21267                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21268         eval value=\"\$HAVE_LIB$uppername\"
21269         if test -n "$value"; then
21270           if test "$value" = yes; then
21271             eval value=\"\$LIB$uppername\"
21272             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21273             eval value=\"\$LTLIB$uppername\"
21274             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21275           else
21276                                     :
21277           fi
21278         else
21279                               found_dir=
21280           found_la=
21281           found_so=
21282           found_a=
21283           if test $use_additional = yes; then
21284             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21285               found_dir="$additional_libdir"
21286               found_so="$additional_libdir/lib$name.$shlibext"
21287               if test -f "$additional_libdir/lib$name.la"; then
21288                 found_la="$additional_libdir/lib$name.la"
21289               fi
21290             else
21291               if test -f "$additional_libdir/lib$name.$libext"; then
21292                 found_dir="$additional_libdir"
21293                 found_a="$additional_libdir/lib$name.$libext"
21294                 if test -f "$additional_libdir/lib$name.la"; then
21295                   found_la="$additional_libdir/lib$name.la"
21296                 fi
21297               fi
21298             fi
21299           fi
21300           if test "X$found_dir" = "X"; then
21301             for x in $LDFLAGS $LTLIBINTL; do
21302
21303   acl_save_prefix="$prefix"
21304   prefix="$acl_final_prefix"
21305   acl_save_exec_prefix="$exec_prefix"
21306   exec_prefix="$acl_final_exec_prefix"
21307   eval x=\"$x\"
21308   exec_prefix="$acl_save_exec_prefix"
21309   prefix="$acl_save_prefix"
21310
21311               case "$x" in
21312                 -L*)
21313                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21314                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21315                     found_dir="$dir"
21316                     found_so="$dir/lib$name.$shlibext"
21317                     if test -f "$dir/lib$name.la"; then
21318                       found_la="$dir/lib$name.la"
21319                     fi
21320                   else
21321                     if test -f "$dir/lib$name.$libext"; then
21322                       found_dir="$dir"
21323                       found_a="$dir/lib$name.$libext"
21324                       if test -f "$dir/lib$name.la"; then
21325                         found_la="$dir/lib$name.la"
21326                       fi
21327                     fi
21328                   fi
21329                   ;;
21330               esac
21331               if test "X$found_dir" != "X"; then
21332                 break
21333               fi
21334             done
21335           fi
21336           if test "X$found_dir" != "X"; then
21337                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21338             if test "X$found_so" != "X"; then
21339                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21340                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21341               else
21342                                                                                 haveit=
21343                 for x in $ltrpathdirs; do
21344                   if test "X$x" = "X$found_dir"; then
21345                     haveit=yes
21346                     break
21347                   fi
21348                 done
21349                 if test -z "$haveit"; then
21350                   ltrpathdirs="$ltrpathdirs $found_dir"
21351                 fi
21352                                 if test "$hardcode_direct" = yes; then
21353                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21354                 else
21355                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21356                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21357                                                             haveit=
21358                     for x in $rpathdirs; do
21359                       if test "X$x" = "X$found_dir"; then
21360                         haveit=yes
21361                         break
21362                       fi
21363                     done
21364                     if test -z "$haveit"; then
21365                       rpathdirs="$rpathdirs $found_dir"
21366                     fi
21367                   else
21368                                                                                 haveit=
21369                     for x in $LDFLAGS $LIBINTL; do
21370
21371   acl_save_prefix="$prefix"
21372   prefix="$acl_final_prefix"
21373   acl_save_exec_prefix="$exec_prefix"
21374   exec_prefix="$acl_final_exec_prefix"
21375   eval x=\"$x\"
21376   exec_prefix="$acl_save_exec_prefix"
21377   prefix="$acl_save_prefix"
21378
21379                       if test "X$x" = "X-L$found_dir"; then
21380                         haveit=yes
21381                         break
21382                       fi
21383                     done
21384                     if test -z "$haveit"; then
21385                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21386                     fi
21387                     if test "$hardcode_minus_L" != no; then
21388                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21389                     else
21390                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21391                     fi
21392                   fi
21393                 fi
21394               fi
21395             else
21396               if test "X$found_a" != "X"; then
21397                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21398               else
21399                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21400               fi
21401             fi
21402                         additional_includedir=
21403             case "$found_dir" in
21404               */lib | */lib/)
21405                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21406                 additional_includedir="$basedir/include"
21407                 ;;
21408             esac
21409             if test "X$additional_includedir" != "X"; then
21410                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21411                 haveit=
21412                 if test "X$additional_includedir" = "X/usr/local/include"; then
21413                   if test -n "$GCC"; then
21414                     case $host_os in
21415                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21416                     esac
21417                   fi
21418                 fi
21419                 if test -z "$haveit"; then
21420                   for x in $CPPFLAGS $INCINTL; do
21421
21422   acl_save_prefix="$prefix"
21423   prefix="$acl_final_prefix"
21424   acl_save_exec_prefix="$exec_prefix"
21425   exec_prefix="$acl_final_exec_prefix"
21426   eval x=\"$x\"
21427   exec_prefix="$acl_save_exec_prefix"
21428   prefix="$acl_save_prefix"
21429
21430                     if test "X$x" = "X-I$additional_includedir"; then
21431                       haveit=yes
21432                       break
21433                     fi
21434                   done
21435                   if test -z "$haveit"; then
21436                     if test -d "$additional_includedir"; then
21437                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21438                     fi
21439                   fi
21440                 fi
21441               fi
21442             fi
21443                         if test -n "$found_la"; then
21444                                                         save_libdir="$libdir"
21445               case "$found_la" in
21446                 */* | *\\*) . "$found_la" ;;
21447                 *) . "./$found_la" ;;
21448               esac
21449               libdir="$save_libdir"
21450                             for dep in $dependency_libs; do
21451                 case "$dep" in
21452                   -L*)
21453                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21454                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21455                       haveit=
21456                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21457                         if test -n "$GCC"; then
21458                           case $host_os in
21459                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21460                           esac
21461                         fi
21462                       fi
21463                       if test -z "$haveit"; then
21464                         haveit=
21465                         for x in $LDFLAGS $LIBINTL; do
21466
21467   acl_save_prefix="$prefix"
21468   prefix="$acl_final_prefix"
21469   acl_save_exec_prefix="$exec_prefix"
21470   exec_prefix="$acl_final_exec_prefix"
21471   eval x=\"$x\"
21472   exec_prefix="$acl_save_exec_prefix"
21473   prefix="$acl_save_prefix"
21474
21475                           if test "X$x" = "X-L$additional_libdir"; then
21476                             haveit=yes
21477                             break
21478                           fi
21479                         done
21480                         if test -z "$haveit"; then
21481                           if test -d "$additional_libdir"; then
21482                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21483                           fi
21484                         fi
21485                         haveit=
21486                         for x in $LDFLAGS $LTLIBINTL; do
21487
21488   acl_save_prefix="$prefix"
21489   prefix="$acl_final_prefix"
21490   acl_save_exec_prefix="$exec_prefix"
21491   exec_prefix="$acl_final_exec_prefix"
21492   eval x=\"$x\"
21493   exec_prefix="$acl_save_exec_prefix"
21494   prefix="$acl_save_prefix"
21495
21496                           if test "X$x" = "X-L$additional_libdir"; then
21497                             haveit=yes
21498                             break
21499                           fi
21500                         done
21501                         if test -z "$haveit"; then
21502                           if test -d "$additional_libdir"; then
21503                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21504                           fi
21505                         fi
21506                       fi
21507                     fi
21508                     ;;
21509                   -R*)
21510                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21511                     if test "$enable_rpath" != no; then
21512                                                                   haveit=
21513                       for x in $rpathdirs; do
21514                         if test "X$x" = "X$dir"; then
21515                           haveit=yes
21516                           break
21517                         fi
21518                       done
21519                       if test -z "$haveit"; then
21520                         rpathdirs="$rpathdirs $dir"
21521                       fi
21522                                                                   haveit=
21523                       for x in $ltrpathdirs; do
21524                         if test "X$x" = "X$dir"; then
21525                           haveit=yes
21526                           break
21527                         fi
21528                       done
21529                       if test -z "$haveit"; then
21530                         ltrpathdirs="$ltrpathdirs $dir"
21531                       fi
21532                     fi
21533                     ;;
21534                   -l*)
21535                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21536                     ;;
21537                   *.la)
21538                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21539                     ;;
21540                   *)
21541                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21542                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21543                     ;;
21544                 esac
21545               done
21546             fi
21547           else
21548                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21549             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21550           fi
21551         fi
21552       fi
21553     done
21554   done
21555   if test "X$rpathdirs" != "X"; then
21556     if test -n "$hardcode_libdir_separator"; then
21557                         alldirs=
21558       for found_dir in $rpathdirs; do
21559         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21560       done
21561             acl_save_libdir="$libdir"
21562       libdir="$alldirs"
21563       eval flag=\"$hardcode_libdir_flag_spec\"
21564       libdir="$acl_save_libdir"
21565       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21566     else
21567             for found_dir in $rpathdirs; do
21568         acl_save_libdir="$libdir"
21569         libdir="$found_dir"
21570         eval flag=\"$hardcode_libdir_flag_spec\"
21571         libdir="$acl_save_libdir"
21572         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21573       done
21574     fi
21575   fi
21576   if test "X$ltrpathdirs" != "X"; then
21577             for found_dir in $ltrpathdirs; do
21578       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21579     done
21580   fi
21581
21582           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21583 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21584 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21585   $as_echo_n "(cached) " >&6
21586 else
21587   gt_save_CPPFLAGS="$CPPFLAGS"
21588             CPPFLAGS="$CPPFLAGS $INCINTL"
21589             gt_save_LIBS="$LIBS"
21590             LIBS="$LIBS $LIBINTL"
21591                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21592 /* end confdefs.h.  */
21593 #include <libintl.h>
21594 extern int _nl_msg_cat_cntr;
21595 extern
21596 #ifdef __cplusplus
21597 "C"
21598 #endif
21599 const char *_nl_expand_alias (const char *);
21600 int
21601 main ()
21602 {
21603 bindtextdomain ("", "");
21604 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21605   ;
21606   return 0;
21607 }
21608 _ACEOF
21609 if ac_fn_c_try_link "$LINENO"; then :
21610   gt_cv_func_gnugettext1_libintl=yes
21611 else
21612   gt_cv_func_gnugettext1_libintl=no
21613 fi
21614 rm -f core conftest.err conftest.$ac_objext \
21615     conftest$ac_exeext conftest.$ac_ext
21616                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21617               LIBS="$LIBS $LIBICONV"
21618               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21619 /* end confdefs.h.  */
21620 #include <libintl.h>
21621 extern int _nl_msg_cat_cntr;
21622 extern
21623 #ifdef __cplusplus
21624 "C"
21625 #endif
21626 const char *_nl_expand_alias (const char *);
21627 int
21628 main ()
21629 {
21630 bindtextdomain ("", "");
21631 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 if ac_fn_c_try_link "$LINENO"; then :
21637   LIBINTL="$LIBINTL $LIBICONV"
21638                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21639                 gt_cv_func_gnugettext1_libintl=yes
21640
21641 fi
21642 rm -f core conftest.err conftest.$ac_objext \
21643     conftest$ac_exeext conftest.$ac_ext
21644             fi
21645             CPPFLAGS="$gt_save_CPPFLAGS"
21646             LIBS="$gt_save_LIBS"
21647 fi
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21649 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21650         fi
21651
21652                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21653            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21654                 && test "$PACKAGE" != gettext-runtime \
21655                 && test "$PACKAGE" != gettext-tools; }; then
21656           gt_use_preinstalled_gnugettext=yes
21657         else
21658                     LIBINTL=
21659           LTLIBINTL=
21660           INCINTL=
21661         fi
21662
21663
21664         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21665                               nls_cv_use_gnu_gettext=yes
21666         fi
21667       fi
21668
21669       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21670                 BUILD_INCLUDED_LIBINTL=yes
21671         USE_INCLUDED_LIBINTL=yes
21672         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21673         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21674         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21675       fi
21676
21677       CATOBJEXT=
21678       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21679          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21680                 CATOBJEXT=.gmo
21681       fi
21682
21683
21684     if test -n "$INTL_MACOSX_LIBS"; then
21685       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21686          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21687                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21688         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21689       fi
21690     fi
21691
21692     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21693        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21694
21695 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21696
21697     else
21698       USE_NLS=no
21699     fi
21700   fi
21701
21702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21703 $as_echo_n "checking whether to use NLS... " >&6; }
21704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21705 $as_echo "$USE_NLS" >&6; }
21706   if test "$USE_NLS" = "yes"; then
21707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21708 $as_echo_n "checking where the gettext function comes from... " >&6; }
21709     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21710       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21711         gt_source="external libintl"
21712       else
21713         gt_source="libc"
21714       fi
21715     else
21716       gt_source="included intl directory"
21717     fi
21718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21719 $as_echo "$gt_source" >&6; }
21720   fi
21721
21722   if test "$USE_NLS" = "yes"; then
21723
21724     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21725       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21727 $as_echo_n "checking how to link with libintl... " >&6; }
21728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21729 $as_echo "$LIBINTL" >&6; }
21730
21731   for element in $INCINTL; do
21732     haveit=
21733     for x in $CPPFLAGS; do
21734
21735   acl_save_prefix="$prefix"
21736   prefix="$acl_final_prefix"
21737   acl_save_exec_prefix="$exec_prefix"
21738   exec_prefix="$acl_final_exec_prefix"
21739   eval x=\"$x\"
21740   exec_prefix="$acl_save_exec_prefix"
21741   prefix="$acl_save_prefix"
21742
21743       if test "X$x" = "X$element"; then
21744         haveit=yes
21745         break
21746       fi
21747     done
21748     if test -z "$haveit"; then
21749       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21750     fi
21751   done
21752
21753       fi
21754
21755
21756 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21757
21758
21759 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21760
21761     fi
21762
21763         POSUB=po
21764   fi
21765
21766
21767             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21768       BUILD_INCLUDED_LIBINTL=yes
21769     fi
21770
21771
21772
21773
21774
21775         nls_cv_header_intl=
21776     nls_cv_header_libgt=
21777
21778         DATADIRNAME=share
21779
21780
21781         INSTOBJEXT=.mo
21782
21783
21784         GENCAT=gencat
21785
21786
21787         INTLOBJS=
21788     if test "$USE_INCLUDED_LIBINTL" = yes; then
21789       INTLOBJS="\$(GETTOBJS)"
21790     fi
21791
21792
21793         INTL_LIBTOOL_SUFFIX_PREFIX=
21794
21795
21796
21797     INTLLIBS="$LIBINTL"
21798
21799
21800
21801
21802
21803
21804 fi
21805
21806 support_smartalloc=yes
21807 support_readline=yes
21808 support_lzo=yes
21809 support_conio=yes
21810 support_bat=no
21811 support_tls=no
21812 support_crypto=no
21813 support_static_tools=no
21814 support_static_fd=no
21815 support_static_sd=no
21816 support_static_dir=no
21817 support_static_cons=no
21818 build_client_only=no
21819 build_dird=yes
21820 build_stored=yes
21821 db_backends=""
21822 batch_insert_db_backends=""
21823 support_lockmgr=no
21824
21825
21826 # Check whether --enable-bat was given.
21827 if test "${enable_bat+set}" = set; then :
21828   enableval=$enable_bat;
21829        if test x$enableval = xyes; then
21830
21831 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21832
21833           support_bat=yes
21834        fi
21835
21836
21837 fi
21838
21839
21840 BAT_DIR=
21841 if test x$support_bat = xyes; then
21842    abc=`$PKGCONFIG QtGui`
21843    pkg=$?
21844    if test $pkg = 0; then
21845       BAT_DIR=src/qt-console
21846    else
21847      abc=`$PKGCONFIG Qt5Gui`
21848      pkg=$?
21849      if test $pkg = 0; then
21850         BAT_DIR=src/qt-console
21851      else
21852         as_fn_error $? "Unable to find either Qt4 or Qt5 installation needed by bat" "$LINENO" 5
21853      fi
21854    fi
21855 fi
21856
21857
21858
21859
21860
21861
21862
21863 # Check whether --enable-smartalloc was given.
21864 if test "${enable_smartalloc+set}" = set; then :
21865   enableval=$enable_smartalloc;
21866        if test x$enableval = xno; then
21867           support_smartalloc=no
21868        fi
21869
21870
21871 fi
21872
21873
21874 if test x$support_smartalloc = xyes; then
21875
21876 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21877
21878 fi
21879
21880 # Check whether --enable-lockmgr was given.
21881 if test "${enable_lockmgr+set}" = set; then :
21882   enableval=$enable_lockmgr;
21883        if test x$enableval = xyes; then
21884           support_lockmgr=yes
21885        fi
21886
21887
21888 fi
21889
21890
21891 if test x$support_lockmgr = xyes; then
21892
21893 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21894
21895 fi
21896
21897
21898 # Check whether --enable-static-tools was given.
21899 if test "${enable_static_tools+set}" = set; then :
21900   enableval=$enable_static_tools;
21901        if test x$enableval = xyes; then
21902           if test x$use_libtool = xyes; then
21903              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21904   please rerun configure with --disable-libtool" "$LINENO" 5
21905           fi
21906           support_static_tools=yes
21907        fi
21908
21909
21910 fi
21911
21912
21913 TTOOL_LDFLAGS=
21914 if test x$support_static_tools = xyes; then
21915    TTOOL_LDFLAGS="-static"
21916 fi
21917
21918
21919 # Check whether --enable-static-fd was given.
21920 if test "${enable_static_fd+set}" = set; then :
21921   enableval=$enable_static_fd;
21922        if test x$enableval = xyes; then
21923           if test x$use_libtool = xyes; then
21924              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21925   please rerun configure with --disable-libtool" "$LINENO" 5
21926           fi
21927           support_static_fd=yes
21928        fi
21929
21930
21931 fi
21932
21933
21934 STATIC_FD=
21935 if test x$support_static_fd = xyes; then
21936    STATIC_FD="static-bacula-fd"
21937 fi
21938
21939
21940 # Check whether --enable-static-sd was given.
21941 if test "${enable_static_sd+set}" = set; then :
21942   enableval=$enable_static_sd;
21943        if test x$enableval = xyes; then
21944           if test x$use_libtool = xyes; then
21945              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21946   please rerun configure with --disable-libtool" "$LINENO" 5
21947           fi
21948           support_static_sd=yes
21949        fi
21950
21951
21952 fi
21953
21954
21955 STATIC_SD=
21956 if test x$support_static_sd = xyes; then
21957    STATIC_SD="static-bacula-sd"
21958 fi
21959
21960
21961 # Check whether --enable-static-dir was given.
21962 if test "${enable_static_dir+set}" = set; then :
21963   enableval=$enable_static_dir;
21964        if test x$enableval = xyes; then
21965           if test x$use_libtool = xyes; then
21966              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21967   please rerun configure with --disable-libtool" "$LINENO" 5
21968           fi
21969           support_static_dir=yes
21970        fi
21971
21972
21973 fi
21974
21975
21976 STATIC_DIR=
21977 if test x$support_static_dir = xyes; then
21978    STATIC_DIR="static-bacula-dir"
21979 fi
21980
21981
21982 # Check whether --enable-static-cons was given.
21983 if test "${enable_static_cons+set}" = set; then :
21984   enableval=$enable_static_cons;
21985        if test x$enableval = xyes; then
21986           if test x$use_libtool = xyes; then
21987              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21988   please rerun configure with --disable-libtool" "$LINENO" 5
21989           fi
21990           support_static_cons=yes
21991        fi
21992
21993
21994 fi
21995
21996
21997 STATIC_CONS=
21998 if test x$support_static_cons = xyes; then
21999    STATIC_CONS="static-bconsole"
22000 fi
22001
22002
22003 # Check whether --enable-client-only was given.
22004 if test "${enable_client_only+set}" = set; then :
22005   enableval=$enable_client_only;
22006        if test x$enableval = xyes; then
22007           build_client_only=yes
22008           db_backends="None"
22009           DB_BACKENDS="none"
22010        fi
22011
22012
22013 fi
22014
22015 if test x$build_client_only = xno; then
22016    ALL_DIRS="subdirs"
22017 else
22018    ALL_DIRS=""
22019 fi
22020
22021
22022 # Check whether --enable-build-dird was given.
22023 if test "${enable_build_dird+set}" = set; then :
22024   enableval=$enable_build_dird;
22025        if test x$enableval = xno; then
22026           build_dird=no
22027        fi
22028
22029
22030 fi
22031
22032
22033 DIRD_DIR="src/dird"
22034 DIR_TOOLS="DIRTOOLS"
22035
22036
22037
22038
22039 # Check whether --enable-build-stored was given.
22040 if test "${enable_build_stored+set}" = set; then :
22041   enableval=$enable_build_stored;
22042       if test x$enableval = xno; then
22043          build_stored=no
22044       fi
22045
22046
22047 fi
22048
22049 if test x$build_stored = xyes; then
22050    STORED_DIR="src/stored"
22051 else
22052    STORED_DIR=""
22053 fi
22054
22055
22056 # Check whether --enable-conio was given.
22057 if test "${enable_conio+set}" = set; then :
22058   enableval=$enable_conio;
22059        if test x$enableval = xno; then
22060           support_conio=no
22061        fi
22062
22063
22064 fi
22065
22066
22067
22068 support_ipv6=yes
22069 # Check whether --enable-ipv6 was given.
22070 if test "${enable_ipv6+set}" = set; then :
22071   enableval=$enable_ipv6;
22072        if test x$enableval = xno; then
22073           support_ipv6=no
22074        fi
22075
22076
22077 fi
22078
22079
22080 if test x$support_ipv6 = xyes; then
22081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h.  */
22083  #include <sys/types.h>
22084 #include <sys/socket.h>
22085 #include <netinet/in.h>
22086 int
22087 main ()
22088 {
22089 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 if ac_fn_c_try_link "$LINENO"; then :
22095   support_in6addr_any=yes
22096 else
22097   support_in6addr_any=no
22098 fi
22099 rm -f core conftest.err conftest.$ac_objext \
22100     conftest$ac_exeext conftest.$ac_ext
22101
22102    if test x$support_in6addr_any = xno ; then
22103        in6addr_any="const struct in6_addr in6addr_any"
22104    else
22105        in6addr_any="1"
22106    fi
22107
22108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22109 /* end confdefs.h.  */
22110  #include <sys/types.h>
22111 #include <sys/socket.h>
22112 #include <netinet/in.h>
22113 int
22114 main ()
22115 {
22116 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 if ac_fn_c_try_link "$LINENO"; then :
22122   support_ipv6=yes
22123 else
22124   support_ipv6=no
22125 fi
22126 rm -f core conftest.err conftest.$ac_objext \
22127     conftest$ac_exeext conftest.$ac_ext
22128 fi
22129
22130 if test x$support_ipv6 = xyes; then
22131
22132 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22133
22134
22135    if test x$support_in6addr_any = xno ; then
22136
22137 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22138
22139    fi
22140 fi
22141
22142 TERM_LIB=""
22143 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22144 if test "x$ac_cv_header_curses_h" = xyes; then :
22145
22146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22147 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22148 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22149   $as_echo_n "(cached) " >&6
22150 else
22151   ac_check_lib_save_LIBS=$LIBS
22152 LIBS="-ltinfo  $LIBS"
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h.  */
22155
22156 /* Override any GCC internal prototype to avoid an error.
22157    Use char because int might match the return type of a GCC
22158    builtin and then its argument prototype would still apply.  */
22159 #ifdef __cplusplus
22160 extern "C"
22161 #endif
22162 char tgetent ();
22163 int
22164 main ()
22165 {
22166 return tgetent ();
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 if ac_fn_c_try_link "$LINENO"; then :
22172   ac_cv_lib_tinfo_tgetent=yes
22173 else
22174   ac_cv_lib_tinfo_tgetent=no
22175 fi
22176 rm -f core conftest.err conftest.$ac_objext \
22177     conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22179 fi
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22181 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22182 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22183    TERM_LIB="-ltinfo"
22184 else
22185
22186       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22187 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22188 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22189   $as_echo_n "(cached) " >&6
22190 else
22191   ac_check_lib_save_LIBS=$LIBS
22192 LIBS="-lncurses  $LIBS"
22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h.  */
22195
22196 /* Override any GCC internal prototype to avoid an error.
22197    Use char because int might match the return type of a GCC
22198    builtin and then its argument prototype would still apply.  */
22199 #ifdef __cplusplus
22200 extern "C"
22201 #endif
22202 char tgetent ();
22203 int
22204 main ()
22205 {
22206 return tgetent ();
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 if ac_fn_c_try_link "$LINENO"; then :
22212   ac_cv_lib_ncurses_tgetent=yes
22213 else
22214   ac_cv_lib_ncurses_tgetent=no
22215 fi
22216 rm -f core conftest.err conftest.$ac_objext \
22217     conftest$ac_exeext conftest.$ac_ext
22218 LIBS=$ac_check_lib_save_LIBS
22219 fi
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22221 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22222 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22223    TERM_LIB="-lncurses"
22224 else
22225
22226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22227 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22228 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22229   $as_echo_n "(cached) " >&6
22230 else
22231   ac_check_lib_save_LIBS=$LIBS
22232 LIBS="-ltermcap  $LIBS"
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h.  */
22235
22236 /* Override any GCC internal prototype to avoid an error.
22237    Use char because int might match the return type of a GCC
22238    builtin and then its argument prototype would still apply.  */
22239 #ifdef __cplusplus
22240 extern "C"
22241 #endif
22242 char tgetent ();
22243 int
22244 main ()
22245 {
22246 return tgetent ();
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 if ac_fn_c_try_link "$LINENO"; then :
22252   ac_cv_lib_termcap_tgetent=yes
22253 else
22254   ac_cv_lib_termcap_tgetent=no
22255 fi
22256 rm -f core conftest.err conftest.$ac_objext \
22257     conftest$ac_exeext conftest.$ac_ext
22258 LIBS=$ac_check_lib_save_LIBS
22259 fi
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22261 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22262 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22263    TERM_LIB="-ltermcap"
22264 fi
22265
22266
22267 fi
22268
22269
22270 fi
22271
22272
22273 else
22274     for ac_header in curses.h
22275 do :
22276   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_curses_h" = xyes; then :
22278   cat >>confdefs.h <<_ACEOF
22279 #define HAVE_CURSES_H 1
22280 _ACEOF
22281
22282 fi
22283
22284 done
22285
22286      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22287 if test "x$ac_cv_header_term_h" = xyes; then :
22288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22289 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22290 if ${ac_cv_lib_curses_tgetent+:} false; then :
22291   $as_echo_n "(cached) " >&6
22292 else
22293   ac_check_lib_save_LIBS=$LIBS
22294 LIBS="-lcurses  $LIBS"
22295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22296 /* end confdefs.h.  */
22297
22298 /* Override any GCC internal prototype to avoid an error.
22299    Use char because int might match the return type of a GCC
22300    builtin and then its argument prototype would still apply.  */
22301 #ifdef __cplusplus
22302 extern "C"
22303 #endif
22304 char tgetent ();
22305 int
22306 main ()
22307 {
22308 return tgetent ();
22309   ;
22310   return 0;
22311 }
22312 _ACEOF
22313 if ac_fn_c_try_link "$LINENO"; then :
22314   ac_cv_lib_curses_tgetent=yes
22315 else
22316   ac_cv_lib_curses_tgetent=no
22317 fi
22318 rm -f core conftest.err conftest.$ac_objext \
22319     conftest$ac_exeext conftest.$ac_ext
22320 LIBS=$ac_check_lib_save_LIBS
22321 fi
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22323 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22324 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22325    TERM_LIB="-lcurses"
22326 fi
22327
22328
22329 fi
22330
22331
22332
22333 fi
22334
22335
22336
22337
22338 got_conio="no"
22339 if test x$support_conio = xyes; then
22340    if test x$TERM_LIB != x; then
22341       CONS_LIBS=$TERM_LIB
22342       CONS_OBJ="conio.o"
22343       CONS_SRC="conio.c"
22344       got_conio="yes"
22345       support_readline=no
22346
22347 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22348
22349    else
22350       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22351    fi
22352 fi
22353
22354
22355 # Check whether --enable-readline was given.
22356 if test "${enable_readline+set}" = set; then :
22357   enableval=$enable_readline;
22358        if test x$enableval = xno; then
22359           support_readline=no
22360        fi
22361
22362
22363 fi
22364
22365
22366 got_readline="no"
22367 READLINE_SRC=
22368 if test x$support_readline = xyes; then
22369
22370 # Check whether --with-readline was given.
22371 if test "${with_readline+set}" = set; then :
22372   withval=$with_readline;
22373           case "$with_readline" in
22374           no)
22375              :
22376              ;;
22377           yes|*)
22378              if test -f ${with_readline}/readline.h; then
22379                 CONS_INC="-I${with_readline}"
22380                 CONS_LDFLAGS="-L$with_readline"
22381              elif test -f ${with_readline}/include/readline/readline.h; then
22382                 CONS_INC="-I${with_readline}/include/readline"
22383                 CONS_LDFLAGS="-L${with_readline}/lib"
22384                 with_readline="${with_readline}/include/readline"
22385              else
22386                 with_readline="/usr/include/readline"
22387              fi
22388
22389              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22390 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22392
22393
22394 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22395
22396                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22397                     got_readline="yes"
22398
22399 else
22400
22401                     echo " "
22402                     echo "readline.h not found. readline turned off ..."
22403                     echo " "
22404
22405
22406 fi
22407
22408
22409              ;;
22410           esac
22411
22412 else
22413
22414                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22415 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22416
22417
22418 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22419
22420                 got_readline="yes"
22421                 CONS_INC="-I/usr/include/readline"
22422                 CONS_LIBS="-lreadline ${TERM_LIB}"
22423
22424 else
22425
22426                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22427 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22429
22430
22431 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22432
22433                         got_readline="yes"
22434                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22435                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22436                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22437                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22438
22439 else
22440
22441                         echo " "
22442                         echo "readline.h not found. readline turned off ..."
22443                         echo " "
22444
22445
22446 fi
22447
22448
22449
22450
22451 fi
22452
22453
22454
22455
22456 fi
22457
22458 fi
22459
22460
22461
22462
22463
22464
22465
22466
22467 MAKE_SHELL=/bin/sh
22468
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22470 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22471 if ${ac_cv_header_stat_broken+:} false; then :
22472   $as_echo_n "(cached) " >&6
22473 else
22474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22475 /* end confdefs.h.  */
22476 #include <sys/types.h>
22477 #include <sys/stat.h>
22478
22479 #if defined S_ISBLK && defined S_IFDIR
22480 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22481 #endif
22482
22483 #if defined S_ISBLK && defined S_IFCHR
22484 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22485 #endif
22486
22487 #if defined S_ISLNK && defined S_IFREG
22488 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22489 #endif
22490
22491 #if defined S_ISSOCK && defined S_IFREG
22492 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22493 #endif
22494
22495 _ACEOF
22496 if ac_fn_c_try_compile "$LINENO"; then :
22497   ac_cv_header_stat_broken=no
22498 else
22499   ac_cv_header_stat_broken=yes
22500 fi
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 fi
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22504 $as_echo "$ac_cv_header_stat_broken" >&6; }
22505 if test $ac_cv_header_stat_broken = yes; then
22506
22507 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22508
22509 fi
22510
22511 ac_header_dirent=no
22512 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22513   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22515 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22516 if eval \${$as_ac_Header+:} false; then :
22517   $as_echo_n "(cached) " >&6
22518 else
22519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520 /* end confdefs.h.  */
22521 #include <sys/types.h>
22522 #include <$ac_hdr>
22523
22524 int
22525 main ()
22526 {
22527 if ((DIR *) 0)
22528 return 0;
22529   ;
22530   return 0;
22531 }
22532 _ACEOF
22533 if ac_fn_c_try_compile "$LINENO"; then :
22534   eval "$as_ac_Header=yes"
22535 else
22536   eval "$as_ac_Header=no"
22537 fi
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 fi
22540 eval ac_res=\$$as_ac_Header
22541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22542 $as_echo "$ac_res" >&6; }
22543 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22544   cat >>confdefs.h <<_ACEOF
22545 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22546 _ACEOF
22547
22548 ac_header_dirent=$ac_hdr; break
22549 fi
22550
22551 done
22552 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22553 if test $ac_header_dirent = dirent.h; then
22554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22555 $as_echo_n "checking for library containing opendir... " >&6; }
22556 if ${ac_cv_search_opendir+:} false; then :
22557   $as_echo_n "(cached) " >&6
22558 else
22559   ac_func_search_save_LIBS=$LIBS
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h.  */
22562
22563 /* Override any GCC internal prototype to avoid an error.
22564    Use char because int might match the return type of a GCC
22565    builtin and then its argument prototype would still apply.  */
22566 #ifdef __cplusplus
22567 extern "C"
22568 #endif
22569 char opendir ();
22570 int
22571 main ()
22572 {
22573 return opendir ();
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 for ac_lib in '' dir; do
22579   if test -z "$ac_lib"; then
22580     ac_res="none required"
22581   else
22582     ac_res=-l$ac_lib
22583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22584   fi
22585   if ac_fn_c_try_link "$LINENO"; then :
22586   ac_cv_search_opendir=$ac_res
22587 fi
22588 rm -f core conftest.err conftest.$ac_objext \
22589     conftest$ac_exeext
22590   if ${ac_cv_search_opendir+:} false; then :
22591   break
22592 fi
22593 done
22594 if ${ac_cv_search_opendir+:} false; then :
22595
22596 else
22597   ac_cv_search_opendir=no
22598 fi
22599 rm conftest.$ac_ext
22600 LIBS=$ac_func_search_save_LIBS
22601 fi
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22603 $as_echo "$ac_cv_search_opendir" >&6; }
22604 ac_res=$ac_cv_search_opendir
22605 if test "$ac_res" != no; then :
22606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22607
22608 fi
22609
22610 else
22611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22612 $as_echo_n "checking for library containing opendir... " >&6; }
22613 if ${ac_cv_search_opendir+:} false; then :
22614   $as_echo_n "(cached) " >&6
22615 else
22616   ac_func_search_save_LIBS=$LIBS
22617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618 /* end confdefs.h.  */
22619
22620 /* Override any GCC internal prototype to avoid an error.
22621    Use char because int might match the return type of a GCC
22622    builtin and then its argument prototype would still apply.  */
22623 #ifdef __cplusplus
22624 extern "C"
22625 #endif
22626 char opendir ();
22627 int
22628 main ()
22629 {
22630 return opendir ();
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 for ac_lib in '' x; do
22636   if test -z "$ac_lib"; then
22637     ac_res="none required"
22638   else
22639     ac_res=-l$ac_lib
22640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22641   fi
22642   if ac_fn_c_try_link "$LINENO"; then :
22643   ac_cv_search_opendir=$ac_res
22644 fi
22645 rm -f core conftest.err conftest.$ac_objext \
22646     conftest$ac_exeext
22647   if ${ac_cv_search_opendir+:} false; then :
22648   break
22649 fi
22650 done
22651 if ${ac_cv_search_opendir+:} false; then :
22652
22653 else
22654   ac_cv_search_opendir=no
22655 fi
22656 rm conftest.$ac_ext
22657 LIBS=$ac_func_search_save_LIBS
22658 fi
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22660 $as_echo "$ac_cv_search_opendir" >&6; }
22661 ac_res=$ac_cv_search_opendir
22662 if test "$ac_res" != no; then :
22663   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22664
22665 fi
22666
22667 fi
22668
22669 for ac_func in strcasecmp select setenv putenv tcgetattr
22670 do :
22671   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22673 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22674   cat >>confdefs.h <<_ACEOF
22675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22676 _ACEOF
22677
22678 fi
22679 done
22680
22681 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22682 do :
22683   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22685 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22686   cat >>confdefs.h <<_ACEOF
22687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22688 _ACEOF
22689
22690 fi
22691 done
22692
22693 for ac_func in nanosleep nl_langinfo
22694 do :
22695   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22698   cat >>confdefs.h <<_ACEOF
22699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22700 _ACEOF
22701
22702 fi
22703 done
22704
22705 for ac_func in be64toh htobe64
22706 do :
22707   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22709 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22710   cat >>confdefs.h <<_ACEOF
22711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22712 _ACEOF
22713
22714 fi
22715 done
22716
22717 for ac_header in varargs.h
22718 do :
22719   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22720 if test "x$ac_cv_header_varargs_h" = xyes; then :
22721   cat >>confdefs.h <<_ACEOF
22722 #define HAVE_VARARGS_H 1
22723 _ACEOF
22724
22725 fi
22726
22727 done
22728
22729
22730
22731 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22732 if test "x$ac_cv_func_socket" = xyes; then :
22733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22734 $as_echo "using libc's socket" >&6; }
22735 else
22736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22737 $as_echo_n "checking for socket in -lxnet... " >&6; }
22738 if ${ac_cv_lib_xnet_socket+:} false; then :
22739   $as_echo_n "(cached) " >&6
22740 else
22741   ac_check_lib_save_LIBS=$LIBS
22742 LIBS="-lxnet  $LIBS"
22743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22744 /* end confdefs.h.  */
22745
22746 /* Override any GCC internal prototype to avoid an error.
22747    Use char because int might match the return type of a GCC
22748    builtin and then its argument prototype would still apply.  */
22749 #ifdef __cplusplus
22750 extern "C"
22751 #endif
22752 char socket ();
22753 int
22754 main ()
22755 {
22756 return socket ();
22757   ;
22758   return 0;
22759 }
22760 _ACEOF
22761 if ac_fn_c_try_link "$LINENO"; then :
22762   ac_cv_lib_xnet_socket=yes
22763 else
22764   ac_cv_lib_xnet_socket=no
22765 fi
22766 rm -f core conftest.err conftest.$ac_objext \
22767     conftest$ac_exeext conftest.$ac_ext
22768 LIBS=$ac_check_lib_save_LIBS
22769 fi
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22771 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22772 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22773   cat >>confdefs.h <<_ACEOF
22774 #define HAVE_LIBXNET 1
22775 _ACEOF
22776
22777   LIBS="-lxnet $LIBS"
22778
22779 fi
22780
22781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22782 $as_echo_n "checking for socket in -lsocket... " >&6; }
22783 if ${ac_cv_lib_socket_socket+:} false; then :
22784   $as_echo_n "(cached) " >&6
22785 else
22786   ac_check_lib_save_LIBS=$LIBS
22787 LIBS="-lsocket  $LIBS"
22788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22789 /* end confdefs.h.  */
22790
22791 /* Override any GCC internal prototype to avoid an error.
22792    Use char because int might match the return type of a GCC
22793    builtin and then its argument prototype would still apply.  */
22794 #ifdef __cplusplus
22795 extern "C"
22796 #endif
22797 char socket ();
22798 int
22799 main ()
22800 {
22801 return socket ();
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 if ac_fn_c_try_link "$LINENO"; then :
22807   ac_cv_lib_socket_socket=yes
22808 else
22809   ac_cv_lib_socket_socket=no
22810 fi
22811 rm -f core conftest.err conftest.$ac_objext \
22812     conftest$ac_exeext conftest.$ac_ext
22813 LIBS=$ac_check_lib_save_LIBS
22814 fi
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22816 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22817 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22818   cat >>confdefs.h <<_ACEOF
22819 #define HAVE_LIBSOCKET 1
22820 _ACEOF
22821
22822   LIBS="-lsocket $LIBS"
22823
22824 fi
22825
22826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22827 $as_echo_n "checking for socket in -linet... " >&6; }
22828 if ${ac_cv_lib_inet_socket+:} false; then :
22829   $as_echo_n "(cached) " >&6
22830 else
22831   ac_check_lib_save_LIBS=$LIBS
22832 LIBS="-linet  $LIBS"
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h.  */
22835
22836 /* Override any GCC internal prototype to avoid an error.
22837    Use char because int might match the return type of a GCC
22838    builtin and then its argument prototype would still apply.  */
22839 #ifdef __cplusplus
22840 extern "C"
22841 #endif
22842 char socket ();
22843 int
22844 main ()
22845 {
22846 return socket ();
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 if ac_fn_c_try_link "$LINENO"; then :
22852   ac_cv_lib_inet_socket=yes
22853 else
22854   ac_cv_lib_inet_socket=no
22855 fi
22856 rm -f core conftest.err conftest.$ac_objext \
22857     conftest$ac_exeext conftest.$ac_ext
22858 LIBS=$ac_check_lib_save_LIBS
22859 fi
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22861 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22862 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22863   cat >>confdefs.h <<_ACEOF
22864 #define HAVE_LIBINET 1
22865 _ACEOF
22866
22867   LIBS="-linet $LIBS"
22868
22869 fi
22870
22871 fi
22872
22873
22874 TCPW_MSG="no"
22875 WRAPLIBS=""
22876
22877 # Check whether --with-tcp-wrappers was given.
22878 if test "${with_tcp_wrappers+set}" = set; then :
22879   withval=$with_tcp_wrappers;
22880        if test "x$withval" != "xno" ; then
22881           saved_LIBS="$LIBS"
22882           LIBS="$saved_LIBS -lwrap"
22883           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22884 $as_echo_n "checking for library containing nanosleep... " >&6; }
22885 if ${ac_cv_search_nanosleep+:} false; then :
22886   $as_echo_n "(cached) " >&6
22887 else
22888   ac_func_search_save_LIBS=$LIBS
22889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h.  */
22891
22892 /* Override any GCC internal prototype to avoid an error.
22893    Use char because int might match the return type of a GCC
22894    builtin and then its argument prototype would still apply.  */
22895 #ifdef __cplusplus
22896 extern "C"
22897 #endif
22898 char nanosleep ();
22899 int
22900 main ()
22901 {
22902 return nanosleep ();
22903   ;
22904   return 0;
22905 }
22906 _ACEOF
22907 for ac_lib in '' rt; do
22908   if test -z "$ac_lib"; then
22909     ac_res="none required"
22910   else
22911     ac_res=-l$ac_lib
22912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22913   fi
22914   if ac_fn_c_try_link "$LINENO"; then :
22915   ac_cv_search_nanosleep=$ac_res
22916 fi
22917 rm -f core conftest.err conftest.$ac_objext \
22918     conftest$ac_exeext
22919   if ${ac_cv_search_nanosleep+:} false; then :
22920   break
22921 fi
22922 done
22923 if ${ac_cv_search_nanosleep+:} false; then :
22924
22925 else
22926   ac_cv_search_nanosleep=no
22927 fi
22928 rm conftest.$ac_ext
22929 LIBS=$ac_func_search_save_LIBS
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22932 $as_echo "$ac_cv_search_nanosleep" >&6; }
22933 ac_res=$ac_cv_search_nanosleep
22934 if test "$ac_res" != no; then :
22935   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22936
22937 fi
22938
22939           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22940 $as_echo_n "checking for libwrap... " >&6; }
22941           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h.  */
22943
22944                #include <sys/types.h>
22945                #include <tcpd.h>
22946                int deny_severity = 0;
22947                int allow_severity = 0;
22948                struct request_info *req;
22949
22950 int
22951 main ()
22952 {
22953
22954                 hosts_access(req);
22955
22956   ;
22957   return 0;
22958 }
22959 _ACEOF
22960 if ac_fn_c_try_link "$LINENO"; then :
22961
22962                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22963 $as_echo "yes" >&6; }
22964
22965 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22966
22967                  TCPW_MSG="yes"
22968                  LIBS="$saved_LIBS"
22969                  WRAPLIBS="-lwrap"
22970
22971 else
22972
22973                  LIBS="$saved_LIBS -lwrap -lnsl"
22974                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22975                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h.  */
22977
22978                        #include <sys/types.h>
22979                        #include <tcpd.h>
22980                        int deny_severity = 0;
22981                        int allow_severity = 0;
22982                        struct request_info *req;
22983
22984 int
22985 main ()
22986 {
22987
22988                        hosts_access(req);
22989
22990   ;
22991   return 0;
22992 }
22993 _ACEOF
22994 if ac_fn_c_try_link "$LINENO"; then :
22995
22996                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22997 $as_echo "yes" >&6; }
22998
22999 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23000
23001                       TCPW_MSG="yes"
23002                       LIBS="$saved_LIBS"
23003                       WRAPLIBS="-lwrap"
23004
23005 else
23006
23007                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
23008
23009
23010 fi
23011 rm -f core conftest.err conftest.$ac_objext \
23012     conftest$ac_exeext conftest.$ac_ext
23013
23014
23015 fi
23016 rm -f core conftest.err conftest.$ac_objext \
23017     conftest$ac_exeext conftest.$ac_ext
23018        fi
23019
23020
23021 fi
23022
23023
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23025 $as_echo_n "checking for OpenSSL... " >&6; }
23026
23027 # Check whether --with-openssl was given.
23028 if test "${with_openssl+set}" = set; then :
23029   withval=$with_openssl;
23030         with_openssl_directory=${withval}
23031
23032
23033 fi
23034
23035
23036 if test "x$with_openssl_directory" != "xno"; then
23037    OPENSSL_LIBS="-lssl -lcrypto"
23038    OPENSSL_INC=""
23039
23040    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23041       #
23042       # Make sure the $with_openssl_directory also makes sense
23043       #
23044       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23045          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23046          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23047       fi
23048    fi
23049
23050    saved_LIBS="${LIBS}"
23051    saved_CFLAGS="${CFLAGS}"
23052    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23053    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23054
23055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h.  */
23057
23058           #include <openssl/ssl.h>
23059
23060 int
23061 main ()
23062 {
23063
23064            CRYPTO_set_id_callback(NULL);
23065
23066   ;
23067   return 0;
23068 }
23069 _ACEOF
23070 if ac_fn_c_try_link "$LINENO"; then :
23071
23072           support_tls="yes"
23073           support_crypto="yes"
23074
23075 else
23076
23077           support_tls="no"
23078           support_crypto="no"
23079
23080
23081 fi
23082 rm -f core conftest.err conftest.$ac_objext \
23083     conftest$ac_exeext conftest.$ac_ext
23084
23085    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h.  */
23087
23088           #include <openssl/evp.h>
23089
23090 int
23091 main ()
23092 {
23093
23094           EVP_sha512();
23095
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 if ac_fn_c_try_link "$LINENO"; then :
23101
23102           ac_cv_openssl_sha2="yes"
23103
23104 else
23105
23106           ac_cv_openssl_sha2="no"
23107
23108
23109 fi
23110 rm -f core conftest.err conftest.$ac_objext \
23111     conftest$ac_exeext conftest.$ac_ext
23112
23113                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h.  */
23115
23116           #include <openssl/evp.h>
23117
23118 int
23119 main ()
23120 {
23121
23122           EVP_aes_192_cbc();
23123
23124   ;
23125   return 0;
23126 }
23127 _ACEOF
23128 if ac_fn_c_try_link "$LINENO"; then :
23129
23130           ac_cv_openssl_export="no"
23131
23132 else
23133
23134           ac_cv_openssl_export="yes"
23135
23136
23137 fi
23138 rm -f core conftest.err conftest.$ac_objext \
23139     conftest$ac_exeext conftest.$ac_ext
23140
23141    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23142 $as_echo "$support_tls" >&6; }
23143    if test "$support_tls" = "yes"; then
23144
23145 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23146
23147
23148 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23149
23150
23151 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23152
23153    fi
23154
23155    if test "$ac_cv_openssl_sha2" = "yes"; then
23156
23157 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23158
23159    fi
23160
23161    if test "$ac_cv_openssl_export" = "yes"; then
23162
23163 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23164
23165    fi
23166
23167    if test "$support_crypto" = "yes"; then
23168       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23169 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23170 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23171   $as_echo_n "(cached) " >&6
23172 else
23173   ac_check_lib_save_LIBS=$LIBS
23174 LIBS="-lcrypto  $LIBS"
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23176 /* end confdefs.h.  */
23177
23178 /* Override any GCC internal prototype to avoid an error.
23179    Use char because int might match the return type of a GCC
23180    builtin and then its argument prototype would still apply.  */
23181 #ifdef __cplusplus
23182 extern "C"
23183 #endif
23184 char EVP_PKEY_encrypt_old ();
23185 int
23186 main ()
23187 {
23188 return EVP_PKEY_encrypt_old ();
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 if ac_fn_c_try_link "$LINENO"; then :
23194   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23195 else
23196   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23197 fi
23198 rm -f core conftest.err conftest.$ac_objext \
23199     conftest$ac_exeext conftest.$ac_ext
23200 LIBS=$ac_check_lib_save_LIBS
23201 fi
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23203 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23204 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23205
23206 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23207
23208 fi
23209
23210    fi
23211
23212    LIBS="${saved_LIBS}"
23213    CFLAGS="${saved_CFLAGS}"
23214 else
23215    support_tls="no"
23216    support_crypto="no"
23217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23218 $as_echo "$support_tls" >&6; }
23219 fi
23220
23221 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23222    OPENSSL_LIBS=""
23223    OPENSSL_INC=""
23224 fi
23225
23226
23227
23228
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23230 $as_echo_n "checking for library containing dlopen... " >&6; }
23231 if ${ac_cv_search_dlopen+:} false; then :
23232   $as_echo_n "(cached) " >&6
23233 else
23234   ac_func_search_save_LIBS=$LIBS
23235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236 /* end confdefs.h.  */
23237
23238 /* Override any GCC internal prototype to avoid an error.
23239    Use char because int might match the return type of a GCC
23240    builtin and then its argument prototype would still apply.  */
23241 #ifdef __cplusplus
23242 extern "C"
23243 #endif
23244 char dlopen ();
23245 int
23246 main ()
23247 {
23248 return dlopen ();
23249   ;
23250   return 0;
23251 }
23252 _ACEOF
23253 for ac_lib in '' dl; do
23254   if test -z "$ac_lib"; then
23255     ac_res="none required"
23256   else
23257     ac_res=-l$ac_lib
23258     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23259   fi
23260   if ac_fn_c_try_link "$LINENO"; then :
23261   ac_cv_search_dlopen=$ac_res
23262 fi
23263 rm -f core conftest.err conftest.$ac_objext \
23264     conftest$ac_exeext
23265   if ${ac_cv_search_dlopen+:} false; then :
23266   break
23267 fi
23268 done
23269 if ${ac_cv_search_dlopen+:} false; then :
23270
23271 else
23272   ac_cv_search_dlopen=no
23273 fi
23274 rm conftest.$ac_ext
23275 LIBS=$ac_func_search_save_LIBS
23276 fi
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23278 $as_echo "$ac_cv_search_dlopen" >&6; }
23279 ac_res=$ac_cv_search_dlopen
23280 if test "$ac_res" != no; then :
23281   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23282
23283 fi
23284
23285
23286 working_dir=`eval echo /opt/bacula/working`
23287
23288 # Check whether --with-working-dir was given.
23289 if test "${with_working_dir+set}" = set; then :
23290   withval=$with_working_dir;
23291        if test "x$withval" != "xno" ; then
23292          working_dir=$withval
23293        fi
23294
23295
23296 fi
23297
23298
23299
23300
23301 archivedir=/tmp
23302
23303 # Check whether --with-archivedir was given.
23304 if test "${with_archivedir+set}" = set; then :
23305   withval=$with_archivedir;
23306        if test "x$withval" != "xno" ; then
23307           archivedir=$withval
23308        fi
23309
23310
23311 fi
23312
23313
23314
23315
23316 basename=`hostname`
23317
23318 # Check whether --with-basename was given.
23319 if test "${with_basename+set}" = set; then :
23320   withval=$with_basename;
23321        if test "x$withval" != "xno" ; then
23322           basename=$withval
23323        fi
23324
23325
23326 fi
23327
23328
23329
23330
23331 hostname=`uname -n | cut -d '.' -f 1`
23332 if test x${hostname} = x ; then
23333   hostname="localhost"
23334 fi
23335 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23336 if test ! $? = 0; then
23337   hostname="localhost"
23338 fi
23339
23340 # Check whether --with-hostname was given.
23341 if test "${with_hostname+set}" = set; then :
23342   withval=$with_hostname;
23343        if test "x$withval" != "xno" ; then
23344          hostname=$withval
23345        fi
23346
23347
23348 fi
23349
23350
23351
23352
23353
23354 scriptdir=`eval echo ${sysconfdir}`
23355
23356 # Check whether --with-scriptdir was given.
23357 if test "${with_scriptdir+set}" = set; then :
23358   withval=$with_scriptdir;
23359        if test "x$withval" != "xno" ; then
23360           scriptdir=$withval
23361        fi
23362
23363
23364 fi
23365
23366
23367
23368
23369
23370 bsrdir=`eval echo /opt/bacula/bsr`
23371
23372 # Check whether --with-bsrdir was given.
23373 if test "${with_bsrdir+set}" = set; then :
23374   withval=$with_bsrdir;
23375        if test "x$withval" != "xno" ; then
23376           bsrdir=$withval
23377        fi
23378
23379
23380 fi
23381
23382
23383
23384
23385 logdir=`eval echo /opt/bacula/log`
23386
23387 # Check whether --with-logdir was given.
23388 if test "${with_logdir+set}" = set; then :
23389   withval=$with_logdir;
23390        if test "x$withval" != "xno" ; then
23391           logdir=$withval
23392        fi
23393
23394
23395 fi
23396
23397
23398
23399
23400
23401 # ------------------------------------------
23402 # Where to place plugindir (plugin files)
23403 # ------------------------------------------
23404 plugindir=`eval echo ${libdir}`
23405
23406 # Check whether --with-plugindir was given.
23407 if test "${with_plugindir+set}" = set; then :
23408   withval=$with_plugindir;
23409        if test "x$withval" != "xno" ; then
23410           plugindir=$withval
23411        fi
23412
23413
23414 fi
23415
23416
23417
23418
23419
23420 dump_email=root@localhost
23421
23422 # Check whether --with-dump-email was given.
23423 if test "${with_dump_email+set}" = set; then :
23424   withval=$with_dump_email;
23425        if test "x$withval" != "xno" ; then
23426           dump_email=$withval
23427        fi
23428
23429
23430 fi
23431
23432
23433
23434
23435 job_email=root@localhost
23436
23437 # Check whether --with-job-email was given.
23438 if test "${with_job_email+set}" = set; then :
23439   withval=$with_job_email;
23440        if test "x$withval" != "xno" ; then
23441           job_email=$withval
23442        fi
23443
23444
23445 fi
23446
23447
23448
23449
23450 smtp_host=localhost
23451
23452 # Check whether --with-smtp_host was given.
23453 if test "${with_smtp_host+set}" = set; then :
23454   withval=$with_smtp_host;
23455        if test "x$withval" != "xno" ; then
23456           smtp_host=$withval
23457        fi
23458
23459
23460 fi
23461
23462
23463
23464
23465 piddir=/var/run
23466
23467 # Check whether --with-pid-dir was given.
23468 if test "${with_pid_dir+set}" = set; then :
23469   withval=$with_pid_dir;
23470        if test "x$withval" != "xno" ; then
23471           piddir=$withval
23472        fi
23473
23474
23475 fi
23476
23477
23478 cat >>confdefs.h <<_ACEOF
23479 #define _PATH_BACULA_PIDDIR "$piddir"
23480 _ACEOF
23481
23482
23483
23484 subsysdir=/var/run/subsys
23485 if test -d /var/run/subsys; then
23486    subsysdir=/var/run/subsys
23487 elif test -d /var/lock/subsys; then
23488    subsysdir=/var/lock/subsys
23489 else
23490    subsysdir=/var/run/subsys
23491 fi
23492
23493 # Check whether --with-subsys-dir was given.
23494 if test "${with_subsys_dir+set}" = set; then :
23495   withval=$with_subsys_dir;
23496        if test "x$withval" != "xno" ; then
23497           subsysdir=$withval
23498        fi
23499
23500
23501 fi
23502
23503
23504
23505
23506 baseport=9101
23507
23508 # Check whether --with-baseport was given.
23509 if test "${with_baseport+set}" = set; then :
23510   withval=$with_baseport;
23511        if test "x$withval" != "xno" ; then
23512           baseport=$withval
23513        fi
23514
23515
23516 fi
23517
23518
23519
23520 dir_port=`expr $baseport`
23521 fd_port=`expr $baseport + 1`
23522 sd_port=`expr $fd_port + 1`
23523
23524
23525
23526
23527
23528 dir_password=
23529
23530 # Check whether --with-dir-password was given.
23531 if test "${with_dir_password+set}" = set; then :
23532   withval=$with_dir_password;
23533        if test "x$withval" != "xno" ; then
23534           dir_password=$withval
23535        fi
23536
23537
23538 fi
23539
23540
23541 if test "x$dir_password" = "x" ; then
23542    if test "x$OPENSSL" = "xnone" ; then
23543       key=`autoconf/randpass 33`
23544    else
23545       key=`openssl rand -base64 33`
23546    fi
23547    dir_password=$key
23548 fi
23549
23550 fd_password=
23551
23552 # Check whether --with-fd-password was given.
23553 if test "${with_fd_password+set}" = set; then :
23554   withval=$with_fd_password;
23555        if test "x$withval" != "xno" ; then
23556           fd_password=$withval
23557        fi
23558
23559
23560 fi
23561
23562
23563 if test "x$fd_password" = "x" ; then
23564    if test "x$OPENSSL" = "xnone" ; then
23565       key=`autoconf/randpass 37`
23566    else
23567       key=`openssl rand -base64 33`
23568    fi
23569    fd_password=$key
23570 fi
23571
23572 sd_password=
23573
23574 # Check whether --with-sd-password was given.
23575 if test "${with_sd_password+set}" = set; then :
23576   withval=$with_sd_password;
23577        if test "x$withval" != "xno" ; then
23578           sd_password=$withval
23579        fi
23580
23581
23582 fi
23583
23584
23585 if test "x$sd_password" = "x" ; then
23586    if test "x$OPENSSL" = "xnone" ; then
23587       key=`autoconf/randpass 41`
23588    else
23589       key=`openssl rand -base64 33`
23590    fi
23591    sd_password=$key
23592 fi
23593
23594 mon_dir_password=
23595
23596 # Check whether --with-mon-dir-password was given.
23597 if test "${with_mon_dir_password+set}" = set; then :
23598   withval=$with_mon_dir_password;
23599        if test "x$withval" != "xno" ; then
23600           mon_dir_password=$withval
23601        fi
23602
23603
23604 fi
23605
23606
23607 if test "x$mon_dir_password" = "x" ; then
23608    if test "x$OPENSSL" = "xnone" ; then
23609       key=`autoconf/randpass 33`
23610    else
23611       key=`openssl rand -base64 33`
23612    fi
23613    mon_dir_password=$key
23614 fi
23615
23616 mon_fd_password=
23617
23618 # Check whether --with-mon-fd-password was given.
23619 if test "${with_mon_fd_password+set}" = set; then :
23620   withval=$with_mon_fd_password;
23621        if test "x$withval" != "xno" ; then
23622           mon_fd_password=$withval
23623        fi
23624
23625
23626 fi
23627
23628
23629 if test "x$mon_fd_password" = "x" ; then
23630    if test "x$OPENSSL" = "xnone" ; then
23631       key=`autoconf/randpass 37`
23632    else
23633       key=`openssl rand -base64 33`
23634    fi
23635    mon_fd_password=$key
23636 fi
23637
23638 mon_sd_password=
23639
23640 # Check whether --with-mon-sd-password was given.
23641 if test "${with_mon_sd_password+set}" = set; then :
23642   withval=$with_mon_sd_password;
23643        if test "x$withval" != "xno" ; then
23644           mon_sd_password=$withval
23645        fi
23646
23647
23648 fi
23649
23650
23651 if test "x$mon_sd_password" = "x" ; then
23652    if test "x$OPENSSL" = "xnone" ; then
23653       key=`autoconf/randpass 41`
23654    else
23655       key=`openssl rand -base64 33`
23656    fi
23657    mon_sd_password=$key
23658 fi
23659
23660
23661
23662
23663
23664
23665
23666
23667 db_name=bacula
23668
23669 # Check whether --with-db_name was given.
23670 if test "${with_db_name+set}" = set; then :
23671   withval=$with_db_name;
23672        if test "x$withval" != "x" ; then
23673           db_name=$withval
23674        fi
23675
23676
23677 fi
23678
23679
23680
23681 db_user=bacula
23682
23683 # Check whether --with-db_user was given.
23684 if test "${with_db_user+set}" = set; then :
23685   withval=$with_db_user;
23686        if test "x$withval" != "x" ; then
23687           db_user=$withval
23688        fi
23689
23690
23691 fi
23692
23693
23694
23695 db_password=
23696
23697 # Check whether --with-db_password was given.
23698 if test "${with_db_password+set}" = set; then :
23699   withval=$with_db_password;
23700        if test "x$withval" != "x" ; then
23701           db_password=$withval
23702        fi
23703
23704
23705 fi
23706
23707
23708
23709 db_port=" "
23710
23711 # Check whether --with-db_port was given.
23712 if test "${with_db_port+set}" = set; then :
23713   withval=$with_db_port;
23714        if test "x$withval" != "x" ; then
23715           db_port=$withval
23716        fi
23717
23718
23719 fi
23720
23721
23722
23723 db_ssl_options=
23724
23725 # Check whether --with-db_ssl_options was given.
23726 if test "${with_db_ssl_options+set}" = set; then :
23727   withval=$with_db_ssl_options;
23728        if test "x$withval" != "x" ; then
23729          db_ssl_options=$withval
23730        fi
23731
23732
23733 fi
23734
23735
23736
23737 #
23738 # Handle users and groups for each daemon
23739 #
23740 dir_user=
23741
23742 # Check whether --with-dir_user was given.
23743 if test "${with_dir_user+set}" = set; then :
23744   withval=$with_dir_user;
23745        if test "x$withval" != "x" ; then
23746            dir_user=$withval
23747        fi
23748
23749
23750 fi
23751
23752
23753 dir_group=
23754
23755 # Check whether --with-dir_group was given.
23756 if test "${with_dir_group+set}" = set; then :
23757   withval=$with_dir_group;
23758        if test "x$withval" != "x" ; then
23759           dir_group=$withval
23760        fi
23761
23762
23763 fi
23764
23765
23766 sd_user=
23767
23768 # Check whether --with-sd_user was given.
23769 if test "${with_sd_user+set}" = set; then :
23770   withval=$with_sd_user;
23771        if test "x$withval" != "x" ; then
23772           sd_user=$withval
23773        fi
23774
23775
23776 fi
23777
23778
23779 sd_group=
23780
23781 # Check whether --with-sd_group was given.
23782 if test "${with_sd_group+set}" = set; then :
23783   withval=$with_sd_group;
23784        if test "x$withval" != "x" ; then
23785           sd_group=$withval
23786        fi
23787
23788
23789 fi
23790
23791
23792 fd_user=
23793
23794 # Check whether --with-fd_user was given.
23795 if test "${with_fd_user+set}" = set; then :
23796   withval=$with_fd_user;
23797        if test "x$withval" != "x" ; then
23798           fd_user=$withval
23799        fi
23800
23801
23802 fi
23803
23804
23805 fd_group=
23806
23807 # Check whether --with-fd_group was given.
23808 if test "${with_fd_group+set}" = set; then :
23809   withval=$with_fd_group;
23810        if test "x$withval" != "x" ; then
23811           fd_group=$withval
23812        fi
23813
23814
23815 fi
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825 SBINPERM=0750
23826
23827 # Check whether --with-sbin-perm was given.
23828 if test "${with_sbin_perm+set}" = set; then :
23829   withval=$with_sbin_perm;
23830        if test "x$withval" != "x" ; then
23831           SBINPERM=$withval
23832        fi
23833
23834
23835 fi
23836
23837
23838
23839
23840 support_batch_insert=yes
23841 # Check whether --enable-batch-insert was given.
23842 if test "${enable_batch_insert+set}" = set; then :
23843   enableval=$enable_batch_insert;
23844        if test x$enableval = xno; then
23845           support_batch_insert=no
23846        fi
23847
23848
23849 fi
23850
23851
23852 if test x$support_batch_insert = xyes; then
23853
23854 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23855
23856 fi
23857
23858
23859 uncomment_dbi="#"
23860
23861
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23863 $as_echo_n "checking for PostgreSQL support... " >&6; }
23864
23865 # Check whether --with-postgresql was given.
23866 if test "${with_postgresql+set}" = set; then :
23867   withval=$with_postgresql;
23868   if test "$withval" != "no"; then
23869       if test "$withval" = "yes"; then
23870           PG_CONFIG=`which pg_config 2>/dev/null`
23871           if test -n "$PG_CONFIG"; then
23872               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23873               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23874               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23875           elif test -f /usr/local/include/libpq-fe.h; then
23876               POSTGRESQL_INCDIR=/usr/local/include
23877               if test -d /usr/local/lib64; then
23878                  POSTGRESQL_LIBDIR=/usr/local/lib64
23879               else
23880                  POSTGRESQL_LIBDIR=/usr/local/lib
23881               fi
23882               POSTGRESQL_BINDIR=/usr/local/bin
23883           elif test -f /usr/include/libpq-fe.h; then
23884               POSTGRESQL_INCDIR=/usr/include
23885               if test -d /usr/lib64; then
23886                  POSTGRESQL_LIBDIR=/usr/lib64
23887               else
23888                  POSTGRESQL_LIBDIR=/usr/lib
23889               fi
23890               POSTGRESQL_BINDIR=/usr/bin
23891           elif test -f /usr/include/pgsql/libpq-fe.h; then
23892               POSTGRESQL_INCDIR=/usr/include/pgsql
23893               if test -d /usr/lib64/pgsql; then
23894                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23895               else
23896                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23897               fi
23898               POSTGRESQL_BINDIR=/usr/bin
23899           elif test -f /usr/include/postgresql/libpq-fe.h; then
23900               POSTGRESQL_INCDIR=/usr/include/postgresql
23901               if test -d /usr/lib64/postgresql; then
23902                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23903               else
23904                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23905               fi
23906               POSTGRESQL_BINDIR=/usr/bin
23907           else
23908               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23909 $as_echo "no" >&6; }
23910               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23911           fi
23912       elif test -f $withval/include/libpq-fe.h; then
23913           POSTGRESQL_INCDIR=$withval/include
23914           POSTGRESQL_LIBDIR=$withval/lib
23915           POSTGRESQL_BINDIR=$withval/bin
23916       elif test -f $withval/include/postgresql/libpq-fe.h; then
23917           POSTGRESQL_INCDIR=$withval/include/postgresql
23918           if test -d $withval/lib64; then
23919               POSTGRESQL_LIBDIR=$withval/lib64
23920           else
23921               POSTGRESQL_LIBDIR=$withval/lib
23922           fi
23923           POSTGRESQL_BINDIR=$withval/bin
23924       else
23925           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23926 $as_echo "no" >&6; }
23927           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23928       fi
23929
23930 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23931
23932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23933 $as_echo "yes" >&6; }
23934
23935      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23936      if test x$use_libtool != xno; then
23937         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23938      else
23939         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23940      fi
23941      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23942 if test "x$ac_cv_func_crypt" = xyes; then :
23943
23944 else
23945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23946 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23947 if ${ac_cv_lib_crypt_crypt+:} false; then :
23948   $as_echo_n "(cached) " >&6
23949 else
23950   ac_check_lib_save_LIBS=$LIBS
23951 LIBS="-lcrypt  $LIBS"
23952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23953 /* end confdefs.h.  */
23954
23955 /* Override any GCC internal prototype to avoid an error.
23956    Use char because int might match the return type of a GCC
23957    builtin and then its argument prototype would still apply.  */
23958 #ifdef __cplusplus
23959 extern "C"
23960 #endif
23961 char crypt ();
23962 int
23963 main ()
23964 {
23965 return crypt ();
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 if ac_fn_c_try_link "$LINENO"; then :
23971   ac_cv_lib_crypt_crypt=yes
23972 else
23973   ac_cv_lib_crypt_crypt=no
23974 fi
23975 rm -f core conftest.err conftest.$ac_objext \
23976     conftest$ac_exeext conftest.$ac_ext
23977 LIBS=$ac_check_lib_save_LIBS
23978 fi
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23980 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23981 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23982   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23983 fi
23984
23985 fi
23986
23987      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23988      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23989
23990      if test -z "${db_backends}"; then
23991          db_backends="PostgreSQL"
23992      else
23993          db_backends="${db_backends} PostgreSQL"
23994      fi
23995      if test -z "${DB_BACKENDS}"; then
23996          DB_BACKENDS="postgresql"
23997      else
23998          DB_BACKENDS="${DB_BACKENDS} postgresql"
23999      fi
24000
24001                     if test "x$support_batch_insert" = "xyes"; then
24002                   saved_LDFLAGS="${LDFLAGS}"
24003          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24004          saved_LIBS="${LIBS}"
24005          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24006             LIBS="${saved_LIBS} -lcrypt"
24007          fi
24008
24009          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24010 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24011 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24012   $as_echo_n "(cached) " >&6
24013 else
24014   ac_check_lib_save_LIBS=$LIBS
24015 LIBS="-lpq  $LIBS"
24016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24017 /* end confdefs.h.  */
24018
24019 /* Override any GCC internal prototype to avoid an error.
24020    Use char because int might match the return type of a GCC
24021    builtin and then its argument prototype would still apply.  */
24022 #ifdef __cplusplus
24023 extern "C"
24024 #endif
24025 char PQisthreadsafe ();
24026 int
24027 main ()
24028 {
24029 return PQisthreadsafe ();
24030   ;
24031   return 0;
24032 }
24033 _ACEOF
24034 if ac_fn_c_try_link "$LINENO"; then :
24035   ac_cv_lib_pq_PQisthreadsafe=yes
24036 else
24037   ac_cv_lib_pq_PQisthreadsafe=no
24038 fi
24039 rm -f core conftest.err conftest.$ac_objext \
24040     conftest$ac_exeext conftest.$ac_ext
24041 LIBS=$ac_check_lib_save_LIBS
24042 fi
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24044 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24045 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24046
24047 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24048
24049 fi
24050
24051          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24052 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24053 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24054   $as_echo_n "(cached) " >&6
24055 else
24056   ac_check_lib_save_LIBS=$LIBS
24057 LIBS="-lpq  $LIBS"
24058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059 /* end confdefs.h.  */
24060
24061 /* Override any GCC internal prototype to avoid an error.
24062    Use char because int might match the return type of a GCC
24063    builtin and then its argument prototype would still apply.  */
24064 #ifdef __cplusplus
24065 extern "C"
24066 #endif
24067 char PQputCopyData ();
24068 int
24069 main ()
24070 {
24071 return PQputCopyData ();
24072   ;
24073   return 0;
24074 }
24075 _ACEOF
24076 if ac_fn_c_try_link "$LINENO"; then :
24077   ac_cv_lib_pq_PQputCopyData=yes
24078 else
24079   ac_cv_lib_pq_PQputCopyData=no
24080 fi
24081 rm -f core conftest.err conftest.$ac_objext \
24082     conftest$ac_exeext conftest.$ac_ext
24083 LIBS=$ac_check_lib_save_LIBS
24084 fi
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24086 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24087 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24088
24089 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24090
24091 fi
24092
24093          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24094              if test $support_batch_insert = yes ; then
24095
24096 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24097
24098                  if test -z "${batch_insert_db_backends}"; then
24099                      batch_insert_db_backends="PostgreSQL"
24100                  else
24101                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24102                  fi
24103              fi
24104          fi
24105
24106          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24107          then
24108              echo "WARNING: Your PostgreSQL client library is too old to detect "
24109              echo "if it was compiled with --enable-thread-safety, consider to "
24110              echo "upgrade it in order to avoid problems with Batch insert mode"
24111          fi
24112
24113                   LDFLAGS="${saved_LDFLAGS}"
24114          LIBS="${saved_LIBS}"
24115      fi
24116   else
24117      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24119   fi
24120
24121 else
24122
24123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24124 $as_echo "no" >&6; }
24125
24126 fi
24127
24128
24129
24130
24131
24132
24133
24134
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24136 $as_echo_n "checking for MySQL support... " >&6; }
24137
24138 # Check whether --with-mysql was given.
24139 if test "${with_mysql+set}" = set; then :
24140   withval=$with_mysql;
24141   HAVE_LIBSR="no"
24142   if test "$withval" != "no"; then
24143      if test "$withval" = "yes"; then
24144         MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24145         if test "x${MYSQL_CONFIG}" != x; then
24146            MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24147            ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24148            if test $? = 0; then
24149               MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24150               MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24151               HAVE_LIBSR="yes"
24152            else
24153               ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24154               if test $? = 0 ; then
24155                  MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24156                  MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24157               fi
24158            fi
24159         fi
24160         # if something wrong fall back to old method
24161         if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24162            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24163               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24164               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24165                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24166                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24167               else
24168                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24169               fi
24170               MYSQL_BINDIR=/usr/local/mysql/bin
24171            elif test -f /usr/include/mysql/mysql.h; then
24172               MYSQL_INCDIR=/usr/include/mysql
24173               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24174                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24175                  MYSQL_LIBDIR=/usr/lib64/mysql
24176               elif test -f /usr/lib64/libmysqlclient_r.a \
24177                         -o -f /usr/lib64/libmysqlclient_r.so; then
24178                  MYSQL_LIBDIR=/usr/lib64
24179               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24180                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24181                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24182               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24183                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24184                  MYSQL_LIBDIR=/usr/lib/mysql
24185               else
24186                  MYSQL_LIBDIR=/usr/lib
24187               fi
24188               MYSQL_BINDIR=/usr/bin
24189            elif test -f /usr/include/mysql.h; then
24190               MYSQL_INCDIR=/usr/include
24191               if test -f /usr/lib64/libmysqlclient_r.a \
24192                       -o -f /usr/lib64/libmysqlclient_r.so; then
24193                  MYSQL_LIBDIR=/usr/lib64
24194               else
24195                  MYSQL_LIBDIR=/usr/lib
24196               fi
24197               MYSQL_BINDIR=/usr/bin
24198            elif test -f /usr/local/include/mysql/mysql.h; then
24199               MYSQL_INCDIR=/usr/local/include/mysql
24200               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24201                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24202                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24203               else
24204                  MYSQL_LIBDIR=/usr/local/lib/mysql
24205               fi
24206               MYSQL_BINDIR=/usr/local/bin
24207            elif test -f /usr/local/include/mysql.h; then
24208               MYSQL_INCDIR=/usr/local/include
24209               if test -f /usr/local/lib64/libmysqlclient_r.a \
24210                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24211                  MYSQL_LIBDIR=/usr/local/lib64
24212               else
24213                  MYSQL_LIBDIR=/usr/local/lib
24214               fi
24215               MYSQL_BINDIR=/usr/local/bin
24216            else
24217               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24218 $as_echo "no" >&6; }
24219               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24220            fi
24221         fi
24222      else
24223         if test -f $withval/include/mysql/mysql.h; then
24224            MYSQL_INCDIR=$withval/include/mysql
24225            if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24226                 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24227               MYSQL_LIBDIR=$withval/lib64/mysql
24228            elif test -f $withval/lib64/libmysqlclient_r.a \
24229                 -o -f $withval/lib64/libmysqlclient_r.so; then
24230               MYSQL_LIBDIR=$withval/lib64
24231            elif test -f $withval/lib/libmysqlclient_r.a \
24232                 -o -f $withval/lib/libmysqlclient_r.so; then
24233               MYSQL_LIBDIR=$withval/lib
24234            else
24235               MYSQL_LIBDIR=$withval/lib/mysql
24236            fi
24237            MYSQL_BINDIR=$withval/bin
24238         elif test -f $withval/include/mysql.h; then
24239            MYSQL_INCDIR=$withval/include
24240            if test -f $withval/lib64/libmysqlclient_r.a \
24241                 -o -f $withval/lib64/libmysqlclient_r.so; then
24242               MYSQL_LIBDIR=$withval/lib64
24243            else
24244               MYSQL_LIBDIR=$withval/lib
24245            fi
24246            MYSQL_BINDIR=$withval/bin
24247         elif test -f $withval/mysql.h; then
24248                       MYSQL_INCDIR=$withval
24249            { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24250 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24251            case $MYSQL_INCDIR in
24252               *mysql55*)
24253                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24254 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24255                                     if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24256                        -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24257                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24258 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24259                      MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24260                   fi
24261                   MYSQL_BINDIR=$prefix/lib/mysql55/bin
24262               ;;
24263               *mysql51*)
24264                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24265 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24266                                     if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24267                        -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24268                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24269 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24270                      MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24271                   fi
24272                   MYSQL_BINDIR=$prefix/lib/mysql51/bin
24273               ;;
24274            esac
24275            if test -z "${MYSQL_LIBDIR}" ; then
24276               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24277 $as_echo "no" >&6; }
24278               as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24279            fi
24280         else
24281            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24282 $as_echo "no" >&6; }
24283            as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24284         fi
24285      fi
24286      if test "x${MYSQL_LIBDIR}" != x; then
24287         MYSQL_INCLUDE=-I$MYSQL_INCDIR
24288         if test "x$HAVE_LIBSR" = "xyes"; then
24289            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24290            MYSQL_LIBS="$MYSQL_LIBDIR"
24291            MYSQL_INCLUDE="$MYSQL_INCDIR"
24292
24293 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24294
24295            if test -z "${batch_insert_db_backends}"; then
24296               batch_insert_db_backends="MySQL"
24297            else
24298               batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24299            fi
24300         elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24301                -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24302            if test x$use_libtool != xno; then
24303               MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24304            else
24305               MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24306            fi
24307            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24308         fi
24309         if test "x${MYSQL_LIBS}" = x; then
24310            MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24311         fi
24312
24313
24314 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24315
24316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24317 $as_echo "yes" >&6; }
24318
24319         if test -z "${db_backends}" ; then
24320             db_backends="MySQL"
24321         else
24322             db_backends="${db_backends} MySQL"
24323         fi
24324         if test -z "${DB_BACKENDS}" ; then
24325             DB_BACKENDS="mysql"
24326         else
24327             DB_BACKENDS="${DB_BACKENDS} mysql"
24328         fi
24329
24330                                 if test "x$HAVE_LIBSR" = "xno"; then
24331           if test "x$support_batch_insert" = "xyes"; then
24332                         saved_LDFLAGS="${LDFLAGS}"
24333             LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24334             saved_LIBS="${LIBS}"
24335             LIBS="${saved_LIBS} -lz"
24336
24337             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24338 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24339 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24340   $as_echo_n "(cached) " >&6
24341 else
24342   ac_check_lib_save_LIBS=$LIBS
24343 LIBS="-lmysqlclient_r  $LIBS"
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h.  */
24346
24347 /* Override any GCC internal prototype to avoid an error.
24348    Use char because int might match the return type of a GCC
24349    builtin and then its argument prototype would still apply.  */
24350 #ifdef __cplusplus
24351 extern "C"
24352 #endif
24353 char mysql_thread_safe ();
24354 int
24355 main ()
24356 {
24357 return mysql_thread_safe ();
24358   ;
24359   return 0;
24360 }
24361 _ACEOF
24362 if ac_fn_c_try_link "$LINENO"; then :
24363   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24364 else
24365   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24366 fi
24367 rm -f core conftest.err conftest.$ac_objext \
24368     conftest$ac_exeext conftest.$ac_ext
24369 LIBS=$ac_check_lib_save_LIBS
24370 fi
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24372 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24373 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24374
24375 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24376
24377 fi
24378
24379             if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24380                 if test -z "${batch_insert_db_backends}"; then
24381                     batch_insert_db_backends="MySQL"
24382                 else
24383                     batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24384                 fi
24385             fi
24386
24387                         LDFLAGS="${saved_LDFLAGS}"
24388             LIBS="${saved_LIBS}"
24389           fi
24390         fi
24391      else
24392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24393 $as_echo "no" >&6; }
24394      fi
24395   fi
24396
24397 else
24398
24399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24400 $as_echo "no" >&6; }
24401
24402 fi
24403
24404
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24406 $as_echo_n "checking for MySQL embedded support... " >&6; }
24407
24408 # Check whether --with-embedded-mysql was given.
24409 if test "${with_embedded_mysql+set}" = set; then :
24410   withval=$with_embedded_mysql;
24411   if test "$withval" != "no"; then
24412         if test "$withval" = "yes"; then
24413                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24414                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24415                         if test -d /usr/local/mysql/lib64/mysql; then
24416                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24417                         else
24418                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24419                         fi
24420                         MYSQL_BINDIR=/usr/local/mysql/bin
24421                 elif test -f /usr/include/mysql/mysql.h; then
24422                         MYSQL_INCDIR=/usr/include/mysql
24423                         if test -d /usr/lib64/mysql; then
24424                                 MYSQL_LIBDIR=/usr/lib64/mysql
24425                         else
24426                                 MYSQL_LIBDIR=/usr/lib/mysql
24427                         fi
24428                         MYSQL_BINDIR=/usr/bin
24429                 elif test -f /usr/include/mysql.h; then
24430                         MYSQL_INCDIR=/usr/include
24431                         if test -d /usr/lib64; then
24432                                 MYSQL_LIBDIR=/usr/lib64
24433                         else
24434                                 MYSQL_LIBDIR=/usr/lib
24435                         fi
24436                         MYSQL_BINDIR=/usr/bin
24437                 elif test -f /usr/local/include/mysql/mysql.h; then
24438                         MYSQL_INCDIR=/usr/local/include/mysql
24439                         if test -d /usr/local/lib64/mysql; then
24440                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24441                         else
24442                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24443                         fi
24444                         MYSQL_BINDIR=/usr/local/bin
24445                 elif test -f /usr/local/include/mysql.h; then
24446                         MYSQL_INCDIR=/usr/local/include
24447                         if test -d /usr/local/lib64; then
24448                                 MYSQL_LIBDIR=/usr/local/lib64
24449                         else
24450                                 MYSQL_LIBDIR=/usr/local/lib
24451                         fi
24452                         MYSQL_BINDIR=/usr/local/bin
24453                 else
24454                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24455 $as_echo "no" >&6; }
24456                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24457                 fi
24458         else
24459                 if test -f $withval/include/mysql/mysql.h; then
24460                         MYSQL_INCDIR=$withval/include/mysql
24461                         if test -d $withval/lib64/mysql; then
24462                                 MYSQL_LIBDIR=$withval/lib64/mysql
24463                         else
24464                                 MYSQL_LIBDIR=$withval/lib/mysql
24465                         fi
24466                         MYSQL_BINDIR=$withval/bin
24467                 elif test -f $withval/include/mysql.h; then
24468                         MYSQL_INCDIR=$withval/include
24469                         if test -d $withval/lib64; then
24470                                 MYSQL_LIBDIR=$withval/lib64
24471                         else
24472                                 MYSQL_LIBDIR=$withval/lib
24473                         fi
24474                         MYSQL_BINDIR=$withval/bin
24475                 else
24476                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24477 $as_echo "no" >&6; }
24478                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24479                 fi
24480         fi
24481      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24482      if test x$use_libtool != xno; then
24483         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24484      else
24485         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24486      fi
24487      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24488      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24489
24490
24491 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24492
24493
24494 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24495
24496      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24497 $as_echo "yes" >&6; }
24498
24499      if test -z "${db_backends}"; then
24500          db_backends="MySQL"
24501      else
24502          db_backends="${db_backends} MySQL"
24503      fi
24504      if test -z "${DB_BACKENDS}"; then
24505          DB_BACKENDS="mysql"
24506      else
24507          DB_BACKENDS="${DB_BACKENDS} mysql"
24508      fi
24509
24510                     if test "x$support_batch_insert" = "xyes"; then
24511                   saved_LDFLAGS="${LDFLAGS}"
24512          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24513          saved_LIBS="${LIBS}"
24514          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24515
24516          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24517 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24518 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24519   $as_echo_n "(cached) " >&6
24520 else
24521   ac_check_lib_save_LIBS=$LIBS
24522 LIBS="-lmysqlclient_r  $LIBS"
24523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24524 /* end confdefs.h.  */
24525
24526 /* Override any GCC internal prototype to avoid an error.
24527    Use char because int might match the return type of a GCC
24528    builtin and then its argument prototype would still apply.  */
24529 #ifdef __cplusplus
24530 extern "C"
24531 #endif
24532 char mysql_thread_safe ();
24533 int
24534 main ()
24535 {
24536 return mysql_thread_safe ();
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 if ac_fn_c_try_link "$LINENO"; then :
24542   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24543 else
24544   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24545 fi
24546 rm -f core conftest.err conftest.$ac_objext \
24547     conftest$ac_exeext conftest.$ac_ext
24548 LIBS=$ac_check_lib_save_LIBS
24549 fi
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24551 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24552 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24553
24554 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24555
24556 fi
24557
24558          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24559              if test -z "${batch_insert_db_backends}"; then
24560                  batch_insert_db_backends="MySQL"
24561              else
24562                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24563              fi
24564          fi
24565
24566                   LDFLAGS="${saved_LDFLAGS}"
24567          LIBS="${saved_LIBS}"
24568      fi
24569   else
24570      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24571 $as_echo "no" >&6; }
24572   fi
24573
24574 else
24575
24576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24577 $as_echo "no" >&6; }
24578
24579 fi
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24590 $as_echo_n "checking for SQLite3 support... " >&6; }
24591
24592 # Check whether --with-sqlite3 was given.
24593 if test "${with_sqlite3+set}" = set; then :
24594   withval=$with_sqlite3;
24595   if test "$withval" != "no"; then
24596      if test "$withval" = "yes"; then
24597         if test -f /usr/local/include/sqlite3.h; then
24598            SQLITE_INCDIR=/usr/local/include
24599            if test -d /usr/local/lib64; then
24600               SQLITE_LIBDIR=/usr/local/lib64
24601            else
24602               SQLITE_LIBDIR=/usr/local/lib
24603            fi
24604            SQLITE_BINDIR=/usr/local/bin
24605         elif test -f /usr/include/sqlite3.h; then
24606            SQLITE_INCDIR=/usr/include
24607            if test -d /usr/lib64; then
24608               SQLITE_LIBDIR=/usr/lib64
24609            else
24610               SQLITE_LIBDIR=/usr/lib
24611            fi
24612            SQLITE_BINDIR=/usr/bin
24613         elif test -f $prefix/include/sqlite3.h; then
24614            SQLITE_INCDIR=$prefix/include
24615            if test -d $prefix/lib64; then
24616               SQLITE_LIBDIR=$prefix/lib64
24617            else
24618               SQLITE_LIBDIR=$prefix/lib
24619            fi
24620            SQLITE_BINDIR=$prefix/bin
24621         else
24622            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24623 $as_echo "no" >&6; }
24624            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24625         fi
24626      else
24627         if test -f $withval/sqlite3.h; then
24628            SQLITE_INCDIR=$withval
24629            SQLITE_LIBDIR=$withval
24630            SQLITE_BINDIR=$withval
24631         elif test -f $withval/include/sqlite3.h; then
24632            SQLITE_INCDIR=$withval/include
24633            if test -d $withval/lib64; then
24634               SQLITE_LIBDIR=$withval/lib64
24635            else
24636               SQLITE_LIBDIR=$withval/lib
24637            fi
24638            SQLITE_BINDIR=$withval/bin
24639         else
24640            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24641 $as_echo "no" >&6; }
24642            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24643         fi
24644      fi
24645      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24646      if test x$use_libtool != xno; then
24647         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24648      else
24649         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24650      fi
24651      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24652      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24653
24654
24655 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24656
24657      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24658 $as_echo "yes" >&6; }
24659
24660      if test -z "${db_backends}"; then
24661          db_backends="SQLite3"
24662      else
24663          db_backends="${db_backends} SQLite3"
24664      fi
24665      if test -z "${DB_BACKENDS}"; then
24666          DB_BACKENDS="sqlite3"
24667      else
24668          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24669      fi
24670
24671                     if test "x$support_batch_insert" = "xyes"; then
24672                   saved_LDFLAGS="${LDFLAGS}"
24673          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24674
24675          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24676 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24677 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24678   $as_echo_n "(cached) " >&6
24679 else
24680   ac_check_lib_save_LIBS=$LIBS
24681 LIBS="-lsqlite3  $LIBS"
24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h.  */
24684
24685 /* Override any GCC internal prototype to avoid an error.
24686    Use char because int might match the return type of a GCC
24687    builtin and then its argument prototype would still apply.  */
24688 #ifdef __cplusplus
24689 extern "C"
24690 #endif
24691 char sqlite3_threadsafe ();
24692 int
24693 main ()
24694 {
24695 return sqlite3_threadsafe ();
24696   ;
24697   return 0;
24698 }
24699 _ACEOF
24700 if ac_fn_c_try_link "$LINENO"; then :
24701   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24702 else
24703   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24704 fi
24705 rm -f core conftest.err conftest.$ac_objext \
24706     conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24710 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24711 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24712
24713 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24714
24715 fi
24716
24717          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24718              if test -z "${batch_insert_db_backends}"; then
24719                  batch_insert_db_backends="SQLite3"
24720              else
24721                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24722              fi
24723          fi
24724
24725                   LDFLAGS="${saved_LDFLAGS}"
24726      fi
24727   else
24728      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24729 $as_echo "no" >&6; }
24730   fi
24731
24732 else
24733
24734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24735 $as_echo "no" >&6; }
24736
24737 fi
24738
24739
24740
24741
24742
24743
24744
24745 if test -z "${batch_insert_db_backends}"; then
24746    batch_insert_db_backends="None"
24747 fi
24748
24749 if test "x${db_backends}" = "x" ; then
24750    echo " "
24751    echo " "
24752    echo "You have not specified either --enable-client-only or one of the"
24753    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24754    echo "This is not permitted. Please reconfigure."
24755    echo " "
24756    echo "Aborting the configuration ..."
24757    echo " "
24758    echo " "
24759    exit 1
24760 fi
24761
24762 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24763    1)
24764       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24765       if test x$use_libtool = xno; then
24766          SHARED_CATALOG_TARGETS=""
24767       else
24768          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24769       fi
24770       ;;
24771    *)
24772                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24773
24774                         if test x$use_libtool = xno; then
24775          echo " "
24776          echo " "
24777          echo "You have specified two or more of the"
24778          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24779          echo "This is not permitted when not using libtool Please reconfigure."
24780          echo " "
24781          echo "Aborting the configuration ..."
24782          echo " "
24783          echo " "
24784          exit 1
24785       fi
24786
24787       SHARED_CATALOG_TARGETS=""
24788       for db_type in ${DB_BACKENDS}
24789       do
24790          if test -z "${SHARED_CATALOG_TARGETS}"; then
24791             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24792          else
24793             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24794          fi
24795       done
24796       ;;
24797 esac
24798
24799 if test x$use_libtool = xyes; then
24800    DB_LIBS=""
24801 fi
24802
24803
24804
24805
24806
24807
24808
24809 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24810
24811
24812 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24813    if test -z "$CCOPTS"; then
24814       CCOPTS='-g -O2 -Wall'
24815    fi
24816    CFLAGS="$CCOPTS"
24817 fi
24818
24819
24820
24821 largefile_support="no"
24822
24823    # Check whether --enable-largefile was given.
24824 if test "${enable_largefile+set}" = set; then :
24825   enableval=$enable_largefile;
24826 fi
24827
24828    if test "$enable_largefile" != no; then
24829      if test -n "$ac_tool_prefix"; then
24830   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24831 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24833 $as_echo_n "checking for $ac_word... " >&6; }
24834 if ${ac_cv_prog_GETCONF+:} false; then :
24835   $as_echo_n "(cached) " >&6
24836 else
24837   if test -n "$GETCONF"; then
24838   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24839 else
24840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24841 for as_dir in $PATH
24842 do
24843   IFS=$as_save_IFS
24844   test -z "$as_dir" && as_dir=.
24845     for ac_exec_ext in '' $ac_executable_extensions; do
24846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24847     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24849     break 2
24850   fi
24851 done
24852   done
24853 IFS=$as_save_IFS
24854
24855 fi
24856 fi
24857 GETCONF=$ac_cv_prog_GETCONF
24858 if test -n "$GETCONF"; then
24859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24860 $as_echo "$GETCONF" >&6; }
24861 else
24862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24863 $as_echo "no" >&6; }
24864 fi
24865
24866
24867 fi
24868 if test -z "$ac_cv_prog_GETCONF"; then
24869   ac_ct_GETCONF=$GETCONF
24870   # Extract the first word of "getconf", so it can be a program name with args.
24871 set dummy getconf; ac_word=$2
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24873 $as_echo_n "checking for $ac_word... " >&6; }
24874 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24875   $as_echo_n "(cached) " >&6
24876 else
24877   if test -n "$ac_ct_GETCONF"; then
24878   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24879 else
24880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881 for as_dir in $PATH
24882 do
24883   IFS=$as_save_IFS
24884   test -z "$as_dir" && as_dir=.
24885     for ac_exec_ext in '' $ac_executable_extensions; do
24886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24887     ac_cv_prog_ac_ct_GETCONF="getconf"
24888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24889     break 2
24890   fi
24891 done
24892   done
24893 IFS=$as_save_IFS
24894
24895 fi
24896 fi
24897 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24898 if test -n "$ac_ct_GETCONF"; then
24899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24900 $as_echo "$ac_ct_GETCONF" >&6; }
24901 else
24902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24903 $as_echo "no" >&6; }
24904 fi
24905
24906   if test "x$ac_ct_GETCONF" = x; then
24907     GETCONF=""
24908   else
24909     case $cross_compiling:$ac_tool_warned in
24910 yes:)
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24913 ac_tool_warned=yes ;;
24914 esac
24915     GETCONF=$ac_ct_GETCONF
24916   fi
24917 else
24918   GETCONF="$ac_cv_prog_GETCONF"
24919 fi
24920
24921      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24922 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24923 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24924   $as_echo_n "(cached) " >&6
24925 else
24926   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24927         ac_cv_sys_largefile_CFLAGS=no
24928         case "$host_os" in
24929            # IRIX 6.2 and later require cc -n32.
24930            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24931              if test "$GCC" != yes; then
24932                ac_cv_sys_largefile_CFLAGS=-n32
24933              fi
24934              ac_save_CC="$CC"
24935              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24936              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24937 /* end confdefs.h.  */
24938
24939 int
24940 main ()
24941 {
24942
24943   ;
24944   return 0;
24945 }
24946 _ACEOF
24947 if ac_fn_c_try_link "$LINENO"; then :
24948
24949 else
24950   ac_cv_sys_largefile_CFLAGS=no
24951 fi
24952 rm -f core conftest.err conftest.$ac_objext \
24953     conftest$ac_exeext conftest.$ac_ext
24954              CC="$ac_save_CC"
24955            esac
24956       }
24957 fi
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24959 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24960      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24961 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24962 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24963   $as_echo_n "(cached) " >&6
24964 else
24965   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24966         ac_cv_sys_largefile_LDFLAGS=no
24967
24968       }
24969 fi
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24971 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24972      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24973 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24974 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24975   $as_echo_n "(cached) " >&6
24976 else
24977   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24978         ac_cv_sys_largefile_LIBS=no
24979
24980       }
24981 fi
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24983 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24984
24985      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24986        case "$ac_flag" in
24987        no) ;;
24988        -D_FILE_OFFSET_BITS=*) ;;
24989        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24990        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24991        -D?* | -I?*)
24992          case "$ac_flag" in
24993    no) ;;
24994    ?*)
24995      case "$CPPFLAGS" in
24996      '') CPPFLAGS="$ac_flag" ;;
24997      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24998      esac ;;
24999    esac ;;
25000        *)
25001          case "$ac_flag" in
25002    no) ;;
25003    ?*)
25004      case "$CFLAGS" in
25005      '') CFLAGS="$ac_flag" ;;
25006      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25007      esac ;;
25008    esac ;;
25009        esac
25010      done
25011      case "$ac_cv_sys_largefile_LDFLAGS" in
25012    no) ;;
25013    ?*)
25014      case "$LDFLAGS" in
25015      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25016      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25017      esac ;;
25018    esac
25019      case "$ac_cv_sys_largefile_LIBS" in
25020    no) ;;
25021    ?*)
25022      case "$LIBS" in
25023      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25024      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25025      esac ;;
25026    esac
25027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25028 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25029 if ${ac_cv_sys_file_offset_bits+:} false; then :
25030   $as_echo_n "(cached) " >&6
25031 else
25032   ac_cv_sys_file_offset_bits=no
25033       ac_cv_sys_file_offset_bits=64
25034       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25035         case "$ac_flag" in
25036         -D_FILE_OFFSET_BITS)
25037           ac_cv_sys_file_offset_bits=1 ;;
25038         -D_FILE_OFFSET_BITS=*)
25039           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25040         esac
25041       done
25042
25043 fi
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25045 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25046    if test "$ac_cv_sys_file_offset_bits" != no; then
25047
25048 cat >>confdefs.h <<_ACEOF
25049 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25050 _ACEOF
25051
25052    fi
25053      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25054 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25055 if ${ac_cv_sys_largefile_source+:} false; then :
25056   $as_echo_n "(cached) " >&6
25057 else
25058   ac_cv_sys_largefile_source=no
25059       ac_cv_sys_largefile_source=1
25060       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25061         case "$ac_flag" in
25062         -D_LARGEFILE_SOURCE)
25063           ac_cv_sys_largefile_source=1 ;;
25064         -D_LARGEFILE_SOURCE=*)
25065           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25066         esac
25067       done
25068
25069 fi
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25071 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25072    if test "$ac_cv_sys_largefile_source" != no; then
25073
25074 cat >>confdefs.h <<_ACEOF
25075 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25076 _ACEOF
25077
25078    fi
25079      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25080 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25081 if ${ac_cv_sys_large_files+:} false; then :
25082   $as_echo_n "(cached) " >&6
25083 else
25084   ac_cv_sys_large_files=no
25085       ac_cv_sys_large_files=1
25086       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25087         case "$ac_flag" in
25088         -D_LARGE_FILES)
25089           ac_cv_sys_large_files=1 ;;
25090         -D_LARGE_FILES=*)
25091           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25092         esac
25093       done
25094
25095 fi
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25097 $as_echo "$ac_cv_sys_large_files" >&6; }
25098    if test "$ac_cv_sys_large_files" != no; then
25099
25100 cat >>confdefs.h <<_ACEOF
25101 #define _LARGE_FILES $ac_cv_sys_large_files
25102 _ACEOF
25103
25104    fi
25105    fi
25106
25107
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25109 $as_echo_n "checking for X... " >&6; }
25110
25111
25112 # Check whether --with-x was given.
25113 if test "${with_x+set}" = set; then :
25114   withval=$with_x;
25115 fi
25116
25117 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25118 if test "x$with_x" = xno; then
25119   # The user explicitly disabled X.
25120   have_x=disabled
25121 else
25122   case $x_includes,$x_libraries in #(
25123     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25124     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25125   $as_echo_n "(cached) " >&6
25126 else
25127   # One or both of the vars are not set, and there is no cached value.
25128 ac_x_includes=no ac_x_libraries=no
25129 rm -f -r conftest.dir
25130 if mkdir conftest.dir; then
25131   cd conftest.dir
25132   cat >Imakefile <<'_ACEOF'
25133 incroot:
25134         @echo incroot='${INCROOT}'
25135 usrlibdir:
25136         @echo usrlibdir='${USRLIBDIR}'
25137 libdir:
25138         @echo libdir='${LIBDIR}'
25139 _ACEOF
25140   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25141     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25142     for ac_var in incroot usrlibdir libdir; do
25143       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25144     done
25145     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25146     for ac_extension in a so sl dylib la dll; do
25147       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25148          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25149         ac_im_usrlibdir=$ac_im_libdir; break
25150       fi
25151     done
25152     # Screen out bogus values from the imake configuration.  They are
25153     # bogus both because they are the default anyway, and because
25154     # using them would break gcc on systems where it needs fixed includes.
25155     case $ac_im_incroot in
25156         /usr/include) ac_x_includes= ;;
25157         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25158     esac
25159     case $ac_im_usrlibdir in
25160         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25161         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25162     esac
25163   fi
25164   cd ..
25165   rm -f -r conftest.dir
25166 fi
25167
25168 # Standard set of common directories for X headers.
25169 # Check X11 before X11Rn because it is often a symlink to the current release.
25170 ac_x_header_dirs='
25171 /usr/X11/include
25172 /usr/X11R7/include
25173 /usr/X11R6/include
25174 /usr/X11R5/include
25175 /usr/X11R4/include
25176
25177 /usr/include/X11
25178 /usr/include/X11R7
25179 /usr/include/X11R6
25180 /usr/include/X11R5
25181 /usr/include/X11R4
25182
25183 /usr/local/X11/include
25184 /usr/local/X11R7/include
25185 /usr/local/X11R6/include
25186 /usr/local/X11R5/include
25187 /usr/local/X11R4/include
25188
25189 /usr/local/include/X11
25190 /usr/local/include/X11R7
25191 /usr/local/include/X11R6
25192 /usr/local/include/X11R5
25193 /usr/local/include/X11R4
25194
25195 /usr/X386/include
25196 /usr/x386/include
25197 /usr/XFree86/include/X11
25198
25199 /usr/include
25200 /usr/local/include
25201 /usr/unsupported/include
25202 /usr/athena/include
25203 /usr/local/x11r5/include
25204 /usr/lpp/Xamples/include
25205
25206 /usr/openwin/include
25207 /usr/openwin/share/include'
25208
25209 if test "$ac_x_includes" = no; then
25210   # Guess where to find include files, by looking for Xlib.h.
25211   # First, try using that file with no special directory specified.
25212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25213 /* end confdefs.h.  */
25214 #include <X11/Xlib.h>
25215 _ACEOF
25216 if ac_fn_c_try_cpp "$LINENO"; then :
25217   # We can compile using X headers with no special include directory.
25218 ac_x_includes=
25219 else
25220   for ac_dir in $ac_x_header_dirs; do
25221   if test -r "$ac_dir/X11/Xlib.h"; then
25222     ac_x_includes=$ac_dir
25223     break
25224   fi
25225 done
25226 fi
25227 rm -f conftest.err conftest.i conftest.$ac_ext
25228 fi # $ac_x_includes = no
25229
25230 if test "$ac_x_libraries" = no; then
25231   # Check for the libraries.
25232   # See if we find them without any special options.
25233   # Don't add to $LIBS permanently.
25234   ac_save_LIBS=$LIBS
25235   LIBS="-lX11 $LIBS"
25236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h.  */
25238 #include <X11/Xlib.h>
25239 int
25240 main ()
25241 {
25242 XrmInitialize ()
25243   ;
25244   return 0;
25245 }
25246 _ACEOF
25247 if ac_fn_c_try_link "$LINENO"; then :
25248   LIBS=$ac_save_LIBS
25249 # We can link X programs with no special library path.
25250 ac_x_libraries=
25251 else
25252   LIBS=$ac_save_LIBS
25253 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25254 do
25255   # Don't even attempt the hair of trying to link an X program!
25256   for ac_extension in a so sl dylib la dll; do
25257     if test -r "$ac_dir/libX11.$ac_extension"; then
25258       ac_x_libraries=$ac_dir
25259       break 2
25260     fi
25261   done
25262 done
25263 fi
25264 rm -f core conftest.err conftest.$ac_objext \
25265     conftest$ac_exeext conftest.$ac_ext
25266 fi # $ac_x_libraries = no
25267
25268 case $ac_x_includes,$ac_x_libraries in #(
25269   no,* | *,no | *\'*)
25270     # Didn't find X, or a directory has "'" in its name.
25271     ac_cv_have_x="have_x=no";; #(
25272   *)
25273     # Record where we found X for the cache.
25274     ac_cv_have_x="have_x=yes\
25275         ac_x_includes='$ac_x_includes'\
25276         ac_x_libraries='$ac_x_libraries'"
25277 esac
25278 fi
25279 ;; #(
25280     *) have_x=yes;;
25281   esac
25282   eval "$ac_cv_have_x"
25283 fi # $with_x != no
25284
25285 if test "$have_x" != yes; then
25286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25287 $as_echo "$have_x" >&6; }
25288   no_x=yes
25289 else
25290   # If each of the values was on the command line, it overrides each guess.
25291   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25292   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25293   # Update the cache value to reflect the command line values.
25294   ac_cv_have_x="have_x=yes\
25295         ac_x_includes='$x_includes'\
25296         ac_x_libraries='$x_libraries'"
25297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25298 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25299 fi
25300
25301 if test "$no_x" = yes; then
25302   # Not all programs may use this symbol, but it does not hurt to define it.
25303
25304 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25305
25306   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25307 else
25308   if test -n "$x_includes"; then
25309     X_CFLAGS="$X_CFLAGS -I$x_includes"
25310   fi
25311
25312   # It would also be nice to do this for all -L options, not just this one.
25313   if test -n "$x_libraries"; then
25314     X_LIBS="$X_LIBS -L$x_libraries"
25315     # For Solaris; some versions of Sun CC require a space after -R and
25316     # others require no space.  Words are not sufficient . . . .
25317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25318 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25319     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25320     ac_xsave_c_werror_flag=$ac_c_werror_flag
25321     ac_c_werror_flag=yes
25322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25323 /* end confdefs.h.  */
25324
25325 int
25326 main ()
25327 {
25328
25329   ;
25330   return 0;
25331 }
25332 _ACEOF
25333 if ac_fn_c_try_link "$LINENO"; then :
25334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25335 $as_echo "no" >&6; }
25336        X_LIBS="$X_LIBS -R$x_libraries"
25337 else
25338   LIBS="$ac_xsave_LIBS -R $x_libraries"
25339        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25340 /* end confdefs.h.  */
25341
25342 int
25343 main ()
25344 {
25345
25346   ;
25347   return 0;
25348 }
25349 _ACEOF
25350 if ac_fn_c_try_link "$LINENO"; then :
25351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25352 $as_echo "yes" >&6; }
25353           X_LIBS="$X_LIBS -R $x_libraries"
25354 else
25355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25356 $as_echo "neither works" >&6; }
25357 fi
25358 rm -f core conftest.err conftest.$ac_objext \
25359     conftest$ac_exeext conftest.$ac_ext
25360 fi
25361 rm -f core conftest.err conftest.$ac_objext \
25362     conftest$ac_exeext conftest.$ac_ext
25363     ac_c_werror_flag=$ac_xsave_c_werror_flag
25364     LIBS=$ac_xsave_LIBS
25365   fi
25366
25367   # Check for system-dependent libraries X programs must link with.
25368   # Do this before checking for the system-independent R6 libraries
25369   # (-lICE), since we may need -lsocket or whatever for X linking.
25370
25371   if test "$ISC" = yes; then
25372     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25373   else
25374     # Martyn Johnson says this is needed for Ultrix, if the X
25375     # libraries were built with DECnet support.  And Karl Berry says
25376     # the Alpha needs dnet_stub (dnet does not exist).
25377     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h.  */
25380
25381 /* Override any GCC internal prototype to avoid an error.
25382    Use char because int might match the return type of a GCC
25383    builtin and then its argument prototype would still apply.  */
25384 #ifdef __cplusplus
25385 extern "C"
25386 #endif
25387 char XOpenDisplay ();
25388 int
25389 main ()
25390 {
25391 return XOpenDisplay ();
25392   ;
25393   return 0;
25394 }
25395 _ACEOF
25396 if ac_fn_c_try_link "$LINENO"; then :
25397
25398 else
25399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25400 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25401 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25402   $as_echo_n "(cached) " >&6
25403 else
25404   ac_check_lib_save_LIBS=$LIBS
25405 LIBS="-ldnet  $LIBS"
25406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25407 /* end confdefs.h.  */
25408
25409 /* Override any GCC internal prototype to avoid an error.
25410    Use char because int might match the return type of a GCC
25411    builtin and then its argument prototype would still apply.  */
25412 #ifdef __cplusplus
25413 extern "C"
25414 #endif
25415 char dnet_ntoa ();
25416 int
25417 main ()
25418 {
25419 return dnet_ntoa ();
25420   ;
25421   return 0;
25422 }
25423 _ACEOF
25424 if ac_fn_c_try_link "$LINENO"; then :
25425   ac_cv_lib_dnet_dnet_ntoa=yes
25426 else
25427   ac_cv_lib_dnet_dnet_ntoa=no
25428 fi
25429 rm -f core conftest.err conftest.$ac_objext \
25430     conftest$ac_exeext conftest.$ac_ext
25431 LIBS=$ac_check_lib_save_LIBS
25432 fi
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25434 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25435 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25436   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25437 fi
25438
25439     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25440       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25441 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25442 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25443   $as_echo_n "(cached) " >&6
25444 else
25445   ac_check_lib_save_LIBS=$LIBS
25446 LIBS="-ldnet_stub  $LIBS"
25447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25448 /* end confdefs.h.  */
25449
25450 /* Override any GCC internal prototype to avoid an error.
25451    Use char because int might match the return type of a GCC
25452    builtin and then its argument prototype would still apply.  */
25453 #ifdef __cplusplus
25454 extern "C"
25455 #endif
25456 char dnet_ntoa ();
25457 int
25458 main ()
25459 {
25460 return dnet_ntoa ();
25461   ;
25462   return 0;
25463 }
25464 _ACEOF
25465 if ac_fn_c_try_link "$LINENO"; then :
25466   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25467 else
25468   ac_cv_lib_dnet_stub_dnet_ntoa=no
25469 fi
25470 rm -f core conftest.err conftest.$ac_objext \
25471     conftest$ac_exeext conftest.$ac_ext
25472 LIBS=$ac_check_lib_save_LIBS
25473 fi
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25475 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25476 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25477   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25478 fi
25479
25480     fi
25481 fi
25482 rm -f core conftest.err conftest.$ac_objext \
25483     conftest$ac_exeext conftest.$ac_ext
25484     LIBS="$ac_xsave_LIBS"
25485
25486     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25487     # to get the SysV transport functions.
25488     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25489     # needs -lnsl.
25490     # The nsl library prevents programs from opening the X display
25491     # on Irix 5.2, according to T.E. Dickey.
25492     # The functions gethostbyname, getservbyname, and inet_addr are
25493     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25494     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25495 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25496
25497 fi
25498
25499     if test $ac_cv_func_gethostbyname = no; then
25500       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25501 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25502 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25503   $as_echo_n "(cached) " >&6
25504 else
25505   ac_check_lib_save_LIBS=$LIBS
25506 LIBS="-lnsl  $LIBS"
25507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h.  */
25509
25510 /* Override any GCC internal prototype to avoid an error.
25511    Use char because int might match the return type of a GCC
25512    builtin and then its argument prototype would still apply.  */
25513 #ifdef __cplusplus
25514 extern "C"
25515 #endif
25516 char gethostbyname ();
25517 int
25518 main ()
25519 {
25520 return gethostbyname ();
25521   ;
25522   return 0;
25523 }
25524 _ACEOF
25525 if ac_fn_c_try_link "$LINENO"; then :
25526   ac_cv_lib_nsl_gethostbyname=yes
25527 else
25528   ac_cv_lib_nsl_gethostbyname=no
25529 fi
25530 rm -f core conftest.err conftest.$ac_objext \
25531     conftest$ac_exeext conftest.$ac_ext
25532 LIBS=$ac_check_lib_save_LIBS
25533 fi
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25535 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25536 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25537   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25538 fi
25539
25540       if test $ac_cv_lib_nsl_gethostbyname = no; then
25541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25542 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25543 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25544   $as_echo_n "(cached) " >&6
25545 else
25546   ac_check_lib_save_LIBS=$LIBS
25547 LIBS="-lbsd  $LIBS"
25548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h.  */
25550
25551 /* Override any GCC internal prototype to avoid an error.
25552    Use char because int might match the return type of a GCC
25553    builtin and then its argument prototype would still apply.  */
25554 #ifdef __cplusplus
25555 extern "C"
25556 #endif
25557 char gethostbyname ();
25558 int
25559 main ()
25560 {
25561 return gethostbyname ();
25562   ;
25563   return 0;
25564 }
25565 _ACEOF
25566 if ac_fn_c_try_link "$LINENO"; then :
25567   ac_cv_lib_bsd_gethostbyname=yes
25568 else
25569   ac_cv_lib_bsd_gethostbyname=no
25570 fi
25571 rm -f core conftest.err conftest.$ac_objext \
25572     conftest$ac_exeext conftest.$ac_ext
25573 LIBS=$ac_check_lib_save_LIBS
25574 fi
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25576 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25577 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25578   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25579 fi
25580
25581       fi
25582     fi
25583
25584     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25585     # socket/setsockopt and other routines are undefined under SCO ODT
25586     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25587     # on later versions), says Simon Leinen: it contains gethostby*
25588     # variants that don't use the name server (or something).  -lsocket
25589     # must be given before -lnsl if both are needed.  We assume that
25590     # if connect needs -lnsl, so does gethostbyname.
25591     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25592 if test "x$ac_cv_func_connect" = xyes; then :
25593
25594 fi
25595
25596     if test $ac_cv_func_connect = no; then
25597       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25598 $as_echo_n "checking for connect in -lsocket... " >&6; }
25599 if ${ac_cv_lib_socket_connect+:} false; then :
25600   $as_echo_n "(cached) " >&6
25601 else
25602   ac_check_lib_save_LIBS=$LIBS
25603 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605 /* end confdefs.h.  */
25606
25607 /* Override any GCC internal prototype to avoid an error.
25608    Use char because int might match the return type of a GCC
25609    builtin and then its argument prototype would still apply.  */
25610 #ifdef __cplusplus
25611 extern "C"
25612 #endif
25613 char connect ();
25614 int
25615 main ()
25616 {
25617 return connect ();
25618   ;
25619   return 0;
25620 }
25621 _ACEOF
25622 if ac_fn_c_try_link "$LINENO"; then :
25623   ac_cv_lib_socket_connect=yes
25624 else
25625   ac_cv_lib_socket_connect=no
25626 fi
25627 rm -f core conftest.err conftest.$ac_objext \
25628     conftest$ac_exeext conftest.$ac_ext
25629 LIBS=$ac_check_lib_save_LIBS
25630 fi
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25632 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25633 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25634   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25635 fi
25636
25637     fi
25638
25639     # Guillermo Gomez says -lposix is necessary on A/UX.
25640     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25641 if test "x$ac_cv_func_remove" = xyes; then :
25642
25643 fi
25644
25645     if test $ac_cv_func_remove = no; then
25646       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25647 $as_echo_n "checking for remove in -lposix... " >&6; }
25648 if ${ac_cv_lib_posix_remove+:} false; then :
25649   $as_echo_n "(cached) " >&6
25650 else
25651   ac_check_lib_save_LIBS=$LIBS
25652 LIBS="-lposix  $LIBS"
25653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h.  */
25655
25656 /* Override any GCC internal prototype to avoid an error.
25657    Use char because int might match the return type of a GCC
25658    builtin and then its argument prototype would still apply.  */
25659 #ifdef __cplusplus
25660 extern "C"
25661 #endif
25662 char remove ();
25663 int
25664 main ()
25665 {
25666 return remove ();
25667   ;
25668   return 0;
25669 }
25670 _ACEOF
25671 if ac_fn_c_try_link "$LINENO"; then :
25672   ac_cv_lib_posix_remove=yes
25673 else
25674   ac_cv_lib_posix_remove=no
25675 fi
25676 rm -f core conftest.err conftest.$ac_objext \
25677     conftest$ac_exeext conftest.$ac_ext
25678 LIBS=$ac_check_lib_save_LIBS
25679 fi
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25681 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25682 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25683   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25684 fi
25685
25686     fi
25687
25688     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25689     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25690 if test "x$ac_cv_func_shmat" = xyes; then :
25691
25692 fi
25693
25694     if test $ac_cv_func_shmat = no; then
25695       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25696 $as_echo_n "checking for shmat in -lipc... " >&6; }
25697 if ${ac_cv_lib_ipc_shmat+:} false; then :
25698   $as_echo_n "(cached) " >&6
25699 else
25700   ac_check_lib_save_LIBS=$LIBS
25701 LIBS="-lipc  $LIBS"
25702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25703 /* end confdefs.h.  */
25704
25705 /* Override any GCC internal prototype to avoid an error.
25706    Use char because int might match the return type of a GCC
25707    builtin and then its argument prototype would still apply.  */
25708 #ifdef __cplusplus
25709 extern "C"
25710 #endif
25711 char shmat ();
25712 int
25713 main ()
25714 {
25715 return shmat ();
25716   ;
25717   return 0;
25718 }
25719 _ACEOF
25720 if ac_fn_c_try_link "$LINENO"; then :
25721   ac_cv_lib_ipc_shmat=yes
25722 else
25723   ac_cv_lib_ipc_shmat=no
25724 fi
25725 rm -f core conftest.err conftest.$ac_objext \
25726     conftest$ac_exeext conftest.$ac_ext
25727 LIBS=$ac_check_lib_save_LIBS
25728 fi
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25730 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25731 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25732   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25733 fi
25734
25735     fi
25736   fi
25737
25738   # Check for libraries that X11R6 Xt/Xaw programs need.
25739   ac_save_LDFLAGS=$LDFLAGS
25740   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25741   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25742   # check for ICE first), but we must link in the order -lSM -lICE or
25743   # we get undefined symbols.  So assume we have SM if we have ICE.
25744   # These have to be linked with before -lX11, unlike the other
25745   # libraries we check for below, so use a different variable.
25746   # John Interrante, Karl Berry
25747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25748 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25749 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25750   $as_echo_n "(cached) " >&6
25751 else
25752   ac_check_lib_save_LIBS=$LIBS
25753 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h.  */
25756
25757 /* Override any GCC internal prototype to avoid an error.
25758    Use char because int might match the return type of a GCC
25759    builtin and then its argument prototype would still apply.  */
25760 #ifdef __cplusplus
25761 extern "C"
25762 #endif
25763 char IceConnectionNumber ();
25764 int
25765 main ()
25766 {
25767 return IceConnectionNumber ();
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 if ac_fn_c_try_link "$LINENO"; then :
25773   ac_cv_lib_ICE_IceConnectionNumber=yes
25774 else
25775   ac_cv_lib_ICE_IceConnectionNumber=no
25776 fi
25777 rm -f core conftest.err conftest.$ac_objext \
25778     conftest$ac_exeext conftest.$ac_ext
25779 LIBS=$ac_check_lib_save_LIBS
25780 fi
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25782 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25783 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25784   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25785 fi
25786
25787   LDFLAGS=$ac_save_LDFLAGS
25788
25789 fi
25790
25791
25792 for ac_header in \
25793    assert.h \
25794    fcntl.h \
25795    grp.h \
25796    pwd.h \
25797    libc.h \
25798    limits.h \
25799    stdarg.h \
25800    stdlib.h \
25801    stdint.h \
25802    inttypes.h \
25803    string.h \
25804    strings.h \
25805    termios.h \
25806    termcap.h \
25807    term.h \
25808    unistd.h \
25809    sys/bitypes.h \
25810    sys/byteorder.h \
25811    sys/ioctl.h \
25812    sys/select.h \
25813    sys/socket.h \
25814    sys/sockio.h \
25815    sys/stat.h \
25816    sys/time.h \
25817    sys/types.h \
25818    arpa/nameser.h \
25819    mtio.h \
25820    sys/mtio.h \
25821    sys/tape.h \
25822    regex.h \
25823
25824 do :
25825   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25826 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25828   cat >>confdefs.h <<_ACEOF
25829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25830 _ACEOF
25831
25832 fi
25833
25834 done
25835
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25837 $as_echo_n "checking for ANSI C header files... " >&6; }
25838 if ${ac_cv_header_stdc+:} false; then :
25839   $as_echo_n "(cached) " >&6
25840 else
25841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25842 /* end confdefs.h.  */
25843 #include <stdlib.h>
25844 #include <stdarg.h>
25845 #include <string.h>
25846 #include <float.h>
25847
25848 int
25849 main ()
25850 {
25851
25852   ;
25853   return 0;
25854 }
25855 _ACEOF
25856 if ac_fn_c_try_compile "$LINENO"; then :
25857   ac_cv_header_stdc=yes
25858 else
25859   ac_cv_header_stdc=no
25860 fi
25861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25862
25863 if test $ac_cv_header_stdc = yes; then
25864   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h.  */
25867 #include <string.h>
25868
25869 _ACEOF
25870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25871   $EGREP "memchr" >/dev/null 2>&1; then :
25872
25873 else
25874   ac_cv_header_stdc=no
25875 fi
25876 rm -f conftest*
25877
25878 fi
25879
25880 if test $ac_cv_header_stdc = yes; then
25881   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25883 /* end confdefs.h.  */
25884 #include <stdlib.h>
25885
25886 _ACEOF
25887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25888   $EGREP "free" >/dev/null 2>&1; then :
25889
25890 else
25891   ac_cv_header_stdc=no
25892 fi
25893 rm -f conftest*
25894
25895 fi
25896
25897 if test $ac_cv_header_stdc = yes; then
25898   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25899   if test "$cross_compiling" = yes; then :
25900   :
25901 else
25902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903 /* end confdefs.h.  */
25904 #include <ctype.h>
25905 #include <stdlib.h>
25906 #if ((' ' & 0x0FF) == 0x020)
25907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25909 #else
25910 # define ISLOWER(c) \
25911                    (('a' <= (c) && (c) <= 'i') \
25912                      || ('j' <= (c) && (c) <= 'r') \
25913                      || ('s' <= (c) && (c) <= 'z'))
25914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25915 #endif
25916
25917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25918 int
25919 main ()
25920 {
25921   int i;
25922   for (i = 0; i < 256; i++)
25923     if (XOR (islower (i), ISLOWER (i))
25924         || toupper (i) != TOUPPER (i))
25925       return 2;
25926   return 0;
25927 }
25928 _ACEOF
25929 if ac_fn_c_try_run "$LINENO"; then :
25930
25931 else
25932   ac_cv_header_stdc=no
25933 fi
25934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25935   conftest.$ac_objext conftest.beam conftest.$ac_ext
25936 fi
25937
25938 fi
25939 fi
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25941 $as_echo "$ac_cv_header_stdc" >&6; }
25942 if test $ac_cv_header_stdc = yes; then
25943
25944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25945
25946 fi
25947
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25949 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25950 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25951   $as_echo_n "(cached) " >&6
25952 else
25953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h.  */
25955 #include <sys/types.h>
25956 int
25957 main ()
25958 {
25959 return makedev(0, 0);
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 if ac_fn_c_try_link "$LINENO"; then :
25965   ac_cv_header_sys_types_h_makedev=yes
25966 else
25967   ac_cv_header_sys_types_h_makedev=no
25968 fi
25969 rm -f core conftest.err conftest.$ac_objext \
25970     conftest$ac_exeext conftest.$ac_ext
25971
25972 fi
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25974 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25975
25976 if test $ac_cv_header_sys_types_h_makedev = no; then
25977 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25978 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25979
25980 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25981
25982 fi
25983
25984
25985
25986   if test $ac_cv_header_sys_mkdev_h = no; then
25987     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25988 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25989
25990 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25991
25992 fi
25993
25994
25995   fi
25996 fi
25997
25998 ac_header_dirent=no
25999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26000   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26002 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26003 if eval \${$as_ac_Header+:} false; then :
26004   $as_echo_n "(cached) " >&6
26005 else
26006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h.  */
26008 #include <sys/types.h>
26009 #include <$ac_hdr>
26010
26011 int
26012 main ()
26013 {
26014 if ((DIR *) 0)
26015 return 0;
26016   ;
26017   return 0;
26018 }
26019 _ACEOF
26020 if ac_fn_c_try_compile "$LINENO"; then :
26021   eval "$as_ac_Header=yes"
26022 else
26023   eval "$as_ac_Header=no"
26024 fi
26025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26026 fi
26027 eval ac_res=\$$as_ac_Header
26028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26029 $as_echo "$ac_res" >&6; }
26030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26031   cat >>confdefs.h <<_ACEOF
26032 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26033 _ACEOF
26034
26035 ac_header_dirent=$ac_hdr; break
26036 fi
26037
26038 done
26039 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26040 if test $ac_header_dirent = dirent.h; then
26041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26042 $as_echo_n "checking for library containing opendir... " >&6; }
26043 if ${ac_cv_search_opendir+:} false; then :
26044   $as_echo_n "(cached) " >&6
26045 else
26046   ac_func_search_save_LIBS=$LIBS
26047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26048 /* end confdefs.h.  */
26049
26050 /* Override any GCC internal prototype to avoid an error.
26051    Use char because int might match the return type of a GCC
26052    builtin and then its argument prototype would still apply.  */
26053 #ifdef __cplusplus
26054 extern "C"
26055 #endif
26056 char opendir ();
26057 int
26058 main ()
26059 {
26060 return opendir ();
26061   ;
26062   return 0;
26063 }
26064 _ACEOF
26065 for ac_lib in '' dir; do
26066   if test -z "$ac_lib"; then
26067     ac_res="none required"
26068   else
26069     ac_res=-l$ac_lib
26070     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26071   fi
26072   if ac_fn_c_try_link "$LINENO"; then :
26073   ac_cv_search_opendir=$ac_res
26074 fi
26075 rm -f core conftest.err conftest.$ac_objext \
26076     conftest$ac_exeext
26077   if ${ac_cv_search_opendir+:} false; then :
26078   break
26079 fi
26080 done
26081 if ${ac_cv_search_opendir+:} false; then :
26082
26083 else
26084   ac_cv_search_opendir=no
26085 fi
26086 rm conftest.$ac_ext
26087 LIBS=$ac_func_search_save_LIBS
26088 fi
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26090 $as_echo "$ac_cv_search_opendir" >&6; }
26091 ac_res=$ac_cv_search_opendir
26092 if test "$ac_res" != no; then :
26093   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26094
26095 fi
26096
26097 else
26098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26099 $as_echo_n "checking for library containing opendir... " >&6; }
26100 if ${ac_cv_search_opendir+:} false; then :
26101   $as_echo_n "(cached) " >&6
26102 else
26103   ac_func_search_save_LIBS=$LIBS
26104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105 /* end confdefs.h.  */
26106
26107 /* Override any GCC internal prototype to avoid an error.
26108    Use char because int might match the return type of a GCC
26109    builtin and then its argument prototype would still apply.  */
26110 #ifdef __cplusplus
26111 extern "C"
26112 #endif
26113 char opendir ();
26114 int
26115 main ()
26116 {
26117 return opendir ();
26118   ;
26119   return 0;
26120 }
26121 _ACEOF
26122 for ac_lib in '' x; do
26123   if test -z "$ac_lib"; then
26124     ac_res="none required"
26125   else
26126     ac_res=-l$ac_lib
26127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26128   fi
26129   if ac_fn_c_try_link "$LINENO"; then :
26130   ac_cv_search_opendir=$ac_res
26131 fi
26132 rm -f core conftest.err conftest.$ac_objext \
26133     conftest$ac_exeext
26134   if ${ac_cv_search_opendir+:} false; then :
26135   break
26136 fi
26137 done
26138 if ${ac_cv_search_opendir+:} false; then :
26139
26140 else
26141   ac_cv_search_opendir=no
26142 fi
26143 rm conftest.$ac_ext
26144 LIBS=$ac_func_search_save_LIBS
26145 fi
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26147 $as_echo "$ac_cv_search_opendir" >&6; }
26148 ac_res=$ac_cv_search_opendir
26149 if test "$ac_res" != no; then :
26150   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26151
26152 fi
26153
26154 fi
26155
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26157 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26158 if ${ac_cv_header_stat_broken+:} false; then :
26159   $as_echo_n "(cached) " >&6
26160 else
26161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26162 /* end confdefs.h.  */
26163 #include <sys/types.h>
26164 #include <sys/stat.h>
26165
26166 #if defined S_ISBLK && defined S_IFDIR
26167 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26168 #endif
26169
26170 #if defined S_ISBLK && defined S_IFCHR
26171 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26172 #endif
26173
26174 #if defined S_ISLNK && defined S_IFREG
26175 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26176 #endif
26177
26178 #if defined S_ISSOCK && defined S_IFREG
26179 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26180 #endif
26181
26182 _ACEOF
26183 if ac_fn_c_try_compile "$LINENO"; then :
26184   ac_cv_header_stat_broken=no
26185 else
26186   ac_cv_header_stat_broken=yes
26187 fi
26188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26189 fi
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26191 $as_echo "$ac_cv_header_stat_broken" >&6; }
26192 if test $ac_cv_header_stat_broken = yes; then
26193
26194 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26195
26196 fi
26197
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26199 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26200 if ${ac_cv_header_sys_wait_h+:} false; then :
26201   $as_echo_n "(cached) " >&6
26202 else
26203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26204 /* end confdefs.h.  */
26205 #include <sys/types.h>
26206 #include <sys/wait.h>
26207 #ifndef WEXITSTATUS
26208 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26209 #endif
26210 #ifndef WIFEXITED
26211 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26212 #endif
26213
26214 int
26215 main ()
26216 {
26217   int s;
26218   wait (&s);
26219   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26220   ;
26221   return 0;
26222 }
26223 _ACEOF
26224 if ac_fn_c_try_compile "$LINENO"; then :
26225   ac_cv_header_sys_wait_h=yes
26226 else
26227   ac_cv_header_sys_wait_h=no
26228 fi
26229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26230 fi
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26232 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26233 if test $ac_cv_header_sys_wait_h = yes; then
26234
26235 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26236
26237 fi
26238
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26240 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26241 if ${ac_cv_header_time+:} false; then :
26242   $as_echo_n "(cached) " >&6
26243 else
26244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26245 /* end confdefs.h.  */
26246 #include <sys/types.h>
26247 #include <sys/time.h>
26248 #include <time.h>
26249
26250 int
26251 main ()
26252 {
26253 if ((struct tm *) 0)
26254 return 0;
26255   ;
26256   return 0;
26257 }
26258 _ACEOF
26259 if ac_fn_c_try_compile "$LINENO"; then :
26260   ac_cv_header_time=yes
26261 else
26262   ac_cv_header_time=no
26263 fi
26264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26265 fi
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26267 $as_echo "$ac_cv_header_time" >&6; }
26268 if test $ac_cv_header_time = yes; then
26269
26270 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26271
26272 fi
26273
26274 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26275 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26276
26277 cat >>confdefs.h <<_ACEOF
26278 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26279 _ACEOF
26280
26281
26282 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26283
26284 fi
26285
26286
26287 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26288 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26289
26290 cat >>confdefs.h <<_ACEOF
26291 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26292 _ACEOF
26293
26294
26295 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26296
26297 else
26298   case " $LIBOBJS " in
26299   *" fileblocks.$ac_objext "* ) ;;
26300   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26301  ;;
26302 esac
26303
26304 fi
26305
26306
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26308 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26309 if ${ac_cv_struct_tm+:} false; then :
26310   $as_echo_n "(cached) " >&6
26311 else
26312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313 /* end confdefs.h.  */
26314 #include <sys/types.h>
26315 #include <time.h>
26316
26317 int
26318 main ()
26319 {
26320 struct tm tm;
26321                                      int *p = &tm.tm_sec;
26322                                      return !p;
26323   ;
26324   return 0;
26325 }
26326 _ACEOF
26327 if ac_fn_c_try_compile "$LINENO"; then :
26328   ac_cv_struct_tm=time.h
26329 else
26330   ac_cv_struct_tm=sys/time.h
26331 fi
26332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 fi
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26335 $as_echo "$ac_cv_struct_tm" >&6; }
26336 if test $ac_cv_struct_tm = sys/time.h; then
26337
26338 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26339
26340 fi
26341
26342 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26343 #include <$ac_cv_struct_tm>
26344
26345 "
26346 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26347
26348 cat >>confdefs.h <<_ACEOF
26349 #define HAVE_STRUCT_TM_TM_ZONE 1
26350 _ACEOF
26351
26352
26353 fi
26354
26355 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26356
26357 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26358
26359 else
26360   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26361 "
26362 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26363   ac_have_decl=1
26364 else
26365   ac_have_decl=0
26366 fi
26367
26368 cat >>confdefs.h <<_ACEOF
26369 #define HAVE_DECL_TZNAME $ac_have_decl
26370 _ACEOF
26371
26372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26373 $as_echo_n "checking for tzname... " >&6; }
26374 if ${ac_cv_var_tzname+:} false; then :
26375   $as_echo_n "(cached) " >&6
26376 else
26377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26378 /* end confdefs.h.  */
26379 #include <time.h>
26380 #if !HAVE_DECL_TZNAME
26381 extern char *tzname[];
26382 #endif
26383
26384 int
26385 main ()
26386 {
26387 return tzname[0][0];
26388   ;
26389   return 0;
26390 }
26391 _ACEOF
26392 if ac_fn_c_try_link "$LINENO"; then :
26393   ac_cv_var_tzname=yes
26394 else
26395   ac_cv_var_tzname=no
26396 fi
26397 rm -f core conftest.err conftest.$ac_objext \
26398     conftest$ac_exeext conftest.$ac_ext
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26401 $as_echo "$ac_cv_var_tzname" >&6; }
26402   if test $ac_cv_var_tzname = yes; then
26403
26404 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26405
26406   fi
26407 fi
26408
26409
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26411 $as_echo_n "checking for utime.h... " >&6; }
26412 if ${ba_cv_header_utime_h+:} false; then :
26413   $as_echo_n "(cached) " >&6
26414 else
26415
26416        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26417 /* end confdefs.h.  */
26418
26419               #include <sys/types.h>
26420               #include <utime.h>
26421
26422 int
26423 main ()
26424 {
26425
26426               struct utimbuf foo
26427
26428   ;
26429   return 0;
26430 }
26431 _ACEOF
26432 if ac_fn_c_try_compile "$LINENO"; then :
26433
26434               ba_cv_header_utime_h=yes
26435
26436 else
26437
26438               ba_cv_header_utime_h=no
26439
26440
26441 fi
26442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26443
26444
26445 fi
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26447 $as_echo "$ba_cv_header_utime_h" >&6; }
26448 test $ba_cv_header_utime_h = yes &&
26449 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26450
26451
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26453 $as_echo_n "checking for socklen_t... " >&6; }
26454 if ${ba_cv_header_socklen_t+:} false; then :
26455   $as_echo_n "(cached) " >&6
26456 else
26457
26458        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26459 /* end confdefs.h.  */
26460
26461               #include <sys/types.h>
26462               #include <sys/socket.h>
26463
26464 int
26465 main ()
26466 {
26467
26468               socklen_t x
26469
26470   ;
26471   return 0;
26472 }
26473 _ACEOF
26474 if ac_fn_c_try_compile "$LINENO"; then :
26475
26476              ba_cv_header_socklen_t=yes
26477
26478 else
26479
26480              ba_cv_header_socklen_t=no
26481
26482
26483 fi
26484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485
26486
26487 fi
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26489 $as_echo "$ba_cv_header_socklen_t" >&6; }
26490 test $ba_cv_header_socklen_t = yes &&
26491 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26492
26493
26494 ac_ext=cpp
26495 ac_cpp='$CXXCPP $CPPFLAGS'
26496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26499
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26501 $as_echo_n "checking for ioctl_req_t... " >&6; }
26502 if ${ba_cv_header_ioctl_req_t+:} false; then :
26503   $as_echo_n "(cached) " >&6
26504 else
26505
26506        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26507 /* end confdefs.h.  */
26508
26509               #include <unistd.h>
26510               #include <sys/types.h>
26511               #include <sys/ioctl.h>
26512
26513 int
26514 main ()
26515 {
26516
26517               int (*d_ioctl)(int fd, unsigned long int request, ...);
26518               d_ioctl = ::ioctl;
26519
26520   ;
26521   return 0;
26522 }
26523 _ACEOF
26524 if ac_fn_cxx_try_compile "$LINENO"; then :
26525
26526              ba_cv_header_ioctl_req_t=yes
26527
26528 else
26529
26530              ba_cv_header_ioctl_req_t=no
26531
26532
26533 fi
26534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26535
26536
26537 fi
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26539 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26540 test $ba_cv_header_ioctl_req_t = yes &&
26541 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26542
26543
26544 ac_ext=c
26545 ac_cpp='$CPP $CPPFLAGS'
26546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26549
26550
26551 ac_ext=cpp
26552 ac_cpp='$CXXCPP $CPPFLAGS'
26553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26556
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26558 $as_echo_n "checking for typeof... " >&6; }
26559 if ${ba_cv_have_typeof+:} false; then :
26560   $as_echo_n "(cached) " >&6
26561 else
26562
26563        if test "$cross_compiling" = yes; then :
26564
26565               ba_cv_have_typeof=no
26566
26567
26568 else
26569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26570 /* end confdefs.h.  */
26571
26572               main(){char *a = 0; a = (typeof a)a;}
26573
26574 _ACEOF
26575 if ac_fn_cxx_try_run "$LINENO"; then :
26576
26577               ba_cv_have_typeof=yes
26578
26579 else
26580
26581               ba_cv_have_typeof=no
26582
26583 fi
26584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26585   conftest.$ac_objext conftest.beam conftest.$ac_ext
26586 fi
26587
26588
26589
26590 fi
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26592 $as_echo "$ba_cv_have_typeof" >&6; }
26593 test $ba_cv_have_typeof = yes &&
26594 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26595
26596 ac_ext=c
26597 ac_cpp='$CPP $CPPFLAGS'
26598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26601
26602
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26604 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26605 if ${ac_cv_c_const+:} false; then :
26606   $as_echo_n "(cached) " >&6
26607 else
26608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h.  */
26610
26611 int
26612 main ()
26613 {
26614
26615 #ifndef __cplusplus
26616   /* Ultrix mips cc rejects this sort of thing.  */
26617   typedef int charset[2];
26618   const charset cs = { 0, 0 };
26619   /* SunOS 4.1.1 cc rejects this.  */
26620   char const *const *pcpcc;
26621   char **ppc;
26622   /* NEC SVR4.0.2 mips cc rejects this.  */
26623   struct point {int x, y;};
26624   static struct point const zero = {0,0};
26625   /* AIX XL C 1.02.0.0 rejects this.
26626      It does not let you subtract one const X* pointer from another in
26627      an arm of an if-expression whose if-part is not a constant
26628      expression */
26629   const char *g = "string";
26630   pcpcc = &g + (g ? g-g : 0);
26631   /* HPUX 7.0 cc rejects these. */
26632   ++pcpcc;
26633   ppc = (char**) pcpcc;
26634   pcpcc = (char const *const *) ppc;
26635   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26636     char tx;
26637     char *t = &tx;
26638     char const *s = 0 ? (char *) 0 : (char const *) 0;
26639
26640     *t++ = 0;
26641     if (s) return 0;
26642   }
26643   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26644     int x[] = {25, 17};
26645     const int *foo = &x[0];
26646     ++foo;
26647   }
26648   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26649     typedef const int *iptr;
26650     iptr p = 0;
26651     ++p;
26652   }
26653   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26654        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26655     struct s { int j; const int *ap[3]; } bx;
26656     struct s *b = &bx; b->j = 5;
26657   }
26658   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26659     const int foo = 10;
26660     if (!foo) return 0;
26661   }
26662   return !cs[0] && !zero.x;
26663 #endif
26664
26665   ;
26666   return 0;
26667 }
26668 _ACEOF
26669 if ac_fn_c_try_compile "$LINENO"; then :
26670   ac_cv_c_const=yes
26671 else
26672   ac_cv_c_const=no
26673 fi
26674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26675 fi
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26677 $as_echo "$ac_cv_c_const" >&6; }
26678 if test $ac_cv_c_const = no; then
26679
26680 $as_echo "#define const /**/" >>confdefs.h
26681
26682 fi
26683
26684
26685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26686 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26687 if ${ac_cv_c_bigendian+:} false; then :
26688   $as_echo_n "(cached) " >&6
26689 else
26690   ac_cv_c_bigendian=unknown
26691     # See if we're dealing with a universal compiler.
26692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h.  */
26694 #ifndef __APPLE_CC__
26695                not a universal capable compiler
26696              #endif
26697              typedef int dummy;
26698
26699 _ACEOF
26700 if ac_fn_c_try_compile "$LINENO"; then :
26701
26702         # Check for potential -arch flags.  It is not universal unless
26703         # there are at least two -arch flags with different values.
26704         ac_arch=
26705         ac_prev=
26706         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26707          if test -n "$ac_prev"; then
26708            case $ac_word in
26709              i?86 | x86_64 | ppc | ppc64)
26710                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26711                  ac_arch=$ac_word
26712                else
26713                  ac_cv_c_bigendian=universal
26714                  break
26715                fi
26716                ;;
26717            esac
26718            ac_prev=
26719          elif test "x$ac_word" = "x-arch"; then
26720            ac_prev=arch
26721          fi
26722        done
26723 fi
26724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725     if test $ac_cv_c_bigendian = unknown; then
26726       # See if sys/param.h defines the BYTE_ORDER macro.
26727       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26728 /* end confdefs.h.  */
26729 #include <sys/types.h>
26730              #include <sys/param.h>
26731
26732 int
26733 main ()
26734 {
26735 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26736                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26737                      && LITTLE_ENDIAN)
26738               bogus endian macros
26739              #endif
26740
26741   ;
26742   return 0;
26743 }
26744 _ACEOF
26745 if ac_fn_c_try_compile "$LINENO"; then :
26746   # It does; now see whether it defined to BIG_ENDIAN or not.
26747          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748 /* end confdefs.h.  */
26749 #include <sys/types.h>
26750                 #include <sys/param.h>
26751
26752 int
26753 main ()
26754 {
26755 #if BYTE_ORDER != BIG_ENDIAN
26756                  not big endian
26757                 #endif
26758
26759   ;
26760   return 0;
26761 }
26762 _ACEOF
26763 if ac_fn_c_try_compile "$LINENO"; then :
26764   ac_cv_c_bigendian=yes
26765 else
26766   ac_cv_c_bigendian=no
26767 fi
26768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26769 fi
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771     fi
26772     if test $ac_cv_c_bigendian = unknown; then
26773       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26774       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h.  */
26776 #include <limits.h>
26777
26778 int
26779 main ()
26780 {
26781 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26782               bogus endian macros
26783              #endif
26784
26785   ;
26786   return 0;
26787 }
26788 _ACEOF
26789 if ac_fn_c_try_compile "$LINENO"; then :
26790   # It does; now see whether it defined to _BIG_ENDIAN or not.
26791          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26792 /* end confdefs.h.  */
26793 #include <limits.h>
26794
26795 int
26796 main ()
26797 {
26798 #ifndef _BIG_ENDIAN
26799                  not big endian
26800                 #endif
26801
26802   ;
26803   return 0;
26804 }
26805 _ACEOF
26806 if ac_fn_c_try_compile "$LINENO"; then :
26807   ac_cv_c_bigendian=yes
26808 else
26809   ac_cv_c_bigendian=no
26810 fi
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812 fi
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26814     fi
26815     if test $ac_cv_c_bigendian = unknown; then
26816       # Compile a test program.
26817       if test "$cross_compiling" = yes; then :
26818   # Try to guess by grepping values from an object file.
26819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h.  */
26821 short int ascii_mm[] =
26822                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26823                 short int ascii_ii[] =
26824                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26825                 int use_ascii (int i) {
26826                   return ascii_mm[i] + ascii_ii[i];
26827                 }
26828                 short int ebcdic_ii[] =
26829                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26830                 short int ebcdic_mm[] =
26831                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26832                 int use_ebcdic (int i) {
26833                   return ebcdic_mm[i] + ebcdic_ii[i];
26834                 }
26835                 extern int foo;
26836
26837 int
26838 main ()
26839 {
26840 return use_ascii (foo) == use_ebcdic (foo);
26841   ;
26842   return 0;
26843 }
26844 _ACEOF
26845 if ac_fn_c_try_compile "$LINENO"; then :
26846   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26847               ac_cv_c_bigendian=yes
26848             fi
26849             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26850               if test "$ac_cv_c_bigendian" = unknown; then
26851                 ac_cv_c_bigendian=no
26852               else
26853                 # finding both strings is unlikely to happen, but who knows?
26854                 ac_cv_c_bigendian=unknown
26855               fi
26856             fi
26857 fi
26858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26859 else
26860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h.  */
26862 $ac_includes_default
26863 int
26864 main ()
26865 {
26866
26867              /* Are we little or big endian?  From Harbison&Steele.  */
26868              union
26869              {
26870                long int l;
26871                char c[sizeof (long int)];
26872              } u;
26873              u.l = 1;
26874              return u.c[sizeof (long int) - 1] == 1;
26875
26876   ;
26877   return 0;
26878 }
26879 _ACEOF
26880 if ac_fn_c_try_run "$LINENO"; then :
26881   ac_cv_c_bigendian=no
26882 else
26883   ac_cv_c_bigendian=yes
26884 fi
26885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26886   conftest.$ac_objext conftest.beam conftest.$ac_ext
26887 fi
26888
26889     fi
26890 fi
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26892 $as_echo "$ac_cv_c_bigendian" >&6; }
26893  case $ac_cv_c_bigendian in #(
26894    yes)
26895
26896 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26897 ;; #(
26898    no)
26899
26900 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26901  ;; #(
26902    universal)
26903
26904 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26905
26906      ;; #(
26907    *)
26908      as_fn_error $? "unknown endianness
26909  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26910  esac
26911
26912
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26914 $as_echo_n "checking how to get filesystem type... " >&6; }
26915 fstype=no
26916 # The order of these tests is important.
26917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26918 /* end confdefs.h.  */
26919
26920        #include <sys/statvfs.h>
26921        #include <sys/fstyp.h>
26922
26923 _ACEOF
26924 if ac_fn_c_try_cpp "$LINENO"; then :
26925   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26926  fstype=SVR4
26927
26928 fi
26929 rm -f conftest.err conftest.i conftest.$ac_ext
26930 if test $fstype = no; then
26931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26932 /* end confdefs.h.  */
26933
26934           #include <sys/statfs.h>
26935           #include <sys/fstyp.h>
26936
26937 _ACEOF
26938 if ac_fn_c_try_cpp "$LINENO"; then :
26939   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26940  fstype=SVR3
26941
26942 fi
26943 rm -f conftest.err conftest.i conftest.$ac_ext
26944 fi
26945 if test $fstype = no; then
26946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h.  */
26948
26949           #include <sys/statfs.h>
26950           #include <sys/vmount.h>
26951
26952 _ACEOF
26953 if ac_fn_c_try_cpp "$LINENO"; then :
26954   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26955  fstype=AIX
26956
26957 fi
26958 rm -f conftest.err conftest.i conftest.$ac_ext
26959 fi
26960 if test $fstype = no; then
26961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h.  */
26963
26964           #include <mntent.h>
26965
26966 _ACEOF
26967 if ac_fn_c_try_cpp "$LINENO"; then :
26968   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26969  fstype=4.3BSD
26970
26971 fi
26972 rm -f conftest.err conftest.i conftest.$ac_ext
26973 fi
26974 if test $fstype = no; then
26975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976 /* end confdefs.h.  */
26977 #include <sys/mount.h>
26978
26979 _ACEOF
26980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26981   $EGREP "f_type;" >/dev/null 2>&1; then :
26982   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26983  fstype=4.4BSD/OSF1
26984 fi
26985 rm -f conftest*
26986
26987 fi
26988 if test $fstype = no; then
26989    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h.  */
26991
26992           #include <sys/mount.h>
26993           #include <sys/fs_types.h>
26994
26995 _ACEOF
26996 if ac_fn_c_try_cpp "$LINENO"; then :
26997   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26998  fstype=Ultrix
26999
27000 fi
27001 rm -f conftest.err conftest.i conftest.$ac_ext
27002 fi
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27004 $as_echo "$fstype" >&6; }
27005
27006 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27007 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27008
27009 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27010
27011 fi
27012
27013
27014
27015 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27016 #ifdef HAVE_FCNTL_H
27017 # include <fcntl.h>
27018 #endif
27019
27020 "
27021 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27022   ac_have_decl=1
27023 else
27024   ac_have_decl=0
27025 fi
27026
27027 cat >>confdefs.h <<_ACEOF
27028 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27029 _ACEOF
27030 if test $ac_have_decl = 1; then :
27031
27032 else
27033
27034 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27035
27036 fi
27037
27038
27039 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27040 #ifdef HAVE_FCNTL_H
27041 # include <fcntl.h>
27042 #endif
27043
27044 "
27045 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27046   ac_have_decl=1
27047 else
27048   ac_have_decl=0
27049 fi
27050
27051 cat >>confdefs.h <<_ACEOF
27052 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27053 _ACEOF
27054 if test $ac_have_decl = 1; then :
27055
27056 else
27057
27058 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27059
27060 fi
27061
27062
27063 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27064 #ifdef HAVE_SYS_SOCKET_H
27065 # include <sys/socket.h>
27066 #endif
27067
27068 "
27069 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27070   ac_have_decl=1
27071 else
27072   ac_have_decl=0
27073 fi
27074
27075 cat >>confdefs.h <<_ACEOF
27076 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27077 _ACEOF
27078 if test $ac_have_decl = 1; then :
27079
27080 else
27081
27082 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27083
27084 fi
27085
27086
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27088 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27089 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27090   $as_echo_n "(cached) " >&6
27091 else
27092   if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27093         if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27094             ac_cv_feature_stream_cloexec_flag="e"
27095         fi
27096     fi
27097 fi
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27099 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27100
27101 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27102
27103 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27104
27105 fi
27106
27107
27108 cat >>confdefs.h <<_ACEOF
27109 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27110 _ACEOF
27111
27112
27113 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27114 if test "x$ac_cv_func_accept4" = xyes; then :
27115
27116 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27117
27118 fi
27119
27120
27121 S3_INC=
27122 S3_LIBS=
27123 S3_LDFLAGS=
27124 have_libs3=no
27125
27126 if test x$support_s3 = xyes; then
27127
27128 # Check whether --with-s3 was given.
27129 if test "${with_s3+set}" = set; then :
27130   withval=$with_s3;
27131           case "$with_s3" in
27132           no)
27133              :
27134              ;;
27135           yes|*)
27136              if test -f ${with_s3}/include/libs3.h; then
27137                 S3_INC="-I${with_s3}/include"
27138                 S3_LDFLAGS="-L${with_s3}/lib"
27139                 with_s3="${with_s3}/include"
27140              else
27141                 with_s3="/usr/include"
27142              fi
27143
27144              as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27145 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27146 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27147
27148
27149 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27150
27151                     S3_LIBS="${S3_LDFLAGS} -ls3"
27152                     have_libs3="yes"
27153
27154 else
27155
27156                     echo " "
27157                     echo "libs3.h not found. s3 turned off ..."
27158                     echo " "
27159
27160
27161 fi
27162
27163
27164              ;;
27165           esac
27166
27167 else
27168
27169          ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27170 if test "x$ac_cv_header_libs3_h" = xyes; then :
27171
27172             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27173 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27174 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27175   $as_echo_n "(cached) " >&6
27176 else
27177   ac_check_lib_save_LIBS=$LIBS
27178 LIBS="-ls3  $LIBS"
27179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27180 /* end confdefs.h.  */
27181
27182 /* Override any GCC internal prototype to avoid an error.
27183    Use char because int might match the return type of a GCC
27184    builtin and then its argument prototype would still apply.  */
27185 #ifdef __cplusplus
27186 extern "C"
27187 #endif
27188 char S3_initialize ();
27189 int
27190 main ()
27191 {
27192 return S3_initialize ();
27193   ;
27194   return 0;
27195 }
27196 _ACEOF
27197 if ac_fn_c_try_link "$LINENO"; then :
27198   ac_cv_lib_s3_S3_initialize=yes
27199 else
27200   ac_cv_lib_s3_S3_initialize=no
27201 fi
27202 rm -f core conftest.err conftest.$ac_objext \
27203     conftest$ac_exeext conftest.$ac_ext
27204 LIBS=$ac_check_lib_save_LIBS
27205 fi
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27207 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27208 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27209
27210               S3_LIBS="-ls3"
27211
27212 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27213
27214               have_libs3=yes
27215
27216 fi
27217
27218
27219 fi
27220
27221
27222
27223 fi
27224
27225 fi
27226
27227
27228
27229
27230 ac_ext=cpp
27231 ac_cpp='$CXXCPP $CPPFLAGS'
27232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27235
27236 for ac_func in backtrace
27237 do :
27238   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27239 if test "x$ac_cv_func_backtrace" = xyes; then :
27240   cat >>confdefs.h <<_ACEOF
27241 #define HAVE_BACKTRACE 1
27242 _ACEOF
27243
27244 fi
27245 done
27246
27247 ac_ext=c
27248 ac_cpp='$CPP $CPPFLAGS'
27249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27252
27253
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27255 $as_echo_n "checking return type of signal handlers... " >&6; }
27256 if ${ac_cv_type_signal+:} false; then :
27257   $as_echo_n "(cached) " >&6
27258 else
27259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27260 /* end confdefs.h.  */
27261 #include <sys/types.h>
27262 #include <signal.h>
27263
27264 int
27265 main ()
27266 {
27267 return *(signal (0, 0)) (0) == 1;
27268   ;
27269   return 0;
27270 }
27271 _ACEOF
27272 if ac_fn_c_try_compile "$LINENO"; then :
27273   ac_cv_type_signal=int
27274 else
27275   ac_cv_type_signal=void
27276 fi
27277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27278 fi
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27280 $as_echo "$ac_cv_type_signal" >&6; }
27281
27282 cat >>confdefs.h <<_ACEOF
27283 #define RETSIGTYPE $ac_cv_type_signal
27284 _ACEOF
27285
27286
27287
27288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27289 $as_echo_n "checking for type of signal functions... " >&6; }
27290   if ${bash_cv_signal_vintage+:} false; then :
27291   $as_echo_n "(cached) " >&6
27292 else
27293
27294     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27295 /* end confdefs.h.  */
27296 #include <signal.h>
27297 int
27298 main ()
27299 {
27300
27301       sigset_t ss;
27302       struct sigaction sa;
27303       sigemptyset(&ss); sigsuspend(&ss);
27304       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27305       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27306
27307   ;
27308   return 0;
27309 }
27310 _ACEOF
27311 if ac_fn_c_try_link "$LINENO"; then :
27312   bash_cv_signal_vintage="posix"
27313 else
27314
27315       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h.  */
27317 #include <signal.h>
27318 int
27319 main ()
27320 {
27321
27322           int mask = sigmask(SIGINT);
27323           sigsetmask(mask); sigblock(mask); sigpause(mask);
27324
27325   ;
27326   return 0;
27327 }
27328 _ACEOF
27329 if ac_fn_c_try_link "$LINENO"; then :
27330   bash_cv_signal_vintage="4.2bsd"
27331 else
27332
27333         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27334 /* end confdefs.h.  */
27335
27336           #include <signal.h>
27337           RETSIGTYPE foo() { }
27338 int
27339 main ()
27340 {
27341
27342                   int mask = sigmask(SIGINT);
27343                   sigset(SIGINT, foo); sigrelse(SIGINT);
27344                   sighold(SIGINT); sigpause(SIGINT);
27345
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 if ac_fn_c_try_link "$LINENO"; then :
27351   bash_cv_signal_vintage="svr3"
27352 else
27353   bash_cv_signal_vintage="v7"
27354
27355 fi
27356 rm -f core conftest.err conftest.$ac_objext \
27357     conftest$ac_exeext conftest.$ac_ext
27358
27359 fi
27360 rm -f core conftest.err conftest.$ac_objext \
27361     conftest$ac_exeext conftest.$ac_ext
27362
27363 fi
27364 rm -f core conftest.err conftest.$ac_objext \
27365     conftest$ac_exeext conftest.$ac_ext
27366
27367 fi
27368
27369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27370 $as_echo "$bash_cv_signal_vintage" >&6; }
27371   if test "$bash_cv_signal_vintage" = "posix"; then
27372     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27373
27374   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27375     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27376
27377   elif test "$bash_cv_signal_vintage" = "svr3"; then
27378     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27379
27380   fi
27381
27382 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27383 if test "x$ac_cv_type_mode_t" = xyes; then :
27384
27385 else
27386
27387 cat >>confdefs.h <<_ACEOF
27388 #define mode_t int
27389 _ACEOF
27390
27391 fi
27392
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27394 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27395 if ${ac_cv_type_uid_t+:} false; then :
27396   $as_echo_n "(cached) " >&6
27397 else
27398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h.  */
27400 #include <sys/types.h>
27401
27402 _ACEOF
27403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27404   $EGREP "uid_t" >/dev/null 2>&1; then :
27405   ac_cv_type_uid_t=yes
27406 else
27407   ac_cv_type_uid_t=no
27408 fi
27409 rm -f conftest*
27410
27411 fi
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27413 $as_echo "$ac_cv_type_uid_t" >&6; }
27414 if test $ac_cv_type_uid_t = no; then
27415
27416 $as_echo "#define uid_t int" >>confdefs.h
27417
27418
27419 $as_echo "#define gid_t int" >>confdefs.h
27420
27421 fi
27422
27423 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27424 if test "x$ac_cv_type_size_t" = xyes; then :
27425
27426 else
27427
27428 cat >>confdefs.h <<_ACEOF
27429 #define size_t unsigned int
27430 _ACEOF
27431
27432 fi
27433
27434 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27435 if test "x$ac_cv_type_pid_t" = xyes; then :
27436
27437 else
27438
27439 cat >>confdefs.h <<_ACEOF
27440 #define pid_t int
27441 _ACEOF
27442
27443 fi
27444
27445 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27446 if test "x$ac_cv_type_off_t" = xyes; then :
27447
27448 else
27449
27450 cat >>confdefs.h <<_ACEOF
27451 #define off_t long int
27452 _ACEOF
27453
27454 fi
27455
27456
27457   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27458 if test "x$ac_cv_type_intptr_t" = xyes; then :
27459
27460 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27461
27462 else
27463   for ac_type in 'int' 'long int' 'long long int'; do
27464        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h.  */
27466 $ac_includes_default
27467 int
27468 main ()
27469 {
27470 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27471 test_array [0] = 0;
27472 return test_array [0];
27473
27474   ;
27475   return 0;
27476 }
27477 _ACEOF
27478 if ac_fn_c_try_compile "$LINENO"; then :
27479
27480 cat >>confdefs.h <<_ACEOF
27481 #define intptr_t $ac_type
27482 _ACEOF
27483
27484           ac_type=
27485 fi
27486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487        test -z "$ac_type" && break
27488      done
27489 fi
27490
27491
27492
27493   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27494 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27495
27496 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27497
27498 else
27499   for ac_type in 'unsigned int' 'unsigned long int' \
27500         'unsigned long long int'; do
27501        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502 /* end confdefs.h.  */
27503 $ac_includes_default
27504 int
27505 main ()
27506 {
27507 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27508 test_array [0] = 0;
27509 return test_array [0];
27510
27511   ;
27512   return 0;
27513 }
27514 _ACEOF
27515 if ac_fn_c_try_compile "$LINENO"; then :
27516
27517 cat >>confdefs.h <<_ACEOF
27518 #define uintptr_t $ac_type
27519 _ACEOF
27520
27521           ac_type=
27522 fi
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27524        test -z "$ac_type" && break
27525      done
27526 fi
27527
27528
27529 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27530 if test "x$ac_cv_type_ino_t" = xyes; then :
27531
27532 else
27533
27534 cat >>confdefs.h <<_ACEOF
27535 #define ino_t unsigned long
27536 _ACEOF
27537
27538 fi
27539
27540 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27541 if test "x$ac_cv_type_dev_t" = xyes; then :
27542
27543 else
27544
27545 cat >>confdefs.h <<_ACEOF
27546 #define dev_t unsigned long
27547 _ACEOF
27548
27549 fi
27550
27551 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27552 if test "x$ac_cv_type_daddr_t" = xyes; then :
27553
27554 else
27555
27556 cat >>confdefs.h <<_ACEOF
27557 #define daddr_t long
27558 _ACEOF
27559
27560 fi
27561
27562 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27563 if test "x$ac_cv_type_major_t" = xyes; then :
27564
27565 else
27566
27567 cat >>confdefs.h <<_ACEOF
27568 #define major_t int
27569 _ACEOF
27570
27571 fi
27572
27573 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27574 if test "x$ac_cv_type_minor_t" = xyes; then :
27575
27576 else
27577
27578 cat >>confdefs.h <<_ACEOF
27579 #define minor_t int
27580 _ACEOF
27581
27582 fi
27583
27584 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27585 if test "x$ac_cv_type_ssize_t" = xyes; then :
27586
27587 else
27588
27589 cat >>confdefs.h <<_ACEOF
27590 #define ssize_t int
27591 _ACEOF
27592
27593 fi
27594
27595 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27596 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27597
27598 cat >>confdefs.h <<_ACEOF
27599 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27600 _ACEOF
27601
27602
27603 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27604
27605 else
27606   case " $LIBOBJS " in
27607   *" fileblocks.$ac_objext "* ) ;;
27608   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27609  ;;
27610 esac
27611
27612 fi
27613
27614
27615 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27616 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27617
27618 cat >>confdefs.h <<_ACEOF
27619 #define HAVE_STRUCT_STAT_ST_RDEV 1
27620 _ACEOF
27621
27622
27623 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27624
27625 fi
27626
27627
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27629 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27630 if ${ac_cv_struct_tm+:} false; then :
27631   $as_echo_n "(cached) " >&6
27632 else
27633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634 /* end confdefs.h.  */
27635 #include <sys/types.h>
27636 #include <time.h>
27637
27638 int
27639 main ()
27640 {
27641 struct tm tm;
27642                                      int *p = &tm.tm_sec;
27643                                      return !p;
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 if ac_fn_c_try_compile "$LINENO"; then :
27649   ac_cv_struct_tm=time.h
27650 else
27651   ac_cv_struct_tm=sys/time.h
27652 fi
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 fi
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27656 $as_echo "$ac_cv_struct_tm" >&6; }
27657 if test $ac_cv_struct_tm = sys/time.h; then
27658
27659 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27660
27661 fi
27662
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27664 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27665 if ${ac_cv_c_const+:} false; then :
27666   $as_echo_n "(cached) " >&6
27667 else
27668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669 /* end confdefs.h.  */
27670
27671 int
27672 main ()
27673 {
27674
27675 #ifndef __cplusplus
27676   /* Ultrix mips cc rejects this sort of thing.  */
27677   typedef int charset[2];
27678   const charset cs = { 0, 0 };
27679   /* SunOS 4.1.1 cc rejects this.  */
27680   char const *const *pcpcc;
27681   char **ppc;
27682   /* NEC SVR4.0.2 mips cc rejects this.  */
27683   struct point {int x, y;};
27684   static struct point const zero = {0,0};
27685   /* AIX XL C 1.02.0.0 rejects this.
27686      It does not let you subtract one const X* pointer from another in
27687      an arm of an if-expression whose if-part is not a constant
27688      expression */
27689   const char *g = "string";
27690   pcpcc = &g + (g ? g-g : 0);
27691   /* HPUX 7.0 cc rejects these. */
27692   ++pcpcc;
27693   ppc = (char**) pcpcc;
27694   pcpcc = (char const *const *) ppc;
27695   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27696     char tx;
27697     char *t = &tx;
27698     char const *s = 0 ? (char *) 0 : (char const *) 0;
27699
27700     *t++ = 0;
27701     if (s) return 0;
27702   }
27703   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27704     int x[] = {25, 17};
27705     const int *foo = &x[0];
27706     ++foo;
27707   }
27708   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27709     typedef const int *iptr;
27710     iptr p = 0;
27711     ++p;
27712   }
27713   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27714        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27715     struct s { int j; const int *ap[3]; } bx;
27716     struct s *b = &bx; b->j = 5;
27717   }
27718   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27719     const int foo = 10;
27720     if (!foo) return 0;
27721   }
27722   return !cs[0] && !zero.x;
27723 #endif
27724
27725   ;
27726   return 0;
27727 }
27728 _ACEOF
27729 if ac_fn_c_try_compile "$LINENO"; then :
27730   ac_cv_c_const=yes
27731 else
27732   ac_cv_c_const=no
27733 fi
27734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27735 fi
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27737 $as_echo "$ac_cv_c_const" >&6; }
27738 if test $ac_cv_c_const = no; then
27739
27740 $as_echo "#define const /**/" >>confdefs.h
27741
27742 fi
27743
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27745 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27746 if ${ac_cv_c_restrict+:} false; then :
27747   $as_echo_n "(cached) " >&6
27748 else
27749   ac_cv_c_restrict=no
27750    # The order here caters to the fact that C++ does not require restrict.
27751    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27752      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h.  */
27754 typedef int * int_ptr;
27755         int foo (int_ptr $ac_kw ip) {
27756         return ip[0];
27757        }
27758 int
27759 main ()
27760 {
27761 int s[1];
27762         int * $ac_kw t = s;
27763         t[0] = 0;
27764         return foo(t)
27765   ;
27766   return 0;
27767 }
27768 _ACEOF
27769 if ac_fn_c_try_compile "$LINENO"; then :
27770   ac_cv_c_restrict=$ac_kw
27771 fi
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773      test "$ac_cv_c_restrict" != no && break
27774    done
27775
27776 fi
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27778 $as_echo "$ac_cv_c_restrict" >&6; }
27779
27780  case $ac_cv_c_restrict in
27781    restrict) ;;
27782    no) $as_echo "#define restrict /**/" >>confdefs.h
27783  ;;
27784    *)  cat >>confdefs.h <<_ACEOF
27785 #define restrict $ac_cv_c_restrict
27786 _ACEOF
27787  ;;
27788  esac
27789
27790
27791 # The cast to long int works around a bug in the HP C Compiler
27792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27794 # This bug is HP SR number 8606223364.
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27796 $as_echo_n "checking size of char... " >&6; }
27797 if ${ac_cv_sizeof_char+:} false; then :
27798   $as_echo_n "(cached) " >&6
27799 else
27800   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27801
27802 else
27803   if test "$ac_cv_type_char" = yes; then
27804      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27806 as_fn_error 77 "cannot compute sizeof (char)
27807 See \`config.log' for more details" "$LINENO" 5; }
27808    else
27809      ac_cv_sizeof_char=0
27810    fi
27811 fi
27812
27813 fi
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27815 $as_echo "$ac_cv_sizeof_char" >&6; }
27816
27817
27818
27819 cat >>confdefs.h <<_ACEOF
27820 #define SIZEOF_CHAR $ac_cv_sizeof_char
27821 _ACEOF
27822
27823
27824 # The cast to long int works around a bug in the HP C Compiler
27825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27827 # This bug is HP SR number 8606223364.
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27829 $as_echo_n "checking size of short int... " >&6; }
27830 if ${ac_cv_sizeof_short_int+:} false; then :
27831   $as_echo_n "(cached) " >&6
27832 else
27833   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27834
27835 else
27836   if test "$ac_cv_type_short_int" = yes; then
27837      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27839 as_fn_error 77 "cannot compute sizeof (short int)
27840 See \`config.log' for more details" "$LINENO" 5; }
27841    else
27842      ac_cv_sizeof_short_int=0
27843    fi
27844 fi
27845
27846 fi
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27848 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27849
27850
27851
27852 cat >>confdefs.h <<_ACEOF
27853 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27854 _ACEOF
27855
27856
27857 # The cast to long int works around a bug in the HP C Compiler
27858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27860 # This bug is HP SR number 8606223364.
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27862 $as_echo_n "checking size of int... " >&6; }
27863 if ${ac_cv_sizeof_int+:} false; then :
27864   $as_echo_n "(cached) " >&6
27865 else
27866   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27867
27868 else
27869   if test "$ac_cv_type_int" = yes; then
27870      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27872 as_fn_error 77 "cannot compute sizeof (int)
27873 See \`config.log' for more details" "$LINENO" 5; }
27874    else
27875      ac_cv_sizeof_int=0
27876    fi
27877 fi
27878
27879 fi
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27881 $as_echo "$ac_cv_sizeof_int" >&6; }
27882
27883
27884
27885 cat >>confdefs.h <<_ACEOF
27886 #define SIZEOF_INT $ac_cv_sizeof_int
27887 _ACEOF
27888
27889
27890 # The cast to long int works around a bug in the HP C Compiler
27891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27893 # This bug is HP SR number 8606223364.
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27895 $as_echo_n "checking size of long int... " >&6; }
27896 if ${ac_cv_sizeof_long_int+:} false; then :
27897   $as_echo_n "(cached) " >&6
27898 else
27899   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27900
27901 else
27902   if test "$ac_cv_type_long_int" = yes; then
27903      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27905 as_fn_error 77 "cannot compute sizeof (long int)
27906 See \`config.log' for more details" "$LINENO" 5; }
27907    else
27908      ac_cv_sizeof_long_int=0
27909    fi
27910 fi
27911
27912 fi
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27914 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27915
27916
27917
27918 cat >>confdefs.h <<_ACEOF
27919 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27920 _ACEOF
27921
27922
27923 # The cast to long int works around a bug in the HP C Compiler
27924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27926 # This bug is HP SR number 8606223364.
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27928 $as_echo_n "checking size of long long int... " >&6; }
27929 if ${ac_cv_sizeof_long_long_int+:} false; then :
27930   $as_echo_n "(cached) " >&6
27931 else
27932   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27933
27934 else
27935   if test "$ac_cv_type_long_long_int" = yes; then
27936      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27938 as_fn_error 77 "cannot compute sizeof (long long int)
27939 See \`config.log' for more details" "$LINENO" 5; }
27940    else
27941      ac_cv_sizeof_long_long_int=0
27942    fi
27943 fi
27944
27945 fi
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27947 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27948
27949
27950
27951 cat >>confdefs.h <<_ACEOF
27952 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27953 _ACEOF
27954
27955
27956 # The cast to long int works around a bug in the HP C Compiler
27957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27959 # This bug is HP SR number 8606223364.
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27961 $as_echo_n "checking size of int *... " >&6; }
27962 if ${ac_cv_sizeof_int_p+:} false; then :
27963   $as_echo_n "(cached) " >&6
27964 else
27965   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27966
27967 else
27968   if test "$ac_cv_type_int_p" = yes; then
27969      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27971 as_fn_error 77 "cannot compute sizeof (int *)
27972 See \`config.log' for more details" "$LINENO" 5; }
27973    else
27974      ac_cv_sizeof_int_p=0
27975    fi
27976 fi
27977
27978 fi
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27980 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27981
27982
27983
27984 cat >>confdefs.h <<_ACEOF
27985 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27986 _ACEOF
27987
27988
27989
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27991 $as_echo_n "checking for u_int type... " >&6; }
27992 if ${ac_cv_have_u_int+:} false; then :
27993   $as_echo_n "(cached) " >&6
27994 else
27995
27996        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27997 /* end confdefs.h.  */
27998
27999               #include <sys/types.h>
28000
28001 int
28002 main ()
28003 {
28004
28005               u_int a; a = 1;
28006
28007   ;
28008   return 0;
28009 }
28010 _ACEOF
28011 if ac_fn_c_try_compile "$LINENO"; then :
28012
28013               ac_cv_have_u_int="yes"
28014
28015 else
28016
28017               ac_cv_have_u_int="no"
28018
28019
28020 fi
28021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28022
28023
28024 fi
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28026 $as_echo "$ac_cv_have_u_int" >&6; }
28027 if test "x$ac_cv_have_u_int" = "xyes" ; then
28028    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28029
28030    have_u_int=1
28031 fi
28032
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28034 $as_echo_n "checking for intmax_t type... " >&6; }
28035 if ${ac_cv_have_intmax_t+:} false; then :
28036   $as_echo_n "(cached) " >&6
28037 else
28038
28039        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28040 /* end confdefs.h.  */
28041
28042               #include <sys/types.h>
28043
28044 int
28045 main ()
28046 {
28047
28048               intmax_t a; a = 1;
28049
28050   ;
28051   return 0;
28052 }
28053 _ACEOF
28054 if ac_fn_c_try_compile "$LINENO"; then :
28055
28056               ac_cv_have_intmax_t="yes"
28057
28058 else
28059
28060               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28061 /* end confdefs.h.  */
28062
28063                      #include <stdint.h>
28064
28065 int
28066 main ()
28067 {
28068
28069                      intmax_t a; a = 1;
28070
28071   ;
28072   return 0;
28073 }
28074 _ACEOF
28075 if ac_fn_c_try_compile "$LINENO"; then :
28076
28077                      ac_cv_have_intmax_t="yes"
28078
28079 else
28080
28081                      ac_cv_have_intmax_t="no"
28082
28083
28084 fi
28085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086
28087
28088 fi
28089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28090
28091
28092 fi
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28094 $as_echo "$ac_cv_have_intmax_t" >&6; }
28095 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28096    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28097
28098    have_intmax_t=1
28099 fi
28100
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28102 $as_echo_n "checking for u_intmax_t type... " >&6; }
28103 if ${ac_cv_have_u_intmax_t+:} false; then :
28104   $as_echo_n "(cached) " >&6
28105 else
28106
28107        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108 /* end confdefs.h.  */
28109
28110               #include <sys/types.h>
28111
28112 int
28113 main ()
28114 {
28115
28116               u_intmax_t a; a = 1;
28117
28118   ;
28119   return 0;
28120 }
28121 _ACEOF
28122 if ac_fn_c_try_compile "$LINENO"; then :
28123
28124               ac_cv_have_u_intmax_t="yes"
28125
28126 else
28127
28128               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28129 /* end confdefs.h.  */
28130
28131                      #include <stdint.h>
28132
28133 int
28134 main ()
28135 {
28136
28137                     u_intmax_t a; a = 1;
28138
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 if ac_fn_c_try_compile "$LINENO"; then :
28144
28145                     ac_cv_have_u_intmax_t="yes"
28146
28147 else
28148
28149                     ac_cv_have_u_intmax_t="no"
28150
28151
28152 fi
28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154
28155
28156 fi
28157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28158
28159
28160 fi
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28162 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28163 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28164    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28165
28166    have_u_intmax_t=1
28167 fi
28168
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28170 $as_echo_n "checking for intXX_t types... " >&6; }
28171 if ${ac_cv_have_intxx_t+:} false; then :
28172   $as_echo_n "(cached) " >&6
28173 else
28174
28175        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28176 /* end confdefs.h.  */
28177
28178               #include <sys/types.h>
28179
28180 int
28181 main ()
28182 {
28183
28184               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28185
28186   ;
28187   return 0;
28188 }
28189 _ACEOF
28190 if ac_fn_c_try_compile "$LINENO"; then :
28191
28192               ac_cv_have_intxx_t="yes"
28193
28194 else
28195
28196               ac_cv_have_intxx_t="no"
28197
28198
28199 fi
28200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28201
28202
28203 fi
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28205 $as_echo "$ac_cv_have_intxx_t" >&6; }
28206 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28207    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28208
28209    have_intxx_t=1
28210 fi
28211
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28213 $as_echo_n "checking for int64_t type... " >&6; }
28214 if ${ac_cv_have_int64_t+:} false; then :
28215   $as_echo_n "(cached) " >&6
28216 else
28217
28218        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28219 /* end confdefs.h.  */
28220
28221               #include <sys/types.h>
28222
28223 int
28224 main ()
28225 {
28226
28227               int64_t a; a = 1;
28228
28229   ;
28230   return 0;
28231 }
28232 _ACEOF
28233 if ac_fn_c_try_compile "$LINENO"; then :
28234
28235               ac_cv_have_int64_t="yes"
28236
28237 else
28238
28239               ac_cv_have_int64_t="no"
28240
28241
28242 fi
28243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28244
28245
28246 fi
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28248 $as_echo "$ac_cv_have_int64_t" >&6; }
28249 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28250    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28251
28252    have_int64_t=1
28253 fi
28254
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28256 $as_echo_n "checking for u_intXX_t types... " >&6; }
28257 if ${ac_cv_have_u_intxx_t+:} false; then :
28258   $as_echo_n "(cached) " >&6
28259 else
28260
28261        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262 /* end confdefs.h.  */
28263
28264               #include <sys/types.h>
28265
28266 int
28267 main ()
28268 {
28269
28270               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28271
28272   ;
28273   return 0;
28274 }
28275 _ACEOF
28276 if ac_fn_c_try_compile "$LINENO"; then :
28277
28278              ac_cv_have_u_intxx_t="yes"
28279
28280 else
28281
28282              ac_cv_have_u_intxx_t="no"
28283
28284
28285 fi
28286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28287
28288
28289 fi
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28291 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28292 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28293    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28294
28295    have_u_intxx_t=1
28296 fi
28297
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28299 $as_echo_n "checking for u_int64_t types... " >&6; }
28300 if ${ac_cv_have_u_int64_t+:} false; then :
28301   $as_echo_n "(cached) " >&6
28302 else
28303
28304        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28305 /* end confdefs.h.  */
28306
28307               #include <sys/types.h>
28308
28309 int
28310 main ()
28311 {
28312
28313               u_int64_t a; a = 1;
28314
28315   ;
28316   return 0;
28317 }
28318 _ACEOF
28319 if ac_fn_c_try_compile "$LINENO"; then :
28320
28321              ac_cv_have_u_int64_t="yes"
28322
28323 else
28324
28325              ac_cv_have_u_int64_t="no"
28326
28327
28328 fi
28329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330
28331
28332 fi
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28334 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28335 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28336    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28337
28338    have_u_int64_t=1
28339 fi
28340
28341 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28342     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28343 then
28344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28345 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28346    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28347 /* end confdefs.h.  */
28348
28349           #include <sys/bitypes.h>
28350
28351 int
28352 main ()
28353 {
28354
28355           int8_t a; int16_t b; int32_t c;
28356           u_int8_t e; u_int16_t f; u_int32_t g;
28357           a = b = c = e = f = g = 1;
28358
28359   ;
28360   return 0;
28361 }
28362 _ACEOF
28363 if ac_fn_c_try_compile "$LINENO"; then :
28364
28365           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28366
28367           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28368
28369           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28370
28371           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28372 $as_echo "yes" >&6; }
28373
28374 else
28375
28376           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28377 $as_echo "no" >&6; }
28378
28379
28380 fi
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382 fi
28383
28384 if test -z "$have_u_intxx_t" ; then
28385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28386 $as_echo_n "checking for uintXX_t types... " >&6; }
28387 if ${ac_cv_have_uintxx_t+:} false; then :
28388   $as_echo_n "(cached) " >&6
28389 else
28390
28391           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28392 /* end confdefs.h.  */
28393
28394                  #include <sys/types.h>
28395
28396 int
28397 main ()
28398 {
28399
28400                  uint8_t a; uint16_t b;
28401                  uint32_t c; a = b = c = 1;
28402
28403   ;
28404   return 0;
28405 }
28406 _ACEOF
28407 if ac_fn_c_try_compile "$LINENO"; then :
28408
28409                 ac_cv_have_uintxx_t="yes"
28410
28411 else
28412
28413                 ac_cv_have_uintxx_t="no"
28414
28415
28416 fi
28417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28418
28419
28420 fi
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28422 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28423    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28424       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28425
28426    fi
28427 fi
28428
28429 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28430     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28431 then
28432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28433 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28434    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28435 /* end confdefs.h.  */
28436
28437           #include <sys/bitypes.h>
28438
28439 int
28440 main ()
28441 {
28442
28443           int64_t a; u_int64_t b;
28444           a = b = 1;
28445
28446   ;
28447   return 0;
28448 }
28449 _ACEOF
28450 if ac_fn_c_try_compile "$LINENO"; then :
28451
28452           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28453
28454           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28455
28456           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28457 $as_echo "yes" >&6; }
28458
28459 else
28460
28461           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28462 $as_echo "no" >&6; }
28463
28464
28465 fi
28466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28467 fi
28468
28469 if (test -z "$have_uintxx_t" && \
28470     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28471 then
28472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28473 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28474    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28475 /* end confdefs.h.  */
28476
28477           #include <sys/bitypes.h>
28478
28479 int
28480 main ()
28481 {
28482
28483           uint8_t a; uint16_t b;
28484           uint32_t c; a = b = c = 1;
28485
28486   ;
28487   return 0;
28488 }
28489 _ACEOF
28490 if ac_fn_c_try_compile "$LINENO"; then :
28491
28492           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28493
28494           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28495 $as_echo "yes" >&6; }
28496
28497 else
28498
28499           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28500 $as_echo "no" >&6; }
28501
28502
28503 fi
28504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505 fi
28506
28507 for ac_func in \
28508    fork \
28509    getcwd \
28510    gethostname \
28511    getpid \
28512    gettimeofday \
28513    setpgid \
28514    setpgrp \
28515    setsid \
28516    signal \
28517    strerror \
28518    strncmp \
28519    strncpy \
28520    vfprintf \
28521
28522 do :
28523   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28524 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28525 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28526   cat >>confdefs.h <<_ACEOF
28527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28528 _ACEOF
28529
28530 else
28531   echo 'configure: cannot find needed function.'; exit 1
28532
28533 fi
28534 done
28535
28536
28537 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28538
28539 "
28540 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28541
28542 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28543
28544 fi
28545
28546
28547 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28548
28549 "
28550 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28551
28552 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28553
28554 fi
28555
28556
28557 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28558 if test "x$ac_cv_func_closefrom" = xyes; then :
28559
28560 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28561
28562 fi
28563
28564 for ac_func in getpagesize
28565 do :
28566   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28567 if test "x$ac_cv_func_getpagesize" = xyes; then :
28568   cat >>confdefs.h <<_ACEOF
28569 #define HAVE_GETPAGESIZE 1
28570 _ACEOF
28571
28572 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28573
28574 fi
28575 done
28576
28577 for ac_func in malloc_trim
28578 do :
28579   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28580 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28581   cat >>confdefs.h <<_ACEOF
28582 #define HAVE_MALLOC_TRIM 1
28583 _ACEOF
28584
28585 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28586
28587 fi
28588 done
28589
28590
28591 for ac_func in fchdir
28592 do :
28593   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28594 if test "x$ac_cv_func_fchdir" = xyes; then :
28595   cat >>confdefs.h <<_ACEOF
28596 #define HAVE_FCHDIR 1
28597 _ACEOF
28598  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28599
28600 fi
28601 done
28602
28603 for ac_func in strtoll
28604 do :
28605   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28606 if test "x$ac_cv_func_strtoll" = xyes; then :
28607   cat >>confdefs.h <<_ACEOF
28608 #define HAVE_STRTOLL 1
28609 _ACEOF
28610  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28611
28612 fi
28613 done
28614
28615 for ac_func in posix_fadvise
28616 do :
28617   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28618 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28619   cat >>confdefs.h <<_ACEOF
28620 #define HAVE_POSIX_FADVISE 1
28621 _ACEOF
28622
28623 fi
28624 done
28625
28626 for ac_func in posix_fallocate
28627 do :
28628   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28629 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28630   cat >>confdefs.h <<_ACEOF
28631 #define HAVE_POSIX_FALLOCATE 1
28632 _ACEOF
28633
28634 fi
28635 done
28636
28637 for ac_func in fdatasync
28638 do :
28639   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28640 if test "x$ac_cv_func_fdatasync" = xyes; then :
28641   cat >>confdefs.h <<_ACEOF
28642 #define HAVE_FDATASYNC 1
28643 _ACEOF
28644
28645 fi
28646 done
28647
28648 for ac_func in realpath
28649 do :
28650   ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
28651 if test "x$ac_cv_func_realpath" = xyes; then :
28652   cat >>confdefs.h <<_ACEOF
28653 #define HAVE_REALPATH 1
28654 _ACEOF
28655
28656 fi
28657 done
28658
28659 for ac_func in getrlimit
28660 do :
28661   ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
28662 if test "x$ac_cv_func_getrlimit" = xyes; then :
28663   cat >>confdefs.h <<_ACEOF
28664 #define HAVE_GETRLIMIT 1
28665 _ACEOF
28666
28667 fi
28668 done
28669
28670
28671 for ac_func in chflags
28672 do :
28673   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28674 if test "x$ac_cv_func_chflags" = xyes; then :
28675   cat >>confdefs.h <<_ACEOF
28676 #define HAVE_CHFLAGS 1
28677 _ACEOF
28678
28679 fi
28680 done
28681
28682
28683 for ac_func in snprintf vsnprintf gethostid fseeko
28684 do :
28685   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28688   cat >>confdefs.h <<_ACEOF
28689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28690 _ACEOF
28691
28692 fi
28693 done
28694
28695
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28697 $as_echo_n "checking for va_copy... " >&6; }
28698 if ${ba_cv_va_copy+:} false; then :
28699   $as_echo_n "(cached) " >&6
28700 else
28701
28702        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28703 /* end confdefs.h.  */
28704
28705               #include <stdarg.h>
28706               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28707               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28708
28709 int
28710 main ()
28711 {
28712
28713               call_use_va_copy(1,2,3)
28714
28715   ;
28716   return 0;
28717 }
28718 _ACEOF
28719 if ac_fn_c_try_link "$LINENO"; then :
28720
28721               ba_cv_va_copy=yes
28722
28723 else
28724
28725               ba_cv_va_copy=no
28726
28727
28728 fi
28729 rm -f core conftest.err conftest.$ac_objext \
28730     conftest$ac_exeext conftest.$ac_ext
28731
28732
28733 fi
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28735 $as_echo "$ba_cv_va_copy" >&6; }
28736 test $ba_cv_va_copy = yes &&
28737 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28738
28739
28740 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28741 do :
28742   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28744 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28745   cat >>confdefs.h <<_ACEOF
28746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28747 _ACEOF
28748
28749 fi
28750 done
28751
28752
28753 # If resolver functions are not in libc check for -lnsl or -lresolv.
28754 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28755 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28757 $as_echo "using libc's resolver" >&6; }
28758 else
28759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28760 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28761 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28762   $as_echo_n "(cached) " >&6
28763 else
28764   ac_check_lib_save_LIBS=$LIBS
28765 LIBS="-lnsl  $LIBS"
28766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28767 /* end confdefs.h.  */
28768
28769 /* Override any GCC internal prototype to avoid an error.
28770    Use char because int might match the return type of a GCC
28771    builtin and then its argument prototype would still apply.  */
28772 #ifdef __cplusplus
28773 extern "C"
28774 #endif
28775 char gethostbyname_r ();
28776 int
28777 main ()
28778 {
28779 return gethostbyname_r ();
28780   ;
28781   return 0;
28782 }
28783 _ACEOF
28784 if ac_fn_c_try_link "$LINENO"; then :
28785   ac_cv_lib_nsl_gethostbyname_r=yes
28786 else
28787   ac_cv_lib_nsl_gethostbyname_r=no
28788 fi
28789 rm -f core conftest.err conftest.$ac_objext \
28790     conftest$ac_exeext conftest.$ac_ext
28791 LIBS=$ac_check_lib_save_LIBS
28792 fi
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28794 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28795 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28796   cat >>confdefs.h <<_ACEOF
28797 #define HAVE_LIBNSL 1
28798 _ACEOF
28799
28800   LIBS="-lnsl $LIBS"
28801
28802 fi
28803
28804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28805 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28806 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28807   $as_echo_n "(cached) " >&6
28808 else
28809   ac_check_lib_save_LIBS=$LIBS
28810 LIBS="-lresolv  $LIBS"
28811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28812 /* end confdefs.h.  */
28813
28814 /* Override any GCC internal prototype to avoid an error.
28815    Use char because int might match the return type of a GCC
28816    builtin and then its argument prototype would still apply.  */
28817 #ifdef __cplusplus
28818 extern "C"
28819 #endif
28820 char gethostbyname_r ();
28821 int
28822 main ()
28823 {
28824 return gethostbyname_r ();
28825   ;
28826   return 0;
28827 }
28828 _ACEOF
28829 if ac_fn_c_try_link "$LINENO"; then :
28830   ac_cv_lib_resolv_gethostbyname_r=yes
28831 else
28832   ac_cv_lib_resolv_gethostbyname_r=no
28833 fi
28834 rm -f core conftest.err conftest.$ac_objext \
28835     conftest$ac_exeext conftest.$ac_ext
28836 LIBS=$ac_check_lib_save_LIBS
28837 fi
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28839 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28840 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28841   cat >>confdefs.h <<_ACEOF
28842 #define HAVE_LIBRESOLV 1
28843 _ACEOF
28844
28845   LIBS="-lresolv $LIBS"
28846
28847 fi
28848
28849 fi
28850
28851
28852 for ac_func in inet_pton
28853 do :
28854   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28855 if test "x$ac_cv_func_inet_pton" = xyes; then :
28856   cat >>confdefs.h <<_ACEOF
28857 #define HAVE_INET_PTON 1
28858 _ACEOF
28859  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28860
28861 fi
28862 done
28863
28864 for ac_func in inet_ntop
28865 do :
28866   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28867 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28868   cat >>confdefs.h <<_ACEOF
28869 #define HAVE_INET_NTOP 1
28870 _ACEOF
28871  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28872
28873 fi
28874 done
28875
28876 for ac_func in gethostbyname2
28877 do :
28878   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28879 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28880   cat >>confdefs.h <<_ACEOF
28881 #define HAVE_GETHOSTBYNAME2 1
28882 _ACEOF
28883  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28884
28885 fi
28886 done
28887
28888 for ac_func in getnameinfo
28889 do :
28890   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28891 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28892   cat >>confdefs.h <<_ACEOF
28893 #define HAVE_GETNAMEINFO 1
28894 _ACEOF
28895  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28896
28897 fi
28898 done
28899
28900
28901
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28903 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28904 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28905   $as_echo_n "(cached) " >&6
28906 else
28907
28908        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28909 /* end confdefs.h.  */
28910
28911               #include <sys/socket.h>
28912
28913 int
28914 main ()
28915 {
28916
28917               struct sockaddr s; s.sa_len;
28918
28919   ;
28920   return 0;
28921 }
28922 _ACEOF
28923 if ac_fn_c_try_compile "$LINENO"; then :
28924
28925              ac_cv_struct_sockaddr_sa_len=yes
28926
28927 else
28928   ac_cv_struct_sockaddr_sa_len=no
28929
28930
28931 fi
28932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28933
28934
28935 fi
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28937 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28938
28939 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28940
28941 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28942
28943 fi
28944
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28946 $as_echo_n "checking for working getaddrinfo... " >&6; }
28947 if ${ac_cv_working_getaddrinfo+:} false; then :
28948   $as_echo_n "(cached) " >&6
28949 else
28950
28951        if test "$cross_compiling" = yes; then :
28952
28953               ac_cv_working_getaddrinfo="yes"
28954
28955
28956 else
28957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h.  */
28959
28960               #include <netdb.h>
28961               #include <string.h>
28962               #include <sys/types.h>
28963               #include <sys/socket.h>
28964
28965               void main(void) {
28966                   struct addrinfo hints, *ai;
28967                   int error;
28968
28969                   memset(&hints, 0, sizeof(hints));
28970                   hints.ai_family = AF_UNSPEC;
28971                   hints.ai_socktype = SOCK_STREAM;
28972                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28973                   if (error) {
28974                       exit(1);
28975                   }
28976                   if (ai->ai_addr->sa_family != AF_INET) {
28977                       exit(1);
28978                   }
28979                   exit(0);
28980               }
28981
28982 _ACEOF
28983 if ac_fn_c_try_run "$LINENO"; then :
28984
28985               ac_cv_working_getaddrinfo="yes"
28986
28987 else
28988
28989               ac_cv_working_getaddrinfo="no"
28990
28991 fi
28992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28993   conftest.$ac_objext conftest.beam conftest.$ac_ext
28994 fi
28995
28996
28997
28998 fi
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
29000 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
29001 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
29002 if test "x$ac_cv_func_gai_strerror" = xyes; then :
29003
29004 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
29005
29006 fi
29007
29008
29009 if test "$ac_cv_working_getaddrinfo" = "yes"; then
29010   if test "$ac_cv_func_gai_strerror" != "yes"; then
29011     ac_cv_working_getaddrinfo="no"
29012   else
29013
29014 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
29015
29016   fi
29017 fi
29018
29019 for ac_func in strftime
29020 do :
29021   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
29022 if test "x$ac_cv_func_strftime" = xyes; then :
29023   cat >>confdefs.h <<_ACEOF
29024 #define HAVE_STRFTIME 1
29025 _ACEOF
29026
29027 else
29028   # strftime is in -lintl on SCO UNIX.
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
29030 $as_echo_n "checking for strftime in -lintl... " >&6; }
29031 if ${ac_cv_lib_intl_strftime+:} false; then :
29032   $as_echo_n "(cached) " >&6
29033 else
29034   ac_check_lib_save_LIBS=$LIBS
29035 LIBS="-lintl  $LIBS"
29036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29037 /* end confdefs.h.  */
29038
29039 /* Override any GCC internal prototype to avoid an error.
29040    Use char because int might match the return type of a GCC
29041    builtin and then its argument prototype would still apply.  */
29042 #ifdef __cplusplus
29043 extern "C"
29044 #endif
29045 char strftime ();
29046 int
29047 main ()
29048 {
29049 return strftime ();
29050   ;
29051   return 0;
29052 }
29053 _ACEOF
29054 if ac_fn_c_try_link "$LINENO"; then :
29055   ac_cv_lib_intl_strftime=yes
29056 else
29057   ac_cv_lib_intl_strftime=no
29058 fi
29059 rm -f core conftest.err conftest.$ac_objext \
29060     conftest$ac_exeext conftest.$ac_ext
29061 LIBS=$ac_check_lib_save_LIBS
29062 fi
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29064 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29065 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29066   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29067
29068 LIBS="-lintl $LIBS"
29069 fi
29070
29071 fi
29072 done
29073
29074 for ac_func in vprintf
29075 do :
29076   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29077 if test "x$ac_cv_func_vprintf" = xyes; then :
29078   cat >>confdefs.h <<_ACEOF
29079 #define HAVE_VPRINTF 1
29080 _ACEOF
29081
29082 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29083 if test "x$ac_cv_func__doprnt" = xyes; then :
29084
29085 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29086
29087 fi
29088
29089 fi
29090 done
29091
29092
29093 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29094 # for constant arguments.  Useless!
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29096 $as_echo_n "checking for working alloca.h... " >&6; }
29097 if ${ac_cv_working_alloca_h+:} false; then :
29098   $as_echo_n "(cached) " >&6
29099 else
29100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29101 /* end confdefs.h.  */
29102 #include <alloca.h>
29103 int
29104 main ()
29105 {
29106 char *p = (char *) alloca (2 * sizeof (int));
29107                           if (p) return 0;
29108   ;
29109   return 0;
29110 }
29111 _ACEOF
29112 if ac_fn_c_try_link "$LINENO"; then :
29113   ac_cv_working_alloca_h=yes
29114 else
29115   ac_cv_working_alloca_h=no
29116 fi
29117 rm -f core conftest.err conftest.$ac_objext \
29118     conftest$ac_exeext conftest.$ac_ext
29119 fi
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29121 $as_echo "$ac_cv_working_alloca_h" >&6; }
29122 if test $ac_cv_working_alloca_h = yes; then
29123
29124 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29125
29126 fi
29127
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29129 $as_echo_n "checking for alloca... " >&6; }
29130 if ${ac_cv_func_alloca_works+:} false; then :
29131   $as_echo_n "(cached) " >&6
29132 else
29133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29134 /* end confdefs.h.  */
29135 #ifdef __GNUC__
29136 # define alloca __builtin_alloca
29137 #else
29138 # ifdef _MSC_VER
29139 #  include <malloc.h>
29140 #  define alloca _alloca
29141 # else
29142 #  ifdef HAVE_ALLOCA_H
29143 #   include <alloca.h>
29144 #  else
29145 #   ifdef _AIX
29146  #pragma alloca
29147 #   else
29148 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29149 void *alloca (size_t);
29150 #    endif
29151 #   endif
29152 #  endif
29153 # endif
29154 #endif
29155
29156 int
29157 main ()
29158 {
29159 char *p = (char *) alloca (1);
29160                                     if (p) return 0;
29161   ;
29162   return 0;
29163 }
29164 _ACEOF
29165 if ac_fn_c_try_link "$LINENO"; then :
29166   ac_cv_func_alloca_works=yes
29167 else
29168   ac_cv_func_alloca_works=no
29169 fi
29170 rm -f core conftest.err conftest.$ac_objext \
29171     conftest$ac_exeext conftest.$ac_ext
29172 fi
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29174 $as_echo "$ac_cv_func_alloca_works" >&6; }
29175
29176 if test $ac_cv_func_alloca_works = yes; then
29177
29178 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29179
29180 else
29181   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29182 # that cause trouble.  Some versions do not even contain alloca or
29183 # contain a buggy version.  If you still want to use their alloca,
29184 # use ar to extract alloca.o from them instead of compiling alloca.c.
29185
29186 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29187
29188 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29189
29190
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29192 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29193 if ${ac_cv_os_cray+:} false; then :
29194   $as_echo_n "(cached) " >&6
29195 else
29196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h.  */
29198 #if defined CRAY && ! defined CRAY2
29199 webecray
29200 #else
29201 wenotbecray
29202 #endif
29203
29204 _ACEOF
29205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29206   $EGREP "webecray" >/dev/null 2>&1; then :
29207   ac_cv_os_cray=yes
29208 else
29209   ac_cv_os_cray=no
29210 fi
29211 rm -f conftest*
29212
29213 fi
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29215 $as_echo "$ac_cv_os_cray" >&6; }
29216 if test $ac_cv_os_cray = yes; then
29217   for ac_func in _getb67 GETB67 getb67; do
29218     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29221
29222 cat >>confdefs.h <<_ACEOF
29223 #define CRAY_STACKSEG_END $ac_func
29224 _ACEOF
29225
29226     break
29227 fi
29228
29229   done
29230 fi
29231
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29233 $as_echo_n "checking stack direction for C alloca... " >&6; }
29234 if ${ac_cv_c_stack_direction+:} false; then :
29235   $as_echo_n "(cached) " >&6
29236 else
29237   if test "$cross_compiling" = yes; then :
29238   ac_cv_c_stack_direction=0
29239 else
29240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29241 /* end confdefs.h.  */
29242 $ac_includes_default
29243 int
29244 find_stack_direction (int *addr, int depth)
29245 {
29246   int dir, dummy = 0;
29247   if (! addr)
29248     addr = &dummy;
29249   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29250   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29251   return dir + dummy;
29252 }
29253
29254 int
29255 main (int argc, char **argv)
29256 {
29257   return find_stack_direction (0, argc + !argv + 20) < 0;
29258 }
29259 _ACEOF
29260 if ac_fn_c_try_run "$LINENO"; then :
29261   ac_cv_c_stack_direction=1
29262 else
29263   ac_cv_c_stack_direction=-1
29264 fi
29265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29266   conftest.$ac_objext conftest.beam conftest.$ac_ext
29267 fi
29268
29269 fi
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29271 $as_echo "$ac_cv_c_stack_direction" >&6; }
29272 cat >>confdefs.h <<_ACEOF
29273 #define STACK_DIRECTION $ac_cv_c_stack_direction
29274 _ACEOF
29275
29276
29277 fi
29278
29279 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29280 # -lseq on Dynix/PTX, -lgen on Unixware.
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29282 $as_echo_n "checking for library containing getmntent... " >&6; }
29283 if ${ac_cv_search_getmntent+:} false; then :
29284   $as_echo_n "(cached) " >&6
29285 else
29286   ac_func_search_save_LIBS=$LIBS
29287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29288 /* end confdefs.h.  */
29289
29290 /* Override any GCC internal prototype to avoid an error.
29291    Use char because int might match the return type of a GCC
29292    builtin and then its argument prototype would still apply.  */
29293 #ifdef __cplusplus
29294 extern "C"
29295 #endif
29296 char getmntent ();
29297 int
29298 main ()
29299 {
29300 return getmntent ();
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 for ac_lib in '' sun seq gen; do
29306   if test -z "$ac_lib"; then
29307     ac_res="none required"
29308   else
29309     ac_res=-l$ac_lib
29310     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29311   fi
29312   if ac_fn_c_try_link "$LINENO"; then :
29313   ac_cv_search_getmntent=$ac_res
29314 fi
29315 rm -f core conftest.err conftest.$ac_objext \
29316     conftest$ac_exeext
29317   if ${ac_cv_search_getmntent+:} false; then :
29318   break
29319 fi
29320 done
29321 if ${ac_cv_search_getmntent+:} false; then :
29322
29323 else
29324   ac_cv_search_getmntent=no
29325 fi
29326 rm conftest.$ac_ext
29327 LIBS=$ac_func_search_save_LIBS
29328 fi
29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29330 $as_echo "$ac_cv_search_getmntent" >&6; }
29331 ac_res=$ac_cv_search_getmntent
29332 if test "$ac_res" != no; then :
29333   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29334   ac_cv_func_getmntent=yes
29335
29336 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29337
29338 else
29339   ac_cv_func_getmntent=no
29340 fi
29341
29342
29343 for ac_func in getmntinfo
29344 do :
29345   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29346 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29347   cat >>confdefs.h <<_ACEOF
29348 #define HAVE_GETMNTINFO 1
29349 _ACEOF
29350  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29351
29352 fi
29353 done
29354
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29356 $as_echo_n "checking whether closedir returns void... " >&6; }
29357 if ${ac_cv_func_closedir_void+:} false; then :
29358   $as_echo_n "(cached) " >&6
29359 else
29360   if test "$cross_compiling" = yes; then :
29361   ac_cv_func_closedir_void=yes
29362 else
29363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29364 /* end confdefs.h.  */
29365 $ac_includes_default
29366 #include <$ac_header_dirent>
29367 #ifndef __cplusplus
29368 int closedir ();
29369 #endif
29370
29371 int
29372 main ()
29373 {
29374 return closedir (opendir (".")) != 0;
29375   ;
29376   return 0;
29377 }
29378 _ACEOF
29379 if ac_fn_c_try_run "$LINENO"; then :
29380   ac_cv_func_closedir_void=no
29381 else
29382   ac_cv_func_closedir_void=yes
29383 fi
29384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29385   conftest.$ac_objext conftest.beam conftest.$ac_ext
29386 fi
29387
29388 fi
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29390 $as_echo "$ac_cv_func_closedir_void" >&6; }
29391 if test $ac_cv_func_closedir_void = yes; then
29392
29393 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29394
29395 fi
29396
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29398 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29399 if ${ac_cv_func_setpgrp_void+:} false; then :
29400   $as_echo_n "(cached) " >&6
29401 else
29402   if test "$cross_compiling" = yes; then :
29403   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29404 else
29405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29406 /* end confdefs.h.  */
29407 $ac_includes_default
29408 int
29409 main ()
29410 {
29411 /* If this system has a BSD-style setpgrp which takes arguments,
29412   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29413   exit successfully. */
29414   return setpgrp (1,1) != -1;
29415   ;
29416   return 0;
29417 }
29418 _ACEOF
29419 if ac_fn_c_try_run "$LINENO"; then :
29420   ac_cv_func_setpgrp_void=no
29421 else
29422   ac_cv_func_setpgrp_void=yes
29423 fi
29424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29425   conftest.$ac_objext conftest.beam conftest.$ac_ext
29426 fi
29427
29428 fi
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29430 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29431 if test $ac_cv_func_setpgrp_void = yes; then
29432
29433 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29434
29435 fi
29436             # AC_FUNC_FNMATCH    dnl use local version
29437
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29439 $as_echo_n "checking for gettext in -lintl... " >&6; }
29440 if ${ac_cv_lib_intl_gettext+:} false; then :
29441   $as_echo_n "(cached) " >&6
29442 else
29443   ac_check_lib_save_LIBS=$LIBS
29444 LIBS="-lintl  $LIBS"
29445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29446 /* end confdefs.h.  */
29447
29448 /* Override any GCC internal prototype to avoid an error.
29449    Use char because int might match the return type of a GCC
29450    builtin and then its argument prototype would still apply.  */
29451 #ifdef __cplusplus
29452 extern "C"
29453 #endif
29454 char gettext ();
29455 int
29456 main ()
29457 {
29458 return gettext ();
29459   ;
29460   return 0;
29461 }
29462 _ACEOF
29463 if ac_fn_c_try_link "$LINENO"; then :
29464   ac_cv_lib_intl_gettext=yes
29465 else
29466   ac_cv_lib_intl_gettext=no
29467 fi
29468 rm -f core conftest.err conftest.$ac_objext \
29469     conftest$ac_exeext conftest.$ac_ext
29470 LIBS=$ac_check_lib_save_LIBS
29471 fi
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29473 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29474 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29475   LIBS="$LIBS -lintl"
29476 fi
29477
29478
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29480 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29481 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29482   $as_echo_n "(cached) " >&6
29483 else
29484   ac_check_lib_save_LIBS=$LIBS
29485 LIBS="-lsun  $LIBS"
29486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29487 /* end confdefs.h.  */
29488
29489 /* Override any GCC internal prototype to avoid an error.
29490    Use char because int might match the return type of a GCC
29491    builtin and then its argument prototype would still apply.  */
29492 #ifdef __cplusplus
29493 extern "C"
29494 #endif
29495 char getpwnam ();
29496 int
29497 main ()
29498 {
29499 return getpwnam ();
29500   ;
29501   return 0;
29502 }
29503 _ACEOF
29504 if ac_fn_c_try_link "$LINENO"; then :
29505   ac_cv_lib_sun_getpwnam=yes
29506 else
29507   ac_cv_lib_sun_getpwnam=no
29508 fi
29509 rm -f core conftest.err conftest.$ac_objext \
29510     conftest$ac_exeext conftest.$ac_ext
29511 LIBS=$ac_check_lib_save_LIBS
29512 fi
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29514 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29515 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29516   cat >>confdefs.h <<_ACEOF
29517 #define HAVE_LIBSUN 1
29518 _ACEOF
29519
29520   LIBS="-lsun $LIBS"
29521
29522 fi
29523
29524
29525 for ac_header in zlib.h
29526 do :
29527   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29528 if test "x$ac_cv_header_zlib_h" = xyes; then :
29529   cat >>confdefs.h <<_ACEOF
29530 #define HAVE_ZLIB_H 1
29531 _ACEOF
29532
29533 fi
29534
29535 done
29536
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29538 $as_echo_n "checking for deflate in -lz... " >&6; }
29539 if ${ac_cv_lib_z_deflate+:} false; then :
29540   $as_echo_n "(cached) " >&6
29541 else
29542   ac_check_lib_save_LIBS=$LIBS
29543 LIBS="-lz  $LIBS"
29544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29545 /* end confdefs.h.  */
29546
29547 /* Override any GCC internal prototype to avoid an error.
29548    Use char because int might match the return type of a GCC
29549    builtin and then its argument prototype would still apply.  */
29550 #ifdef __cplusplus
29551 extern "C"
29552 #endif
29553 char deflate ();
29554 int
29555 main ()
29556 {
29557 return deflate ();
29558   ;
29559   return 0;
29560 }
29561 _ACEOF
29562 if ac_fn_c_try_link "$LINENO"; then :
29563   ac_cv_lib_z_deflate=yes
29564 else
29565   ac_cv_lib_z_deflate=no
29566 fi
29567 rm -f core conftest.err conftest.$ac_objext \
29568     conftest$ac_exeext conftest.$ac_ext
29569 LIBS=$ac_check_lib_save_LIBS
29570 fi
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29572 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29573 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29574   ZLIBS="-lz"
29575 fi
29576
29577 have_zlib=no
29578 if test x$ZLIBS = x-lz; then
29579    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29580
29581    have_zlib=yes
29582 fi
29583
29584
29585 AFS_CFLAGS=""
29586 AFS_LIBS=""
29587 support_afs=auto
29588 # Check whether --enable-afs was given.
29589 if test "${enable_afs+set}" = set; then :
29590   enableval=$enable_afs;
29591        if test x$enableval = xyes; then
29592           support_afs=yes
29593        elif test x$enableval = xno; then
29594           support_afs=no
29595        fi
29596
29597
29598 fi
29599
29600
29601 have_afs=no
29602 if test x$support_afs = xyes -o x$support_afs = xauto; then
29603
29604 # Check whether --with-afsdir was given.
29605 if test "${with_afsdir+set}" = set; then :
29606   withval=$with_afsdir; with_afsdir=$withval
29607
29608 fi
29609
29610
29611             if test x$with_afsdir = x; then
29612       for root in /usr /usr/local; do
29613          if test -d ${root}/include/afs/ ; then
29614             with_afsdir=${root}
29615             break
29616          fi
29617          if test -d ${root}/include/openafs/afs/ ; then
29618             with_afsdir=${root}
29619             break
29620          fi
29621       done
29622    fi
29623
29624    if test -d ${with_afsdir}/include/afs/ ; then
29625       AFS_CFLAGS="-I${with_afsdir}/include"
29626    else
29627       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29628          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29629       fi
29630    fi
29631
29632    saved_CFLAGS="${CFLAGS}"
29633    saved_CPPFLAGS="${CPPFLAGS}"
29634    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29635    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29636
29637    for ac_header in afs/afsint.h
29638 do :
29639   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29640 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29641   cat >>confdefs.h <<_ACEOF
29642 #define HAVE_AFS_AFSINT_H 1
29643 _ACEOF
29644
29645 fi
29646
29647 done
29648
29649    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29650 /* end confdefs.h.  */
29651
29652           #include <afs/afsint.h>
29653           #include <afs/venus.h>
29654
29655 _ACEOF
29656 if ac_fn_c_try_cpp "$LINENO"; then :
29657
29658 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29659
29660
29661 fi
29662 rm -f conftest.err conftest.i conftest.$ac_ext
29663
29664    CFLAGS="${saved_CFLAGS}"
29665    CPPFLAGS="${saved_CPPFLAGS}"
29666
29667             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29668 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29669    for dir in ${with_afsdir}/lib \
29670               ${with_afsdir}/lib/afs \
29671               ${with_afsdir}/lib/openafs \
29672               ${with_afsdir}/lib64 \
29673               ${with_afsdir}/lib64/afs \
29674               ${with_afsdir}/lib64/openafs
29675    do
29676       for arch_type in .a .so
29677       do
29678          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29679          pkg=$?
29680          if test $pkg = 0; then
29681             have_afs=yes
29682             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29683             break
29684          fi
29685       done
29686    done
29687
29688    if test $have_afs = yes; then
29689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29690 $as_echo "yes" >&6; }
29691    else
29692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29693 $as_echo "no" >&6; }
29694    fi
29695
29696    if test x$support_afs = xyes -a $have_afs != yes; then
29697       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29698   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29699    else
29700       if test $have_afs = yes; then
29701
29702 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29703
29704
29705 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29706
29707       fi
29708    fi
29709 fi
29710
29711
29712
29713
29714 # Check whether --enable-lzo was given.
29715 if test "${enable_lzo+set}" = set; then :
29716   enableval=$enable_lzo;
29717        if test x$enableval = xno; then
29718           support_lzo=no
29719        fi
29720
29721
29722 fi
29723
29724
29725 LZO_INC=
29726 LZO_LIBS=
29727 LZO_LDFLAGS=
29728
29729 have_lzo="no"
29730 if test x$support_lzo = xyes; then
29731
29732 # Check whether --with-lzo was given.
29733 if test "${with_lzo+set}" = set; then :
29734   withval=$with_lzo;
29735           case "$with_lzo" in
29736           no)
29737              :
29738              ;;
29739           yes|*)
29740              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29741                 LZO_INC="-I${with_lzo}/include"
29742                 LZO_LDFLAGS="-L${with_lzo}/lib"
29743                 with_lzo="${with_lzo}/include"
29744              else
29745                 with_lzo="/usr/include"
29746              fi
29747
29748              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29749 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29751
29752
29753 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29754
29755                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29756                     have_lzo="yes"
29757
29758 else
29759
29760                     echo " "
29761                     echo "lzoconf.h not found. lzo turned off ..."
29762                     echo " "
29763
29764
29765 fi
29766
29767
29768              ;;
29769           esac
29770
29771 else
29772
29773          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29774 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29775
29776             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29777 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29778
29779                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29780 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29781 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29782   $as_echo_n "(cached) " >&6
29783 else
29784   ac_check_lib_save_LIBS=$LIBS
29785 LIBS="-llzo2  $LIBS"
29786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29787 /* end confdefs.h.  */
29788
29789 /* Override any GCC internal prototype to avoid an error.
29790    Use char because int might match the return type of a GCC
29791    builtin and then its argument prototype would still apply.  */
29792 #ifdef __cplusplus
29793 extern "C"
29794 #endif
29795 char lzo1x_1_compress ();
29796 int
29797 main ()
29798 {
29799 return lzo1x_1_compress ();
29800   ;
29801   return 0;
29802 }
29803 _ACEOF
29804 if ac_fn_c_try_link "$LINENO"; then :
29805   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29806 else
29807   ac_cv_lib_lzo2_lzo1x_1_compress=no
29808 fi
29809 rm -f core conftest.err conftest.$ac_objext \
29810     conftest$ac_exeext conftest.$ac_ext
29811 LIBS=$ac_check_lib_save_LIBS
29812 fi
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29814 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29815 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29816
29817                  LZO_LIBS="-llzo2"
29818
29819 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29820
29821                  have_lzo=yes
29822
29823 fi
29824
29825
29826 fi
29827
29828
29829
29830 fi
29831
29832
29833
29834 fi
29835
29836 fi
29837
29838
29839
29840
29841
29842 support_acl=auto
29843 # Check whether --enable-acl was given.
29844 if test "${enable_acl+set}" = set; then :
29845   enableval=$enable_acl;
29846        if test x$enableval = xyes; then
29847           support_acl=yes
29848        elif test x$enableval = xno; then
29849           support_acl=no
29850        fi
29851
29852
29853 fi
29854
29855
29856 have_acl=no
29857 have_extended_acl=no
29858 if test x$support_acl = xyes -o x$support_acl = xauto; then
29859    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29860 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29861
29862 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29863
29864 fi
29865
29866
29867
29868             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29869 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29870
29871           have_acl=yes
29872
29873
29874 fi
29875
29876
29877             if test $have_acl = no; then
29878       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29879 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29880 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29881   $as_echo_n "(cached) " >&6
29882 else
29883   ac_check_lib_save_LIBS=$LIBS
29884 LIBS="-lacl  $LIBS"
29885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29886 /* end confdefs.h.  */
29887
29888 /* Override any GCC internal prototype to avoid an error.
29889    Use char because int might match the return type of a GCC
29890    builtin and then its argument prototype would still apply.  */
29891 #ifdef __cplusplus
29892 extern "C"
29893 #endif
29894 char acl_get_file ();
29895 int
29896 main ()
29897 {
29898 return acl_get_file ();
29899   ;
29900   return 0;
29901 }
29902 _ACEOF
29903 if ac_fn_c_try_link "$LINENO"; then :
29904   ac_cv_lib_acl_acl_get_file=yes
29905 else
29906   ac_cv_lib_acl_acl_get_file=no
29907 fi
29908 rm -f core conftest.err conftest.$ac_objext \
29909     conftest$ac_exeext conftest.$ac_ext
29910 LIBS=$ac_check_lib_save_LIBS
29911 fi
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29913 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29914 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29915
29916              have_acl=yes
29917              if test $have_afs = yes; then
29918                                                                 if test -d /usr/lib64/; then
29919                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29920                 else
29921                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29922                 fi
29923              else
29924                 FDLIBS="-lacl $FDLIBS"
29925              fi
29926
29927
29928 fi
29929
29930    fi
29931
29932                if test $have_acl = no -a \
29933            x${HAVE_OSF1_OS_TRUE} = x; then
29934       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29935 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29936 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29937   $as_echo_n "(cached) " >&6
29938 else
29939   ac_check_lib_save_LIBS=$LIBS
29940 LIBS="-lpacl  $LIBS"
29941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29942 /* end confdefs.h.  */
29943
29944 /* Override any GCC internal prototype to avoid an error.
29945    Use char because int might match the return type of a GCC
29946    builtin and then its argument prototype would still apply.  */
29947 #ifdef __cplusplus
29948 extern "C"
29949 #endif
29950 char acl_get_file ();
29951 int
29952 main ()
29953 {
29954 return acl_get_file ();
29955   ;
29956   return 0;
29957 }
29958 _ACEOF
29959 if ac_fn_c_try_link "$LINENO"; then :
29960   ac_cv_lib_pacl_acl_get_file=yes
29961 else
29962   ac_cv_lib_pacl_acl_get_file=no
29963 fi
29964 rm -f core conftest.err conftest.$ac_objext \
29965     conftest$ac_exeext conftest.$ac_ext
29966 LIBS=$ac_check_lib_save_LIBS
29967 fi
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29969 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29970 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29971
29972              have_acl=yes
29973              FDLIBS="-lpacl $FDLIBS"
29974
29975
29976 fi
29977
29978
29979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29980 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29981       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29982       if test $? = 0; then
29983
29984 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29985
29986          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29987 $as_echo "yes" >&6; }
29988       else
29989          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29990 $as_echo "no" >&6; }
29991       fi
29992    fi
29993
29994             if test $have_acl = yes -a \
29995            x${HAVE_DARWIN_OS_TRUE} = x; then
29996       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29997 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29998       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29999       if test $? = 0; then
30000
30001 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
30002
30003          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30004 $as_echo "yes" >&6; }
30005       else
30006          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30007 $as_echo "no" >&6; }
30008       fi
30009    fi
30010
30011             if test $have_acl = yes -a \
30012            x${HAVE_FREEBSD_OS_TRUE} = x; then
30013       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
30014 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
30015       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
30016       if test $? = 0; then
30017
30018 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
30019
30020          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30021 $as_echo "yes" >&6; }
30022       else
30023          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30024 $as_echo "no" >&6; }
30025       fi
30026    fi
30027
30028             if test $have_acl = no -a \
30029            x${HAVE_SUN_OS_TRUE} = x; then
30030       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
30031 $as_echo_n "checking for acltotext in -lsec... " >&6; }
30032 if ${ac_cv_lib_sec_acltotext+:} false; then :
30033   $as_echo_n "(cached) " >&6
30034 else
30035   ac_check_lib_save_LIBS=$LIBS
30036 LIBS="-lsec  $LIBS"
30037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30038 /* end confdefs.h.  */
30039
30040 /* Override any GCC internal prototype to avoid an error.
30041    Use char because int might match the return type of a GCC
30042    builtin and then its argument prototype would still apply.  */
30043 #ifdef __cplusplus
30044 extern "C"
30045 #endif
30046 char acltotext ();
30047 int
30048 main ()
30049 {
30050 return acltotext ();
30051   ;
30052   return 0;
30053 }
30054 _ACEOF
30055 if ac_fn_c_try_link "$LINENO"; then :
30056   ac_cv_lib_sec_acltotext=yes
30057 else
30058   ac_cv_lib_sec_acltotext=no
30059 fi
30060 rm -f core conftest.err conftest.$ac_objext \
30061     conftest$ac_exeext conftest.$ac_ext
30062 LIBS=$ac_check_lib_save_LIBS
30063 fi
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30065 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30066 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30067
30068              have_acl=yes
30069              FDLIBS="-lsec $FDLIBS"
30070
30071              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30072 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30073 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30074   $as_echo_n "(cached) " >&6
30075 else
30076   ac_check_lib_save_LIBS=$LIBS
30077 LIBS="-lsec  $LIBS"
30078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30079 /* end confdefs.h.  */
30080
30081 /* Override any GCC internal prototype to avoid an error.
30082    Use char because int might match the return type of a GCC
30083    builtin and then its argument prototype would still apply.  */
30084 #ifdef __cplusplus
30085 extern "C"
30086 #endif
30087 char acl_totext ();
30088 int
30089 main ()
30090 {
30091 return acl_totext ();
30092   ;
30093   return 0;
30094 }
30095 _ACEOF
30096 if ac_fn_c_try_link "$LINENO"; then :
30097   ac_cv_lib_sec_acl_totext=yes
30098 else
30099   ac_cv_lib_sec_acl_totext=no
30100 fi
30101 rm -f core conftest.err conftest.$ac_objext \
30102     conftest$ac_exeext conftest.$ac_ext
30103 LIBS=$ac_check_lib_save_LIBS
30104 fi
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30106 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30107 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30108
30109                     have_extended_acl=yes
30110
30111
30112 fi
30113
30114
30115
30116 fi
30117
30118    fi
30119
30120             if test $have_acl = no -a \
30121            x${HAVE_AIX_OS_TRUE} = x; then
30122       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30123 if test "x$ac_cv_func_acl_get" = xyes; then :
30124
30125              have_acl=yes
30126
30127              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30128 if test "x$ac_cv_func_aclx_get" = xyes; then :
30129
30130                     have_extended_acl=yes
30131
30132
30133 fi
30134
30135
30136
30137 fi
30138
30139    fi
30140
30141    if test x$support_acl = xyes -a $have_acl != yes; then
30142       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30143   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30144    else
30145       if test $have_acl = yes; then
30146
30147 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30148
30149       fi
30150
30151       if test $have_extended_acl = yes; then
30152
30153 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30154
30155       fi
30156    fi
30157 fi
30158
30159 support_xattr=auto
30160 # Check whether --enable-xattr was given.
30161 if test "${enable_xattr+set}" = set; then :
30162   enableval=$enable_xattr;
30163        if test x$enableval = xyes; then
30164           support_xattr=yes
30165        elif test x$enableval = xno; then
30166           support_xattr=no
30167        fi
30168
30169
30170 fi
30171
30172
30173 have_xattr=no
30174 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30175                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30176            x${HAVE_NETBSD_OS_TRUE} = x -o \
30177            x${HAVE_OPENBSD_OS_TRUE} = x; then
30178       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30179 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30180
30181 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30182
30183 fi
30184
30185
30186       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30187 if test "x$ac_cv_header_libutil_h" = xyes; then :
30188
30189 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30190
30191 fi
30192
30193
30194       for ac_func in extattr_get_link extattr_set_link extattr_list_link
30195 do :
30196   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30199   cat >>confdefs.h <<_ACEOF
30200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30201 _ACEOF
30202
30203              have_xattr=yes
30204
30205 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30206
30207
30208 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30209
30210
30211 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30212
30213
30214
30215 fi
30216 done
30217
30218
30219       if test $have_xattr = no; then
30220          for ac_func in extattr_get_file extattr_set_file extattr_list_file
30221 do :
30222   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30224 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30225   cat >>confdefs.h <<_ACEOF
30226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30227 _ACEOF
30228
30229                 have_xattr=yes
30230
30231 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30232
30233
30234 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30235
30236
30237 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30238
30239
30240
30241 fi
30242 done
30243
30244       fi
30245
30246       if test $have_xattr = yes; then
30247          have_extattr_string_in_libc=no
30248          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30249 do :
30250   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30253   cat >>confdefs.h <<_ACEOF
30254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30255 _ACEOF
30256
30257                 have_extattr_string_in_libc=yes
30258
30259 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30260
30261
30262 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30263
30264
30265
30266 fi
30267 done
30268
30269
30270                                  if test $have_extattr_string_in_libc = no; then
30271             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30272 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30273 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30274   $as_echo_n "(cached) " >&6
30275 else
30276   ac_check_lib_save_LIBS=$LIBS
30277 LIBS="-lutil  $LIBS"
30278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30279 /* end confdefs.h.  */
30280
30281 /* Override any GCC internal prototype to avoid an error.
30282    Use char because int might match the return type of a GCC
30283    builtin and then its argument prototype would still apply.  */
30284 #ifdef __cplusplus
30285 extern "C"
30286 #endif
30287 char extattr_namespace_to_string extattr_string_to_namespace ();
30288 int
30289 main ()
30290 {
30291 return extattr_namespace_to_string extattr_string_to_namespace ();
30292   ;
30293   return 0;
30294 }
30295 _ACEOF
30296 if ac_fn_c_try_link "$LINENO"; then :
30297   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30298 else
30299   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30300 fi
30301 rm -f core conftest.err conftest.$ac_objext \
30302     conftest$ac_exeext conftest.$ac_ext
30303 LIBS=$ac_check_lib_save_LIBS
30304 fi
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30306 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30307 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30308
30309
30310 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30311
30312
30313 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30314
30315                    FDLIBS="-lutil $FDLIBS"
30316
30317
30318 fi
30319
30320          fi
30321       fi
30322    fi
30323
30324                if test $have_xattr = no -a \
30325            x${HAVE_AIX_OS_TRUE} = x; then
30326       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30327 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30328
30329 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30330
30331 fi
30332
30333
30334       for ac_func in llistea lgetea lsetea
30335 do :
30336   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30339   cat >>confdefs.h <<_ACEOF
30340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30341 _ACEOF
30342
30343              have_xattr=yes
30344
30345 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30346
30347
30348 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30349
30350
30351 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30352
30353
30354
30355 fi
30356 done
30357
30358
30359       if test $have_xattr = no; then
30360          for ac_func in listea getea setea
30361 do :
30362   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30365   cat >>confdefs.h <<_ACEOF
30366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30367 _ACEOF
30368
30369                 have_xattr=yes
30370
30371 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30372
30373
30374 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30375
30376
30377 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30378
30379
30380
30381 fi
30382 done
30383
30384       fi
30385    fi
30386
30387                if test $have_xattr = no -a \
30388            x${HAVE_OSF1_OS_TRUE} = x; then
30389       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30390 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30391
30392 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30393
30394 fi
30395
30396
30397       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30398 do :
30399   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30402   cat >>confdefs.h <<_ACEOF
30403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30404 _ACEOF
30405
30406              have_xattr=yes
30407
30408 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30409
30410
30411 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30412
30413
30414 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30415
30416
30417 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30418
30419
30420 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30421
30422
30423
30424 fi
30425 done
30426
30427    fi
30428
30429                if test $have_xattr = no -a \
30430            x${HAVE_SUN_OS_TRUE} = x; then
30431       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30432 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30433
30434 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30435
30436 fi
30437
30438
30439       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30440 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30441
30442 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30443
30444 fi
30445
30446
30447       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30448 if test "x$ac_cv_header_attr_h" = xyes; then :
30449
30450 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30451
30452 fi
30453
30454
30455
30456       for ac_func in openat fstatat unlinkat fchownat futimesat
30457 do :
30458   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30459 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30461   cat >>confdefs.h <<_ACEOF
30462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30463 _ACEOF
30464
30465              have_xattr=yes
30466
30467 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30468
30469
30470 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30471
30472
30473 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30474
30475
30476 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30477
30478
30479 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30480
30481
30482
30483 fi
30484 done
30485
30486
30487       if test $have_xattr = yes; then
30488          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30489 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30490 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30491   $as_echo_n "(cached) " >&6
30492 else
30493   ac_check_lib_save_LIBS=$LIBS
30494 LIBS="-lnvpair  $LIBS"
30495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30496 /* end confdefs.h.  */
30497
30498 /* Override any GCC internal prototype to avoid an error.
30499    Use char because int might match the return type of a GCC
30500    builtin and then its argument prototype would still apply.  */
30501 #ifdef __cplusplus
30502 extern "C"
30503 #endif
30504 char nvlist_next_nvpair ();
30505 int
30506 main ()
30507 {
30508 return nvlist_next_nvpair ();
30509   ;
30510   return 0;
30511 }
30512 _ACEOF
30513 if ac_fn_c_try_link "$LINENO"; then :
30514   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30515 else
30516   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30517 fi
30518 rm -f core conftest.err conftest.$ac_objext \
30519     conftest$ac_exeext conftest.$ac_ext
30520 LIBS=$ac_check_lib_save_LIBS
30521 fi
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30523 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30524 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30525
30526
30527 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30528
30529                 FDLIBS="-lnvpair $FDLIBS"
30530
30531
30532 fi
30533
30534       fi
30535    fi
30536
30537             if test $have_xattr = no; then
30538       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30539 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30540
30541 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30542
30543 fi
30544
30545
30546       for ac_func in llistxattr lgetxattr lsetxattr
30547 do :
30548   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30551   cat >>confdefs.h <<_ACEOF
30552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30553 _ACEOF
30554
30555              have_xattr=yes
30556
30557 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30558
30559
30560 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30561
30562
30563 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30564
30565
30566
30567 fi
30568 done
30569
30570
30571       if test $have_xattr = no; then
30572          for ac_func in listxattr getxattr setxattr
30573 do :
30574   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30576 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30577   cat >>confdefs.h <<_ACEOF
30578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30579 _ACEOF
30580
30581                 have_xattr=yes
30582
30583 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30584
30585
30586 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30587
30588
30589 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30590
30591
30592
30593 fi
30594 done
30595
30596       fi
30597    fi
30598
30599    if test x$support_xattr = xyes -a $have_xattr != yes; then
30600       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30601   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30602    else
30603       if test $have_xattr = yes; then
30604
30605 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30606
30607       fi
30608    fi
30609 fi
30610
30611 PTHREAD_LIB=""
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30613 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30614 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30615   $as_echo_n "(cached) " >&6
30616 else
30617   ac_check_lib_save_LIBS=$LIBS
30618 LIBS="-lpthread  $LIBS"
30619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620 /* end confdefs.h.  */
30621
30622 /* Override any GCC internal prototype to avoid an error.
30623    Use char because int might match the return type of a GCC
30624    builtin and then its argument prototype would still apply.  */
30625 #ifdef __cplusplus
30626 extern "C"
30627 #endif
30628 char pthread_create ();
30629 int
30630 main ()
30631 {
30632 return pthread_create ();
30633   ;
30634   return 0;
30635 }
30636 _ACEOF
30637 if ac_fn_c_try_link "$LINENO"; then :
30638   ac_cv_lib_pthread_pthread_create=yes
30639 else
30640   ac_cv_lib_pthread_pthread_create=no
30641 fi
30642 rm -f core conftest.err conftest.$ac_objext \
30643     conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30645 fi
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30647 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30648 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30649   PTHREAD_LIB="-lpthread"
30650 else
30651
30652        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30653 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30654 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30655   $as_echo_n "(cached) " >&6
30656 else
30657   ac_check_lib_save_LIBS=$LIBS
30658 LIBS="-lpthreads  $LIBS"
30659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30660 /* end confdefs.h.  */
30661
30662 /* Override any GCC internal prototype to avoid an error.
30663    Use char because int might match the return type of a GCC
30664    builtin and then its argument prototype would still apply.  */
30665 #ifdef __cplusplus
30666 extern "C"
30667 #endif
30668 char pthread_create ();
30669 int
30670 main ()
30671 {
30672 return pthread_create ();
30673   ;
30674   return 0;
30675 }
30676 _ACEOF
30677 if ac_fn_c_try_link "$LINENO"; then :
30678   ac_cv_lib_pthreads_pthread_create=yes
30679 else
30680   ac_cv_lib_pthreads_pthread_create=no
30681 fi
30682 rm -f core conftest.err conftest.$ac_objext \
30683     conftest$ac_exeext conftest.$ac_ext
30684 LIBS=$ac_check_lib_save_LIBS
30685 fi
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30687 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30688 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30689   PTHREAD_LIB="-lpthreads"
30690 else
30691
30692               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30693 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30694 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30695   $as_echo_n "(cached) " >&6
30696 else
30697   ac_check_lib_save_LIBS=$LIBS
30698 LIBS="-lc_r  $LIBS"
30699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30700 /* end confdefs.h.  */
30701
30702 /* Override any GCC internal prototype to avoid an error.
30703    Use char because int might match the return type of a GCC
30704    builtin and then its argument prototype would still apply.  */
30705 #ifdef __cplusplus
30706 extern "C"
30707 #endif
30708 char pthread_create ();
30709 int
30710 main ()
30711 {
30712 return pthread_create ();
30713   ;
30714   return 0;
30715 }
30716 _ACEOF
30717 if ac_fn_c_try_link "$LINENO"; then :
30718   ac_cv_lib_c_r_pthread_create=yes
30719 else
30720   ac_cv_lib_c_r_pthread_create=no
30721 fi
30722 rm -f core conftest.err conftest.$ac_objext \
30723     conftest$ac_exeext conftest.$ac_ext
30724 LIBS=$ac_check_lib_save_LIBS
30725 fi
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30727 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30728 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30729   PTHREAD_LIB="-lc_r"
30730 else
30731
30732                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30733 if test "x$ac_cv_func_pthread_create" = xyes; then :
30734
30735 fi
30736
30737
30738
30739 fi
30740
30741
30742
30743 fi
30744
30745
30746
30747 fi
30748
30749
30750 for ac_header in sys/prctl.h sys/capability.h
30751 do :
30752   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30753 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30755   cat >>confdefs.h <<_ACEOF
30756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30757 _ACEOF
30758
30759 fi
30760
30761 done
30762
30763 for ac_func in prctl setreuid
30764 do :
30765   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30767 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30768   cat >>confdefs.h <<_ACEOF
30769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770 _ACEOF
30771
30772 fi
30773 done
30774
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30776 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30777 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30778   $as_echo_n "(cached) " >&6
30779 else
30780   ac_check_lib_save_LIBS=$LIBS
30781 LIBS="-lcap  $LIBS"
30782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30783 /* end confdefs.h.  */
30784
30785 /* Override any GCC internal prototype to avoid an error.
30786    Use char because int might match the return type of a GCC
30787    builtin and then its argument prototype would still apply.  */
30788 #ifdef __cplusplus
30789 extern "C"
30790 #endif
30791 char cap_set_proc ();
30792 int
30793 main ()
30794 {
30795 return cap_set_proc ();
30796   ;
30797   return 0;
30798 }
30799 _ACEOF
30800 if ac_fn_c_try_link "$LINENO"; then :
30801   ac_cv_lib_cap_cap_set_proc=yes
30802 else
30803   ac_cv_lib_cap_cap_set_proc=no
30804 fi
30805 rm -f core conftest.err conftest.$ac_objext \
30806     conftest$ac_exeext conftest.$ac_ext
30807 LIBS=$ac_check_lib_save_LIBS
30808 fi
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30810 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30811 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30812   CAP_LIBS="-lcap"
30813 else
30814   CAP_LIBS=
30815 fi
30816
30817 if test x$CAP_LIBS = x-lcap; then
30818
30819 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30820
30821 fi
30822
30823
30824
30825 $as_echo "#define FDLIBS 1" >>confdefs.h
30826
30827
30828 CFLAGS=${CFLAGS--O}
30829
30830 if test x$have_gcc = xyes ; then
30831    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30832    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30833 fi
30834 LDFLAGS=${LDFLAGS--O}
30835 CPPFLAGS="$CPPFLAGS"
30836 CFLAGS="$CFLAGS"
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852 OBJLIST=
30853
30854
30855 lld="lld"
30856 llu="llu"
30857
30858 WCFLAGS=
30859 WLDFLAGS=
30860
30861 PSCMD="ps -e"
30862 WIN32=
30863 MACOSX=
30864 COMPRESS_MANPAGES=yes
30865
30866 case "$DISTNAME" in
30867 aix)
30868    DISTVER=`uname -r`
30869    PSCMD="ps -e -o pid,comm"
30870    PFILES="${PFILES} platforms/aix/Makefile"
30871    TAPEDRIVE="/dev/rmt0.1"
30872   ;;
30873 alpha)
30874    DISTVER=`uname -r`
30875    PTHREAD_LIB="-lpthread -lexc"
30876    if test "${CC}" = "gcc" ; then
30877       lld="lld"
30878       llu="llu"
30879    else
30880       lld="ld"
30881       llu="lu"
30882    fi
30883    TAPEDRIVE="/dev/nrmt0"
30884   ;;
30885 bsdi)
30886    DISTVER=`uname -a |awk '{print $3}'`
30887    TAPEDRIVE="/dev/nrmt0"
30888    PTHREAD_LIB="-pthread"
30889    CFLAGS="${CFLAGS} -pthread"
30890    PSCMD="ps -ax -o pid,command"
30891    lld="qd"
30892    llu="qu"
30893    PFILES="${PFILES} \
30894        platforms/bsdi/Makefile \
30895        platforms/bsdi/bacula-fd \
30896        platforms/bsdi/bacula-sd \
30897        platforms/bsdi/bacula-dir"
30898    largefile_support="yes"
30899   ;;
30900 cygwin)
30901    DISTVER=`uname -a |awk '{print $3}'`
30902    TAPEDRIVE="/dev/nrst0"
30903    WIN32=win32
30904    WCFLAGS="-mwindows"
30905    WLDFLAGS="-mwindows"
30906   ;;
30907 darwin)
30908    DISTVER=`uname -r`
30909    TAPEDRIVE="/dev/nst0"
30910    PSCMD="ps -e -o pid,command"
30911    MACOSX=macosx
30912    PFILES="${PFILES} \
30913       platforms/darwin/Makefile"
30914   ;;
30915 osx)
30916    DISTVER=`uname -r`
30917    TAPEDRIVE="/dev/nst0"
30918    PSCMD="ps -e -o pid,command"
30919    MACOSX=macosx
30920    PFILES="${PFILES} \
30921       platforms/osx/Makefile"
30922   ;;
30923 debian)
30924    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30925       DISTNAME="ubuntu"
30926    fi
30927    DISTVER=`cat /etc/debian_version`
30928    if test -f /etc/lsb-release ; then
30929       . /etc/lsb-release
30930       if test "x$DISTRIB_ID" != "x" ; then
30931          DISTNAME=$DISTRIB_ID
30932       fi
30933       if test "x$DISTRIB_RELEASE" != "x" ; then
30934          DISTVER=$DISTRIB_RELEASE
30935       fi
30936    fi
30937    if test "$DISTNAME" = "Ubuntu" ; then
30938       DISTNAME="ubuntu"
30939    fi
30940    TAPEDRIVE="/dev/nst0"
30941    PSCMD="ps -e -o pid,command"
30942    if test "$DISTNAME" = "ubuntu" ; then
30943       PFILES="${PFILES} \
30944          platforms/ubuntu/Makefile \
30945          platforms/ubuntu/bacula-fd \
30946          platforms/ubuntu/bacula-sd \
30947          platforms/ubuntu/bacula-dir"
30948    else
30949       PFILES="${PFILES} \
30950          platforms/debian/Makefile \
30951          platforms/debian/bacula-fd \
30952          platforms/debian/bacula-sd \
30953          platforms/debian/bacula-dir"
30954    fi
30955   ;;
30956 freebsd)
30957    DISTVER=`uname -a |awk '{print $3}'`
30958    VER=`echo $DISTVER | cut -c 1`
30959    if test x$VER = x4 ; then
30960       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30961       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30962    fi
30963    lld="qd"
30964    llu="qu"
30965    TAPEDRIVE="/dev/nrsa0"
30966    PSCMD="ps -ax -o pid,command"
30967    PFILES="${PFILES} \
30968        platforms/freebsd/Makefile \
30969        platforms/freebsd/bacula-fd \
30970        platforms/freebsd/bacula-sd \
30971        platforms/freebsd/bacula-dir"
30972    largefile_support="yes"
30973   ;;
30974 hurd)
30975    DISTVER=`uname -r`
30976    TAPEDRIVE="/dev/nst0"
30977    PSCMD="ps -e -o pid,command"
30978    PFILES="${PFILES} \
30979        platforms/hurd/Makefile \
30980        platforms/hurd/bacula-fd \
30981        platforms/hurd/bacula-sd \
30982        platforms/hurd/bacula-dir"
30983   ;;
30984 hpux)
30985    PSCMD="UNIX95=1; ps -e -o pid,comm"
30986    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30987    DISTVER=`uname -r`
30988    TAPEDRIVE="/dev/rmt/0hnb"
30989    PTHREAD_LIB="-lpthread"
30990    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30991
30992   ;;
30993 irix)
30994    DISTVER=`uname -r`
30995    TAPEDRIVE="/dev/rmt/0cbn"
30996    PSCMD="ps -e -o pid,comm"
30997    PFILES="${PFILES} \
30998        platforms/irix/Makefile \
30999        platforms/irix/bacula-fd \
31000        platforms/irix/bacula-sd \
31001        platforms/irix/bacula-dir"
31002   ;;
31003 netbsd)
31004    DISTVER=`uname -a |awk '{print $3}'`
31005    lld="qd"
31006    llu="qu"
31007    TAPEDRIVE="/dev/nrst0"
31008    PSCMD="ps -ax -o pid,command"
31009    PTHREAD_LIB="-pthread"
31010    CFLAGS="${CFLAGS} -pthread"
31011   ;;
31012 openbsd)
31013    DISTVER=`uname -a |awk '{print $3}'`
31014    lld="qd"
31015    llu="qu"
31016    TAPEDRIVE="/dev/nrst0"
31017    PSCMD="ps -ax -o pid,command"
31018    PTHREAD_LIB="-pthread"
31019    CFLAGS="${CFLAGS} -pthread"
31020    PFILES="${PFILES} \
31021        platforms/openbsd/Makefile \
31022        platforms/openbsd/bacula-fd \
31023        platforms/openbsd/bacula-sd \
31024        platforms/openbsd/bacula-dir"
31025   ;;
31026 redhat)
31027    if test -f /etc/whitebox-release ; then
31028       f=/etc/whitebox-release
31029    else
31030       f=/etc/redhat-release
31031    fi
31032    if test `cat $f | grep release |\
31033          cut -f 3 -d ' '`x = "Enterprise"x ; then
31034       DISTVER="Enterprise "`cat $f | grep release |\
31035           cut -f 6 -d ' '`
31036    else
31037        DISTVER=`cat /etc/redhat-release | grep release |\
31038            cut -f 5 -d ' '`
31039    fi
31040    TAPEDRIVE="/dev/nst0"
31041    PSCMD="ps -e -o pid,command"
31042    PFILES="${PFILES} \
31043        platforms/redhat/Makefile \
31044        platforms/redhat/bacula-fd \
31045        platforms/redhat/bacula-sd \
31046        platforms/redhat/bacula-dir
31047        "
31048   ;;
31049 mandrake)
31050    DISTVER=`cat /etc/mandrake-release | grep release |\
31051       cut -f 5 -d ' '`
31052    TAPEDRIVE="/dev/nst0"
31053    PSCMD="ps -e -o pid,command"
31054    PFILES="${PFILES} \
31055        platforms/mandrake/Makefile \
31056        platforms/mandrake/bacula-fd \
31057        platforms/mandrake/bacula-sd \
31058        platforms/mandrake/bacula-dir \
31059        "
31060   ;;
31061 gentoo)
31062    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31063    TAPEDRIVE="/dev/nst0"
31064    PSCMD="ps -e -o pid,command"
31065    PFILES="${PFILES} \
31066        platforms/gentoo/Makefile \
31067     platforms/gentoo/bacula-init \
31068        platforms/gentoo/bacula-fd \
31069        platforms/gentoo/bacula-sd \
31070        platforms/gentoo/bacula-dir"
31071   ;;
31072 slackware)
31073    DISTVER=`cat /etc/slackware-version`
31074    TAPEDRIVE="/dev/nst0"
31075    PSCMD="ps -e -o pid,command"
31076    PFILES="${PFILES} \
31077        platforms/slackware/Makefile \
31078        platforms/slackware/rc.bacula-fd \
31079        platforms/slackware/rc.bacula-sd \
31080        platforms/slackware/rc.bacula-dir\
31081        platforms/slackware/functions.bacula"
31082   ;;
31083 solaris)
31084    DISTVER=`uname -r`
31085    TAPEDRIVE="/dev/rmt/0cbn"
31086    PSCMD="ps -e -o pid,comm"
31087    PFILES="${PFILES} \
31088        platforms/solaris/Makefile \
31089        platforms/solaris/bacula-fd \
31090        platforms/solaris/bacula-sd \
31091        platforms/solaris/bacula-dir"
31092    COMPRESS_MANPAGES=
31093    case ${DISTVER} in
31094    5.5|5.6)
31095       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31096
31097       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31098
31099       ;;
31100    5.7|5.8)
31101       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31102
31103       ;;
31104    5.10)
31105
31106 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31107
31108       ;;
31109    *)
31110       ;;
31111    esac
31112    LIBS="$LIBS -lresolv -lrt"
31113   ;;
31114 suse)
31115    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31116        cut -f 3 -d ' '`
31117    TAPEDRIVE="/dev/nst0"
31118    PSCMD="ps -e -o pid,command"
31119    PFILES="${PFILES} \
31120        platforms/suse/Makefile \
31121        platforms/suse/bacula-fd \
31122        platforms/suse/bacula-sd \
31123        platforms/suse/bacula-dir \
31124        platforms/suse/bacula"
31125   ;;
31126 suse5)
31127    DISTNAME=suse
31128    DISTVER=5.x
31129    TAPEDRIVE="/dev/nst0"
31130    PSCMD="ps -e -o pid,command"
31131    PFILES="${PFILES} \
31132        platforms/suse/Makefile \
31133        platforms/suse/bacula-fd \
31134        platforms/suse/bacula-sd \
31135        platforms/suse/bacula-dir"
31136   ;;
31137 unknown)
31138    DISTVER=unknown
31139    TAPEDRIVE="/dev/nst0"
31140   ;;
31141 *)
31142   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31143   ;;
31144 esac
31145
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31147 $as_echo_n "checking for systemd support... " >&6; }
31148
31149 # Check whether --with-systemd was given.
31150 if test "${with_systemd+set}" = set; then :
31151   withval=$with_systemd;
31152        if test "$withval" != "no"; then
31153            if test "$withval" = "yes"; then
31154                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31155            else
31156                SYSTEMD_UNITDIR="${withval}"
31157            fi
31158
31159            PFILES="${PFILES} \
31160                    platforms/systemd/Makefile \
31161                    platforms/systemd/bacula.conf \
31162                    platforms/systemd/bacula-dir.service \
31163                    platforms/systemd/bacula-fd.service \
31164                    platforms/systemd/bacula-sd.service"
31165
31166 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31167
31168            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31169 $as_echo "yes" >&6; }
31170            support_systemd="yes"
31171        else
31172            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173 $as_echo "no" >&6; }
31174            support_systemd="no"
31175        fi
31176
31177 else
31178
31179        support_systemd="no"
31180        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181 $as_echo "no" >&6; }
31182
31183
31184 fi
31185
31186
31187
31188
31189
31190 LIBS="$PTHREAD_LIB $LIBS"
31191
31192 cat >>confdefs.h <<_ACEOF
31193 #define lld "$lld"
31194 _ACEOF
31195
31196 cat >>confdefs.h <<_ACEOF
31197 #define llu "$llu"
31198 _ACEOF
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208 MCOMMON=./autoconf/Make.common
31209
31210
31211 if test "x${subsysdir}" = "x${sbindir}" ; then
31212    echo " "
31213    echo " "
31214    echo "You have set both --sbindir and --with-subsys-dir"
31215    echo "  equal to: ${subsysdir} "
31216    echo "This is not permitted. Please reconfigure."
31217    echo " "
31218    echo "Aborting configuration ..."
31219    echo " "
31220    echo " "
31221    exit 1
31222 fi
31223
31224
31225 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/baculabackupreport scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps scripts/bacula-tray-monitor.desktop src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 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/cats/install-default-backend 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 updatedb/update_sqlite3_tables updatedb/update_postgresql_tables 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 platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
31226
31227 ac_config_commands="$ac_config_commands default"
31228
31229 cat >confcache <<\_ACEOF
31230 # This file is a shell script that caches the results of configure
31231 # tests run on this system so they can be shared between configure
31232 # scripts and configure runs, see configure's option --config-cache.
31233 # It is not useful on other systems.  If it contains results you don't
31234 # want to keep, you may remove or edit it.
31235 #
31236 # config.status only pays attention to the cache file if you give it
31237 # the --recheck option to rerun configure.
31238 #
31239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31241 # following values.
31242
31243 _ACEOF
31244
31245 # The following way of writing the cache mishandles newlines in values,
31246 # but we know of no workaround that is simple, portable, and efficient.
31247 # So, we kill variables containing newlines.
31248 # Ultrix sh set writes to stderr and can't be redirected directly,
31249 # and sets the high bit in the cache file unless we assign to the vars.
31250 (
31251   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31252     eval ac_val=\$$ac_var
31253     case $ac_val in #(
31254     *${as_nl}*)
31255       case $ac_var in #(
31256       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31258       esac
31259       case $ac_var in #(
31260       _ | IFS | as_nl) ;; #(
31261       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31262       *) { eval $ac_var=; unset $ac_var;} ;;
31263       esac ;;
31264     esac
31265   done
31266
31267   (set) 2>&1 |
31268     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31269     *${as_nl}ac_space=\ *)
31270       # `set' does not quote correctly, so add quotes: double-quote
31271       # substitution turns \\\\ into \\, and sed turns \\ into \.
31272       sed -n \
31273         "s/'/'\\\\''/g;
31274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31275       ;; #(
31276     *)
31277       # `set' quotes correctly as required by POSIX, so do not add quotes.
31278       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31279       ;;
31280     esac |
31281     sort
31282 ) |
31283   sed '
31284      /^ac_cv_env_/b end
31285      t clear
31286      :clear
31287      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31288      t end
31289      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31290      :end' >>confcache
31291 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31292   if test -w "$cache_file"; then
31293     if test "x$cache_file" != "x/dev/null"; then
31294       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31295 $as_echo "$as_me: updating cache $cache_file" >&6;}
31296       if test ! -f "$cache_file" || test -h "$cache_file"; then
31297         cat confcache >"$cache_file"
31298       else
31299         case $cache_file in #(
31300         */* | ?:*)
31301           mv -f confcache "$cache_file"$$ &&
31302           mv -f "$cache_file"$$ "$cache_file" ;; #(
31303         *)
31304           mv -f confcache "$cache_file" ;;
31305         esac
31306       fi
31307     fi
31308   else
31309     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31310 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31311   fi
31312 fi
31313 rm -f confcache
31314
31315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31316 # Let make expand exec_prefix.
31317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31318
31319 DEFS=-DHAVE_CONFIG_H
31320
31321 ac_libobjs=
31322 ac_ltlibobjs=
31323 U=
31324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31325   # 1. Remove the extension, and $U if already installed.
31326   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31327   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31328   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31329   #    will be set to the directory where LIBOBJS objects are built.
31330   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31331   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31332 done
31333 LIBOBJS=$ac_libobjs
31334
31335 LTLIBOBJS=$ac_ltlibobjs
31336
31337
31338
31339
31340 : "${CONFIG_STATUS=./config.status}"
31341 ac_write_fail=0
31342 ac_clean_files_save=$ac_clean_files
31343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31345 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31346 as_write_fail=0
31347 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31348 #! $SHELL
31349 # Generated by $as_me.
31350 # Run this file to recreate the current configuration.
31351 # Compiler output produced by configure, useful for debugging
31352 # configure, is in config.log if it exists.
31353
31354 debug=false
31355 ac_cs_recheck=false
31356 ac_cs_silent=false
31357
31358 SHELL=\${CONFIG_SHELL-$SHELL}
31359 export SHELL
31360 _ASEOF
31361 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31362 ## -------------------- ##
31363 ## M4sh Initialization. ##
31364 ## -------------------- ##
31365
31366 # Be more Bourne compatible
31367 DUALCASE=1; export DUALCASE # for MKS sh
31368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31369   emulate sh
31370   NULLCMD=:
31371   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31372   # is contrary to our usage.  Disable this feature.
31373   alias -g '${1+"$@"}'='"$@"'
31374   setopt NO_GLOB_SUBST
31375 else
31376   case `(set -o) 2>/dev/null` in #(
31377   *posix*) :
31378     set -o posix ;; #(
31379   *) :
31380      ;;
31381 esac
31382 fi
31383
31384
31385 as_nl='
31386 '
31387 export as_nl
31388 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31389 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31390 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31391 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31392 # Prefer a ksh shell builtin over an external printf program on Solaris,
31393 # but without wasting forks for bash or zsh.
31394 if test -z "$BASH_VERSION$ZSH_VERSION" \
31395     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31396   as_echo='print -r --'
31397   as_echo_n='print -rn --'
31398 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31399   as_echo='printf %s\n'
31400   as_echo_n='printf %s'
31401 else
31402   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31403     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31404     as_echo_n='/usr/ucb/echo -n'
31405   else
31406     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31407     as_echo_n_body='eval
31408       arg=$1;
31409       case $arg in #(
31410       *"$as_nl"*)
31411         expr "X$arg" : "X\\(.*\\)$as_nl";
31412         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31413       esac;
31414       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31415     '
31416     export as_echo_n_body
31417     as_echo_n='sh -c $as_echo_n_body as_echo'
31418   fi
31419   export as_echo_body
31420   as_echo='sh -c $as_echo_body as_echo'
31421 fi
31422
31423 # The user is always right.
31424 if test "${PATH_SEPARATOR+set}" != set; then
31425   PATH_SEPARATOR=:
31426   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31427     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31428       PATH_SEPARATOR=';'
31429   }
31430 fi
31431
31432
31433 # IFS
31434 # We need space, tab and new line, in precisely that order.  Quoting is
31435 # there to prevent editors from complaining about space-tab.
31436 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31437 # splitting by setting IFS to empty value.)
31438 IFS=" ""        $as_nl"
31439
31440 # Find who we are.  Look in the path if we contain no directory separator.
31441 as_myself=
31442 case $0 in #((
31443   *[\\/]* ) as_myself=$0 ;;
31444   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31445 for as_dir in $PATH
31446 do
31447   IFS=$as_save_IFS
31448   test -z "$as_dir" && as_dir=.
31449     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31450   done
31451 IFS=$as_save_IFS
31452
31453      ;;
31454 esac
31455 # We did not find ourselves, most probably we were run as `sh COMMAND'
31456 # in which case we are not to be found in the path.
31457 if test "x$as_myself" = x; then
31458   as_myself=$0
31459 fi
31460 if test ! -f "$as_myself"; then
31461   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31462   exit 1
31463 fi
31464
31465 # Unset variables that we do not need and which cause bugs (e.g. in
31466 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31467 # suppresses any "Segmentation fault" message there.  '((' could
31468 # trigger a bug in pdksh 5.2.14.
31469 for as_var in BASH_ENV ENV MAIL MAILPATH
31470 do eval test x\${$as_var+set} = xset \
31471   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31472 done
31473 PS1='$ '
31474 PS2='> '
31475 PS4='+ '
31476
31477 # NLS nuisances.
31478 LC_ALL=C
31479 export LC_ALL
31480 LANGUAGE=C
31481 export LANGUAGE
31482
31483 # CDPATH.
31484 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31485
31486
31487 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31488 # ----------------------------------------
31489 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31490 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31491 # script with STATUS, using 1 if that was 0.
31492 as_fn_error ()
31493 {
31494   as_status=$1; test $as_status -eq 0 && as_status=1
31495   if test "$4"; then
31496     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31497     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31498   fi
31499   $as_echo "$as_me: error: $2" >&2
31500   as_fn_exit $as_status
31501 } # as_fn_error
31502
31503
31504 # as_fn_set_status STATUS
31505 # -----------------------
31506 # Set $? to STATUS, without forking.
31507 as_fn_set_status ()
31508 {
31509   return $1
31510 } # as_fn_set_status
31511
31512 # as_fn_exit STATUS
31513 # -----------------
31514 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31515 as_fn_exit ()
31516 {
31517   set +e
31518   as_fn_set_status $1
31519   exit $1
31520 } # as_fn_exit
31521
31522 # as_fn_unset VAR
31523 # ---------------
31524 # Portably unset VAR.
31525 as_fn_unset ()
31526 {
31527   { eval $1=; unset $1;}
31528 }
31529 as_unset=as_fn_unset
31530 # as_fn_append VAR VALUE
31531 # ----------------------
31532 # Append the text in VALUE to the end of the definition contained in VAR. Take
31533 # advantage of any shell optimizations that allow amortized linear growth over
31534 # repeated appends, instead of the typical quadratic growth present in naive
31535 # implementations.
31536 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31537   eval 'as_fn_append ()
31538   {
31539     eval $1+=\$2
31540   }'
31541 else
31542   as_fn_append ()
31543   {
31544     eval $1=\$$1\$2
31545   }
31546 fi # as_fn_append
31547
31548 # as_fn_arith ARG...
31549 # ------------------
31550 # Perform arithmetic evaluation on the ARGs, and store the result in the
31551 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31552 # must be portable across $(()) and expr.
31553 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31554   eval 'as_fn_arith ()
31555   {
31556     as_val=$(( $* ))
31557   }'
31558 else
31559   as_fn_arith ()
31560   {
31561     as_val=`expr "$@" || test $? -eq 1`
31562   }
31563 fi # as_fn_arith
31564
31565
31566 if expr a : '\(a\)' >/dev/null 2>&1 &&
31567    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31568   as_expr=expr
31569 else
31570   as_expr=false
31571 fi
31572
31573 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31574   as_basename=basename
31575 else
31576   as_basename=false
31577 fi
31578
31579 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31580   as_dirname=dirname
31581 else
31582   as_dirname=false
31583 fi
31584
31585 as_me=`$as_basename -- "$0" ||
31586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31587          X"$0" : 'X\(//\)$' \| \
31588          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31589 $as_echo X/"$0" |
31590     sed '/^.*\/\([^/][^/]*\)\/*$/{
31591             s//\1/
31592             q
31593           }
31594           /^X\/\(\/\/\)$/{
31595             s//\1/
31596             q
31597           }
31598           /^X\/\(\/\).*/{
31599             s//\1/
31600             q
31601           }
31602           s/.*/./; q'`
31603
31604 # Avoid depending upon Character Ranges.
31605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31608 as_cr_digits='0123456789'
31609 as_cr_alnum=$as_cr_Letters$as_cr_digits
31610
31611 ECHO_C= ECHO_N= ECHO_T=
31612 case `echo -n x` in #(((((
31613 -n*)
31614   case `echo 'xy\c'` in
31615   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31616   xy)  ECHO_C='\c';;
31617   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31618        ECHO_T=' ';;
31619   esac;;
31620 *)
31621   ECHO_N='-n';;
31622 esac
31623
31624 rm -f conf$$ conf$$.exe conf$$.file
31625 if test -d conf$$.dir; then
31626   rm -f conf$$.dir/conf$$.file
31627 else
31628   rm -f conf$$.dir
31629   mkdir conf$$.dir 2>/dev/null
31630 fi
31631 if (echo >conf$$.file) 2>/dev/null; then
31632   if ln -s conf$$.file conf$$ 2>/dev/null; then
31633     as_ln_s='ln -s'
31634     # ... but there are two gotchas:
31635     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31636     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31637     # In both cases, we have to default to `cp -pR'.
31638     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31639       as_ln_s='cp -pR'
31640   elif ln conf$$.file conf$$ 2>/dev/null; then
31641     as_ln_s=ln
31642   else
31643     as_ln_s='cp -pR'
31644   fi
31645 else
31646   as_ln_s='cp -pR'
31647 fi
31648 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31649 rmdir conf$$.dir 2>/dev/null
31650
31651
31652 # as_fn_mkdir_p
31653 # -------------
31654 # Create "$as_dir" as a directory, including parents if necessary.
31655 as_fn_mkdir_p ()
31656 {
31657
31658   case $as_dir in #(
31659   -*) as_dir=./$as_dir;;
31660   esac
31661   test -d "$as_dir" || eval $as_mkdir_p || {
31662     as_dirs=
31663     while :; do
31664       case $as_dir in #(
31665       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31666       *) as_qdir=$as_dir;;
31667       esac
31668       as_dirs="'$as_qdir' $as_dirs"
31669       as_dir=`$as_dirname -- "$as_dir" ||
31670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31671          X"$as_dir" : 'X\(//\)[^/]' \| \
31672          X"$as_dir" : 'X\(//\)$' \| \
31673          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31674 $as_echo X"$as_dir" |
31675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31676             s//\1/
31677             q
31678           }
31679           /^X\(\/\/\)[^/].*/{
31680             s//\1/
31681             q
31682           }
31683           /^X\(\/\/\)$/{
31684             s//\1/
31685             q
31686           }
31687           /^X\(\/\).*/{
31688             s//\1/
31689             q
31690           }
31691           s/.*/./; q'`
31692       test -d "$as_dir" && break
31693     done
31694     test -z "$as_dirs" || eval "mkdir $as_dirs"
31695   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31696
31697
31698 } # as_fn_mkdir_p
31699 if mkdir -p . 2>/dev/null; then
31700   as_mkdir_p='mkdir -p "$as_dir"'
31701 else
31702   test -d ./-p && rmdir ./-p
31703   as_mkdir_p=false
31704 fi
31705
31706
31707 # as_fn_executable_p FILE
31708 # -----------------------
31709 # Test if FILE is an executable regular file.
31710 as_fn_executable_p ()
31711 {
31712   test -f "$1" && test -x "$1"
31713 } # as_fn_executable_p
31714 as_test_x='test -x'
31715 as_executable_p=as_fn_executable_p
31716
31717 # Sed expression to map a string onto a valid CPP name.
31718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31719
31720 # Sed expression to map a string onto a valid variable name.
31721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31722
31723
31724 exec 6>&1
31725 ## ----------------------------------- ##
31726 ## Main body of $CONFIG_STATUS script. ##
31727 ## ----------------------------------- ##
31728 _ASEOF
31729 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31730
31731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31732 # Save the log message, to keep $0 and so on meaningful, and to
31733 # report actual input values of CONFIG_FILES etc. instead of their
31734 # values after options handling.
31735 ac_log="
31736 This file was extended by bacula $as_me 9.0.7, which was
31737 generated by GNU Autoconf 2.69.  Invocation command line was
31738
31739   CONFIG_FILES    = $CONFIG_FILES
31740   CONFIG_HEADERS  = $CONFIG_HEADERS
31741   CONFIG_LINKS    = $CONFIG_LINKS
31742   CONFIG_COMMANDS = $CONFIG_COMMANDS
31743   $ $0 $@
31744
31745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31746 "
31747
31748 _ACEOF
31749
31750 case $ac_config_files in *"
31751 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31752 esac
31753
31754 case $ac_config_headers in *"
31755 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31756 esac
31757
31758
31759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31760 # Files that config.status was made for.
31761 config_files="$ac_config_files"
31762 config_headers="$ac_config_headers"
31763 config_commands="$ac_config_commands"
31764
31765 _ACEOF
31766
31767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31768 ac_cs_usage="\
31769 \`$as_me' instantiates files and other configuration actions
31770 from templates according to the current configuration.  Unless the files
31771 and actions are specified as TAGs, all are instantiated by default.
31772
31773 Usage: $0 [OPTION]... [TAG]...
31774
31775   -h, --help       print this help, then exit
31776   -V, --version    print version number and configuration settings, then exit
31777       --config     print configuration, then exit
31778   -q, --quiet, --silent
31779                    do not print progress messages
31780   -d, --debug      don't remove temporary files
31781       --recheck    update $as_me by reconfiguring in the same conditions
31782       --file=FILE[:TEMPLATE]
31783                    instantiate the configuration file FILE
31784       --header=FILE[:TEMPLATE]
31785                    instantiate the configuration header FILE
31786
31787 Configuration files:
31788 $config_files
31789
31790 Configuration headers:
31791 $config_headers
31792
31793 Configuration commands:
31794 $config_commands
31795
31796 Report bugs to the package provider."
31797
31798 _ACEOF
31799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31800 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31801 ac_cs_version="\\
31802 bacula config.status 9.0.7
31803 configured by $0, generated by GNU Autoconf 2.69,
31804   with options \\"\$ac_cs_config\\"
31805
31806 Copyright (C) 2012 Free Software Foundation, Inc.
31807 This config.status script is free software; the Free Software Foundation
31808 gives unlimited permission to copy, distribute and modify it."
31809
31810 ac_pwd='$ac_pwd'
31811 srcdir='$srcdir'
31812 INSTALL='$INSTALL'
31813 AWK='$AWK'
31814 test -n "\$AWK" || AWK=awk
31815 _ACEOF
31816
31817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31818 # The default lists apply if the user does not specify any file.
31819 ac_need_defaults=:
31820 while test $# != 0
31821 do
31822   case $1 in
31823   --*=?*)
31824     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31825     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31826     ac_shift=:
31827     ;;
31828   --*=)
31829     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31830     ac_optarg=
31831     ac_shift=:
31832     ;;
31833   *)
31834     ac_option=$1
31835     ac_optarg=$2
31836     ac_shift=shift
31837     ;;
31838   esac
31839
31840   case $ac_option in
31841   # Handling of the options.
31842   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31843     ac_cs_recheck=: ;;
31844   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31845     $as_echo "$ac_cs_version"; exit ;;
31846   --config | --confi | --conf | --con | --co | --c )
31847     $as_echo "$ac_cs_config"; exit ;;
31848   --debug | --debu | --deb | --de | --d | -d )
31849     debug=: ;;
31850   --file | --fil | --fi | --f )
31851     $ac_shift
31852     case $ac_optarg in
31853     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31854     '') as_fn_error $? "missing file argument" ;;
31855     esac
31856     as_fn_append CONFIG_FILES " '$ac_optarg'"
31857     ac_need_defaults=false;;
31858   --header | --heade | --head | --hea )
31859     $ac_shift
31860     case $ac_optarg in
31861     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31862     esac
31863     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31864     ac_need_defaults=false;;
31865   --he | --h)
31866     # Conflict between --help and --header
31867     as_fn_error $? "ambiguous option: \`$1'
31868 Try \`$0 --help' for more information.";;
31869   --help | --hel | -h )
31870     $as_echo "$ac_cs_usage"; exit ;;
31871   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31872   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31873     ac_cs_silent=: ;;
31874
31875   # This is an error.
31876   -*) as_fn_error $? "unrecognized option: \`$1'
31877 Try \`$0 --help' for more information." ;;
31878
31879   *) as_fn_append ac_config_targets " $1"
31880      ac_need_defaults=false ;;
31881
31882   esac
31883   shift
31884 done
31885
31886 ac_configure_extra_args=
31887
31888 if $ac_cs_silent; then
31889   exec 6>/dev/null
31890   ac_configure_extra_args="$ac_configure_extra_args --silent"
31891 fi
31892
31893 _ACEOF
31894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31895 if \$ac_cs_recheck; then
31896   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31897   shift
31898   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31899   CONFIG_SHELL='$SHELL'
31900   export CONFIG_SHELL
31901   exec "\$@"
31902 fi
31903
31904 _ACEOF
31905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31906 exec 5>>config.log
31907 {
31908   echo
31909   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31910 ## Running $as_me. ##
31911 _ASBOX
31912   $as_echo "$ac_log"
31913 } >&5
31914
31915 _ACEOF
31916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31917 #
31918 # INIT-COMMANDS
31919 #
31920
31921
31922 # The HP-UX ksh and POSIX shell print the target directory to stdout
31923 # if CDPATH is set.
31924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31925
31926 sed_quote_subst='$sed_quote_subst'
31927 double_quote_subst='$double_quote_subst'
31928 delay_variable_subst='$delay_variable_subst'
31929 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31930 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31931 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31932 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31933 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31934 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31935 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31936 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31937 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31938 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31939 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31940 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31941 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31942 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31943 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31944 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31945 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31946 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31947 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31948 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31949 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31950 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31951 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31952 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31953 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31954 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31955 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31956 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31957 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31958 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31959 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31960 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31961 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31962 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31963 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31964 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31965 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31966 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31967 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31968 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31969 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31970 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31971 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31972 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31973 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31974 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31975 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31976 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31977 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31978 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31979 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31980 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31981 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31982 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31983 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31984 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
31986 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31987 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31988 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31989 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31990 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31991 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31992 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31993 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31994 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31995 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31996 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31997 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31998 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31999 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32000 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32001 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32002 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32003 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32004 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32005 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32006 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32007 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32008 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32009 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32010 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32011 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32012 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32013 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32014 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32015 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32016 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32017 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32018 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32019 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32020 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32021 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32022 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32023 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32024 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32025 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32026 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32027 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32028 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32029 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32030 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32031 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32032 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32033 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32034 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32035 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32036 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32037 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32038 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32039 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32040 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32041 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32042 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32043 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32044 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32045 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32046 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32047 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32048 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32049 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32050 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32051 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32052 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32053 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32054 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32055 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32056 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32057 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32058 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32059 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32060 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32061 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32062 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32063 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32064 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32065 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32066 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32067 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32068 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32069 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32070 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32071 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32072 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32073 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32074 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32075 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32076 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32077 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32078 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32079 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32080 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32081 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32082 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32083 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32084 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32085 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32086 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32087 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32088 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32089 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32090 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32091 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32092 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32093 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32094 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32095 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32096 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32097 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32098 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32099 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32100 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32101 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32102 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32103 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32104 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32105 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32106 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32107 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32108 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32109 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32110 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32111 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32112 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32113
32114 LTCC='$LTCC'
32115 LTCFLAGS='$LTCFLAGS'
32116 compiler='$compiler_DEFAULT'
32117
32118 # A function that is used when there is no print builtin or printf.
32119 func_fallback_echo ()
32120 {
32121   eval 'cat <<_LTECHO_EOF
32122 \$1
32123 _LTECHO_EOF'
32124 }
32125
32126 # Quote evaled strings.
32127 for var in SHELL \
32128 ECHO \
32129 PATH_SEPARATOR \
32130 SED \
32131 GREP \
32132 EGREP \
32133 FGREP \
32134 LD \
32135 NM \
32136 LN_S \
32137 lt_SP2NL \
32138 lt_NL2SP \
32139 reload_flag \
32140 OBJDUMP \
32141 deplibs_check_method \
32142 file_magic_cmd \
32143 file_magic_glob \
32144 want_nocaseglob \
32145 DLLTOOL \
32146 sharedlib_from_linklib_cmd \
32147 AR \
32148 AR_FLAGS \
32149 archiver_list_spec \
32150 STRIP \
32151 RANLIB \
32152 CC \
32153 CFLAGS \
32154 compiler \
32155 lt_cv_sys_global_symbol_pipe \
32156 lt_cv_sys_global_symbol_to_cdecl \
32157 lt_cv_sys_global_symbol_to_c_name_address \
32158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32159 nm_file_list_spec \
32160 lt_prog_compiler_no_builtin_flag \
32161 lt_prog_compiler_pic \
32162 lt_prog_compiler_wl \
32163 lt_prog_compiler_static \
32164 lt_cv_prog_compiler_c_o \
32165 need_locks \
32166 MANIFEST_TOOL \
32167 DSYMUTIL \
32168 NMEDIT \
32169 LIPO \
32170 OTOOL \
32171 OTOOL64 \
32172 shrext_cmds \
32173 export_dynamic_flag_spec \
32174 whole_archive_flag_spec \
32175 compiler_needs_object \
32176 with_gnu_ld \
32177 allow_undefined_flag \
32178 no_undefined_flag \
32179 hardcode_libdir_flag_spec \
32180 hardcode_libdir_separator \
32181 exclude_expsyms \
32182 include_expsyms \
32183 file_list_spec \
32184 variables_saved_for_relink \
32185 libname_spec \
32186 library_names_spec \
32187 soname_spec \
32188 install_override_mode \
32189 finish_eval \
32190 old_striplib \
32191 striplib \
32192 compiler_lib_search_dirs \
32193 predep_objects \
32194 postdep_objects \
32195 predeps \
32196 postdeps \
32197 compiler_lib_search_path \
32198 LD_CXX \
32199 reload_flag_CXX \
32200 compiler_CXX \
32201 lt_prog_compiler_no_builtin_flag_CXX \
32202 lt_prog_compiler_pic_CXX \
32203 lt_prog_compiler_wl_CXX \
32204 lt_prog_compiler_static_CXX \
32205 lt_cv_prog_compiler_c_o_CXX \
32206 export_dynamic_flag_spec_CXX \
32207 whole_archive_flag_spec_CXX \
32208 compiler_needs_object_CXX \
32209 with_gnu_ld_CXX \
32210 allow_undefined_flag_CXX \
32211 no_undefined_flag_CXX \
32212 hardcode_libdir_flag_spec_CXX \
32213 hardcode_libdir_separator_CXX \
32214 exclude_expsyms_CXX \
32215 include_expsyms_CXX \
32216 file_list_spec_CXX \
32217 compiler_lib_search_dirs_CXX \
32218 predep_objects_CXX \
32219 postdep_objects_CXX \
32220 predeps_CXX \
32221 postdeps_CXX \
32222 compiler_lib_search_path_CXX; do
32223     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32224     *[\\\\\\\`\\"\\\$]*)
32225       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32226       ;;
32227     *)
32228       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32229       ;;
32230     esac
32231 done
32232
32233 # Double-quote double-evaled strings.
32234 for var in reload_cmds \
32235 old_postinstall_cmds \
32236 old_postuninstall_cmds \
32237 old_archive_cmds \
32238 extract_expsyms_cmds \
32239 old_archive_from_new_cmds \
32240 old_archive_from_expsyms_cmds \
32241 archive_cmds \
32242 archive_expsym_cmds \
32243 module_cmds \
32244 module_expsym_cmds \
32245 export_symbols_cmds \
32246 prelink_cmds \
32247 postlink_cmds \
32248 postinstall_cmds \
32249 postuninstall_cmds \
32250 finish_cmds \
32251 sys_lib_search_path_spec \
32252 sys_lib_dlsearch_path_spec \
32253 reload_cmds_CXX \
32254 old_archive_cmds_CXX \
32255 old_archive_from_new_cmds_CXX \
32256 old_archive_from_expsyms_cmds_CXX \
32257 archive_cmds_CXX \
32258 archive_expsym_cmds_CXX \
32259 module_cmds_CXX \
32260 module_expsym_cmds_CXX \
32261 export_symbols_cmds_CXX \
32262 prelink_cmds_CXX \
32263 postlink_cmds_CXX; do
32264     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32265     *[\\\\\\\`\\"\\\$]*)
32266       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32267       ;;
32268     *)
32269       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32270       ;;
32271     esac
32272 done
32273
32274 ac_aux_dir='$ac_aux_dir'
32275 xsi_shell='$xsi_shell'
32276 lt_shell_append='$lt_shell_append'
32277
32278 # See if we are running on zsh, and set the options which allow our
32279 # commands through without removal of \ escapes INIT.
32280 if test -n "\${ZSH_VERSION+set}" ; then
32281    setopt NO_GLOB_SUBST
32282 fi
32283
32284
32285     PACKAGE='$PACKAGE'
32286     VERSION='$VERSION'
32287     TIMESTAMP='$TIMESTAMP'
32288     RM='$RM'
32289     ofile='$ofile'
32290
32291
32292
32293
32294
32295 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32296     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32297     # from automake.
32298     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32299     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32300     LINGUAS="${LINGUAS-%UNSET%}"
32301
32302
32303 _ACEOF
32304
32305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32306
32307 # Handling of arguments.
32308 for ac_config_target in $ac_config_targets
32309 do
32310   case $ac_config_target in
32311     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32312     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32313     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32314     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32315     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32316     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32317     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32318     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32319     "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32320     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32321     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32322     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32323     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32324     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32325     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32326     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32327     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32328     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32329     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32330     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32331     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32332     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32333     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32334     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32335     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32336     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32337     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32338     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32339     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32340     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32341     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32342     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32343     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32344     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32345     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32346     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32347     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32348     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32349     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32350     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32351     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32352     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32353     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32354     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32355     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32356     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32357     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32358     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32359     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32360     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32361     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32362     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32363     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32364     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32365     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32366     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32367     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32368     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32369     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32370     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32371     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32372     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32373     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32374     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32375     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32376     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32377     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32378     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32379     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32380     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32381     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32382     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32383     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32384     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32385     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32386     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32387     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32388     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32389     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32390     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32391     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32392     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32393     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32394     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
32395     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32396     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32397     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32398     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32399     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32400     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32401     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32402     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32403     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32404     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32405     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32406     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32407     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32408     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32409     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32410     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32411     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32412     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32413     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32414     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32415     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32416     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32417     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32418     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32419
32420   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32421   esac
32422 done
32423
32424
32425 # If the user did not use the arguments to specify the items to instantiate,
32426 # then the envvar interface is used.  Set only those that are not.
32427 # We use the long form for the default assignment because of an extremely
32428 # bizarre bug on SunOS 4.1.3.
32429 if $ac_need_defaults; then
32430   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32431   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32432   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32433 fi
32434
32435 # Have a temporary directory for convenience.  Make it in the build tree
32436 # simply because there is no reason against having it here, and in addition,
32437 # creating and moving files from /tmp can sometimes cause problems.
32438 # Hook for its removal unless debugging.
32439 # Note that there is a small window in which the directory will not be cleaned:
32440 # after its creation but before its name has been assigned to `$tmp'.
32441 $debug ||
32442 {
32443   tmp= ac_tmp=
32444   trap 'exit_status=$?
32445   : "${ac_tmp:=$tmp}"
32446   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32447 ' 0
32448   trap 'as_fn_exit 1' 1 2 13 15
32449 }
32450 # Create a (secure) tmp directory for tmp files.
32451
32452 {
32453   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32454   test -d "$tmp"
32455 }  ||
32456 {
32457   tmp=./conf$$-$RANDOM
32458   (umask 077 && mkdir "$tmp")
32459 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32460 ac_tmp=$tmp
32461
32462 # Set up the scripts for CONFIG_FILES section.
32463 # No need to generate them if there are no CONFIG_FILES.
32464 # This happens for instance with `./config.status config.h'.
32465 if test -n "$CONFIG_FILES"; then
32466
32467 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32468   ac_cs_awk_getline=:
32469   ac_cs_awk_pipe_init=
32470   ac_cs_awk_read_file='
32471       while ((getline aline < (F[key])) > 0)
32472         print(aline)
32473       close(F[key])'
32474   ac_cs_awk_pipe_fini=
32475 else
32476   ac_cs_awk_getline=false
32477   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32478   ac_cs_awk_read_file='
32479       print "|#_!!_#|"
32480       print "cat " F[key] " &&"
32481       '$ac_cs_awk_pipe_init
32482   # The final `:' finishes the AND list.
32483   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32484 fi
32485 ac_cr=`echo X | tr X '\015'`
32486 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32487 # But we know of no other shell where ac_cr would be empty at this
32488 # point, so we can use a bashism as a fallback.
32489 if test "x$ac_cr" = x; then
32490   eval ac_cr=\$\'\\r\'
32491 fi
32492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32494   ac_cs_awk_cr='\\r'
32495 else
32496   ac_cs_awk_cr=$ac_cr
32497 fi
32498
32499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32500 _ACEOF
32501
32502 # Create commands to substitute file output variables.
32503 {
32504   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32505   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32506   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32507   echo "_ACAWK" &&
32508   echo "_ACEOF"
32509 } >conf$$files.sh &&
32510 . ./conf$$files.sh ||
32511   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32512 rm -f conf$$files.sh
32513
32514 {
32515   echo "cat >conf$$subs.awk <<_ACEOF" &&
32516   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32517   echo "_ACEOF"
32518 } >conf$$subs.sh ||
32519   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32520 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32521 ac_delim='%!_!# '
32522 for ac_last_try in false false false false false :; do
32523   . ./conf$$subs.sh ||
32524     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32525
32526   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32527   if test $ac_delim_n = $ac_delim_num; then
32528     break
32529   elif $ac_last_try; then
32530     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32531   else
32532     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32533   fi
32534 done
32535 rm -f conf$$subs.sh
32536
32537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32538 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32539 _ACEOF
32540 sed -n '
32541 h
32542 s/^/S["/; s/!.*/"]=/
32543 p
32544 g
32545 s/^[^!]*!//
32546 :repl
32547 t repl
32548 s/'"$ac_delim"'$//
32549 t delim
32550 :nl
32551 h
32552 s/\(.\{148\}\)..*/\1/
32553 t more1
32554 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32555 p
32556 n
32557 b repl
32558 :more1
32559 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32560 p
32561 g
32562 s/.\{148\}//
32563 t nl
32564 :delim
32565 h
32566 s/\(.\{148\}\)..*/\1/
32567 t more2
32568 s/["\\]/\\&/g; s/^/"/; s/$/"/
32569 p
32570 b
32571 :more2
32572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32573 p
32574 g
32575 s/.\{148\}//
32576 t delim
32577 ' <conf$$subs.awk | sed '
32578 /^[^""]/{
32579   N
32580   s/\n//
32581 }
32582 ' >>$CONFIG_STATUS || ac_write_fail=1
32583 rm -f conf$$subs.awk
32584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32585 _ACAWK
32586 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32587   for (key in S) S_is_set[key] = 1
32588   FS = "\a"
32589   \$ac_cs_awk_pipe_init
32590 }
32591 {
32592   line = $ 0
32593   nfields = split(line, field, "@")
32594   substed = 0
32595   len = length(field[1])
32596   for (i = 2; i < nfields; i++) {
32597     key = field[i]
32598     keylen = length(key)
32599     if (S_is_set[key]) {
32600       value = S[key]
32601       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32602       len += length(value) + length(field[++i])
32603       substed = 1
32604     } else
32605       len += 1 + keylen
32606   }
32607   if (nfields == 3 && !substed) {
32608     key = field[2]
32609     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32610       \$ac_cs_awk_read_file
32611       next
32612     }
32613   }
32614   print line
32615 }
32616 \$ac_cs_awk_pipe_fini
32617 _ACAWK
32618 _ACEOF
32619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32620 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32621   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32622 else
32623   cat
32624 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32625   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32626 _ACEOF
32627
32628 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32629 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32630 # trailing colons and then remove the whole line if VPATH becomes empty
32631 # (actually we leave an empty line to preserve line numbers).
32632 if test "x$srcdir" = x.; then
32633   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32634 h
32635 s///
32636 s/^/:/
32637 s/[      ]*$/:/
32638 s/:\$(srcdir):/:/g
32639 s/:\${srcdir}:/:/g
32640 s/:@srcdir@:/:/g
32641 s/^:*//
32642 s/:*$//
32643 x
32644 s/\(=[   ]*\).*/\1/
32645 G
32646 s/\n//
32647 s/^[^=]*=[       ]*$//
32648 }'
32649 fi
32650
32651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32652 fi # test -n "$CONFIG_FILES"
32653
32654 # Set up the scripts for CONFIG_HEADERS section.
32655 # No need to generate them if there are no CONFIG_HEADERS.
32656 # This happens for instance with `./config.status Makefile'.
32657 if test -n "$CONFIG_HEADERS"; then
32658 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32659 BEGIN {
32660 _ACEOF
32661
32662 # Transform confdefs.h into an awk script `defines.awk', embedded as
32663 # here-document in config.status, that substitutes the proper values into
32664 # config.h.in to produce config.h.
32665
32666 # Create a delimiter string that does not exist in confdefs.h, to ease
32667 # handling of long lines.
32668 ac_delim='%!_!# '
32669 for ac_last_try in false false :; do
32670   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32671   if test -z "$ac_tt"; then
32672     break
32673   elif $ac_last_try; then
32674     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32675   else
32676     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32677   fi
32678 done
32679
32680 # For the awk script, D is an array of macro values keyed by name,
32681 # likewise P contains macro parameters if any.  Preserve backslash
32682 # newline sequences.
32683
32684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32685 sed -n '
32686 s/.\{148\}/&'"$ac_delim"'/g
32687 t rset
32688 :rset
32689 s/^[     ]*#[    ]*define[       ][      ]*/ /
32690 t def
32691 d
32692 :def
32693 s/\\$//
32694 t bsnl
32695 s/["\\]/\\&/g
32696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32697 D["\1"]=" \3"/p
32698 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32699 d
32700 :bsnl
32701 s/["\\]/\\&/g
32702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32703 D["\1"]=" \3\\\\\\n"\\/p
32704 t cont
32705 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32706 t cont
32707 d
32708 :cont
32709 n
32710 s/.\{148\}/&'"$ac_delim"'/g
32711 t clear
32712 :clear
32713 s/\\$//
32714 t bsnlc
32715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32716 d
32717 :bsnlc
32718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32719 b cont
32720 ' <confdefs.h | sed '
32721 s/'"$ac_delim"'/"\\\
32722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32723
32724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32725   for (key in D) D_is_set[key] = 1
32726   FS = "\a"
32727 }
32728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32729   line = \$ 0
32730   split(line, arg, " ")
32731   if (arg[1] == "#") {
32732     defundef = arg[2]
32733     mac1 = arg[3]
32734   } else {
32735     defundef = substr(arg[1], 2)
32736     mac1 = arg[2]
32737   }
32738   split(mac1, mac2, "(") #)
32739   macro = mac2[1]
32740   prefix = substr(line, 1, index(line, defundef) - 1)
32741   if (D_is_set[macro]) {
32742     # Preserve the white space surrounding the "#".
32743     print prefix "define", macro P[macro] D[macro]
32744     next
32745   } else {
32746     # Replace #undef with comments.  This is necessary, for example,
32747     # in the case of _POSIX_SOURCE, which is predefined and required
32748     # on some systems where configure will not decide to define it.
32749     if (defundef == "undef") {
32750       print "/*", prefix defundef, macro, "*/"
32751       next
32752     }
32753   }
32754 }
32755 { print }
32756 _ACAWK
32757 _ACEOF
32758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32759   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32760 fi # test -n "$CONFIG_HEADERS"
32761
32762
32763 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32764 shift
32765 for ac_tag
32766 do
32767   case $ac_tag in
32768   :[FHLC]) ac_mode=$ac_tag; continue;;
32769   esac
32770   case $ac_mode$ac_tag in
32771   :[FHL]*:*);;
32772   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32773   :[FH]-) ac_tag=-:-;;
32774   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32775   esac
32776   ac_save_IFS=$IFS
32777   IFS=:
32778   set x $ac_tag
32779   IFS=$ac_save_IFS
32780   shift
32781   ac_file=$1
32782   shift
32783
32784   case $ac_mode in
32785   :L) ac_source=$1;;
32786   :[FH])
32787     ac_file_inputs=
32788     for ac_f
32789     do
32790       case $ac_f in
32791       -) ac_f="$ac_tmp/stdin";;
32792       *) # Look for the file first in the build tree, then in the source tree
32793          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32794          # because $ac_f cannot contain `:'.
32795          test -f "$ac_f" ||
32796            case $ac_f in
32797            [\\/$]*) false;;
32798            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32799            esac ||
32800            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32801       esac
32802       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32803       as_fn_append ac_file_inputs " '$ac_f'"
32804     done
32805
32806     # Let's still pretend it is `configure' which instantiates (i.e., don't
32807     # use $as_me), people would be surprised to read:
32808     #    /* config.h.  Generated by config.status.  */
32809     configure_input='Generated from '`
32810           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32811         `' by configure.'
32812     if test x"$ac_file" != x-; then
32813       configure_input="$ac_file.  $configure_input"
32814       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32815 $as_echo "$as_me: creating $ac_file" >&6;}
32816     fi
32817     # Neutralize special characters interpreted by sed in replacement strings.
32818     case $configure_input in #(
32819     *\&* | *\|* | *\\* )
32820        ac_sed_conf_input=`$as_echo "$configure_input" |
32821        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32822     *) ac_sed_conf_input=$configure_input;;
32823     esac
32824
32825     case $ac_tag in
32826     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32827       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32828     esac
32829     ;;
32830   esac
32831
32832   ac_dir=`$as_dirname -- "$ac_file" ||
32833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32834          X"$ac_file" : 'X\(//\)[^/]' \| \
32835          X"$ac_file" : 'X\(//\)$' \| \
32836          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32837 $as_echo X"$ac_file" |
32838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32839             s//\1/
32840             q
32841           }
32842           /^X\(\/\/\)[^/].*/{
32843             s//\1/
32844             q
32845           }
32846           /^X\(\/\/\)$/{
32847             s//\1/
32848             q
32849           }
32850           /^X\(\/\).*/{
32851             s//\1/
32852             q
32853           }
32854           s/.*/./; q'`
32855   as_dir="$ac_dir"; as_fn_mkdir_p
32856   ac_builddir=.
32857
32858 case "$ac_dir" in
32859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32860 *)
32861   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32862   # A ".." for each directory in $ac_dir_suffix.
32863   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32864   case $ac_top_builddir_sub in
32865   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32866   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32867   esac ;;
32868 esac
32869 ac_abs_top_builddir=$ac_pwd
32870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32871 # for backward compatibility:
32872 ac_top_builddir=$ac_top_build_prefix
32873
32874 case $srcdir in
32875   .)  # We are building in place.
32876     ac_srcdir=.
32877     ac_top_srcdir=$ac_top_builddir_sub
32878     ac_abs_top_srcdir=$ac_pwd ;;
32879   [\\/]* | ?:[\\/]* )  # Absolute name.
32880     ac_srcdir=$srcdir$ac_dir_suffix;
32881     ac_top_srcdir=$srcdir
32882     ac_abs_top_srcdir=$srcdir ;;
32883   *) # Relative name.
32884     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32885     ac_top_srcdir=$ac_top_build_prefix$srcdir
32886     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32887 esac
32888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32889
32890
32891   case $ac_mode in
32892   :F)
32893   #
32894   # CONFIG_FILE
32895   #
32896
32897   case $INSTALL in
32898   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32899   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32900   esac
32901 _ACEOF
32902
32903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32904 # If the template does not know about datarootdir, expand it.
32905 # FIXME: This hack should be removed a few years after 2.60.
32906 ac_datarootdir_hack=; ac_datarootdir_seen=
32907 ac_sed_dataroot='
32908 /datarootdir/ {
32909   p
32910   q
32911 }
32912 /@datadir@/p
32913 /@docdir@/p
32914 /@infodir@/p
32915 /@localedir@/p
32916 /@mandir@/p'
32917 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32918 *datarootdir*) ac_datarootdir_seen=yes;;
32919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32920   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32921 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32922 _ACEOF
32923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32924   ac_datarootdir_hack='
32925   s&@datadir@&$datadir&g
32926   s&@docdir@&$docdir&g
32927   s&@infodir@&$infodir&g
32928   s&@localedir@&$localedir&g
32929   s&@mandir@&$mandir&g
32930   s&\\\${datarootdir}&$datarootdir&g' ;;
32931 esac
32932 _ACEOF
32933
32934 # Neutralize VPATH when `$srcdir' = `.'.
32935 # Shell code in configure.ac might set extrasub.
32936 # FIXME: do we really want to maintain this feature?
32937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32938 ac_sed_extra="$ac_vpsub
32939 $extrasub
32940 _ACEOF
32941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32942 :t
32943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32944 s|@configure_input@|$ac_sed_conf_input|;t t
32945 s&@top_builddir@&$ac_top_builddir_sub&;t t
32946 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32947 s&@srcdir@&$ac_srcdir&;t t
32948 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32949 s&@top_srcdir@&$ac_top_srcdir&;t t
32950 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32951 s&@builddir@&$ac_builddir&;t t
32952 s&@abs_builddir@&$ac_abs_builddir&;t t
32953 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32954 s&@INSTALL@&$ac_INSTALL&;t t
32955 $ac_datarootdir_hack
32956 "
32957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32958 if $ac_cs_awk_getline; then
32959   $AWK -f "$ac_tmp/subs.awk"
32960 else
32961   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32962 fi \
32963   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32964
32965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32966   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32967   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32968       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32970 which seems to be undefined.  Please make sure it is defined" >&5
32971 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32972 which seems to be undefined.  Please make sure it is defined" >&2;}
32973
32974   rm -f "$ac_tmp/stdin"
32975   case $ac_file in
32976   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32977   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32978   esac \
32979   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32980  ;;
32981   :H)
32982   #
32983   # CONFIG_HEADER
32984   #
32985   if test x"$ac_file" != x-; then
32986     {
32987       $as_echo "/* $configure_input  */" \
32988       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32989     } >"$ac_tmp/config.h" \
32990       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32991     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32992       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32993 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32994     else
32995       rm -f "$ac_file"
32996       mv "$ac_tmp/config.h" "$ac_file" \
32997         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32998     fi
32999   else
33000     $as_echo "/* $configure_input  */" \
33001       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33002       || as_fn_error $? "could not create -" "$LINENO" 5
33003   fi
33004  ;;
33005
33006   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33007 $as_echo "$as_me: executing $ac_file commands" >&6;}
33008  ;;
33009   esac
33010
33011
33012   case $ac_file$ac_mode in
33013     "libtool":C)
33014
33015     # See if we are running on zsh, and set the options which allow our
33016     # commands through without removal of \ escapes.
33017     if test -n "${ZSH_VERSION+set}" ; then
33018       setopt NO_GLOB_SUBST
33019     fi
33020
33021     cfgfile="${ofile}T"
33022     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33023     $RM "$cfgfile"
33024
33025     cat <<_LT_EOF >> "$cfgfile"
33026 #! $SHELL
33027
33028 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33029 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33031 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33032 #
33033 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33034 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33035 #                 Foundation, Inc.
33036 #   Written by Gordon Matzigkeit, 1996
33037 #
33038 #   This file is part of GNU Libtool.
33039 #
33040 # GNU Libtool is free software; you can redistribute it and/or
33041 # modify it under the terms of the GNU General Public License as
33042 # published by the Free Software Foundation; either version 2 of
33043 # the License, or (at your option) any later version.
33044 #
33045 # As a special exception to the GNU General Public License,
33046 # if you distribute this file as part of a program or library that
33047 # is built using GNU Libtool, you may include this file under the
33048 # same distribution terms that you use for the rest of that program.
33049 #
33050 # GNU Libtool is distributed in the hope that it will be useful,
33051 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33052 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33053 # GNU General Public License for more details.
33054 #
33055 # You should have received a copy of the GNU General Public License
33056 # along with GNU Libtool; see the file COPYING.  If not, a copy
33057 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33058 # obtained by writing to the Free Software Foundation, Inc.,
33059 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33060
33061
33062 # The names of the tagged configurations supported by this script.
33063 available_tags="CXX "
33064
33065 # ### BEGIN LIBTOOL CONFIG
33066
33067 # Which release of libtool.m4 was used?
33068 macro_version=$macro_version
33069 macro_revision=$macro_revision
33070
33071 # Whether or not to build shared libraries.
33072 build_libtool_libs=$enable_shared
33073
33074 # Whether or not to build static libraries.
33075 build_old_libs=$enable_static
33076
33077 # What type of objects to build.
33078 pic_mode=$pic_mode
33079
33080 # Whether or not to optimize for fast installation.
33081 fast_install=$enable_fast_install
33082
33083 # Shell to use when invoking shell scripts.
33084 SHELL=$lt_SHELL
33085
33086 # An echo program that protects backslashes.
33087 ECHO=$lt_ECHO
33088
33089 # The PATH separator for the build system.
33090 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33091
33092 # The host system.
33093 host_alias=$host_alias
33094 host=$host
33095 host_os=$host_os
33096
33097 # The build system.
33098 build_alias=$build_alias
33099 build=$build
33100 build_os=$build_os
33101
33102 # A sed program that does not truncate output.
33103 SED=$lt_SED
33104
33105 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33106 Xsed="\$SED -e 1s/^X//"
33107
33108 # A grep program that handles long lines.
33109 GREP=$lt_GREP
33110
33111 # An ERE matcher.
33112 EGREP=$lt_EGREP
33113
33114 # A literal string matcher.
33115 FGREP=$lt_FGREP
33116
33117 # A BSD- or MS-compatible name lister.
33118 NM=$lt_NM
33119
33120 # Whether we need soft or hard links.
33121 LN_S=$lt_LN_S
33122
33123 # What is the maximum length of a command?
33124 max_cmd_len=$max_cmd_len
33125
33126 # Object file suffix (normally "o").
33127 objext=$ac_objext
33128
33129 # Executable file suffix (normally "").
33130 exeext=$exeext
33131
33132 # whether the shell understands "unset".
33133 lt_unset=$lt_unset
33134
33135 # turn spaces into newlines.
33136 SP2NL=$lt_lt_SP2NL
33137
33138 # turn newlines into spaces.
33139 NL2SP=$lt_lt_NL2SP
33140
33141 # convert \$build file names to \$host format.
33142 to_host_file_cmd=$lt_cv_to_host_file_cmd
33143
33144 # convert \$build files to toolchain format.
33145 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33146
33147 # An object symbol dumper.
33148 OBJDUMP=$lt_OBJDUMP
33149
33150 # Method to check whether dependent libraries are shared objects.
33151 deplibs_check_method=$lt_deplibs_check_method
33152
33153 # Command to use when deplibs_check_method = "file_magic".
33154 file_magic_cmd=$lt_file_magic_cmd
33155
33156 # How to find potential files when deplibs_check_method = "file_magic".
33157 file_magic_glob=$lt_file_magic_glob
33158
33159 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33160 want_nocaseglob=$lt_want_nocaseglob
33161
33162 # DLL creation program.
33163 DLLTOOL=$lt_DLLTOOL
33164
33165 # Command to associate shared and link libraries.
33166 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33167
33168 # The archiver.
33169 AR=$lt_AR
33170
33171 # Flags to create an archive.
33172 AR_FLAGS=$lt_AR_FLAGS
33173
33174 # How to feed a file listing to the archiver.
33175 archiver_list_spec=$lt_archiver_list_spec
33176
33177 # A symbol stripping program.
33178 STRIP=$lt_STRIP
33179
33180 # Commands used to install an old-style archive.
33181 RANLIB=$lt_RANLIB
33182 old_postinstall_cmds=$lt_old_postinstall_cmds
33183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33184
33185 # Whether to use a lock for old archive extraction.
33186 lock_old_archive_extraction=$lock_old_archive_extraction
33187
33188 # A C compiler.
33189 LTCC=$lt_CC
33190
33191 # LTCC compiler flags.
33192 LTCFLAGS=$lt_CFLAGS
33193
33194 # Take the output of nm and produce a listing of raw symbols and C names.
33195 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33196
33197 # Transform the output of nm in a proper C declaration.
33198 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33199
33200 # Transform the output of nm in a C name address pair.
33201 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33202
33203 # Transform the output of nm in a C name address pair when lib prefix is needed.
33204 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33205
33206 # Specify filename containing input files for \$NM.
33207 nm_file_list_spec=$lt_nm_file_list_spec
33208
33209 # The root where to search for dependent libraries,and in which our libraries should be installed.
33210 lt_sysroot=$lt_sysroot
33211
33212 # The name of the directory that contains temporary libtool files.
33213 objdir=$objdir
33214
33215 # Used to examine libraries when file_magic_cmd begins with "file".
33216 MAGIC_CMD=$MAGIC_CMD
33217
33218 # Must we lock files when doing compilation?
33219 need_locks=$lt_need_locks
33220
33221 # Manifest tool.
33222 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33223
33224 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33225 DSYMUTIL=$lt_DSYMUTIL
33226
33227 # Tool to change global to local symbols on Mac OS X.
33228 NMEDIT=$lt_NMEDIT
33229
33230 # Tool to manipulate fat objects and archives on Mac OS X.
33231 LIPO=$lt_LIPO
33232
33233 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33234 OTOOL=$lt_OTOOL
33235
33236 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33237 OTOOL64=$lt_OTOOL64
33238
33239 # Old archive suffix (normally "a").
33240 libext=$libext
33241
33242 # Shared library suffix (normally ".so").
33243 shrext_cmds=$lt_shrext_cmds
33244
33245 # The commands to extract the exported symbol list from a shared archive.
33246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33247
33248 # Variables whose values should be saved in libtool wrapper scripts and
33249 # restored at link time.
33250 variables_saved_for_relink=$lt_variables_saved_for_relink
33251
33252 # Do we need the "lib" prefix for modules?
33253 need_lib_prefix=$need_lib_prefix
33254
33255 # Do we need a version for libraries?
33256 need_version=$need_version
33257
33258 # Library versioning type.
33259 version_type=$version_type
33260
33261 # Shared library runtime path variable.
33262 runpath_var=$runpath_var
33263
33264 # Shared library path variable.
33265 shlibpath_var=$shlibpath_var
33266
33267 # Is shlibpath searched before the hard-coded library search path?
33268 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33269
33270 # Format of library name prefix.
33271 libname_spec=$lt_libname_spec
33272
33273 # List of archive names.  First name is the real one, the rest are links.
33274 # The last name is the one that the linker finds with -lNAME
33275 library_names_spec=$lt_library_names_spec
33276
33277 # The coded name of the library, if different from the real name.
33278 soname_spec=$lt_soname_spec
33279
33280 # Permission mode override for installation of shared libraries.
33281 install_override_mode=$lt_install_override_mode
33282
33283 # Command to use after installation of a shared archive.
33284 postinstall_cmds=$lt_postinstall_cmds
33285
33286 # Command to use after uninstallation of a shared archive.
33287 postuninstall_cmds=$lt_postuninstall_cmds
33288
33289 # Commands used to finish a libtool library installation in a directory.
33290 finish_cmds=$lt_finish_cmds
33291
33292 # As "finish_cmds", except a single script fragment to be evaled but
33293 # not shown.
33294 finish_eval=$lt_finish_eval
33295
33296 # Whether we should hardcode library paths into libraries.
33297 hardcode_into_libs=$hardcode_into_libs
33298
33299 # Compile-time system search path for libraries.
33300 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33301
33302 # Run-time system search path for libraries.
33303 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33304
33305 # Whether dlopen is supported.
33306 dlopen_support=$enable_dlopen
33307
33308 # Whether dlopen of programs is supported.
33309 dlopen_self=$enable_dlopen_self
33310
33311 # Whether dlopen of statically linked programs is supported.
33312 dlopen_self_static=$enable_dlopen_self_static
33313
33314 # Commands to strip libraries.
33315 old_striplib=$lt_old_striplib
33316 striplib=$lt_striplib
33317
33318
33319 # The linker used to build libraries.
33320 LD=$lt_LD
33321
33322 # How to create reloadable object files.
33323 reload_flag=$lt_reload_flag
33324 reload_cmds=$lt_reload_cmds
33325
33326 # Commands used to build an old-style archive.
33327 old_archive_cmds=$lt_old_archive_cmds
33328
33329 # A language specific compiler.
33330 CC=$lt_compiler
33331
33332 # Is the compiler the GNU compiler?
33333 with_gcc=$GCC
33334
33335 # Compiler flag to turn off builtin functions.
33336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33337
33338 # Additional compiler flags for building library objects.
33339 pic_flag=$lt_lt_prog_compiler_pic
33340
33341 # How to pass a linker flag through the compiler.
33342 wl=$lt_lt_prog_compiler_wl
33343
33344 # Compiler flag to prevent dynamic linking.
33345 link_static_flag=$lt_lt_prog_compiler_static
33346
33347 # Does compiler simultaneously support -c and -o options?
33348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33349
33350 # Whether or not to add -lc for building shared libraries.
33351 build_libtool_need_lc=$archive_cmds_need_lc
33352
33353 # Whether or not to disallow shared libs when runtime libs are static.
33354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33355
33356 # Compiler flag to allow reflexive dlopens.
33357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33358
33359 # Compiler flag to generate shared objects directly from archives.
33360 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33361
33362 # Whether the compiler copes with passing no objects directly.
33363 compiler_needs_object=$lt_compiler_needs_object
33364
33365 # Create an old-style archive from a shared archive.
33366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33367
33368 # Create a temporary old-style archive to link instead of a shared archive.
33369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33370
33371 # Commands used to build a shared archive.
33372 archive_cmds=$lt_archive_cmds
33373 archive_expsym_cmds=$lt_archive_expsym_cmds
33374
33375 # Commands used to build a loadable module if different from building
33376 # a shared archive.
33377 module_cmds=$lt_module_cmds
33378 module_expsym_cmds=$lt_module_expsym_cmds
33379
33380 # Whether we are building with GNU ld or not.
33381 with_gnu_ld=$lt_with_gnu_ld
33382
33383 # Flag that allows shared libraries with undefined symbols to be built.
33384 allow_undefined_flag=$lt_allow_undefined_flag
33385
33386 # Flag that enforces no undefined symbols.
33387 no_undefined_flag=$lt_no_undefined_flag
33388
33389 # Flag to hardcode \$libdir into a binary during linking.
33390 # This must work even if \$libdir does not exist
33391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33392
33393 # Whether we need a single "-rpath" flag with a separated argument.
33394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33395
33396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33397 # DIR into the resulting binary.
33398 hardcode_direct=$hardcode_direct
33399
33400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33401 # DIR into the resulting binary and the resulting library dependency is
33402 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33403 # library is relocated.
33404 hardcode_direct_absolute=$hardcode_direct_absolute
33405
33406 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33407 # into the resulting binary.
33408 hardcode_minus_L=$hardcode_minus_L
33409
33410 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33411 # into the resulting binary.
33412 hardcode_shlibpath_var=$hardcode_shlibpath_var
33413
33414 # Set to "yes" if building a shared library automatically hardcodes DIR
33415 # into the library and all subsequent libraries and executables linked
33416 # against it.
33417 hardcode_automatic=$hardcode_automatic
33418
33419 # Set to yes if linker adds runtime paths of dependent libraries
33420 # to runtime path list.
33421 inherit_rpath=$inherit_rpath
33422
33423 # Whether libtool must link a program against all its dependency libraries.
33424 link_all_deplibs=$link_all_deplibs
33425
33426 # Set to "yes" if exported symbols are required.
33427 always_export_symbols=$always_export_symbols
33428
33429 # The commands to list exported symbols.
33430 export_symbols_cmds=$lt_export_symbols_cmds
33431
33432 # Symbols that should not be listed in the preloaded symbols.
33433 exclude_expsyms=$lt_exclude_expsyms
33434
33435 # Symbols that must always be exported.
33436 include_expsyms=$lt_include_expsyms
33437
33438 # Commands necessary for linking programs (against libraries) with templates.
33439 prelink_cmds=$lt_prelink_cmds
33440
33441 # Commands necessary for finishing linking programs.
33442 postlink_cmds=$lt_postlink_cmds
33443
33444 # Specify filename containing input files.
33445 file_list_spec=$lt_file_list_spec
33446
33447 # How to hardcode a shared library path into an executable.
33448 hardcode_action=$hardcode_action
33449
33450 # The directories searched by this compiler when creating a shared library.
33451 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33452
33453 # Dependencies to place before and after the objects being linked to
33454 # create a shared library.
33455 predep_objects=$lt_predep_objects
33456 postdep_objects=$lt_postdep_objects
33457 predeps=$lt_predeps
33458 postdeps=$lt_postdeps
33459
33460 # The library search path used internally by the compiler when linking
33461 # a shared library.
33462 compiler_lib_search_path=$lt_compiler_lib_search_path
33463
33464 # ### END LIBTOOL CONFIG
33465
33466 _LT_EOF
33467
33468   case $host_os in
33469   aix3*)
33470     cat <<\_LT_EOF >> "$cfgfile"
33471 # AIX sometimes has problems with the GCC collect2 program.  For some
33472 # reason, if we set the COLLECT_NAMES environment variable, the problems
33473 # vanish in a puff of smoke.
33474 if test "X${COLLECT_NAMES+set}" != Xset; then
33475   COLLECT_NAMES=
33476   export COLLECT_NAMES
33477 fi
33478 _LT_EOF
33479     ;;
33480   esac
33481
33482
33483 ltmain="$ac_aux_dir/ltmain.sh"
33484
33485
33486   # We use sed instead of cat because bash on DJGPP gets confused if
33487   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33488   # text mode, it properly converts lines to CR/LF.  This bash problem
33489   # is reportedly fixed, but why not run on old versions too?
33490   sed '$q' "$ltmain" >> "$cfgfile" \
33491      || (rm -f "$cfgfile"; exit 1)
33492
33493   if test x"$xsi_shell" = xyes; then
33494   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33495 func_dirname ()\
33496 {\
33497 \    case ${1} in\
33498 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33499 \      *  ) func_dirname_result="${3}" ;;\
33500 \    esac\
33501 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33502   && mv -f "$cfgfile.tmp" "$cfgfile" \
33503     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33504 test 0 -eq $? || _lt_function_replace_fail=:
33505
33506
33507   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33508 func_basename ()\
33509 {\
33510 \    func_basename_result="${1##*/}"\
33511 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33512   && mv -f "$cfgfile.tmp" "$cfgfile" \
33513     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33514 test 0 -eq $? || _lt_function_replace_fail=:
33515
33516
33517   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33518 func_dirname_and_basename ()\
33519 {\
33520 \    case ${1} in\
33521 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33522 \      *  ) func_dirname_result="${3}" ;;\
33523 \    esac\
33524 \    func_basename_result="${1##*/}"\
33525 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33526   && mv -f "$cfgfile.tmp" "$cfgfile" \
33527     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33528 test 0 -eq $? || _lt_function_replace_fail=:
33529
33530
33531   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33532 func_stripname ()\
33533 {\
33534 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33535 \    # positional parameters, so assign one to ordinary parameter first.\
33536 \    func_stripname_result=${3}\
33537 \    func_stripname_result=${func_stripname_result#"${1}"}\
33538 \    func_stripname_result=${func_stripname_result%"${2}"}\
33539 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33540   && mv -f "$cfgfile.tmp" "$cfgfile" \
33541     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33542 test 0 -eq $? || _lt_function_replace_fail=:
33543
33544
33545   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33546 func_split_long_opt ()\
33547 {\
33548 \    func_split_long_opt_name=${1%%=*}\
33549 \    func_split_long_opt_arg=${1#*=}\
33550 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33551   && mv -f "$cfgfile.tmp" "$cfgfile" \
33552     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33553 test 0 -eq $? || _lt_function_replace_fail=:
33554
33555
33556   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33557 func_split_short_opt ()\
33558 {\
33559 \    func_split_short_opt_arg=${1#??}\
33560 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33561 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33562   && mv -f "$cfgfile.tmp" "$cfgfile" \
33563     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33564 test 0 -eq $? || _lt_function_replace_fail=:
33565
33566
33567   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33568 func_lo2o ()\
33569 {\
33570 \    case ${1} in\
33571 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33572 \      *)    func_lo2o_result=${1} ;;\
33573 \    esac\
33574 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33575   && mv -f "$cfgfile.tmp" "$cfgfile" \
33576     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33577 test 0 -eq $? || _lt_function_replace_fail=:
33578
33579
33580   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33581 func_xform ()\
33582 {\
33583     func_xform_result=${1%.*}.lo\
33584 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33585   && mv -f "$cfgfile.tmp" "$cfgfile" \
33586     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33587 test 0 -eq $? || _lt_function_replace_fail=:
33588
33589
33590   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33591 func_arith ()\
33592 {\
33593     func_arith_result=$(( $* ))\
33594 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33595   && mv -f "$cfgfile.tmp" "$cfgfile" \
33596     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33597 test 0 -eq $? || _lt_function_replace_fail=:
33598
33599
33600   sed -e '/^func_len ()$/,/^} # func_len /c\
33601 func_len ()\
33602 {\
33603     func_len_result=${#1}\
33604 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33605   && mv -f "$cfgfile.tmp" "$cfgfile" \
33606     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33607 test 0 -eq $? || _lt_function_replace_fail=:
33608
33609 fi
33610
33611 if test x"$lt_shell_append" = xyes; then
33612   sed -e '/^func_append ()$/,/^} # func_append /c\
33613 func_append ()\
33614 {\
33615     eval "${1}+=\\${2}"\
33616 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33617   && mv -f "$cfgfile.tmp" "$cfgfile" \
33618     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33619 test 0 -eq $? || _lt_function_replace_fail=:
33620
33621
33622   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33623 func_append_quoted ()\
33624 {\
33625 \    func_quote_for_eval "${2}"\
33626 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33627 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33628   && mv -f "$cfgfile.tmp" "$cfgfile" \
33629     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33630 test 0 -eq $? || _lt_function_replace_fail=:
33631
33632
33633   # Save a `func_append' function call where possible by direct use of '+='
33634   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33635     && mv -f "$cfgfile.tmp" "$cfgfile" \
33636       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33637   test 0 -eq $? || _lt_function_replace_fail=:
33638 else
33639   # Save a `func_append' function call even when '+=' is not available
33640   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33641     && mv -f "$cfgfile.tmp" "$cfgfile" \
33642       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33643   test 0 -eq $? || _lt_function_replace_fail=:
33644 fi
33645
33646 if test x"$_lt_function_replace_fail" = x":"; then
33647   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33648 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33649 fi
33650
33651
33652    mv -f "$cfgfile" "$ofile" ||
33653     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33654   chmod +x "$ofile"
33655
33656
33657     cat <<_LT_EOF >> "$ofile"
33658
33659 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33660
33661 # The linker used to build libraries.
33662 LD=$lt_LD_CXX
33663
33664 # How to create reloadable object files.
33665 reload_flag=$lt_reload_flag_CXX
33666 reload_cmds=$lt_reload_cmds_CXX
33667
33668 # Commands used to build an old-style archive.
33669 old_archive_cmds=$lt_old_archive_cmds_CXX
33670
33671 # A language specific compiler.
33672 CC=$lt_compiler_CXX
33673
33674 # Is the compiler the GNU compiler?
33675 with_gcc=$GCC_CXX
33676
33677 # Compiler flag to turn off builtin functions.
33678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33679
33680 # Additional compiler flags for building library objects.
33681 pic_flag=$lt_lt_prog_compiler_pic_CXX
33682
33683 # How to pass a linker flag through the compiler.
33684 wl=$lt_lt_prog_compiler_wl_CXX
33685
33686 # Compiler flag to prevent dynamic linking.
33687 link_static_flag=$lt_lt_prog_compiler_static_CXX
33688
33689 # Does compiler simultaneously support -c and -o options?
33690 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33691
33692 # Whether or not to add -lc for building shared libraries.
33693 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33694
33695 # Whether or not to disallow shared libs when runtime libs are static.
33696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33697
33698 # Compiler flag to allow reflexive dlopens.
33699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33700
33701 # Compiler flag to generate shared objects directly from archives.
33702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33703
33704 # Whether the compiler copes with passing no objects directly.
33705 compiler_needs_object=$lt_compiler_needs_object_CXX
33706
33707 # Create an old-style archive from a shared archive.
33708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33709
33710 # Create a temporary old-style archive to link instead of a shared archive.
33711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33712
33713 # Commands used to build a shared archive.
33714 archive_cmds=$lt_archive_cmds_CXX
33715 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33716
33717 # Commands used to build a loadable module if different from building
33718 # a shared archive.
33719 module_cmds=$lt_module_cmds_CXX
33720 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33721
33722 # Whether we are building with GNU ld or not.
33723 with_gnu_ld=$lt_with_gnu_ld_CXX
33724
33725 # Flag that allows shared libraries with undefined symbols to be built.
33726 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33727
33728 # Flag that enforces no undefined symbols.
33729 no_undefined_flag=$lt_no_undefined_flag_CXX
33730
33731 # Flag to hardcode \$libdir into a binary during linking.
33732 # This must work even if \$libdir does not exist
33733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33734
33735 # Whether we need a single "-rpath" flag with a separated argument.
33736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33737
33738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33739 # DIR into the resulting binary.
33740 hardcode_direct=$hardcode_direct_CXX
33741
33742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33743 # DIR into the resulting binary and the resulting library dependency is
33744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33745 # library is relocated.
33746 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33747
33748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33749 # into the resulting binary.
33750 hardcode_minus_L=$hardcode_minus_L_CXX
33751
33752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33753 # into the resulting binary.
33754 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33755
33756 # Set to "yes" if building a shared library automatically hardcodes DIR
33757 # into the library and all subsequent libraries and executables linked
33758 # against it.
33759 hardcode_automatic=$hardcode_automatic_CXX
33760
33761 # Set to yes if linker adds runtime paths of dependent libraries
33762 # to runtime path list.
33763 inherit_rpath=$inherit_rpath_CXX
33764
33765 # Whether libtool must link a program against all its dependency libraries.
33766 link_all_deplibs=$link_all_deplibs_CXX
33767
33768 # Set to "yes" if exported symbols are required.
33769 always_export_symbols=$always_export_symbols_CXX
33770
33771 # The commands to list exported symbols.
33772 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33773
33774 # Symbols that should not be listed in the preloaded symbols.
33775 exclude_expsyms=$lt_exclude_expsyms_CXX
33776
33777 # Symbols that must always be exported.
33778 include_expsyms=$lt_include_expsyms_CXX
33779
33780 # Commands necessary for linking programs (against libraries) with templates.
33781 prelink_cmds=$lt_prelink_cmds_CXX
33782
33783 # Commands necessary for finishing linking programs.
33784 postlink_cmds=$lt_postlink_cmds_CXX
33785
33786 # Specify filename containing input files.
33787 file_list_spec=$lt_file_list_spec_CXX
33788
33789 # How to hardcode a shared library path into an executable.
33790 hardcode_action=$hardcode_action_CXX
33791
33792 # The directories searched by this compiler when creating a shared library.
33793 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33794
33795 # Dependencies to place before and after the objects being linked to
33796 # create a shared library.
33797 predep_objects=$lt_predep_objects_CXX
33798 postdep_objects=$lt_postdep_objects_CXX
33799 predeps=$lt_predeps_CXX
33800 postdeps=$lt_postdeps_CXX
33801
33802 # The library search path used internally by the compiler when linking
33803 # a shared library.
33804 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33805
33806 # ### END LIBTOOL TAG CONFIG: CXX
33807 _LT_EOF
33808
33809  ;;
33810     "default-1":C)
33811     for ac_file in $CONFIG_FILES; do
33812       # Support "outfile[:infile[:infile...]]"
33813       case "$ac_file" in
33814         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33815       esac
33816       # PO directories have a Makefile.in generated from Makefile.in.in.
33817       case "$ac_file" in */Makefile.in)
33818         # Adjust a relative srcdir.
33819         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33820         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33821         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33822         # In autoconf-2.13 it is called $ac_given_srcdir.
33823         # In autoconf-2.50 it is called $srcdir.
33824         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33825         case "$ac_given_srcdir" in
33826           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33827           /*) top_srcdir="$ac_given_srcdir" ;;
33828           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33829         esac
33830         # Treat a directory as a PO directory if and only if it has a
33831         # POTFILES.in file. This allows packages to have multiple PO
33832         # directories under different names or in different locations.
33833         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33834           rm -f "$ac_dir/POTFILES"
33835           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33836           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33837           POMAKEFILEDEPS="POTFILES.in"
33838           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33839           # on $ac_dir but don't depend on user-specified configuration
33840           # parameters.
33841           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33842             # The LINGUAS file contains the set of available languages.
33843             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33844               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33845             fi
33846             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33847             # Hide the ALL_LINGUAS assigment from automake.
33848             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33849             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33850           else
33851             # The set of available languages was given in configure.in.
33852             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33853           fi
33854           # Compute POFILES
33855           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33856           # Compute UPDATEPOFILES
33857           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33858           # Compute DUMMYPOFILES
33859           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33860           # Compute GMOFILES
33861           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33862           case "$ac_given_srcdir" in
33863             .) srcdirpre= ;;
33864             *) srcdirpre='$(srcdir)/' ;;
33865           esac
33866           POFILES=
33867           UPDATEPOFILES=
33868           DUMMYPOFILES=
33869           GMOFILES=
33870           for lang in $ALL_LINGUAS; do
33871             POFILES="$POFILES $srcdirpre$lang.po"
33872             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33873             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33874             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33875           done
33876           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33877           # environment variable.
33878           INST_LINGUAS=
33879           if test -n "$ALL_LINGUAS"; then
33880             for presentlang in $ALL_LINGUAS; do
33881               useit=no
33882               if test "%UNSET%" != "$LINGUAS"; then
33883                 desiredlanguages="$LINGUAS"
33884               else
33885                 desiredlanguages="$ALL_LINGUAS"
33886               fi
33887               for desiredlang in $desiredlanguages; do
33888                 # Use the presentlang catalog if desiredlang is
33889                 #   a. equal to presentlang, or
33890                 #   b. a variant of presentlang (because in this case,
33891                 #      presentlang can be used as a fallback for messages
33892                 #      which are not translated in the desiredlang catalog).
33893                 case "$desiredlang" in
33894                   "$presentlang"*) useit=yes;;
33895                 esac
33896               done
33897               if test $useit = yes; then
33898                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33899               fi
33900             done
33901           fi
33902           CATALOGS=
33903           if test -n "$INST_LINGUAS"; then
33904             for lang in $INST_LINGUAS; do
33905               CATALOGS="$CATALOGS $lang.gmo"
33906             done
33907           fi
33908           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33909           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"
33910           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33911             if test -f "$f"; then
33912               case "$f" in
33913                 *.orig | *.bak | *~) ;;
33914                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33915               esac
33916             fi
33917           done
33918         fi
33919         ;;
33920       esac
33921     done ;;
33922     "default":C)
33923  ;;
33924
33925   esac
33926 done # for ac_tag
33927
33928
33929 as_fn_exit 0
33930 _ACEOF
33931 ac_clean_files=$ac_clean_files_save
33932
33933 test $ac_write_fail = 0 ||
33934   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33935
33936
33937 # configure is writing to config.log, and then calls config.status.
33938 # config.status does its own redirection, appending to config.log.
33939 # Unfortunately, on DOS this fails, as config.log is still kept open
33940 # by configure, so config.status won't be able to write to it; its
33941 # output is simply discarded.  So we exec the FD to /dev/null,
33942 # effectively closing config.log, so it can be properly (re)opened and
33943 # appended to by config.status.  When coming back to configure, we
33944 # need to make the FD available again.
33945 if test "$no_create" != yes; then
33946   ac_cs_success=:
33947   ac_config_status_args=
33948   test "$silent" = yes &&
33949     ac_config_status_args="$ac_config_status_args --quiet"
33950   exec 5>/dev/null
33951   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33952   exec 5>>config.log
33953   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33954   # would make configure fail if this is the last instruction.
33955   $ac_cs_success || as_fn_exit 1
33956 fi
33957 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33958   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33959 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33960 fi
33961
33962
33963 if test "${support_bat}" = "yes" ; then
33964    if test "x$QMAKE" = "xnone"; then
33965       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33966    fi
33967
33968    cd src/qt-console
33969    echo "Creating bat Makefile"
33970    touch bat
33971    chmod 755 bat
33972    rm -f Makefile
33973    rm -rf moc32 obj32
33974    $QMAKE
33975    ${MAKE:-make} clean
33976    cd ${BUILD_DIR}
33977 fi
33978
33979 if test X"$GCC" = "Xyes" ; then
33980   echo "Doing make of dependencies"
33981   ${MAKE:-make} depend
33982 fi
33983
33984 cd src/qt-console
33985 chmod 755 install_conf_file build-depkgs-qt-console
33986 cd ${BUILD_DIR}
33987
33988 cd scripts
33989 chmod 755 bacula btraceback mtx-changer
33990 chmod 755 dvd-handler dvd-simulator
33991 chmod 755 bconsole disk-changer devel_bacula logrotate
33992 cd ..
33993
33994 c=updatedb
33995 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33996 chmod 755 $c/update_postgresql_tables_10_to_11
33997 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33998 chmod 755 $c/update_postgresql_tables_11_to_12
33999
34000
34001 c=src/cats
34002
34003 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
34004 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
34005
34006 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
34007 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
34008
34009 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
34010 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
34011
34012 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
34013 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
34014
34015 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
34016 chmod 755 $c/sqlite
34017 chmod 755 $c/mysql
34018
34019 chmod 755 $c/install-default-backend
34020
34021 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
34022    largefile_support="yes"
34023 fi
34024
34025 if test X"$GCC" = "Xyes" ; then
34026                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
34027    if test "x${CCVERSION}" = "x" ; then
34028       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34029    fi
34030    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
34031    if test x"${CXXVERSION}" = x ; then
34032       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34033    fi
34034 fi
34035
34036 # clean up any old junk
34037 echo " "
34038 echo "Cleaning up"
34039 echo " "
34040 ${MAKE:-make} clean
34041
34042 echo "
34043 Configuration on `date`:
34044
34045    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34046    Bacula version:           ${BACULA} ${VERSION} (${DATE})
34047    Source code location:     ${srcdir}
34048    Install binaries:         ${sbindir}
34049    Install libraries:        ${libdir}
34050    Install config files:     ${sysconfdir}
34051    Scripts directory:        ${scriptdir}
34052    Archive directory:        ${archivedir}
34053    Working directory:        ${working_dir}
34054    PID directory:            ${piddir}
34055    Subsys directory:         ${subsysdir}
34056    Man directory:            ${mandir}
34057    Data directory:           ${datarootdir}
34058    Plugin directory:         ${plugindir}
34059    C Compiler:               ${CC} ${CCVERSION}
34060    C++ Compiler:             ${CXX} ${CXXVERSION}
34061    Compiler flags:           ${WCFLAGS} ${CFLAGS}
34062    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
34063    Libraries:                ${LIBS}
34064    Statically Linked Tools:  ${support_static_tools}
34065    Statically Linked FD:     ${support_static_fd}
34066    Statically Linked SD:     ${support_static_sd}
34067    Statically Linked DIR:    ${support_static_dir}
34068    Statically Linked CONS:   ${support_static_cons}
34069    Database backends:        ${db_backends}
34070    Database port:            ${db_port}
34071    Database name:            ${db_name}
34072    Database user:            ${db_user}
34073    Database SSL options:     ${db_ssl_options}
34074
34075    Job Output Email:         ${job_email}
34076    Traceback Email:          ${dump_email}
34077    SMTP Host Address:        ${smtp_host}
34078
34079    Director Port:            ${dir_port}
34080    File daemon Port:         ${fd_port}
34081    Storage daemon Port:      ${sd_port}
34082
34083    Director User:            ${dir_user}
34084    Director Group:           ${dir_group}
34085    Storage Daemon User:      ${sd_user}
34086    Storage DaemonGroup:      ${sd_group}
34087    File Daemon User:         ${fd_user}
34088    File Daemon Group:        ${fd_group}
34089
34090    Large file support:       $largefile_support
34091    Bacula conio support:     ${got_conio} ${CONS_LIBS}
34092    readline support:         ${got_readline} ${PRTREADLINE_SRC}
34093    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
34094    TLS support:              ${support_tls}
34095    Encryption support:       ${support_crypto}
34096    ZLIB support:             ${have_zlib}
34097    LZO support:              ${have_lzo}
34098    enable-smartalloc:        ${support_smartalloc}
34099    enable-lockmgr:           ${support_lockmgr}
34100    bat support:              ${support_bat}
34101    client-only:              ${build_client_only}
34102    build-dird:               ${build_dird}
34103    build-stored:             ${build_stored}
34104    Plugin support:           ${have_plugins}
34105    AFS support:              ${have_afs}
34106    ACL support:              ${have_acl}
34107    XATTR support:            ${have_xattr}
34108    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
34109    Batch insert enabled:     ${batch_insert_db_backends}
34110
34111   " > config.out
34112
34113 # create a small shell script useful for support with
34114 # configure options and config.out info
34115 cat > scripts/bacula_config << EOF
34116 #!/bin/sh
34117 cat << __EOC__
34118 $ $0 $ac_configure_args
34119 EOF
34120 cat config.out >> scripts/bacula_config
34121 echo __EOC__ >> scripts/bacula_config
34122 chmod 755 scripts/bacula_config
34123
34124 cat config.out